rune-kit/rune/team

Claude Code and agent skill by rune-kit/rune

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Multi-agent meta-orchestrator. Use when task spans 5+ files or 3+ modules, or when user says 'parallel', 'split this up', 'do all of these'. Decomposes large tasks into parallel workstreams, assigns to isolated cook instances, coordinates merging.

Install

npx vskill@latest install rune-kit/rune/team

SKILL.md

The same SKILL.md was published earlier as rune-kit/rune/team.

team

Purpose

Meta-orchestrator for complex tasks requiring parallel workstreams. Team decomposes large features into independent subtasks, assigns each to an isolated cook instance (using git worktrees), coordinates progress, and merges results. Uses opus for strategic decomposition and conflict resolution.

<HARD-GATE>

  • MAX 3 PARALLEL AGENTS: Never launch more than 3 Task calls simultaneously. If more than 3 streams exist, batch them.
  • No merge without conflict resolution complete (Phase 3 clean).
  • Full integration tests MUST run before reporting success.

</HARD-GATE>

Triggers

  • /rune team <task> — manual invocation for large features
  • Auto-trigger: when task affects 5+ files or spans 3+ modules

Mode Selection (Auto-Detect)

IF streams ≤ 2 AND total files ≤ 5:
→ LITE MODE (lightweight parallel, no worktrees)
ELSE:
→ FULL MODE (worktree isolation, opus coordination)
Lite Mode
Full detail moved to `references/lite-mode.md` (progressive disclosure). Read that file before executing this section.
Full Mode

Standard team workflow with worktree isolation (Phases 1-5 as documented below).

Complexity Tiers (DAG Stage Selection)

Before decomposing, classify the task into a complexity tier. Each tier defines a different DAG (directed acyclic graph) of stages, ensuring the right amount of process for the task's complexity.

TierSignalsDAG StagesContext Windows
Trivial≤3 files, single module, no shared contractsimpl → test1 (single cook)
Medium4-10 files, 2-3 modules, shared interfacesresearch → plan → impl → test → review → fix3 (plan, impl+test, review+fix)
Large10+ files, 3+ modules, breaking changes or RFCresearch → plan → impl → test → review₁ → fix → review₂ → final merge4+ (plan, impl+test, review₁+fix, review₂+merge)

Key principle — reviewer isolation: The agent that writes code MUST NOT review its own code. Each review stage uses a separate context window (separate Task invocation) that has never seen the implementation reasoning. This prevents author bias from contaminating the review.

Stage → Context Window mapping:

  • research + plan = Context Window 1 (opus — architectural reasoning)
  • impl + test = Context Window 2 (sonnet — code writing)
  • review₁ + fix = Context Window 3 (sonnet — fresh eyes, no impl context)
  • review₂ + merge = Context Window 4 (sonnet — final verification, Large tier only)

Merge queue: When multiple streams complete at different times, use dependency order for merging. If a later stream's merge creates conflicts with an already-merged stream, provide the conflicting stream's cook report as conflict context to the resolution agent — never resolve blindly.

Calls (outbound)

  • plan (L2): high-level task decomposition into independent workstreams
  • scout (L2): understand full project scope and module boundaries

Exception: L1→L1 meta-orchestration (team is the only L1 that calls other L1s)

  • cook (L1): delegate feature tasks to parallel instances (worktree isolation)
  • launch (L1): delegate deployment/marketing when build is complete
  • rescue (L1): delegate legacy refactoring when rescue work detected
  • integrity-check (L3): verify cook report integrity before merge
  • completion-gate (L3): validate workstream completion claims against evidence
  • constraint-check (L3): audit HARD-GATE compliance across parallel streams
  • scope-guard (L3): pre-merge scope verification — validate each stream's actual file changes against declared ownership
  • worktree (L3): create isolated worktrees for parallel cook instances
  • context-pack (L3): create structured handoff briefings before spawning subagents
  • L4 extension packs: domain-specific patterns when context matches (e.g., @rune/mobile when porting web to mobile)

Called By (inbound)

  • scaffold (L1): decompose scaffolding into parallel workstreams
  • User: /rune team <task> direct invocation only

Execution

Step 0 — Initialize TodoWrite
TodoWrite([
{ content: "DECOMPOSE: Scout modules and plan workstreams", status: "pending", activeForm: "Decomposing task into workstreams" },
{ content: "ASSIGN: Launch parallel cook agents in worktrees", status: "pending", activeForm: "Assigning streams to cook agents" },
{ content: "COORDINATE: Monitor streams, resolve conflicts", status: "pending", activeForm: "Coordinating parallel streams" },
{ content: "MERGE: Merge worktrees back to main", status: "pending", activeForm: "Merging worktrees to main" },
{ content: "VERIFY: Run integration tests on merged result", status: "pending", activeForm: "Verifying integration" }
])

Phase 1 — DECOMPOSE

Mark todo[0] in_progress.

1a. Map module boundaries.

REQUIRED SUB-SKILL: rune:scout
→ Invoke `scout` with the full task description.
→ Scout returns: module list, file ownership map, dependency graph.
→ Capture: which modules are independent vs. coupled.

1b. Break into workstreams.

REQUIRED SUB-SKILL: rune:plan
→ Invoke `plan` with scout output + task description.
→ Plan returns: ordered list of workstreams, each with:
- stream_id: "A" | "B" | "C" (max 3)
- task: specific sub-task description
- files: list of files this stream owns
- depends_on: [] | ["B"] (empty = parallel-safe)

1c. Validate decomposition.

