Shared agent guidelines and scaffold files that stay in sync across projects.
- Common files live under
templates/in this repo. - The file
templates/.sync.manifest.mdlists every syncable file, its current canonical version, and any per-file instructions. - In a downstream project, save
templates/.claude/skills/sync/SKILL.mdas.claude/skills/sync/SKILL.mdand run/sync. - The skill fetches the manifest, compares versions against the project's local
.sync.manifest.md, and applies updates.
The sync is version-aware — files are only updated when the canonical version listed in the source manifest is higher than the version recorded in the project's local manifest.
Each skill lives at templates/.claude/skills/<name>/SKILL.md and syncs to downstream projects like any other file. Skills marked "you" only run when you type the command; the others can also be started by the agent when the task matches.
| Skill | What it does | Edits files? | Invoked by |
|---|---|---|---|
/bughunt |
Hunts for logic bugs in the current batch of work, using parallel reviewers and randomized invariant tests | No, report only | you |
/checkup |
Checks a repo after time away: baseline build and tests, security alerts, outdated dependencies, sync drift, and what a newer model would do differently | No, report only | you or the agent |
/commit |
Stages and commits all changes with a summarized message (doesn't push) | Commits | you |
/reflect |
Brings docs, agent instructions, and project knowledge up to date with recent work, and prunes stale notes | Yes, docs | you or the agent |
/release |
Prepares a release: validates the version, updates CHANGELOG.md, bumps package.json |
Yes | you |
/sharpen |
Goes deep on one part of the codebase after a burst of work: one job per class, one meaning per word, names that follow the conventions, and what can go | No, report only (then makes the changes you pick) | you |
/suggest |
Reviews the codebase and suggests improvements as a numbered list | No, report only | you or the agent |
/sync |
Syncs scaffold files from this repo into a downstream project | Yes | you |
/triage |
Triages open issues and PRs: already fixed, duplicates, stale, ready to merge, quick wins, with draft replies | No, report only | you or the agent |
Alongside the synced templates, this repo keeps knowledge that applies across projects. It's written for agents and never synced: the synced AGENTS.md tells agents in each project to read the lessons at session start, and the playbooks before an upgrade.
playbooks/: step-by-step guides for one-time upgrades, like switching from ESLint to oxlint or moving to TypeScript 7./checkuplists the ones that apply to a project.lessons/: gotchas with the tools we use, grouped by topic (Bun, TypeScript, packaging, git, shell).
Each folder's README.md is the index, plus the format for new entries. New playbooks and lessons come from real work in downstream projects: /reflect suggests additions, and they land here as PRs.
So there are three layers:
| Layer | Where | How it gets to a project |
|---|---|---|
| Templates: steady-state files and skills | templates/ |
Synced by /sync, versioned in the manifest |
| Shared playbooks and lessons | playbooks/, lessons/ |
Fetched (lessons at session start, playbooks before an upgrade), not versioned |
| Project knowledge | Each project's knowledge/ folder (committed, public) and PRIVATE.* files (gitignored) |
Stays in the project; only knowledge/README.md is synced |
Each project keeps its own notes in a committed knowledge/ folder: work in progress, the backlog, a month-by-month summary of completed work, decisions, lessons, and quirks. Keeping them public and in git means every contributor, human or agent, starts with the same context. The synced knowledge/README.md sets the conventions, including size budgets and when to prune; /reflect does the pruning.
Notes that shouldn't be public go in gitignored PRIVATE.* files, which can be in any folder. Projects that used the older gitignored SCRATCHPAD.md are moved over by /sync: it renames the file to PRIVATE.md, then suggests which entries could move into knowledge/.
Projects with larger systems can also keep design docs in an optional design/ folder, which AGENTS.md tells agents to read before changing those systems.
templates/ is the single source of truth for synced files.
knowledge/ # ← this repo's own project knowledge (see templates/knowledge/README.md)
playbooks/ # ← one-time upgrade guides, fetched on demand (not synced)
README.md # ← index and format
…
lessons/ # ← cross-project gotchas by topic, fetched at session start (not synced)
README.md # ← index and format
…
templates/ # ← everything under here will be synced to consumer projects
.sync.manifest.md # ← THE source of truth: file list, versions, instructions
.gitattributes
.gitignore
AGENTS.md
CHANGELOG.md
CONTRIBUTING.md
…
knowledge/
README.md # ← conventions for each project's knowledge/ folder
.claude/
skills/ # ← Agent Skills, found by Claude Code and VS Code Copilot
sync/
SKILL.md
…
.github/
prompts/
sync.prompt.md # ← legacy shim that moves older projects over to the skillsNote
.claude/skills/ at the repo root is a symlink to templates/.claude/skills/, so agents working in this repo find the skills at the standard location without duplication.
All sync metadata — file paths, versions, per-file instructions — lives in templates/.sync.manifest.md. Template files themselves carry no sync metadata; they're clean copies ready to drop into a downstream project.
Downstream projects keep a .sync.manifest.md at their repo root that records which versions of which files they've received. The /sync skill updates this file as part of every run; no other file is modified for bookkeeping.
Synced files are starting points, and downstream copies are expected to drift. The local manifest's Notes column records deliberate differences (e.g. a library adding isolatedDeclarations to its tsconfig.json), so later syncs keep them instead of flagging them again.
Available under the ISC License. See LICENSE.md.