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

sync-agent-instructions

GitHub

同步CLAUDE.md、GEMINI.md和AGENTS.md指令文件,确保AI编码工具配置一致。自动检测变更并复制内容,多文件变更时询问用户指定源文件,最后提交更改。

.agents/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/.agents/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/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/sync-agent-instructions/SKILL.md
.claude/skills/update-public-docs/SKILL.md
plugin/skills/claude-smart/SKILL.md
.claude/commands/commit/SKILL.md

Metadata

Files
0
Version
2fe23d0
Hash
1a7b4e9d
Indexed
2026-07-24 11:42

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-07 00:34
浙ICP备14020137号-1 $Гость$