repo-init
Skill1 starsChanged 6 months agoMITView on GitHub
Apply a canonical issue-label set to a GitHub repo (six labels — bug, feature, refactor, chore, afk, hitl — with consistent colours and descriptions) and strip GitHub's OSS-community defaults. Use after creating a new repo, or to bring an existing repo's labels in line. Auto-detects the current repo, or accepts `owner/name` as an argument. Idempotent — safe to re-run.
8 other projects use a version of this.
Adopted by
Most recently taken up by
- zalogarcia/zalo-claude-code-setuptheir own version, first seen Nov 8, 2026
- ekajaya740/skillstheir own version, first seen Nov 1, 2026
- SHYXIN/skillstheir own version, first seen Nov 1, 2026
- qbicus/skillstheir own version, first seen Oct 25, 2026
- aberson/skill-meshtheir own version, first seen Oct 24, 2026
- rohanhong/tmpl.general-repotheir own version, first seen Oct 11, 2026
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 8
- dgilford/ai-science-toolkit★ 82same name
- SHYXIN/skills★ 6same name
- rohanhong/tmpl.general-repo★ 3same name
- aberson/skill-mesh★ 2same name
- zalogarcia/zalo-claude-code-setup★ 2same name
- lldwb/lldwb-claude-skills★ 1same name
- qbicus/skills★ 1same name
- ekajaya740/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 repository13 other files it gives its agents.
- add-recipeSkill
- captureSkill
- codex-reviewSkill
- footySkill
- grill-meSkill
- improve-codebase-architectureSkill
- promote-agents-mdSkill
- synthesiseSkill
- tddSkill
- tracerSkill
- trailsSkill
- typesafe-aiSkill
- video-noteSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 0 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
0
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 57
Resolve target: If an argument was passed (owner/name), use it.
- Very specific: line 60
Sibling check: Run gh repo view <owner>/.github >/dev/null 2>&1 — if absent, flag once that the owner has no .github repo and issue …
“Common” is measured: kept by at least 6 in 10 of the 7 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-init
Apply a canonical issue-label set to a GitHub repo. This file is the source of truth — edit it to evolve the scheme, then re-run on affected repos to bring them in line.
Scope
- Yes: issue labels (create/update the six canonical ones, remove the seven OSS defaults).
- No: issue templates. Those flow automatically from the owner's
.githubrepo and need no per-repo action. - No: repo creation itself. Run
gh repo createfirst.
Usage
Inside a repo:
/repo-initTarget auto-detected via gh repo view.
Targeting another repo:
/repo-init owner/nameCanonical labels
| Name | Colour | Description |
bug | d73a4a | Something isn't working |
feature | a2eeef | A capability someone gains |
refactor | bfd4f2 | Internal quality — same behaviour, better shape |
chore | ededed | Mechanical maintenance — deps, config, infra |
afk | 0e8a16 | Agent can ship this end-to-end without human input |
hitl | fbca04 | Needs human judgement — architecture, design, or policy |
Type vs workflow. bug / feature / refactor / chore are mutually-exclusive types — one per issue. afk / hitl are orthogonal, tagging who can pick up the issue.
OSS defaults to remove
GitHub ships every new repo with these. Mostly noise for small-team / agent-driven workflows:
documentationduplicategood first issuehelp wantedinvalidquestionwontfix
Removing a label strips it from any existing issues that have it. For a brand-new repo there won't be any.
Process
- Resolve target. If an argument was passed (
owner/name), use it. Otherwise:gh repo view --json nameWithOwner --jq .nameWithOwnerfrom the current directory. - Apply canonical labels. For each row in the table:
gh label create <name> -R <repo> --color <hex> --description "<desc>" --force. The--forceflag updates colour/description if the label already exists. - Strip OSS defaults. For each:
gh label delete <name> -R <repo> --yes. Ignore not-found errors (label may already be absent). - Sibling check. Run
gh repo view <owner>/.github >/dev/null 2>&1— if absent, flag once that the owner has no.githubrepo and issue templates won't auto-populate. Don't create it; that's a separate decision. - Summary. Print one line: target repo, count of labels set, count of labels removed.
Reference implementation
TARGET="${1:-$(gh repo view --json nameWithOwner --jq .nameWithOwner)}"
OWNER="${TARGET%%/*}"
CANONICAL=(
"bug|d73a4a|Something isn't working"
"feature|a2eeef|A capability someone gains"
"refactor|bfd4f2|Internal quality — same behaviour, better shape"
"chore|ededed|Mechanical maintenance — deps, config, infra"
"afk|0e8a16|Agent can ship this end-to-end without human input"
"hitl|fbca04|Needs human judgement — architecture, design, or policy"
)
DEFAULTS=(documentation duplicate "good first issue" "help wanted" invalid question wontfix)
set_count=0; rm_count=0
for line in "${CANONICAL[@]}"; do
IFS='|' read -r name color desc <<< "$line"
gh label create "$name" -R "$TARGET" --color "$color" --description "$desc" --force >/dev/null && ((set_count++))
done
for label in "${DEFAULTS[@]}"; do
gh label delete "$label" -R "$TARGET" --yes >/dev/null 2>&1 && ((rm_count++))
done
gh repo view "$OWNER/.github" >/dev/null 2>&1 || \
echo "Note: $OWNER has no .github repo — issue templates won't auto-populate."
echo "$TARGET: $set_count labels set, $rm_count removed."Notes
- Personal GitHub accounts have no org-level default-labels feature, so this skill is the only way to bootstrap them.
- Organisations do have native default labels (Settings → Repository defaults → Labels), but keeping the spec in this file avoids splitting it between an org-settings UI and a tracked file.
- The label scheme pairs with the AFK / HITL tag in
tracer's vertical-slice template — applying the label promotes that body-level judgement into a board-filterable signal.
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.

