agentleFS
Atou4Atou4/skillsmith/skills/meta/skill-sync/SKILL.md

skill-sync

Skill3 starsChanged 11 days agoMITView on GitHub

Fix drift between installed agent skills across ~/.claude/skills, ~/.codex/skills and ~/.agents/skills. Relinks skills missing from an agent, removes dead links and reconciles duplicate copies, always proposing each change and asking first. Use after skill-audit reports problems, or when the user says "sync my skills", "why is this skill missing in Codex", or "make Claude and Codex have the same skills".

25 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use session-handoff and tdd.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • wpankSkill

    session-handoff

    WHAT: Create comprehensive handoff documents that enable fresh AI agents to seamlessly continue work with zero ambiguity. Solves long-running agent context exhaustion problem.

    Also in 4 projects that use this

  • GoogleSkill

    tdd

    Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.

    Also in 4 projects that use this

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 1 is distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 21 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Get the findings: Run python3 -I <skill-audit folder>/scripts/audit.py and read the report.

    line 12
  2. Distinctive:

    Never delete a skill folder.

    line 33
  3. Very specific:

    Never overwrite an existing path.

    line 34
  4. Very specific:

    Do not touch plugin-managed folders (~/.claude/plugins/...).

    line 36

“Common” is measured: kept by at least 6 in 10 of the 21 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Skill sync

Acts on the findings of skill-audit. Nothing changes without the user's approval of that specific change. The canonical store is ~/.agents/skills; the agent folders hold links into it.

Steps

  1. Get the findings. Run python3 -I <skill-audit folder>/scripts/audit.py and read the report. If skill-audit is not installed, say so and stop.
  2. Classify each finding and propose a fix. Show the exact command, run nothing yet.

    FindingProposed fix
    Broken symlinkDelete the dead link (rm <link>), or repoint it if the user says where the skill moved.
    Missing in an agent, canonical copy exists in ~/.agents/skillsln -s ~/.agents/skills/<name> <agent dir>/<name>
    Missing in an agent, skill exists only as a real folder in another agent's directoryAsk: move it into ~/.agents/skills and link from both, or leave it single-agent on purpose. Never decide silently.
    Duplicate name, different targetShow both copies side by side (diff -rq). Ask which wins. The loser is renamed <name>.bak-<date>, never deleted.
    name differs from folder nameReport only. Renaming changes how the skill is invoked; the user chooses the folder name or the name field.
    No SKILL.mdReport only. It may be a plugin or runtime folder the tool manages.
  3. Skip user-managed folders. A real directory the user wrote or edited by hand is never moved, replaced or merged unless the user names it. Many "missing in Codex" entries are deliberate (Claude-only skills); offer a per-skill choice and a "skip all" option.
  4. Apply only approved changes, one at a time or in a batch the user confirmed, and keep a log of each command run with its result.
  5. Verify. Re-run the audit. Report the counts before and after, and anything that did not change. Tell the user skills appear after restarting the session.

Rules

  • Never delete a skill folder. Dead links may be removed; everything else is renamed or left alone.
  • Never overwrite an existing path. Check that the destination does not exist before ln -s or mv.
  • Removal requests apply to the project, not the machine, unless the user says otherwise.
  • Do not touch plugin-managed folders (~/.claude/plugins/...); those update through the plugin manager.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.