Skip to content
Back to skills

Team

ASecurity

Invoke before spawning several agents, or when asked to use CTK, a team or parallel work (多個 Agent, 平行, ctk 流程). Keeps the worker cap.

  • 2 stars
  • 0 votes
  • 0 copies
  • 8 views
  • Added October 25, 2026
developmentgobash

Works with

  • claude code
  • cli

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned November 23, 2026

npx -y skills add tc3oliver/claude-team-kit --skill team --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Team?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Team
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tc3oliver-team/badge)](https://www.skillsdirectory.com/skills/tc3oliver-team)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: team
description: "Invoke before spawning several agents, or when asked to use CTK, a team or parallel work (多個 Agent, 平行, ctk 流程). Keeps the worker cap."
argument-hint: "<goal>"
---

Goal: $ARGUMENTS. You are the lead.

## 0. Intent gate
No clear ask for a team, multiple agents or parallel work (running `/ctk:team`, or asking to use CTK, counts as one)? Reply with one sentence suggesting a team, or offering to do it yourself, and WAIT. Spawn nothing.
When team intent names one or more `BL-<16-hex>` tasks (or the ready queue), read `references/backlog.md` before slicing. Backlog is optional for all ordinary teams. Recipes by kind of work (review, debug, feature, research, migration): `references/presets.md`.
Asked, but the resolved goal has no 2+ independently verifiable slices? Say so in one line and do the work directly (still honour any explicit persistent task requirements, and only `start` a ready BL task when direct work actually begins).

## 1. Preflight
Call `ctk_team_status` if it exists, then branch (never imply a cap you have not confirmed):
- Tool absent: the CTK mod is not active. Say the cap, band and stats are OFF and teams run unlimited; offer to go on.
- `guard.state` is `error` or `unavailable` (`guard.why` says why): the cap is not confirmed. Say so in one
  line and ask before starting anyone; if they go on, say workers run without a confirmed limit.
- `teamsEnabled` is false: spawn nothing. Ask before adding `{"env":{"CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS":"1"}}` to settings.json; restart Claude Code. `/ctk-doctor` shows readiness.
- `teamsEnabled` null: say you cannot tell, then proceed. `guard.state` `available` or `active`: proceed.
- For a new, independent Goal, do not inherit teammates. If `ctk_goal` exists, call `start` before tasks/spawns; obey refusal and read `references/goal-lifecycle.md`. Otherwise follow `references/protocol.md`; never reuse unowned workers.

## 2. Plan
- Cut vertical slices: each delivers a working, independently verifiable behavior, and states spec/context
  pointers (never pasted contents), file scope and verify command. Ready frontier = pending slices with no open
  blockers.
- Read `references/parallel-fit.md` first: advice only, an explicit team request still gets a team.
- If `TaskCreate` is in your tool list, you MUST create the tasks before spawning anyone, even when every
  slice is independent: one per slice plus a final verification task blocked by all of them, with `addBlockedBy`
  for real dependencies only. Workers claim a task with `TaskUpdate` (owner + `in_progress`) and complete it;
  you close the final task only after running its verify command.
- No `TaskCreate` (default on Claude 5.x): say so in one line, keep a numbered plan with "blocked by" notes,
  and coordinate with `SendMessage`. `CLAUDE_CODE_ENABLE_TODO_TOOLS=1` gives the shared task list.

## 3. Spawn
- High-risk slice (as defined in `../review/references/risk.md`): show the user its plan before spawning. It stays pending and unowned until approved while other ready slices proceed; if declined it stays unstarted and you report it.
- Idle teammate first (`ctk_team_status`), but only from this Goal: give it the next ready task with `SendMessage`. Spawn only when none is eligible and live teammates are below the cap (`maxWorkers`, default 5).
- `Agent` with a `name` on every worker (named = a teammate the cap counts and Mission Control lists; unnamed = a plain subagent neither does); `subagent_type`:
  `ctk:implementer` to build, `ctk:explorer` to scout. Never set `isolation` on a worker: it then starts as an
  ordinary subagent, outside the team and the cap.
- One file scope and one owner per task (unless the owner failed or exited); slices that could touch the same
  file do not run at once: order them with `addBlockedBy` or narrow scopes. Hand over: task id, spec path,
  file list, commit sha, a verify command that covers only that slice; nothing pasted. A worker not of a `ctk:` type is told to send its final reply once, without a `SendMessage` copy.

## 4. Confirm every spawn
A spawn exists only if the `Agent` result carries a `teammate_id` or agent id and `ctk_team_status` (if
available) lists the worker. `TEAM_CAPACITY_REACHED`, `TEAM_BUDGET_REACHED`, `TEAM_GUARD_FAILED` or a row that only shows "Done" means
not started: no owner, slice stays pending, re-offer it when a slot frees. Details: `references/protocol.md`.

## 5. Run
- Wait for teammate messages; reassign idle teammates from this Goal with `SendMessage` to the next ready task. Do not do a worker's slice yourself while it is assigned.
- Reviewer `path:line` findings on a slice go by `SendMessage` to its live owner, not fixed by you: one fix round, then re-review. Owner exited or failed: reuse an idle `ctk:implementer` or spawn one, else fix it yourself. A re-review that still fails is the task's second failure (below).
- A worker that reports done is unverified until you run its verify command and read the result. Failure, an
  error or silence: read the report, retry that task once; a second failure: stop, mark it blocked, do it
  yourself or ask the user. On success, acknowledge the worker's completed task with a lead `TaskUpdate` (`status: completed`); no arbitrary Bash call counts as verification. Never loop on a refused spawn or a failing task.

## 6. Close
Integrate, run the full verification once, then `/ctk:review` while teammates are still live, so a finding reaches its owner. Then shut each down: `SendMessage` with `message` an object `{"type":"shutdown_request"}`, never a JSON string (refused). Findings after shutdown take §5's owner-exited branch.
With `ctk_goal`, record `verify` and passed `review`, then call `close` BEFORE sending shutdown requests; if refused, do not shut down. Follow `references/goal-lifecycle.md` and `references/protocol.md`; confirm every worker exited via `ctk_team_status`, never from a request acknowledgement. On failure keep the workers for a fix, report the live ones and ask the user; only if the user drops the fix follow the failure path in `references/goal-lifecycle.md`.
Any task failed, blocked or unverified: say the goal is NOT complete and name it. If BL tasks were explicitly supplied, apply the lead-only completion and recovery rules in `references/backlog.md`.

Files in this skill

  • SKILL.md5.2 KB
  • references/backlog.md2.1 KB
  • references/protocol.md3.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.