team-lead-reference

team-lead-reference is a skill for Claude Code, Codex from monkilabs/opencastle. It costs 64 tokens per session (1,451 once invoked), scanned A, original, MIT.

A reference for coordinating work across multiple coding agents, including task scoring, model selection, delegation checks, and cost tracking.

In plain words
What is it for?
Use it when assigning work to agents, selecting model tiers, starting delegation sessions, or running parallel workflows.
Why use it?
It helps teams choose an appropriate agent for each task and keep multi-agent work organized and accountable.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/monkilabs/opencastle/team-lead-reference
Any agent
npx skills add monkilabs/opencastle --skill team-lead-reference
Clone the repo
git clone --depth 1 https://github.com/monkilabs/opencastle

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for team-lead-reference

README.md
[![agentmods](https://agentmods.dev/badge/skills/monkilabs/opencastle/team-lead-reference.svg)](https://agentmods.dev/skills/monkilabs/opencastle/team-lead-reference)
Your own site
<a href="https://agentmods.dev/skills/monkilabs/opencastle/team-lead-reference"><img src="https://agentmods.dev/badge/skills/monkilabs/opencastle/team-lead-reference.svg" alt="Measured on agentmods" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,451 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00064 $0.01451
Opus 5 $0.00032 $0.00726
Sonnet 5 $0.00013 $0.00290
Haiku 4.5 $0.00006 $0.00145

Measured yesterday against content hash 0d1e1873e614, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

team-lead-reference scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

src/orchestrator/skills/team-lead-reference/SKILL.md · 127 lines

How it starts

The opening of the file, as written. The whole thing — 127 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Team Lead Reference

Delegation Sequence

  1. Score task complexity (table below) → determines tier
  2. Route to model tier via Cost-Aware Routing
  3. Deepen plan if 3+ subtasks (Deepen-Plan Protocol)
  4. Check pre-delegation policy (5-point checklist below)
  5. Delegate using Compact Delegation Envelope
  6. Handle output per Status Handling table
  7. Log via observability-logging skill

For specialist agent registry, model assignments, see .opencastle/agents/agent-registry.md.

Cost-Aware Model Routing

Tier Use For
Premium Team Lead orchestration, highest-stakes decisions
Quality Feature implementation, UI/frontend, security, architecture, complex reasoning
Standard Large-scale analysis, schema design, cost-efficient coding, repo exploration
Fast Terminal-heavy tasks, E2E tests, data pipelines, agentic workflows
Economy Docs, simple config, formatting, boilerplate

Selection: Default to the agent's registry tier. Never Premium/Quality for boilerplate. 3+ parallel agents → prefer Economy/Fast/Standard. Per-task overrides below.

Complexity-Based Task Scoring

Factor Low → High
Files touched 1–2 → 3–5 → 6+ / cross-library
Reasoning depth Boilerplate → pattern matching → architecture/security/tradeoffs
Ambiguity Clear spec → some judgment → multiple valid approaches
Risk Reversible → moderate impact → DB/auth/breaking
Dependencies None → 1–2 upstream → complex chain
Score Tier Examples
1–2 Economy/Fast Docs update, config tweak, rename, simple test
3–5 Standard/Quality Component, CMS query, API route, migration
8 Quality Architecture decision, security audit, complex refactor
13 Quality + Panel DB migration with data transform, auth flow redesign

Overrides: Blocker (blocking 2+ downstream) → upgrade one tier. Security-touching or architecture ambiguity → Quality+. Pure docs/config → Economy. Registry default takes precedence unless complexity clearly warrants change.

Read the full file on GitHub · 127 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 127 lines · 64 tokens per session scan A 0d1e1873e614

Subscribe to this mod's changes

team-lead-reference is a skill published in the GitHub repository monkilabs/opencastle (61 stars, last pushed 7d ago), licensed MIT. It adds 64 tokens to every session and 1,451 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.