Agent SkillsReflexioAI/claude-smart › sync-agent-instructions

sync-agent-instructions

GitHub

同步 CLAUDE.md、GEMINI.md 和 AGENTS.md 等 AI 编程工具指令文件,确保内容一致。自动检测变更源并复制更新其他文件,支持多文件冲突时询问用户,最后提交更改。

.claude/skills/sync-agent-instructions/SKILL.md ReflexioAI/claude-smart

Trigger Scenarios

同步 md 文件 同步指令 更新 GEMINI.md 更新 AGENTS.md

Install

npx skills add ReflexioAI/claude-smart --skill sync-agent-instructions -g -y
More Options

Non-standard path

npx skills add https://github.com/ReflexioAI/claude-smart/tree/main/.claude/skills/sync-agent-instructions -g -y

Use without installing

npx skills use ReflexioAI/claude-smart@sync-agent-instructions

指定 Agent (Claude Code)

npx skills add ReflexioAI/claude-smart --skill sync-agent-instructions -a claude-code -g -y

安装 repo 全部 skill

npx skills add ReflexioAI/claude-smart --all -g -y

预览 repo 内 skill

npx skills add ReflexioAI/claude-smart --list

SKILL.md

Frontmatter
{
    "name": "sync-agent-instructions",
    "description": "Sync AI coding tool instruction files (CLAUDE.md, GEMINI.md, AGENTS.md) so they stay aligned. Detects which file changed and copies it to the others. Use when syncing md files, syncing instructions, updating GEMINI.md, or updating AGENTS.md."
}

Sync Agent Instructions

Keep CLAUDE.md, GEMINI.md, and AGENTS.md in sync so all AI coding tools share the same project instructions.

Workflow

  1. Detect changes — Run git diff HEAD -- CLAUDE.md GEMINI.md AGENTS.md to see which file(s) have uncommitted changes.

  2. Determine source file:

    • One file changed — That file is the source. Copy its content to the other two.
    • Multiple files changed — Ask the user which file to use as the source.
    • No files changed — Compare all three with diff. If they differ, report which sections differ and ask the user which file to use as source. If identical, report "All instruction files are in sync." and stop.
  3. Sync — Read the source file and write its exact content to the other two files.

  4. Stage — Run git add on the two modified files.

  5. Report — Tell the user which file was the source and that the other two have been updated.

Version History

  • 951e081 Current 2026-07-24 11:42

Same Skill Collection

.agents/skills/agent-browser/SKILL.md
.agents/skills/fastapi/SKILL.md
.agents/skills/prd/SKILL.md
.agents/skills/ralph/SKILL.md
.agents/skills/sync-agent-instructions/SKILL.md
.agents/skills/update-public-docs/SKILL.md
.claude/commands/check-and-test/SKILL.md
.claude/commands/create-pr/SKILL.md
.claude/commands/review/SKILL.md
.claude/commands/run-services/SKILL.md
.claude/commands/update-pr/SKILL.md
.claude/skills/agent-browser/SKILL.md
.claude/skills/fastapi/SKILL.md
.claude/skills/prd/SKILL.md
.claude/skills/ralph/SKILL.md
.claude/skills/update-public-docs/SKILL.md
plugin/skills/claude-smart/SKILL.md
.claude/commands/commit/SKILL.md

Metadata

Files
0
Version
08335bb
Hash
1a7b4e9d
Indexed
2026-07-24 11:42

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-17 07:01
浙ICP备14020137号-1 $mapa de visitantes$