team-init
Skill2 starsChanged 13 days agoMITView on GitHub
Use when setting up agent-team in a product repo for the first time — creates .agent-team/, drafts project.md from the codebase, and writes the permission settings for hands-off runs. Also use (`team-init upgrade`) to bring a repo set up by an older agent-team version up to date.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- warrendeanlangeveldt/code-kittheir own version, first seen Nov 15, 2026
- tikalk/adlc-team-skillstheir own version, first seen Oct 24, 2026
- woossi/agent-project-templatetheir own version, first seen Jun 28, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- tikalk/adlc-team-skills★ 147same name
- warrendeanlangeveldt/code-kit★ 2same 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.
In this repository14 other files it gives its agents.
- AGENTS.mdAGENTS.md
- developerSkill
- engineering-guidelinesSkill
- marketingSkill
- pmSkill
- qaSkill
- reviewerSkill
- team-auditSkill
- team-buildSkill
- team-ideateSkill
- team-marketSkill
- team-statusSkill
- team-wrapSkill
- tech-leadSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 2 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
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
- could be automatic: a setting could enforce it
- Distinctive: line 10
Run once per product repo.
- Very specific: line 32
If it printed nothing — already up to date, say so and stop.
- Very specific: line 34
Commit only the paths it listed: agent-team docs-commit -m "chore: upgrade agent-team setup" --title "agent-team: setup" <paths> (see step …
- Very specific: line 39
Never overwrite an existing .claude/settings.json or .codex/config.toml.
- Very specific: line 40
Never add broad permissions (Bash(*), full-auto/danger modes, --approval-mode yolo).
- Distinctive: line 41
Never force-push or bypass branch protection.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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
team-init · team-init upgrade
Run once per product repo. Afterwards every role can work on this project. The person running it is the owner unless they say otherwise.
Steps
- Check the repo. It must be a git repo with a GitHub remote (
gh repo viewworks).D=$(agent-team default-branch)(ifagent-teamisn't on PATH, usepython3 <team-build skill folder>/scripts/agent_team.py; suggest runninginstall.sh). If anything is missing, stop and say what. - Create
.agent-team/with an emptyfeatures/folder, and add.agent-team/worktrees/to the repo's.gitignore(team-build keeps its worktrees there, inside the project, so tool permissions and sandboxes cover them). If.agent-team/project.mdalready exists (here, or onagent-team/meta—git show origin/agent-team/meta:.agent-team/project.md), don't redo it: run the Upgrade steps below instead, and mention thatteam-initfrom scratch is still possible if the owner asks for it explicitly. - Draft
project.mdfromreferences/project-template.md. Fill it by reading only what's cheap and telling: README, package manifests (pubspec.yaml,package.json,pyproject.toml, …), CI config, test config, top-level folder names. Don't read the whole codebase. Keep it ≤ 60 lines. If top-level folders are their own git repos and gitignored here (a workspace), add## Repos(one### <path>per repo:- Role:, optional- Branch:, its- Install/Build/Test:from that repo's manifests/CI) and## Cross-repo rules(- Order: …earliest-shipping first, thenunknown — owner to fill). Budget: ≤ 60 lines plus ≤ 8 per repo. Never write anything into the product repos.## Owner: the owner's name andgh api user -q .login. Writeunknown — owner to fillrather than guessing positioning, voice or channels. Fill## Intent docswith the paths of any ADRs (docs/adr*/,docs/decisions/), PRDs or specs,PRODUCT.md,CONTEXT.mdandDESIGN.mdyou find by listing (don't read them);noneif there are none. If the project uses code generation the template's defaults don't cover, list its output globs under## Diff excludes. - Write the permission settings so the build workflow doesn't stop for prompts. First,
git status --porcelain -- .gitignore .claude/settings.json .codex/config.toml: if any of them has uncommitted changes of the owner's, stop and ask them to commit or stash those first — the setup commit takes whole files, and must not sweep in their edits.- Claude Code: merge
references/claude-settings.jsoninto.claude/settings.json. Keep every existing key; add only missing allow entries. Replace{{TEST_COMMANDS}}with oneBash(<cmd>:*)entry per install/build/test command from## Build & testand, in a workspace, from each### <path>under## Repos(agent-team upgrade/merged_allowdoes this). - Codex: merge
references/codex-project.tomlinto the project's.codex/config.toml(create it if needed; keep existing keys). - Gemini CLI: nothing to write; see the team-build skill's
references/dispatch-gemini.mdfor its approval settings. Anything not on the list still prompts — that's intended.
- Claude Code: merge
- Commit and push only these paths. If the checkout isn't on
$D, stop and tell the owner.agent-team docs-commit -m "chore: init agent-team" --title "agent-team: setup" .agent-team .gitignore .claude/settings.json .codex/config.toml.agent-team docs-commitcommits from a temporary worktree — never on your local default branch — and pushes to$D, or, if$Dis protected, anagent-team/metaPR is still open, orproject.mdsetsdocs-push: pr-only, toagent-team/meta, opening or reusing its PR. Anything else the owner has staged or changed stays untouched. - If it went to
agent-team/meta, tell the owner to merge that PR and runagent-team pull(orgit pull) before runningteam-build(feature branches start from$D, and the permission settings apply only once they're in the checkout).team-ideateworks before the merge, but may ask for permissions. - Tell the owner to read
project.mdonce and fix anything wrong — especially## Positioning & voiceand## Channels. Next step: runteam-ideate.
Upgrade (repos set up by an older version)
Adds only what's missing; never rewrites what the owner wrote.
- Same checks as step 1, and the checkout must be on
$D(else stop and tell the owner).agent-team pull(instead ofgit pull: it first puts back any doc copydocs-pullwrote that nobody edited, then pulls--ff-onlyand brings in docs still waiting on anagent-team/metaPR). If it fails, stop and show the owner its message. agent-team upgrade. It adds missingproject.mdsections (filling## Ownerfrom git/gh), merges the current permission allow-list (with this project's install/build/test commands) into.claude/settings.json, creates.codex/config.tomlif missing, and adds.agent-team/worktrees/to.gitignore. It prints what changed.- If it printed
nothing — already up to date, say so and stop. - Fill any new section you can from cheap reads (as in step 3 above; fill the drafted
### <path>blocks the same way); leave voice, positioning and channels asunknown — owner to fill. If## Intent docswas added, list the repo for ADRs (docs/adr*/,docs/decisions/), PRDs or specs,PRODUCT.md,CONTEXT.mdandDESIGN.mdand write their paths, ornoneif there really are none — older repos are where these usually exist. - Commit only the paths it listed:
agent-team docs-commit -m "chore: upgrade agent-team setup" --title "agent-team: setup" <paths>(see step 5 above). - Tell the owner what was added, and which sections still say
unknown — owner to fill.
Never
- Never overwrite an existing
.claude/settings.jsonor.codex/config.toml; merge into them. - Never add broad permissions (
Bash(*), full-auto/danger modes,--approval-mode yolo). - Never force-push or bypass branch protection.
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.

