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

sync-agent-instructions

GitHub

同步AI编程工具指令文件,确保CLAUDE.md、GEMINI.md和AGENTS.md内容一致。通过检测变更确定源文件并复制内容,支持自动同步或人工选择,最后暂存更改并报告结果。

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

Trigger Scenarios

需要同步多个AI工具配置文件时 更新特定AI工具说明文件后需保持一致

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

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-30 01:25
浙ICP备14020137号-1 $방문자$