repo-setup
Skill8 starsChanged 9 days agoMITView on GitHub
Use when the user asks to set a repository up for coding agents, wants instructions and skills shared across harnesses, asks to wire a harness (Claude Code, Codex, Cursor or another) into a repository or add one to a repository already set up, or when instruction files or skill copies have drifted apart between harnesses ("make Codex and Claude read the same rules"). Not for splitting a plan into issues, checking outgoing links, or configuration outside the repository.
10 other projects use a version of this.
Adopted by
Most recently taken up by
- sit/agent-skillstheir own version, first seen Nov 29, 2026
- SVN11X/skillstheir own version, first seen Nov 16, 2026
- tailcallhq/skillstheir own version, first seen Nov 16, 2026
- smarzban/agent-skillstheir own version, first seen Nov 15, 2026
- lxsmnsyc/agent-skillstheir own version, first seen Nov 8, 2026
- lggarrison/agent-skillstheir own version, first seen Oct 25, 2026
Other versions10 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 10
- getsentry/outpost★ 5same name
- lxsmnsyc/agent-skills★ 4same name
- ethanaubuchon/dossier-tradecraft★ 3same name
- polaralias/skills★ 2same name
- JarvusInnovations/agent-skills★ 1same name
- smarzban/agent-skills★ 1same name
- tailcallhq/skills★ 1same name
- lggarrison/agent-skills★ 0same name
- sit/agent-skills★ 0same name
- SVN11X/skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository23 other files it gives its agents.
- AGENTS.mdAGENTS.md
- templates/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- after-merge-checkSkill
- agent-rolesSkill
- clarify-with-ownerSkill
- decide-before-buildSkill
- delegate-briefSkill
- done-whenSkill
- findings-logSkill
- hold-for-ownerSkill
- latest-checkSkill
- link-checkSkill
- merge-resultsSkill
- plan-to-issuesSkill
- read-the-contractSkill
- review-queueSkill
- secret-scopeSkill
- session-recallSkill
- shorten-safelySkill
- show-it-worksSkill
- tool-contractSkill
- unattended-batchSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 1 is distinctive, and 2 are very specific to this project.
0
Common
Most of the 10 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 17
Check for links: Run ls -ld on every path you will write and its parents.
- Very specific: line 25
Give the reversal: delete the link object only (rm .claude/skills, no trailing slash, never -r.
- Distinctive: line 26
Commit: only rows marked tracked, after the user sees the diff and agrees.
“Common” is measured: kept by at least 6 in 10 of the 10 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.
Files
repo-setup
Sets a repository up so every harness reads one shared instruction file and one shared skills folder, connected by changes the user sees first.
When to use
First agent setup, adding a harness, or rules and skills that differ between harnesses.
Steps
- Inventory. List instruction files, skills folders, harness rule folders and every skill with its location. Ask which harnesses the team uses.
- Check for links. Run
ls -ldon every path you will write and its parents. If one is a link, stop and ask: writing through it changes files elsewhere. - One shared file:
AGENTS.mdat the root, started fromshared-instructions-template.md. Extend an existing one only as the user approves. Harness files reference it and add only harness-specific lines: two full files drift. - Ask for the facts: what the project is, how to run, test and lint it, what to read first. Never infer them: a guessed command misleads every session.
- Describe the working method there: a plan is split into issues; a person approves the split before publication; one worker per issue on its own branch, model and effort chosen for it; a fixed closing note (change, harness, model, effort, commit); issues close only when their done condition is met. Say where issues, decisions and shared skills live, and forbid committing secrets. Done: no placeholder remains.
- One home per skill:
.agents/skills/<name>/. A harness that looks elsewhere gets a link or configuration entry, never a copy: copies drift. If a skill to add already exists, show the differences and let the user choose. Propose moving harness-only skills there. - Write a change list per harness and show it unaltered before acting. The user carries it out, or you make those changes and no others. Then report the repository state.
- Link with what the system offers: a relative symlink on macOS and Linux, a directory junction on Windows. Keep an existing harness skills folder and link each shared skill into it. Leave a link untracked where version control would store a second copy (a junction, a team without symlink checkout), appending to the ignore file without disturbing its entries.
- Test in a fresh session per harness: it must list the shared skills and answer something only the shared file states.
- Give the reversal: delete the link object only (
rm .claude/skills, no trailing slash, never-r;rmdirfor a junction). Recursive removal destroys the shared skills. - Commit only rows marked tracked, after the user sees the diff and agrees.
Harness conventions
As of late 2026, check your version.
| Harness | Instruction file | Skills folder | Connection |
| Claude Code | CLAUDE.md; AGENTS.md only when no CLAUDE.md exists | .claude/skills/ | CLAUDE.md starting @AGENTS.md; link .claude/skills to .agents/skills |
| Codex | AGENTS.md | .agents/skills/ | Usually none; step 9 decides |
| Cursor | AGENTS.md; scoped rules in .cursor/rules/ | .agents/skills/, .cursor/skills/ | Link only if step 9 fails |
What to produce
The finished AGENTS.md, the .agents/skills/ folder, and per harness the change list (path, change, content, tracked or not), test result and reversal:
Harness: Claude Code
CLAUDE.md create "@AGENTS.md" tracked
.claude/skills symlink ../.agents/skills tracked
Test: fresh session lists label-printer; "Release branch?" answered "trunk".
Undo: rm .claude/skills (link only); delete CLAUDE.md.Stop and ask
- A change would land outside the repository: never make it.
- A tool is missing: report it, never install it.
- An existing harness file holds real content.
Not for
Splitting plans into issues, checking links for outsiders, or machine-wide configuration.
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
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.

