team-init
Skill2 starsChanged 33 days agoMITView on GitHub
Set up a code-kit project for a team of developers, change its team setup, or make it one developer's again. Asks who the tech lead is, who owns which lanes, when a claim goes stale and where intents go, shows the team section before writing it, checks GitHub is ready (gh signed in, the shared repository, the intents' discussion category), offers CODEOWNERS and the Project board, and connects a hosted team provider only when the config already names one. Use when the person says they work in a team, wants teammates to share the project, wants to change the tech lead or lane owners, wants to stop working as a team, or runs /code-kit:team-init. Not every developer works in a team: never set one up unasked.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- tikalk/adlc-team-skillstheir own version, first seen Oct 24, 2026
- woossi/agent-project-templatetheir own version, first seen Jun 28, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- tikalk/adlc-team-skills★ 145same name
- woossi/agent-project-template★ 1same 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.
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 15
Run check --json and read team (null when the project isn't a team's), me (who's signed in to gh here) and lanes.
- Distinctive: line 22
Ask only what the config can't answer, with the current value as the default on a change.
- Very specific: line 33
Run it without --write and show the person exactly what it prints:
- Very specific: line 55
Run check and team to confirm.
- Very specific: line 56
Commit .claude/code-kit.json (and CODEOWNERS, if written) on a branch, open a pull request, and merge it as any change to the kit's rules.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Set up the team
A team is several people in one repository, each with their own lead and agents (spec 16). code-kit then claims a story before anyone builds it, leases the files it changes, has intents raised before shared things change, and shows it all in /team. One developer needs none of this, and the project works the same without it.
The CLI is node "${CLAUDE_PLUGIN_ROOT}/bin/code-kit.mjs", run from the project root. Its team init shows the team section it would write; with --write it writes it, once the person agrees. Only the lead writes it: the hooks refuse it from a lane agent.
1. Where things stand
.claude/code-kit.jsonmust exist and be valid (check). If it doesn't, stop: the person runs/code-kit:initfirst.- Run
check --jsonand readteam(null when the project isn't a team's),me(who's signed in to gh here) andlanes. - The shared repository:
git remote get-url originmust be on GitHub, andgh auth statussigned in. Without either, say what's missing; code-kit's own team provider works through both.
Say which applies: new team, change the team, or back to one developer (the person asked to stop working as a team).
2. Ask, one question at a time
Ask only what the config can't answer, with the current value as the default on a change.
- Is this a team? On a new setup, unless the person already said so: "Do other developers work in this repository with their own Claude Code sessions?" No → stop, and say nothing changed.
- Tech lead: whose GitHub handle owns the plan, specs, contracts and principles, agrees or drops intents, and may release or reassign anyone's claim. Default:
me. - Lane owners: for each lane, whose sessions build its stories (GitHub handles), or nobody, in which case whoever claims a story first builds it.
git log --format='%an' -- <lane paths> | sort | uniq -cand CODEOWNERS suggest people, but ask for handles: names in commits aren't handles. - Stale after: how many working days without a push before a claim is stale (default 3).
- Intents category: the GitHub Discussions category intents go in (default
Intents). Skip it when the config'steam.providernames a hosted provider ({ "<name>": "<https address>" }) andteam.intentsisn't set: that provider keeps the intents. - Back to one developer: confirm that claims, owners and intents stop applying, and that teammates' sessions lose them too once it's merged.
3. Show, then write
Run it without --write and show the person exactly what it prints:
node "${CLAUDE_PLUGIN_ROOT}/bin/code-kit.mjs" team init --tech-lead <handle> --owner <lane>=<handle>,<handle> [--stale-days <n>] [--intents <category>]
node "${CLAUDE_PLUGIN_ROOT}/bin/code-kit.mjs" team init --offGive --owner <lane>= (nothing after =) to take a lane's owners out. Once they agree, run the same command with --write. It prints what GitHub still needs; tell the person each, in their words:
- gh isn't signed in: they run
! gh auth login. - Discussions are off, or there's no intents category: GitHub doesn't let a tool create a category. They turn Discussions on (Settings › Features) and add an "Open-ended discussion" category with the intents' name (Settings › Discussions), once.
4. Also offer
Each is optional; ask, and do only what they want:
- CODEOWNERS (TEAM-11):
team codeowners --writewrites.github/CODEOWNERSfrom the config, so GitHub asks the tech lead and lane owners to review. Then they require code owners' review in a ruleset on the protected branch. - A Project board (TEAM-12): with a GitHub Project's owner and number, add
"board": { "owner": "<user or organisation>", "number": <n> }toteamin the config; the mod then mirrors the plan onto it. - A hosted team provider, only when the config already names one: hosted providers are in preview, so never offer or suggest one. When
team.provideris{ "<name>": "<https address>" }(set by hand), connect this machine: runteam provider status; if it isn't signed in, runteam provider signinin the background, give the person the code and the GitHub address it prints, and wait (they enter the code in their browser; never ask for a password or token); thenteam provider connect, which checks the provider can see the repository, adds its MCP server to.mcp.jsonand links this session (no restart). Commit.mcp.jsonwith the config, on the base branch: the hub reads the team from there, and a session only links where the checked-out config names the hub. Then runteam provider statusand give the person its last line; for each ✗, say what it asks for.
5. Finish
- Run
checkandteamto confirm. - Commit
.claude/code-kit.json(and CODEOWNERS, if written) on a branch, open a pull request, and merge it as any change to the kit's rules. - Tell the person what each teammate does once: install code-kit,
gh auth login, pull the change. Their sessions then share the claims, and/teamshows the team.
Report in three lines: the tech lead and owners as written (or that the project is one developer's again), what GitHub still needs, and what each teammate does.
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.

