src/claude/skills/workstream-create/SKILL.md
Create a new workstream with scaffolded artifacts, agent registrations, and optional worktree
npx skillsauth add the-agency-ai/the-agency src/claude/skills/workstream-createInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Create a new workstream with directory structure, shared project sandbox, and per-agent registrations. This is a captain skill — guides the principal through substance after scaffolding.
<name> — workstream name in kebab-case. Followed by:
--agent name[,class] — agent name and optional class (default: tech-lead). Repeatable — one flag per agent.--description <text> — one-line description of the workstream--worktree — also create a git worktree for this workstream--scaffold-only — skip the Phase B guided discussion instructionIf no --agent flags provided, create a single agent with the workstream name and tech-lead class.
/workstream-create mdpal --agent mdpal-cli,tech-lead --agent mdpal-app,tech-lead
/workstream-create ops --agent ops-lead
/workstream-create folio --worktree
/workstream-create ci-tools --scaffold-only
Value stream (repo) → workstreams (standalone deployable units) → 1+ agents as workers
One workstream = one PVR, one A&D, one Plan, one shared project sandbox, 1+ agents.
--agent name[,class] flags. Split on comma: first part is agent name, second (optional) is class (default: tech-lead).--description, --worktree, --scaffold-only if present.$ARGUMENTS is empty, ask for a workstream name.^[a-z0-9][a-z0-9_-]*$, max 32 chars.agency/agents/<class>/agent.md exists.agency/workstreams/<name>/ doesn't already exist.Find the principal from agency/config/agency.yaml — match $USER key in principals: section, use its name field.
agency/workstreams/<name>/
qgr/ — quality gate receipts
rgr/ — release gate receipts
drafts/ — WIP before ratification (per {P}-{A} subdir)
research/ — MARFI outputs, investigations
transcripts/ — 1B1 records, summaries, verbatim
history/ — superseded current versions
history/flotsam/ — uncategorized archive
KNOWLEDGE.md — patterns, conventions, key decisions
KNOWLEDGE.md scaffold:
# <name> — Workstream Knowledge
## Patterns and Conventions
<!-- Accumulate patterns discovered during development -->
## Key Decisions
<!-- Record architectural and design decisions with rationale -->
usr/<principal>/<agent>/
tools/ — agent-written scripts (persisted, reusable)
tmp/ — scratch space (gitignored)
history/ — personal archive
history/flotsam/ — uncategorized personal items
Create tmp/.gitignore with * and !.gitignore.
Note: Shared content (seeds, transcripts, research, receipts) lives in agency/workstreams/<name>/, NOT here. Per-agent handoffs are flat files: {agent}-handoff.md in the agent directory. Written by agent-create in Step 5.
For each --agent name,class flag, call the agent-create tool:
./agency/tools/agent-create <agent-name> <workstream> --type=<class> --description="<description>"
agent-create is the single write path for .claude/agents/ registrations, workspace scaffolding (tools/, tmp/), and bootstrap handoff templates. Do NOT write registrations inline — always delegate to agent-create.
If --worktree was passed:
./agency/tools/worktree-create <name>
Output the scaffold summary:
Workstream created: <name>
agency/workstreams/<name>/ — workstream directory
usr/<principal>/<name>/ — shared project sandbox
.claude/agents/<agent-1>.md — agent registration (<class>)
.claude/agents/<agent-2>.md — agent registration (<class>)
If --scaffold-only was NOT passed, append the Phase B instruction:
Bootstrap handoffs contain TODO placeholders. Run /discuss with these items:
1. What is this workstream?
2. What does <agent-1> own?
3. What does <agent-2> own?
4. What seeds do we have?
5. What's the first action for each agent?
Then update each handoff with the resolved content:
- usr/<principal>/<name>/<agent-1>-handoff.md
- usr/<principal>/<name>/<agent-2>-handoff.md
If --scaffold-only was passed, append:
Next steps:
1. Add seed materials to agency/workstreams/<name>/seeds/
2. Fill in bootstrap handoffs at usr/<principal>/<name>/<agent>-handoff.md
3. Launch an agent: claude --agent <agent-name>
business
Sync worktree with master — merge, copy settings, run sandbox-sync, report changes
tools
List all git worktrees with status info (branch, clean/dirty, deps)
tools
Remove a git worktree and optionally delete its branch
development
Create a new git worktree with dedicated branch and bootstrapped dev environment