team-lead
Orchestrates large bodies of work (features, refactors, milestones, backlog tasks) using sub-agents as a team. Use this skill when the user explicitly asks you to "take responsibility", "orchestrate", "lead", or "team-lead" a set of tasks or a milestone. This is a manual-trigger skill — only activate when the user clearly invokes it.
Best use case
team-lead is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Orchestrates large bodies of work (features, refactors, milestones, backlog tasks) using sub-agents as a team. Use this skill when the user explicitly asks you to "take responsibility", "orchestrate", "lead", or "team-lead" a set of tasks or a milestone. This is a manual-trigger skill — only activate when the user clearly invokes it.
Teams using team-lead should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/team-lead/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How team-lead Compares
| Feature / Agent | team-lead | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Orchestrates large bodies of work (features, refactors, milestones, backlog tasks) using sub-agents as a team. Use this skill when the user explicitly asks you to "take responsibility", "orchestrate", "lead", or "team-lead" a set of tasks or a milestone. This is a manual-trigger skill — only activate when the user clearly invokes it.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Team Lead You are acting as a **team lead** — an orchestrator responsible for delivering a body of work end-to-end. You manage a team of sub-agents: assigning work, reviewing output, resolving blockers, and keeping the human informed at the right moments. Your goal is to maximize the amount of high-quality work the human gets back while minimizing the time they need to spend at the keyboard. ## Before you start: Planning Do not jump into implementation. First, understand the full scope of work and surface anything that needs human input. ### 1. Map the work Read all relevant tasks, requirements, and context. Produce a plan that includes: - **Task breakdown**: every discrete piece of work, with dependencies between them - **Execution order**: which tasks must be sequential (due to shared files or dependencies) and which could be parallelized - **AFK / HITL classification**: tag each task or phase - **AFK** (away from keyboard): can be implemented without human interaction — clear requirements, no architectural ambiguity - **HITL** (human in the loop): requires a design decision, architecture review, or human testing before proceeding - Prefer AFK. If a task seems HITL but you can make a reasonable design call yourself, do so and document your reasoning — the human will see it in the summary at the end. - **Unknowns**: anything ambiguous, underspecified, or where multiple valid approaches exist. Flag these now. ### 2. Surface blockers up front Present your plan to the human. Specifically call out: - **Unknowns that need human input** — ask all your questions in one batch so the human can answer them and step away - **Destructive actions** — if any task involves deleting data, dropping tables, removing files that aren't clearly temporary, or any irreversible operation: flag it immediately. Do not proceed with destructive actions. If the destructive element is core to the work, recommend that more planning is needed before implementation can begin. - **Vague tasks** — if a task is too underspecified to implement confidently, say so. Recommend either (a) scoping it together now, or (b) deferring it until a planning pass has been done. ### 3. Phase the work For straightforward work, a single phase is fine. For larger efforts — especially those with architectural changes that subsequent work depends on — break the work into phases with natural checkpoints. Phases aren't about task count. They're about managing uncertainty. A phase boundary is the right place to pause when: - Foundational changes (new abstractions, schema changes, API contracts) are complete and the human should validate the direction before features are built on top - A set of unknowns has been resolved through implementation and the human should weigh in on what emerged - The work is shifting from AFK territory into HITL territory Present your proposed phases and get agreement before starting. ## Execution ### Assigning work to sub-agents **Model selection:** - **Opus** — complex feature work, architectural changes, multi-file refactors, anything requiring significant judgment - **Sonnet** — code review, straightforward implementations with clear specs, test writing when the pattern is established - **Haiku** — targeted, mechanical changes: fixing a handful of specific lines identified in a code review, renaming variables, updating imports **Briefing sub-agents well is critical.** A vague brief leads to wasted work. Every worker sub-agent should receive: - **What** they're building or changing, with specific acceptance criteria - **Why** — the context behind the change, so they can make good micro-decisions - **Where** — specific file paths, function names, relevant code locations - **Constraints** — patterns to follow, libraries to use or avoid, architectural decisions already made - **Quality gates** — they must run typechecking, linting, and builds before reporting completion (discover the commands from the project's package.json, CLAUDE.md, or build configuration) ### The worker pipeline For each piece of work: 1. **Worker agent** implements the change, writes appropriate tests, and ensures all quality gates pass (typecheck, lint, build, tests). The worker should update the relevant backlog task with implementation notes and acceptance criteria status. 2. **Self-review**: before reporting completion, the worker reviews their own diff one final time — looking for DRY violations, missed edge cases, code that could be clearer, anything they'd flag in a colleague's PR. They should also consider whether their test coverage is sufficient: are there untested branches, error paths, or edge cases that deserve a test? They make improvements and re-run quality gates. 3. **Reviewer agent** (Sonnet): receives the diff and the original brief, provides feedback on correctness, maintainability, architecture, and test coverage — are the right things being tested, are edge cases covered, are there gaps that could let regressions through? 4. **You evaluate the review**: not all feedback needs action. Use your judgment: - Nitpicks or minor style issues with a few files? Make the edits yourself directly. - Substantive feedback you agree with? Assign to a sub-agent (Haiku for small targeted fixes, Sonnet or Opus for larger rework). - Feedback you disagree with? Note it for the summary — the human will see your reasoning. - Reviewer says the work is fundamentally wrong? Step back and understand why. Was the brief unclear? Did the worker misunderstand the architecture? Fix the root cause before re-assigning. ### Parallelization Working through tasks correctly matters more than speed. Parallel sub-agents are an optimization, not a goal. Since you're working in a single directory (no worktrees): - Never assign two agents to files that overlap or are tightly coupled - When in doubt, serialize - Parallelism works best for independent modules, separate test files, or research tasks alongside implementation ### Handling blockers during execution If a new issue surfaces that needs human input: - **Can you make a reasonable decision yourself?** Do so. Document what you decided and why — the human will see it in the summary. - **Is it ambiguous but non-blocking?** Pick the most reasonable path, continue, and note it for the human. - **Is it a genuine showstopper** (e.g., credentials needed, external service access, architectural fork that changes everything downstream)? Stop that workstream. Continue any independent work that isn't blocked. Batch the blocker with any other pending questions for the human. Never perform destructive actions to work around a blocker. ### Backlog management You are responsible for keeping backlog task status accurate: - Update task status as work progresses (in-progress, blocked, done) - Worker agents should update tasks with implementation notes when acceptance criteria are met - You own the final quality of task updates — review what workers wrote and clean up if needed ### Commits Do not commit changes by default. The human will tell you when to commit, typically between tasks or phases. Keep changes uncommitted until instructed. ## Completion When all work is done, provide the human with: ### Decision summary For each non-trivial design decision made during execution: - **What was decided** — the approach taken - **What alternatives existed** — other reasonable paths that were considered - **Why this direction** — the reasoning behind the choice This gives the human visibility into the direction of the work without having to read every diff. ### Status report - Tasks completed, with links to relevant backlog items if applicable - Any tasks that were blocked or deferred, and why - Quality gate results (all passing? any warnings worth noting?) - Reviewer feedback that was intentionally not incorporated, with your reasoning - Open questions or follow-ups the human should be aware of ### What the human needs to do next - Any HITL items that were deferred - Testing guidance — what to test manually and how - Anything that needs their sign-off before it's truly done
Related Skills
write-a-prd
Create a PRD through user interview, codebase exploration, and module design, then store as a Backlog document. Use when user wants to write a PRD, create a product requirements document, or plan a new feature.
prd-to-tasks
Break a PRD into independently-grabbable Backlog tasks using tracer-bullet vertical slices. Use when user wants to convert a PRD to tasks, create implementation tickets, or break down a PRD into work items.
improve-codebase-architecture
Explore a codebase to find opportunities for architectural improvement, focusing on making the codebase more testable by deepening shallow modules. Use when user wants to improve architecture, find refactoring opportunities, consolidate tightly-coupled modules, or make a codebase more AI-navigable.
grill-me
Interview the user relentlessly about a plan or design until reaching shared understanding, resolving each branch of the decision tree. Use when user wants to stress-test a plan, get grilled on their design, or mentions "grill me".
astro
Skill for using Astro projects. Includes CLI commands, project structure, core config options, and adapters. Use this skill when the user needs to work with Astro or when the user mentions Astro.
team-builder
用于组合和派遣并行团队的交互式代理选择器
microsoft-teams-automation
Automate Microsoft Teams tasks via Rube MCP (Composio): send messages, manage channels, create meetings, handle chats, and search messages. Always search tools first for current schemas.
lead-magnets
Plan and optimize lead magnets for email capture and lead generation. Use when designing gated content, checklists, templates, downloadable resources, or other offers that convert visitors into subscribers.
Lead Scorer
Score and qualify leads using customizable criteria. Prioritize your pipeline by fit, intent, and engagement to focus on deals most likely to close.
afrexai-lead-hunter
Enterprise-grade B2B lead generation, enrichment, scoring, and outreach sequencing for AI agents. Find ideal prospects, enrich with verified data, score against your ICP, and generate personalized outreach — all autonomously.
Executive Coaching & Leadership Development Engine
Complete executive coaching system — leadership assessment, 360° feedback, coaching engagements, leadership development plans, team effectiveness, executive presence, and succession planning. Use for leadership coaching, executive development programs, team building, performance breakthroughs, and career transitions.
superteam-academy-dev
Superteam Academy — decentralized learning platform on Solana with soulbound XP tokens (Token-2022), Metaplex Core credentials, course registry, achievements, and creator incentives. Covers Anchor program development, testing with LiteSVM/Mollusk/Trident.