repo-setup
Skill1 starsChanged 3 days agoMITView on GitHub
Set up or audit a repo's working baseline for people and agents. Public AGENTS.md plus a gitignored AGENTS.local.md, ignore rules, one verify command that CI also runs, and a worktree setup script. Migrates an existing CLAUDE.md without losing a line. Use for "set up this repo for agents", "repo setup", "bootstrap the repo", "add AGENTS.md", "migrate CLAUDE.md to AGENTS.md". Not for installing dependencies or getting a project to run locally.
9 other projects use a version of this.
Adopted by
Most recently taken up by
- lxsmnsyc/agent-skillstheir own version, first seen Nov 8, 2026
- newkirkjosh/skillstheir own version, first seen Nov 1, 2026
- TheAxeC/ordotheir own version, first seen Nov 1, 2026
- lggarrison/agent-skillstheir own version, first seen Oct 25, 2026
- JarvusInnovations/agent-skillstheir own version, first seen Oct 20, 2026
- ethanaubuchon/dossier-tradecrafttheir own version, first seen Sep 26, 2026
Used with
Projects with it also use pr-review.
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.
MicrosoftSkillpr-review
Verify the technical accuracy of a vscode-docs pull request against the VS Code source code in microsoft/vscode. Use when reviewing a docs PR for factual correctness: setting names, command IDs, default values, API shapes, keybindings, versioned availability, and described behavior.
Also in 3 projects that use this
Other versions9 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 9
- getsentry/outpost★ 5same name
- lxsmnsyc/agent-skills★ 4same name
- ethanaubuchon/dossier-tradecraft★ 3same name
- polaralias/skills★ 2same name
- smarzban/agent-sdlc★ 2same name
- JarvusInnovations/agent-skills★ 1same name
- newkirkjosh/skills★ 1same name
- lggarrison/agent-skills★ 0same name
- TheAxeC/ordo★ 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 repository15 other files it gives its agents.
- AGENTS.mdAGENTS.md
- code-auditSkill
- comment-auditSkill
- coordinatorSkill
- correctSkill
- deliverSkill
- handoffSkill
- publishing-a-repoSkill
- releaseSkill
- shared-skillsSkill
- test-auditSkill
- triageSkill
- verification-skillSkill
- writing-docsSkill
- writing-readmesSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 1 is distinctive, and 5 are very specific to this project.
0
Common
Most of the 9 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 16
Run <skill>/scripts/repo-audit and read every file it lists as existing.
- Very specific: line 19
Write what was agreed, from reference/templates.md.
- Distinctive: line 45
Never replace an existing file.
- Very specific: line 47
Use the repo's existing verify entry point if it has one (make check, npm run verify).
- Very specific: line 49
Never create AGENTS.override.md.
- Very specific: line 68
When the audit finds a CLAUDE.md, a mixed AGENTS.md or another instruction file with real content, migrate it.
“Common” is measured: kept by at least 6 in 10 of the 9 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
Bring a repo, empty or existing, to a baseline that any agent harness can work in. This skill writes machinery and facts it can check: commands, ignore rules, scripts, CI. It writes no prose. The project overview, the README and the docs belong to writing-readmes and writing-docs.
Work on the current repo unless you are given a path.
Steps
<skill> in a command is this skill's folder, the one that holds this file. Run those scripts by that path, with the target repo as the working directory. A path without <skill>, such as scripts/verify, is in the target repo.
- Run
<skill>/scripts/repo-auditand read every file it lists as existing. On an empty repo the audit reports everything missing; run it anyway. - Settle the repo type, because it selects the optional files: solo or team (the audit's author count, an existing
CODEOWNERS), public or private. Ask when the evidence does not say. - Show the owner the audit and one proposal: each file to create, each edit to an existing file as a diff, and each owner decision. Wait for a yes. If the owner already told you to proceed without asking, print the proposal and continue. The separate yes for making private content public (
reference/migration.md) is asked in every case. - Write what was agreed, from
reference/templates.md. Stay on the branch you found. Ifgit statusshows changes you did not make, another session is working here: leave its files alone, and ask the owner before you edit a file it has changed. - Check the result:
- The verify command exits 0, and the CI workflow runs that same command.
<skill>/scripts/repo-auditnow reports both ignore rules as present.git worktree add --detach ../<repo>-probe && (cd ../<repo>-probe && scripts/worktree-setup)succeeds; then rungit worktree remove --force ../<repo>-probe. A repo with no commits cannot have a second worktree: report this check as not run. A worktree holds only committed files, so if the new scripts are not committed yet, copy them into the probe and say that you did.AGENTS.mdis inside its budget. Over budget is a warning for the report, not a failure.
- Report: created, edited (with the diff), left alone, owner decisions still open, and anything a check did not prove.
Files
| Tier | File | When |
| Core | AGENTS.md | always |
| Core | AGENTS.local.md | when there is private content to put in it; its ignore rule always |
| Core | .gitignore | always: AGENTS.local.md, HANDOFF.md, and the rules for the detected stack |
| Core | a verify command (scripts/verify, or the repo's own) | when the repo has at least one real check |
| Core | CI workflow that runs the verify command | when a verify command exists |
| Core | scripts/worktree-setup | always |
| Optional | issue and pull request templates, CODEOWNERS | team repos |
| Optional | .editorconfig, .gitattributes | when the owner wants them |
| Optional | secret-scanning baseline | public repos, and any repo that holds credentials locally |
HANDOFF.md itself is not created here. The handoff skill writes one per worktree; this skill only makes sure git ignores it.
Rules
- Never replace an existing file. Add the missing lines, keep the rest, and show the diff first.
- Write a fact or leave the line out. Take build, test and lint commands from the CI config and the package scripts that the audit prints, and run each one before you write it down. A repo with no checks yet gets no verify command and no CI file. Report them as waiting for a stack; do not write a placeholder.
- Use the repo's existing verify entry point if it has one (
make check,npm run verify); the audit lists candidates under its verify row. Otherwise createscripts/verify. In both cases CI calls the same command a person runs. - Owner decisions are flagged and never invented: the licence, the security policy and its reporting channel, the code of conduct,
CODEOWNERSentries, and remote settings (visibility, branch protection, hosted secret scanning). For a remote setting, give the exact command and let the owner run it. One exception: when the repo has a single author, propose* @<that-owner>forCODEOWNERSand ask for confirmation. - Never create
AGENTS.override.md. Codex reads it in place ofAGENTS.md.
AGENTS.md
reference/templates.md holds the template. It carries:
- The commands, including how to prepare a fresh worktree.
- The pointers: read
HANDOFF.mdfirst if it exists, where the docs index is, and "a change to a user-facing surface updates its docs page in the same change", naming thewriting-docsupdate mode. - A rule table that pairs each rule with what enforces it: a lint, a test, a type, or "nothing yet". A rule with "nothing yet" is a candidate for a check, and the table makes that visible.
- Two fixed sections: Fix the cause and Comments.
- A Needs the owner list: the paths an agent never merges alone.
- The split: a note a stranger who cloned the repo could use goes in
AGENTS.md; local paths, personal workflow and private context go inAGENTS.local.md.
Budget: keep the root AGENTS.md under 150 lines and 8 KB. The three harnesses probed load the whole file at the start of every session (reference/harness-loading.md), so each line is paid for on every task. When an existing file is over budget, report it and propose moves; do not cut content yourself.
In a monorepo, give a package its own AGENTS.md when its commands or rules differ from the root, and list those files in the root AGENTS.md. In the three harnesses probed, a session started in the package folder loads both files, and a session started at the root loads only the root file (reference/harness-loading.md).
An existing instruction file
When the audit finds a CLAUDE.md, a mixed AGENTS.md or another instruction file with real content, migrate it. Do not write a template beside it or over it. Follow reference/migration.md.
Reference
reference/templates.md: every file this skill writes.reference/migration.md: moving an existing instruction file into the split, with the privacy scan.reference/harness-loading.md: what each harness was observed to load, with dates and versions, and how to probe again.
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.

