| name | team-context-init |
| description | Initialize and adapt a new team knowledge base created from the Team Context Template — a repository of Markdown notes about how a team works (identity, rules, responsibilities, projects, decisions). Use when the user wants to set up, initialize, bootstrap, or fill in their team context / AI context repo, or right after creating one from the template. Strong signals - a docs/ template guide is still present, or root notes like 'Team Conventions.md' still contain '...' placeholders. NOT for generating a CLAUDE.md or documenting a code project — that is the built-in init. Workflow - remove the template docs/ guide, audit unfilled sections (stub notes, empty folders, placeholders), then interview the user section by section and write real content using the repo's naming and [[wikilink]] conventions. |
Team Context Init
Turn a freshly-cloned copy of the Team Context Template into a real, populated team context repository. Work in two phases: strip the template scaffolding, then interrogate the user until every section is either filled in or deliberately deferred.
When To Use
- Immediately after a repository was created from the Team Context Template.
- When the user asks to initialize, bootstrap, set up, or fill in their team context / AI context repo.
- When
docs/ (the template's own guide) is still present, or root notes still contain ... placeholders.
Do not use this to edit an already-populated repo's individual notes — for that, follow the normal conventions in Structure.md directly.
Guardrails
- This skill mutates the repo it runs in. Confirm you are in the user's new repository, not the upstream template, before deleting anything.
- Never invent facts. Every value written must come from the user or an existing tracked file. If the user does not know an answer, leave the section empty (keep its
.gitkeep) rather than guessing.
- Keep the repo's conventions: Obsidian-style
[[...]] wikilinks between notes, date-prefixed names for dated notes, one topic per note, lightweight root notes. Read Structure.md if unsure of a path or naming rule.
- Make focused commits is optional and only on the user's request; do not push.
Workflow
1) Orient
- Read
Structure.md, AGENTS.md, and README.md to confirm the layout and conventions.
- Confirm with the user this is their new repo (not the template) before removing files.
2) Remove the template docs scaffolding
The docs/ folder is the template's own published user guide. A real team context repo does not need it.
- If
docs/ exists, remove it: git rm -r docs (fall back to rm -rf docs if the repo is not git-tracked).
- Scrub references to it so nothing dangles. Check and update as needed:
README.md — remove lines pointing to the published guide / docs/.
Structure.md — remove the docs/ row and any "see the docs site" pointers.
AGENTS.md — remove the "Docs Folder Exception" section.
- Re-grep to confirm no
docs/ references remain: grep -rIn 'docs/' --include='*.md' .
3) Audit what is unfilled
Run the audit script from the repo root:
bash .agents/skills/team-context-init/scripts/audit-template.sh
It reports, in order:
- whether
docs/ is still present,
- stub notes (files containing a bare
... line),
- empty sections (folders holding only
.gitkeep),
- template placeholders (
Team Context Template titles, example-server in .mcp.json, <replace-with-...> markers),
- the
LICENSE copyright line to confirm.
Use the output as the checklist for the interview. Do not stop until each reported item is addressed or explicitly deferred by the user.
4) Interview the user ("grill" them)
Go section by section, in the priority order below (it mirrors the AGENTS.md reading order). Ask focused questions, then write the answers into the correct files. Prefer the AskUserQuestion tool for choices, plain questions for free text. Ask in small batches; do not dump every question at once. After each section, write the note(s) before moving on.
Keep the rules-vs-conventions distinction throughout: a Rule is mandatory and enforced ("must / never"); a Convention is a recommended, stable practice ("should").
a. Team identity → Team/, README.md
- Team name, mission/mandate, members and roles, internal sub-groups, operating model.
- Replace the
Team Context Template title and template blurb in README.md with the real team's identity. Add identity notes under Team/ (e.g. Team/Overview.md, Team/Members.md).
b. Glossary → Terms and Abbreviations.md
- Acronyms, team/domain/organization-specific terms. Replace the
... stub with real entries (keep it lightweight).
c. Organization context → Company/
- Where the team sits, org structure, relevant business/operating context. Add notes only if they help explain the team's context; otherwise leave empty.
d. Stakeholders / customers → Customers/
- Customer groups, internal partner teams, audiences, service expectations. Add notes where useful.
e. Team rules → Rules/
- Mandatory rules about the people on the team and how they work together — the "must" and "never": things to always respect and things to never do (security, approval, change-control, documentation, conduct). One note per domain when they differ. This is human conduct, distinct from
AI/Rules/ and the per-domain Project/Repository rules below.
f. Team conventions → Team Conventions.md
- Stable, non-mandatory working conventions (naming, documentation, linking, collaboration habits). Replace the
... stub; keep it short. Move any full workflow into Processes/; keep communication detail in Communication/ and link to it.
g. Definition of Done → Definition of Done.md
- The quality bar before work is complete (validation, review, documentation, handoff expectations). Replace the
... stub; keep it outcome-focused.
h. Communication → Communication/
- How the team communicates, for people and for assistants drafting on its behalf. Replace the
... stubs:
Communication Rules.md (mandatory "must / never"), Communication Conventions.md (recommended "should")
Writing Style.md (grammar, formatting, do/don't), Tone of Voice.md (voice per audience — include good/bad examples), Channels.md (which channel for what, info-sharing & response norms, escalation)
- Keep reusable message templates in
Resources/Templates/. Cross-link Customers/ (who) with Communication/ (how).
i. Responsibilities → Responsibilities/
- Durable ownership areas. Create one folder per real area only when the user can name it. Cross-link to related projects/repos/plans.
j. Project conventions, rules + first projects → Projects/Project Conventions.md, Projects/Project Rules.md, Projects/<name>/<name>.md
- Replace the
... stubs: Project Conventions.md (how project notes are organized/linked — "should") and Project Rules.md (mandatory rules for project work — "must"). Create a folder + main note per real, current initiative. Link projects to responsibilities.
k. Repository conventions, rules + tracked repos → Repositories/Repository Conventions.md, Repositories/Repository Rules.md, Repositories/<forge>/<group>/Repository - <name>.md
- Replace the
... stubs: Repository Conventions.md ("should") and Repository Rules.md (mandatory rules for repository work — "must"). Add repo notes grouped by forge then org/group, only if the team tracks repos here. Link repos to responsibilities.
l. Offerings → Offerings/
- What the team provides to others — products and services — as a single typed catalog (one note per offering; record
Type product|service and Status). Capture summary, audience (→ Customers/), owner (→ Responsibilities/), how to access it, where to report issues, and links to operation guides (→ Processes//Routines/). Create notes only for real offerings; otherwise leave empty.
m. Processes → Processes/
- Repeatable workflows/procedures the team runs. One note per process.
n. Routines → Routines/
- Recurring, cadence-based practices (standups, retros, planning, reviews, 1:1s, on-call handoffs). One note per routine (
Routine - <name>.md) with cadence as a field. Distinct from Processes/ (on-demand workflows) and Meetings/ (dated instances). Create notes only for routines the team actually runs; otherwise leave empty.
o. AI workspace → AI/
AI/Rules/ (AI Rule - <topic>.md): how automated assistants should behave in this repo.
AI/Prompts/ (AI Prompt - <topic>.md): a shared, human-facing prompt library for tools where skills can't be used directly.
AI/Personas/ (AI Persona - <name>.md): optional agent/role definitions.
AI/Plans/ (YYYY-MM-DD - AI Plan - <title>.md): plans for AI initiatives and for work on this repository.
AI/Memory/ and AI/Conversations/ are time-bound (YYYY/MM/...) and normally accumulate over time — leave them empty at init unless the user already has durable context or transcripts to seed.
- Never commit secrets, tokens, or personal data; redact transcripts.
p. Tooling & MCP → .mcp.json, Resources/
- Replace the
example-server placeholder in .mcp.json with real MCP servers, or remove the file if unused. Add tool notes under Resources/Tools/, scripts under Resources/Scripts/, templates under Resources/Templates/.
q. License → LICENSE
- Confirm the copyright holder line names the right owner.
Archives/, AI/Conversations/, and AI/Memory/ stay empty at init — they fill over time (archiving items, accumulating transcripts/memory). Do not interview for them; leave their .gitkeep in place.
5) Cross-link and finalize
- Apply the cross-linking rules from
Structure.md: projects/repositories/plans link to responsibilities, and responsibilities link back.
- Re-run the audit script. Every remaining stub/empty item must be a section the user chose to defer (still
.gitkeep), not an oversight.
- Summarize for the user: what was filled in, what was intentionally left empty, and the suggested next notes (first
Plans/, Decisions/, Meetings/, History/ entries, using the dated naming patterns in Structure.md).
6) Tear down the init tooling
This skill is single-use bootstrap scaffolding. A populated team repo should not keep an "initialize from the template" skill around — it is dead weight and can misfire via implicit invocation. Once init is otherwise complete, offer to remove the apparatus and, on the user's confirmation, delete:
.agents/skills/team-context-init/ — this skill and its scripts/
.claude/commands/team-context-init.md — the Claude Code command
.github/prompts/team-context-init.prompt.md — the Copilot prompt
- any pointer to this skill/command in
AGENTS.md or other instruction files
Use git rm -r where files are tracked. Removing the skill folder mid-run is safe — these instructions are already loaded in context, so finish the teardown after deleting them.
If the user wants to keep the tooling (e.g. a template fork that will spawn more sub-team repos), skip this step and say so in the summary.
Validation Checklist
Init is complete when:
docs/ is removed and no Markdown file references it.
- No stub note still contains a bare
... line (unless the user deferred it).
README.md no longer says "Team Context Template" and describes the real team.
.mcp.json has real servers or was removed; no <replace-with-...> placeholders remain.
LICENSE names the correct copyright holder.
- Every populated note uses correct paths, naming, and
[[...]] wikilinks per Structure.md.
- The audit script's only remaining items are sections the user explicitly chose to leave empty.
- The init tooling (this skill, the Claude command, the Copilot prompt, and any instruction-file pointer to them) has been removed — unless the user explicitly chose to keep it.