ワンクリックで
team
Manage the installed agent team — build (apply proposal), review (audit gaps), or run (execute a task through the pipeline).
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Manage the installed agent team — build (apply proposal), review (audit gaps), or run (execute a task through the pipeline).
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Audit code quality against KB-defined properties, invariants, and naming conventions.
Quality and compliance audit — combines code-quality and spec-compliance into one actionable report.
Periodic friction analysis — proposes new skills, deterministic tools, and adaptations.
Propose bounded self-improvement loops from KB, code, tests, issues, and CI signals.
Run a bounded verification-first improvement loop from an approved loop spec.
Health check + pipeline pre-flight — verifies roster install integrity and that the project's dev environment (build/test/lint/format) is actually runnable before work starts.
| name | team |
| description | Manage the installed agent team — build (apply proposal), review (audit gaps), or run (execute a task through the pipeline). |
| when_to_use | Use to manage the installed agent team — build/review/run. Trigger: '/team', 'audit my team', 'apply the team proposal', 'run the team on X'. |
| version | 1.0.1 |
| domain | workflow |
| phase | null |
| preamble | true |
| allowed_tools | ["Read","Bash","AskUserQuestion"] |
| human_gate | before |
| pipeline_role | {"triggered_by":"human","receives":"$ARGUMENTS — mode (build | review | run <task>)","produces":"harness changes (build), audit report (review), or pipeline execution (run)"} |
This preamble is injected into every roster skill that declares preamble: true.
It encodes the non-negotiable principles that govern all skill runs.
Do not defer tests, documentation, or robustness in the name of speed. A short-term shortcut is rarely faster than a complete solution. "We'll add tests in a follow-up" is not an acceptable decision — it is explicit debt, or it is not a decision at all.
Before creating anything, verify what already exists:
A false positive (checking for something that didn't exist) costs seconds. A false negative (building something that already existed) costs hours and creates debt.
Do not validate a direction if you have a grounded objection. Do not say "good idea" before verifying it is a good idea. If you spot a problem, say so — clearly, factually, without softening. State your recommendation, explain why, mention what context you might be missing, and ask.
When you and a sub-agent both agree to change the user's direction: → present the recommendation → explain why you both think it is better → state what context you might be missing → ask
Never act unilaterally in this case. The decision belongs to the user.
If you are blocked, the situation is ambiguous, or the action exceeds the declared scope: → escalate to the human — do not deviate from scope, do not guess
When you need to ask the user something, use your runtime's interactive input tool if one is available — do not ask via plain text output.
Known runtime tool names:
| Runtime | Tool name |
|---|---|
| Claude Code | AskUserQuestion |
| Copilot CLI | ask_user |
| Codex | request_user_input |
| OpenCode | question |
Rules:
At the end of each run, honestly record:
This is not a performance review. It is cross-run memory.
Format: see skills-meta/friction.jsonl.
If your skill's phase: frontmatter field is non-null (i.e. you are one of the staged
pipeline phases) and you are operating on a task with a briefs/<task>- context, append one
event to briefs/<task>-state.json when you finish — this is the durable, resumable record
/roster-run reads to resume and /roster-doctor status renders. Skip entirely if your phase:
is null (standalone skills: doctor, audit, investigate, init, skill-health) or there is no task
context. Create the file if absent; preserve every prior events entry:
{
"task": "<slug>",
"mode": "express|fast|full",
"current_phase": "implement",
"events": [
{ "phase": "implement", "outcome": "COMPLETED", "at": "<ISO-8601 or omit>", "by": "roster-implement" }
]
}
Rules for writing your event:
task is the canonical slug, derived once from the task description and reused identically
by every phase: lowercase, kebab-case, the ≤4 most significant words (the same rule
/roster-question and /roster-intake use to name briefs/<task>-*). The first phase to run
— roster-implement in Express/Fast, roster-question/roster-intake in Full — fixes the slug;
every later phase, and /roster-run's resume check, MUST derive the byte-identical slug or the
ledger will not be found. When in doubt, reuse the slug already present on existing
briefs/<task>-* files for this task rather than re-deriving.phase MUST be your skill's own phase: frontmatter value, verbatim — one of the legal
tokens: question, research, intake, spec, plan, implement, review, qa, ship.
Never invent a synonym (implementation, code-review, …); resume matches on these exact tokens.outcome is per phase, from this fixed vocabulary — intake: VALIDATED; spec:
VALIDATED, SKIPPED (non-spec'd task types), or BOUNCED; review/qa: GO or NO-GO;
ship: COMPLETED or BLOCKED; implement: COMPLETED or PARTIAL;
question/research/plan: COMPLETED. Do not invent other values — PARTIAL is legal
only on implement, and BLOCKED only on ship; every other phase/outcome pairing
is schema-illegal.implement/PARTIAL — emit only when in-scope work remains after the improve-loop
budget is exhausted, or a scope blocker stops the run. Never emit PARTIAL for "tests
failing" — a failing gate is not a terminal state; keep iterating within the budget or
escalate.ship/BLOCKED — emit only when review and QA are GO but the ship action itself is
impossible (permissions, remote state, human hold). A NO-GO gate is not BLOCKED.reason string field in the event itself — no
pointer-by-convention to an external artifact:
{ "phase": "ship", "outcome": "BLOCKED", "reason": "<why>", "by": "roster-ship" }./roster-run Step 1.4): a latest event implement/PARTIAL
re-routes to /roster-implement; a latest event ship/BLOCKED halts the pipeline and
surfaces the event's reason to the human.implement/review pair; that
repetition is the history, not a bug. Set current_phase to your phase (the latest completed).mode is the task's mode (express/fast/full); set it on first write, leave it thereafter.at if your runtime can produce one; otherwise omit the field. by is your
skill name (or human-gate for a gate decision).TASK environment variable — export it when invoking
hooks manually.Manage the installed agent team. Detect the mode from $ARGUMENTS:
team build — apply an approved team proposal to the harnessteam review — audit the installed team for gaps, staleness, and redundancyteam run <task> — start the full pipeline on a task via tech-leadIf $ARGUMENTS is empty or not one of the above, ask once:
"Which mode?
build(apply proposal),review(audit team), orrun <task>(execute pipeline)"
$ARGUMENTS (see routing table above).Apply an approved team proposal to the project harness. This is the install step that follows a validated /recruit proposal.
docs/team-proposal-<YYYY-MM-DD>.md.
/recruit first."Locate the proposal — find the most recent docs/team-proposal-*.md. If multiple exist, list and ask the user to confirm which to apply.
Spawn harness-builder — output a spawn request:
SPAWN REQUEST
Mode: B — human-mediated
Agent: harness-builder
Role: apply approved team proposal to shared harness
--- PASTE THIS AS THE AGENT'S INITIAL PROMPT ---
/harness build
An approved team proposal exists at <path-to-proposal>. Apply it:
- install agents listed in the proposal into .harness/agents/
- install rules listed in the proposal into .harness/rules/
- install skills listed in the proposal into .harness/skills/
- update .harness/harness.json manifest
- run sync-harness.sh to project runtime entrypoints (Claude Code, Codex)
- run coherence checks after install
--- END ---
npm test if in the roster repo.Audit the currently installed team. Equivalent to recruiter Mode 2 (Team Audit & Upgrade) plus a harness coherence check.
An installed team must exist (.harness/harness.json or .claude/agents/).
/recruit to assemble one."Read current harness state — check .harness/harness.json. Note installed agents, versions, and last-modified dates.
Spawn recruiter Mode 2 — output a spawn request:
SPAWN REQUEST
Mode: B — human-mediated
Agent: recruiter
Role: Team Audit & Upgrade (Mode 2)
--- PASTE THIS AS THE AGENT'S INITIAL PROMPT ---
/recruit
Existing harness found at .harness/. Run Mode 2: Team Audit & Upgrade.
Audit the current team against the roster index and current project state. Report:
- agents that are stale (> 365 days or newer version available)
- role gaps not covered by the current team
- redundant agents (two agents for the same role)
- pipeline_role coherence (missing input/output contracts)
- any agent missing from the installed team that the project now needs
Propose an upgrade set and run the validation quiz before making any changes.
--- END ---
Harness coherence check — separately run npm run check:agents in the roster repo if available.
Report — summarize stale agents, gaps, and recommended next step (team build to apply, or no action needed).
Start the agent pipeline on a task via tech-lead.
.harness/harness.json for an installed lead agent.
/recruit first."tech-lead is in the installed team. If missing, stop and report.Intake check — if the task is fuzzy or high-stakes, run the diagnostic interview (per rules/governance/diagnostic-interview.md) before proceeding.
Spawn tech-lead — output a ready-to-use spawn request:
SPAWN REQUEST
Mode: B — human-mediated sequential
Agent: tech-lead
Role: research, plan, and coordinate delivery of the task
--- PASTE THIS AS THE AGENT'S INITIAL PROMPT ---
Task: <task from $ARGUMENTS>
Run the research phase, produce a brief, validate it with the user, then spawn the planner.
--- END ---
State the pipeline — tell the user:
Stay available — remain available for merge decisions, escalations, and context routing at each pipeline stage.
| Condition | Action |
|---|---|
| No approved team proposal exists (build mode) | Stop — run /recruit first |
| No team installed (review or run mode) | Stop — run /recruit to assemble one |
tech-lead missing from installed team (run mode) | Stop — flag to human, re-run /recruit to add it |
/team review to verify the installed team, then start tasks with /team run <task>/team build to apply proposed upgrades, or no action if team is healthy