repo-setup
Skill0 starsChanged 8 days agoMITView on GitHub
Set up a new repository — package manager, layout, ignores, hooks and checks — so the first commit already builds and runs its checks. Use when the user asks to "start a new repo", "initialize a project", "scaffold a project", "set up a new codebase", or a fresh directory needs tooling before real work. Not for adding features to an existing repo.
10 other projects use a version of this.
Adopted by
Most recently taken up by
- BorislavStefanov31/bs31-agentstheir 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
- BorislavStefanov31/bs31-agents★ 8same name
- 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
- 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 repository2 other files it gives its agents.
- commit-disciplineSkill
- writing-testsSkill
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 3 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 10 edited versions we read keep these.
3
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 17
Ask only what the directory does not answer (a pyproject.toml gives the language, a lockfile the package manager, CLAUDE.md/AGENTS.md the …
- Distinctive: line 24
Never guess a framework.
- Very specific: line 34
If the user names another manager, theirs wins.
- Distinctive: line 44
Use the layout the ecosystem's tools expect, with tests mirroring the package so each module and its tests are findable from either side:
- Very specific: line 51
Create only directories that have an occupant.
- Very specific: line 57
Write .gitignore before the first install, so caches and build output never enter history.
- Very specific: line 61
Commit hooks come from prek (prek.toml), never hand-written .git/hooks scripts.
- Distinctive: line 85
Write a CLAUDE.md or AGENTS.md only when asked: what the user names, in their words.
“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
Set up a repository so the first commit runs its checks and a new contributor (human or agent) can build, test and verify without asking how.
The work is decisions, not boilerplate: package manager, which checks run when, what enters version control. Make each decision once, record it where the tool reads it, and stop.
Before creating anything
Ask only what the directory does not answer (a pyproject.toml gives the
language, a lockfile the package manager, CLAUDE.md/AGENTS.md the
conventions):
- What is the repo for, in one sentence? This shapes the layout and first dependency.
- Language and runtime? If unchosen, propose one for the user to confirm. Never guess a framework.
- Does a repo exist at the path, or does
git initstart it? Never initialize over an existing.git.
Package manager
- Python: uv —
uv run pytest,uv sync. - JavaScript: pnpm —
pnpm test, never npm. - Elsewhere use the ecosystem's tool (cargo, go).
If the user names another manager, theirs wins. Every documented command and
every command you run goes through it; npm test in a pnpm repo's README is a
bug.
Pin the runtime the way the ecosystem expects. Ask the user's preference; otherwise pick a stable or LTS release at minor-version level, preferring what is installed locally.
Layout
Use the layout the ecosystem's tools expect, with tests mirroring the package so each module and its tests are findable from either side:
- Python:
src/<package>/; the tests ofpipeline/pack.pylive attests/pipeline/pack/. - JavaScript:
src/, tests beside the code or mirrored undertests/.
Create only directories that have an occupant; an empty scripts/ is a guess.
Version control
git init; the first commit holds manifests, lockfile, ignores and README, and builds.- Write
.gitignorebefore the first install, so caches and build output never enter history. Ignore what tools generate, not what they read. - Local notes, scratchpads and personal TODOs stay uncommitted and out of
commit messages; put them in
.git/info/exclude, not.gitignore. - Commit hooks come from prek (
prek.toml), never hand-written.git/hooksscripts.
Checks
Checks that are more than a bare command are scripts in the manifest
([project.scripts] in pyproject.toml, scripts in package.json). Each
runs in seconds on the code at hand. A check in the wrong tier costs the day
(too early) or the review (too late):
- Pre-commit — fixable in seconds, each pointing at one file: formatters, linters, import sorting, whitespace, end-of-file newlines, TOML/JSON validity, merge-conflict markers. No build.
- Pre-push — needs the whole codebase: test suite, type checker, build. On every commit, a ten-commit branch pays ten full runs to learn what the last one says.
- Manual — needs credentials, network, a service, or minutes. Runs in CI or as a documented command.
prek runs tiers 1 and 2; see references/checks.md for the wiring, committed-artifact checks, hook limits and hook failures.
Agent documentation
Write a CLAUDE.md or AGENTS.md only when asked: what the user names, in
their words. No generic scaffold.
When to stop
Setup is done when the first commit exists and builds, the hooks run and pass, and someone can clone, install and run the checks from the README alone. The first feature, CI config and release process are later work with their own review.
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.