GATE CHECK — before proceeding:
[ ] Each stream owns disjoint file sets (no overlap)
[ ] No coupled modules across streams:
→ Use Grep to find import/require statements in each stream's owned files
→ If stream A files import from stream B files → flag as COUPLED
→ COUPLED modules MUST be moved to same stream OR stream B added to A's depends_on
[ ] Dependent streams have explicit depends_on declared
[ ] Total streams ≤ 3
[ ] Change Stacking check: no file appears in touches[] of 2+ parallel streams
[ ] Every stream's requires[] is satisfied by a prior stream's provides[] or existing code
[ ] Shared Contract Gate: if 2+ parallel streams consume the same interface/type/API, the contract MUST be defined before any stream starts (see below)
If any check fails → re-invoke plan with conflict notes.
**Shared Contract Gate:**
When parallel streams both depend on a shared interface (types, API contract, database schema), that contract must be locked before streams start. Otherwise two agents may independently define incompatible versions.

Detection: → Grep each stream's file list for shared imports (types, interfaces, API clients) → If stream A and stream B both import from the same module: EITHER: move that module to a dependency stream (depends_on: []) OR: define the contract inline in the NEXUS Handoff as "Code Contracts" section

Contract format in NEXUS Handoff: ### Code Contracts (locked — do not modify) ``typescript // Shared interface — both streams consume this, neither owns it interface OrderResult { orderId: string; status: 'pending' | 'filled' | 'cancelled'; filledAt?: Date; } `` Streams may consume this contract but MUST NOT modify it. If a stream discovers the contract is insufficient → status = NEEDS_CONTEXT, not silent modification.

1d. Question Gate (non-trivial tasks only).

Subagents that start work without asking questions frequently produce the wrong thing.

Before dispatching streams, include in each NEXUS Handoff: "Before starting, ask up to 3 clarifying questions if anything is unclear about scope, conventions, or expected output."

  • If a cook agent returns questions instead of starting work → answer them, then re-dispatch
  • If a cook agent starts work without questions → proceed normally (questions are invited, not required)
  • Skip if: Lite mode (2 streams, ≤5 files) — overhead exceeds value

Mark todo[0] completed.


Phase 2 — ASSIGN

Mark todo[1] in_progress.

2a. Launch parallel streams.

Launch independent streams (depends_on: []) in parallel using Task tool with worktree isolation.

Structured handoff docs prevent the most common multi-agent failure: context loss between agents.

Each stream receives a NEXUS Handoff Template — not a bare prompt:

For each stream where depends_on == []:
Task(
subagent_type: "general-purpose",
model: "sonnet",
isolation: "worktree",
prompt: <NEXUS Handoff below>
)

NEXUS Handoff Template (sent to each cook instance):

markdown
## NEXUS Handoff: Stream [id]
### Metadata
-Stream: [id] of [total]
-Depends on: [none | stream ids]
-File ownership: [list — ONLY these files may be modified]
-Model: sonnet
### Context
-Project: [project name and type]
-Overall goal: [1-line feature description]
-This stream's goal: [specific sub-task]
-Conventions: [key patterns from scout — naming, file structure, test framework]
### Deliverable
-[ ] [specific outcome 1 — e.g., "AuthService with login/register/reset methods"]
-[ ] [specific outcome 2 — e.g., "Unit tests covering happy path + 3 error cases"]
-[ ] [specific outcome 3 — e.g., "Types exported for Phase 2 consumers"]
### Quality Expectations
-Tests: must pass with evidence (stdout captured)
-Types: no `any`, strict mode
-Security: no hardcoded secrets, parameterized queries
-Conventions: [project-specific — from scout output]
### Evidence Required
Return a Cook Report with:
-Exact files modified (git diff --stat)
-Test output (stdout — not just "tests pass")
-Any CONCERNS discovered during implementation

2b. Launch dependent streams sequentially.

For each stream where depends_on != []:
WAIT for all depends_on streams to complete.
Then launch with NEXUS Handoff that includes:
- Completed stream's deliverables as "Available Context"
- Exported interfaces/types from prior streams in "Code Contracts" section
- Any CONCERNS from prior streams in "Known Issues" section

2b.5. Pre-merge scope verification.

After each stream completes (before collecting final report):

Bash: git diff --name-only main...[worktree-branch]
→ Compare actual modified files vs stream's planned file ownership list.
→ If agent modified files OUTSIDE its declared scope:
FLAG: "Stream [id] modified [file] outside its scope."
Present to user for approval before proceeding to merge.
→ If all files within scope: proceed normally.

This catches scope creep BEFORE merge — much cheaper to fix than after.

2c. Collect cook reports.

Wait for all Task calls to return. Store each cook report keyed by stream_id.

Error recovery:
If a Task fails or returns error report:
→ Log failure: "Stream [id] failed: [error]"
→ If stream is non-blocking: continue with other streams
→ If stream is blocking (others depend on it): STOP, report to user with partial results

Mark todo[1] completed.


Phase 3 — COORDINATE

Mark todo[2] in_progress.

3a-pre0. Output density honoring. During Phase 2 dispatch, any worker that hits context ORANGE / RED has emitted output.density.set with mode=caveman, scope=workstream (auto from rune:context-engine). Coordination output respects per-workstream density: when summarizing a caveman-active worker's report into the merge plan, preserve its terse format rather than re-expanding to verbose. If 3+ workers are caveman-active simultaneously, the team-level summary itself should adopt caveman until merge completes (announce to user once: "Team output in caveman mode — N workers under context pressure"). Reverts to normal after Phase 5.

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
77
Repository forks
21
7-day trend score
22

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/rune-kit/rune/team/badge)](https://verified-skill.com/skills/rune-kit/rune/team)

Something wrong with this skill or its page? Tell us.