setup-repo
Skill4 starsChanged 3 months agoMITView on GitHub
Bring a GitHub repository to the configuration the issue/PR lifecycle skills assume — label taxonomy, issue forms under .github/ISSUE_TEMPLATE/, repository settings (delete-branch-on-merge, squash-only merges, description, homepage), topics and the GitHub Pages source — deterministic and idempotent: `plan` prints drift, `apply` converges it. Use when a repo needs configuring or has drifted: "set up the labels", "create the issue templates", "set the repo description and topics", "enable GitHub Pages from docs/", "configure this repository the way the kit expects", « configure les labels du repo », « active GitHub Pages ». It WRITES what profile-repo only READS. Does NOT file issues, implement code, or merge PRs.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- Significant-Gravitas/AutoGPTtheir own version, first seen Nov 18, 2026
- etr/groundworktheir own version, first seen Sep 10, 2026
- florian101010/awesome-agentic-AI-coding-templatetheir own version, first seen Feb 27, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- Significant-Gravitas/AutoGPT★ 188ksame name
- etr/groundwork★ 43same name
- florian101010/awesome-agentic-AI-coding-template★ 4same 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 repository16 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/tagout.mdcCursor rule
- auto-devSkill
- create-issueSkill
- create-prSkill
- debug-issueSkill
- deliver-issueSkill
- implement-issueSkill
- merge-prSkill
- migrate-legacySkill
- profile-repoSkill
- review-followupsSkill
- review-sessionsSkill
- triage-backlogSkill
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 3 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
- Distinctive: line 62
Read the exit code — it is the report, and each value means one thing:
- Very specific: line 104
Run hands-off. plan is a read — no task list or precondition ceremony.
- Very specific: line 108
Never invent a taxonomy. If the manifest lacks an axis the repo needs, edit the manifest and re-run — an axis created by hand with gh label …
“Common” is measured: kept by at least 6 in 10 of the 3 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
Configure a repository for the lifecycle skills
create-issue, implement-issue, merge-pr and auto-dev are generic workflows wrapped around a
thin layer of repo-specific facts. profile-repo records those facts — and when it finds none,
its only outlet is a TODO: line. That is the right answer for a fact it cannot read and the wrong
one for a configuration the repo does not have, which is what four of its TODOs always are:
| What the profile reports | What it actually means | What silently degrades |
no priority: axis | the labels were never created | create-issue omits the axis |
no effort: axis | the labels were never created | auto-dev's "small first, then medium" ordering has nothing to sort on |
no area: axis | the labels were never created | auto-dev cannot give parallel workers non-overlapping areas |
no .github/ISSUE_TEMPLATE/ | the directory was never created | create-issue has no form to obey |
This skill is the missing verb. It does not describe a repo; it makes one.
The same manifest also carries the four surfaces a public repository is judged by before
anyone opens a file (#400): settings.description, settings.homepage, topics: and pages:.
The description and homepage ride the settings PATCH; topics are one PUT that replaces the
whole set, so apply writes the union of live and declared; the Pages source is one POST to
create the site or one PUT to update it — never a DELETE.
Do this
A bundled script does the deterministic work. Run it from anywhere in the target repo (it anchors
to the git root). <skill-dir> is this skill's base directory — given when the skill loads:
bash "<skill-dir>/scripts/repo-setup.sh" planplan writes nothing, so it is safe against a repository you only read. Show the operator the
delta it prints, then converge:
bash "<skill-dir>/scripts/repo-setup.sh" applyRead the exit code — it is the report, and each value means one thing:
| Exit | Meaning | What to do |
| 0 | converged | Say so. Nothing to do. |
| 1 | plan found drift | Show the delta, then run apply — except a !TODO line: apply never creates a placeholder, so fill it into the manifest instead (#198). |
| 2 | bad usage, or an unreadable/unparseable manifest | Fix the manifest; never partially apply. |
| 3 | a surface was refused | Relay which surface and why — the report names it. The rest did land. |
| 4 | not inside a git repository | Say so and stop. |
The desired state
templates/repo-setup.yml in the kit is the shipped default. A consumer repo overrides it by
committing its own .github/repo-setup.yml, which repo-setup.sh prefers — so a consumer's
taxonomy survives a kit upgrade. --manifest <path> overrides both.
Six rules govern what apply will and will not do, and they are worth relaying to the operator
before the first run against a repo that already has labels:
- Additive. A live label the manifest does not declare is reported
!EXTRAand kept. Only--prunedeletes anything. A repo already runningP1/P2must not have its taxonomy renamed out from under it. pruneKeepoutranks--prune. Labels a tool owns look undeclared because no human declares them, and deleting them breaks the automation that reads them. The manifest'spruneKeepglobs — seeded with release-please'sautorelease: *and Renovate'sdependencies— are reported!KEEPand never deleted. Add the repo's own bot labels there before running--pruneon it.- Never clobber. An issue form that already exists is reported
!SKIP. A tuned form outranks the kit's default. - A name in angle brackets is a placeholder — never created, and reported
!TODOand counted as drift on every run (planexits 1), so an unfilled axis stays visible instead of looking converged (#198). Thearea:axis ships this way because it names the consumer's code, not the kit's: fill it in beforeauto-devruns a fleet —applywill not resolve this one for you. - Topics are additive, like labels — and only when the manifest declares
topics:at all. A live topic the manifest does not name is reported!EXTRAand kept;--prunedrops it. A manifest silent on topics never reads or writes them,--pruneincluded. - The Pages site is created or updated, never disabled. A 404 on the read means no site
yet and plans a
+ADD; a 403 is a refusal by name, like every other surface. Disabling a site is not a converge, so this skill never issues thatDELETE.
Autonomy contract
Run hands-off. plan is a read — no task list or precondition ceremony. Before apply, show
the delta and get a yes when the repo is not the user's own or the run includes --prune; a
straightforward apply on their own repo needs no gate.
Never invent a taxonomy. If the manifest lacks an axis the repo needs, edit the manifest and
re-run — an axis created by hand with gh label create is exactly the non-deterministic setup this
skill exists to replace. When a surface is refused, report it and move on: a partially configured
repo with a named gap beats an abort that leaves the operator guessing which half landed.
Afterwards
profile-repo --refresh — this skill's row in the hand-off table, and the reason for it: the
four TODOs are facts now, so the profile records the real axes and the lifecycle skills start
applying them.
plan exiting 1 on drift makes it usable as a CI step, if the repo wants configuration drift to go
red the way code drift does.
Recap
Close with the shared recap shape — ../_shared/recap.md. It owns the four
blocks (verdict · What happened · Artifacts · Assumed · skipped · unverified, where
None is a required answer rather than an omission) and the Next line, which is read off this
skill's row in that file's hand-off table instead of being decided again here. Everything below is
only what setup-repo adds on top of them.
- Name each surface separately — labels, issue forms, repository settings, topics, the Pages
site — and whether it
converged, was already converged, or was refused (and by what: missing admin rights, an
unfilled
area:placeholder,ghunauthenticated). A partially configured repo with a named gap is a result; an unqualified "done" over a refused surface is not. - Say whether
--pruneran. It deletes labels, including the six undeclared GitHub defaults, so it is never a silent detail.
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.

