team-lead
Session initialization for the team-lead identity. Confirms identity and detects whether a full team restore is needed. Only run when ATM_IDENTITY=team-lead.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Session initialization for the team-lead identity. Confirms identity and detects whether a full team restore is needed. Only run when ATM_IDENTITY=team-lead.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Create or harden CLIs intended primarily for AI or system consumption and secondarily for humans. Use when designing or implementing a JSON-first CLI with an MCP-ready contract seam, where every command supports machine output, errors are typed and actionable, mutating commands are auditable via corresponding read commands, and external integrations need simulator-backed testing. Do not use for human-first shell utilities, one-off scripts, or text-only CLIs.
Design stateful simulators for AI-facing CLIs that integrate with devices, networks, services, or databases. Use when a CLI needs realistic simulator-backed testing, configurable fault injection, persistent state, and a swappable adapter boundary so the same business logic runs against live and simulated backends. Do not use for shallow mocks, stateless test doubles, or CLIs with no external integration.
Critically review an existing CLI, MCP wrapper, or CLI plan for AI-first contract quality. Use when evaluating whether a CLI is JSON-first, has an MCP-ready contract seam without JSON reshaping, auditably models state changes, uses stateful simulator-backed testing for external integrations, and returns typed actionable errors. Do not use for general style review or human-first shell UX review.
Orchestrate multi-sprint phases where crap (Codex) is the sole developer, with pipelined QA via quality-mgr teammate. Team-lead chooses the review type; quality-mgr chooses the reviewers.
Reusable QA orchestration skill for GitHub PRs. Use for multi-pass QA, CI monitoring with `atm gh monitor`, one-shot PR reporting with `atm gh pr report`, and template-driven findings/final quality reports.
Review Rust architecture plans, crate boundaries, and code for structural design-pattern compliance. Use when the task involves typestate, sealed traits, error contracts, wrapper/newtype design, object safety, interior mutability, or other type-system-driven Rust correctness patterns that go beyond general style guidance.
| name | team-lead |
| version | 1.0.0 |
| description | Session initialization for the team-lead identity. Confirms identity and detects whether a full team restore is needed. Only run when ATM_IDENTITY=team-lead. |
Trigger: Run at the start of every session where ATM_IDENTITY=team-lead.
echo "ATM_IDENTITY=$ATM_IDENTITY"
Stop if ATM_IDENTITY is not team-lead.
TODO: Verify no other active session is already running as
team-leadfor this team before proceeding.
Get the current session ID from the SessionStart hook output at the top of
context (format: SESSION_ID=<uuid>). Compare with leadSessionId in the
team config:
python3 -c "import json, os; print(json.load(open(os.path.expanduser('~/.claude/teams/$ATM_TEAM/config.json')))['leadSessionId'])"
docs/project-plan.md and outputting project status..claude/skills/team-lead/backup-and-restore-team.md.After initialization, the team-lead uses these skills to coordinate the team:
| Skill | Trigger |
|---|---|
/rust-phase-orchestration | Run a multi-sprint Rust phase where quality-mgr owns reviewer selection through quality-mgr.rust |
/codex-orchestration | Run phased development where crap is the sole developer and quality-mgr handles QA coordination |
/quality-management-gh | Multi-pass QA on GitHub PRs; CI monitoring; findings/final quality reports |
/sprint-report | Generate phase status table or detailed report |
Additional orchestration guides are in
.claude/skills/*/SKILL.md. Consult the relevant skill before starting a new phase or delegating to a teammate.
⚠️ For any multi-sprint phased development,
/codex-orchestrationor/rust-phase-orchestrationMUST be used as directed by the user. Using ad-hoc coordination instead of these skills leads to process drift, missed communications, and inconsistent QA gates.
After every session start or context compaction, if a phase is in progress:
/codex-orchestration or /rust-phase-orchestration. Read only that one unless the user explicitly redirects.Skipping this re-read is the primary cause of process drift between sessions.
When assigning work to any teammate:
TaskCreate or TaskUpdate with assignee and description before sending the first message..claude/skills/team-lead/cross-platform-guidelines.md, Rust guidelines, etc.)/codex-orchestration skill) that require:
crap) do not receive message injection — they only see
new messages when they check mail after their current task completes. Do not assume they
received a message until they ACK.atm gh monitor pr <NUMBER>
to receive CI notifications automatically. Do not wait for the user to ask.