claude/skills/team-leader/SKILL.md
Decomposes a complex problem or scenario into distinct sub-problems and spawns parallel sub-agents to tackle each, then synthesizes results into a unified output. Use when a problem has multiple independent angles — different domains, perspectives, or workstreams — that can be investigated or built in parallel. Trigger when user says "use the team leader", "break this down", "attack this in parallel", "@team-leader", or when a scenario clearly has 2+ independent sub-problems.
npx skillsauth add lanej/dotfiles team-leaderInstall 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.
Decomposes a scenario into parallel sub-problems and spawns one general-purpose (or Explore) agent per sub-problem directly via the Agent tool. team-leader is not a valid subagent_type — it is a decomposition pattern, not an agent type. Never pass subagent_type: "team-leader" to the Agent tool; it will fail with "Agent type 'team-leader' not found."
subagent_type: "general-purpose" (or "Explore" for pure research tasks)explore first, then team-leader)When all sub-problems require editing the same file, parallel agents will clobber each other — the second agent's old_string may no longer exist after the first agent modified it. Do NOT spawn parallel write agents in this case.
Pattern to use instead:
subagent_type: "Explore") — each agent identifies the exact old_string → new_string patch for its sub-problem. Research agents read the file but make no edits.Example decomposition for "fix 6 prose issues in the same QMD":
How to detect this situation before spawning: Before issuing the Agent tool calls, check: do any two sub-problems write to the same file? If yes, switch to the research-first pattern.
@team-leader <scenario description>
Claude (the primary agent) performs the decomposition itself, then spawns parallel agents via the Agent tool:
Agent tool call 1: subagent_type="general-purpose", prompt="<sub-problem A briefing>"
Agent tool call 2: subagent_type="general-purpose", prompt="<sub-problem B briefing>"
Agent tool call 3: subagent_type="Explore", prompt="<sub-problem C briefing>"
All three calls are issued in the same turn so they execute in parallel. Collect results, then synthesize.
"Review the checkout flow for problems" →
"Design a rate limiting system" →
devops
DORA engineering metrics project at ~/src/dora. Load when: querying DORA BigQuery views (deployment frequency, lead time, change failure rate, alerts, review time) from any project; joining against DORA.unified_identity or DORA_clean.* views from any project; running the data pipeline (just refresh, just download-*, just upload-*); making OpenTofu infrastructure changes to DORA tables or views; working with team attribution, team identity, or engineer roster data.
development
Data pipeline architecture patterns and best practices, including medallion/three-layer architecture (Raw/Staging/Enriched or Bronze/Silver/Gold), YAML-based schema management, and ETL workflow patterns. Use when designing or implementing data pipelines, working with data warehouse layers, or managing table schemas in YAML.
data-ai
Delegate research and context-gathering tasks to a sub-agent to protect the primary context window. Use when the user asks to "research X", "look into X", "find out about X", "gather context on X", or any investigative framing where answering requires 2+ searches or multiple sources. Also use proactively before starting substantive work when prior context is unknown. Never run research inline — always delegate.
documentation
--- name: qmd-math description: Math notation conventions for Quarto/EPQ documents rendered via lualatex. Use when: writing or adding a formula, equation, or mathematical expression to a .qmd file; asked about display math, inline math, or LaTeX notation in a QMD/Quarto context; defining a where-clause or variable definitions for an equation; converting prose variable descriptions into structured math notation; fixing math that renders badly in a PDF; using \lvert, \begin{aligned}, \tfrac, \text