openthrottle/monorepo/ot-skill-sync
Claude Code and agent skill by openthrottle/monorepo
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Manage the agent-skills layout in a repo — install skills, fan them out to every AI tool, and validate the layout. USE WHEN installing or adding agent skills, syncing skills into agent folders, setting up skills in a new repo, checking skill layout drift, or when .agents/skills, .claude/skills or skills-lock.json are involved. Not for authoring or reviewing a skill (ot-skill-guide).
Install
npx vskill@latest install openthrottle/monorepo/ot-skill-syncSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as openthrottle/monorepo/ot-skill-sync.
ot-skill-sync
This skill manages the OpenThrottle agent-skills architecture in whatever repository you're in, so every AI tool — Claude Code, Cursor, Codex, Grok Build, OpenCode, VSCode/Copilot, Antigravity — sees the same skills from the same starting point, no matter which tool a teammate used to install them.
All of these CLIs read the Agent Skills SKILL.md standard; they differ only in which directories they scan. In short: Cursor, Grok Build and Antigravity (agy) read .agents/skills/ natively; Claude Code reads only .claude/skills/, which is why the fan-out exists; codex has no in-repo skills dir at all. Read references/cli-matrix.md before changing the AGENT_SKILL_DIRS defaults.
The architecture
Every repo has these skill locations with strict ownership:
| Location | Contents | Owned by | |
|---|---|---|---|
skills/ | Hand-authored skills, committed to git | Humans (via PRs) | |
.agents/skills/ | The merged SSOT view read in-repo by Cursor, Grok Build, and Antigravity (agy) — see the matrix above; Claude Code reaches it only via the fan-out. Real directories = external skills installed by npx skills (tracked in skills-lock.json). Symlinks = the repo's own skills/*, generated. | The skills CLI / this skill | |
<agent>/skills/ (.claude/skills/) | Per-agent fan-out for the CLIs that do not read .agents/skills/ in-repo — Claude Code (.claude/skills). All symlinks, all generated, all gitignored. | This skill | |
~/.openthrottle/skills/ (outside the repo) | The per-user personal tier: private, half-finished, experimental skills. Linked in by sync and reaching every place a committed skill does, while being structurally impossible to commit. Override with OPENTHROTTLE_PERSONAL_SKILLS_DIR. | You, and nobody else |
Sync is a three-stage pipeline: skills/* → .agents/skills/ (stage 1), <personal>/* → .agents/skills/ (stage 1b), then .agents/skills/* → each agent folder (stage 2). A name collision between skills/ and skills-lock.json is an error, never a silent precedence.
The personal tier
Opt-in is presence: create ~/.openthrottle/skills/<name>/SKILL.md and the next sync picks it up. There is no enable/disable env var; a missing or empty root is a clean no-op (which is what CI sees). The content never enters the worktree, and --check runs git check-ignore on every personal link. A personal skill whose name collides with skills/<name> is a hard error (✗ personal skill 'x' collides with committed skills/x): rename it, or pass --allow-shadow to deliberately run a private fork. Personal skills ride the same stage 2, so they land wherever a committed skill lands.
Rules to enforce
- ALWAYS install external skills with
--agent universalso they land only in.agents/skills/:
``bash npx skills add <owner>/<repo> --skill <skill_name> --agent universal ``
Exception: this skill itself is installed with default agent detection (no --agent flag), so the agent can discover it before the first sync has ever run.
- ALWAYS run a sync after installing, adding, renaming, or removing a skill.
- NEVER hand-edit
.agents/skills/or any<agent>/skills/folder — author skills inskills/, install external ones with the CLI, and let the sync generate the rest.
Commands
All scripts live in this skill's scripts/ directory and operate on the current repo (found via git rev-parse --show-toplevel). Every entry script takes -h/--help; scripts/common.sh holds their shared helpers.
<path-to-this-skill> is .agents/skills/ot-skill-sync when installed, skills/ot-skill-sync in the repo that authors it.
Exit codes: 0 = ok; 1 = drift found (sync.sh --check, check-links.sh) or a usage/setup error. --help exits 0.
The scripts only create symlinks and maintain a single static .gitignore block, so generated links are never committed. There is no side-ledger: a symlink under .agents/skills/ or an agent folder _is_ a generated link (a real directory there is an external install).
What --check validates
- Every
skills/<name>/(with aSKILL.md) is exported to.agents/skills/<name> - Every
skills-lock.jsonentry is materialized in.agents/skills/ .agents/skills/contains nothing else (real dir ⇒ lockfile entry; symlink ⇒ points intoskills/)- No name collisions between
skills/and the lockfile - Agent folders contain exactly the
.agents/skills/set, and no _generated_ fan-out dir exists outside the configuredAGENT_SKILL_DIRSlist (a stray.cursor/skillsfrom a-a cursorinstall is drift because it is an un-configured generated target) - The static
.gitignoreblock is present and every generated symlink is gitignored - No dangling generated links, and no legacy
.gitignore-symlinksledger remains - Every personal link is git-ignored (
git check-ignore), points into the currently-resolved personal root, and is not dangling
check-links.sh covers what --check never opens: it resolves every relative markdown link in a skill body from the directory of the file containing it and fails naming the file, line and target. Absolute URLs, mailto:, bare #anchor links and fenced code blocks are skipped; fragments are stripped, not validated.
Configuration
Fan-out targets default to `.claude/skills` (Claude Code's only in-repo skills dir). Override per repo with a space-separated env var:
The personal root defaults to ~/.openthrottle/skills; it must live outside the repo (sync refuses one inside it):
Setting up a new repo
npx skills add openthrottle/monorepo --skill ot-skill-sync(default agents — the bootstrap exception)- Install any other skills with
--agent universal - Run
sync.sh, commit the resulting.gitignorechanges - Add
sync.sh && sync.sh --checkto CI as the drift gate
In OpenThrottle repos
- Report the outcome when `sync.sh --check` passes (why):
success;errorif it still
fails when you stop; abandoned if no layout change was needed. Fail-open in any repo.
``bash r="$(command -v skill-usage-outcome.cjs || echo "$(git rev-parse --show-toplevel 2>/dev/null)/plugins/openthrottle/bin/skill-usage-outcome.cjs")"; if [ -f "$r" ]; then node "$r" --skill ot-skill-sync --outcome success; fi ``
- OT's shared skills come from
openthrottle/monorepo, lockfile-managed per repo:npx skills add openthrottle/monorepo --skill <skill_name> --agent universal. personal.sh promoteprints OT-only follow-ups (the OT-owned list and description budget indocs/Skills.md, and themonorepocommit scope) whendocs/Skills.mdexists in the repo root.OPENTHROTTLE_PERSONAL_SKILLS_ENABLEDis a different thing entirely: the foreign-repo injection toggle, not a switch for the personal tier.
Gotchas
- **A sync under a temporary
OPENTHROTTLE_PERSONAL_SKILLS_DIRdeletes the links to your real
personal skills.** Stage 1 prunes every personal link that does not point into the currently resolved root, so a test or script that points the variable at a fixture unlinks the real ones, and the next --check reports them as drift. Restore the variable before the final re-sync; repair with env -u OPENTHROTTLE_PERSONAL_SKILLS_DIR bash <path>/scripts/sync.sh.
- A `--check` run under a fixture root is meaningless as a pre-flight for the same reason: it
reports your real personal skills as missing. Assert --check only after the operation under test, under the same root.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/ot-skill-sync/SKILL.md
Popularity
- Repository stars
- 2
- 7-day trend score
- 5
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/openthrottle/monorepo/ot-skill-sync)