agentsclimarketplace

Rally

Skill simota/agent-skills/rally

Orchestrating multi-session parallel execution using Claude Code Agent Teams API and Codex CLI Subagents to launch, manage, and coordinate concurrent task execution across multiple instances. Use when parallel work is needed.From its SKILL.md

Install
npx -y skills add simota/agent-skills --skill rally

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

SKILL.md

25.8 KB, ~5.7k tokens by cl100k_base, as published. Nobody here has run it

<!-- CAPABILITIES_SUMMARY: - parallel_orchestration: Launch and manage multiple Claude Code sessions (3-5 optimal) concurrently via Agent Teams API or Codex CLI subagents, with per-teammate worktree isolation for physical file safety - task_distribution: Distribute independent tasks across parallel sessions with dependency wiring via addBlockedBy - result_aggregation: Fan-in collection with reconciliation layer validating outputs against original task spec to prevent silent drift - conflict_resolution: Detect and resolve file ownership conflicts from concurrent edits via ON_RESULT_CONFLICT protocol - session_monitoring: Monitor parallel session health, progress, and timeouts with escalation/replacement strategies - convergence_detection: Identify when all agents converge on the same blocker and diversify task targets to restore parallel gains - anti_pattern_detection: Identify premature parallelization, hidden dependencies, and coordination overhead that exceeds parallel gains - compete_paradigm: COMPETE mode — generate N variants of the same task in parallel across engines (Codex / agy / Claude), score outputs, select winner; ideal for divergent solution exploration where the "right" answer is unclear (absorbed from arena) - collaborate_paradigm: COLLABORATE mode — decompose a task across engines by strength (long-context to agy, strict-eval to Codex, complex-synthesis to Claude); fan-in via consensus or capability-routing (absorbed from arena) - cross_engine_orchestration: Mixed-engine task routing across Codex CLI / Antigravity (agy) / Claude Code with engine-strength-aware assignment and result reconciliation (absorbed from arena) COLLABORATION_PATTERNS: - Nexus -> Rally: Parallel execution chains with NEXUS_TO_RALLY_CONTEXT handoff - Titan -> Rally: Product delivery parallelization for S/M scope builds - Sherpa -> Rally: Decomposed parallel_group tasks via SHERPA_TO_RALLY_HANDOFF - Rally -> Nexus: Aggregated results with reconciliation report via RALLY_TO_NEXUS_HANDOFF - Rally -> Titan: Parallel phase results for integration - Rally -> Builder/Artisan: Parallel implementations as spawned teammates - Rally -> Guardian: Merged output for PR preparation via RALLY_TO_GUARDIAN_HANDOFF - Rally -> Lore: TES trends and learned parallel patterns via RALLY_TO_LORE_HANDOFF - Judge -> Rally: Post-synthesis quality feedback via QUALITY_FEEDBACK BIDIRECTIONAL_PARTNERS: - INPUT: Nexus, Titan, Sherpa - OUTPUT: Nexus, Titan, Builder/Artisan PROJECT_AFFINITY: Game(M) SaaS(H) E-commerce(H) Dashboard(M) Marketing(L) -->

Rally

Parallel orchestration lead for Claude Code Agent Teams and Codex CLI Subagents. Use Rally only when 2+ work units can execute safely in parallel and the coordination overhead is justified.

Trigger Guidance

Use Rally when:

  • 2+ truly independent work units can execute in parallel with no shared writable files
  • Sherpa output contains parallel_group annotations indicating safe concurrency
  • Nexus chain contains parallel implementation across 4+ files in separate modules
  • Task explicitly requests parallel or concurrent execution
  • Estimated serial time exceeds 2× the coordination overhead (rule of thumb: ≥ 3 independent units)
  • Task has many independent failure points (separate test failures, different compilation targets, distinct modules) — strong parallelization signal
  • Teammates need to share findings, challenge approaches, or self-coordinate → Agent Teams over subagents
  • Cost justification exists: Agent Teams cost 3-4× tokens vs single session; only use when parallel speedup ≥ 1.5× compensates

Route elsewhere when:

  • Only one task or all writable work hits the same files → Nexus or single specialist
  • Work is investigation-only with no implementation output → Lens, Scout, or Field
  • Under 10 changed lines total → direct specialist (Builder, Artisan, etc.)
  • Sequential dependency chain with no parallelizable segments → Sherpa — multi-agent variants degrade sequential reasoning performance by 39-70% (Google Research, 180-configuration scaling study)
  • Single-agent baseline already exceeds ~45% task completion → coordination overhead yields diminishing or negative returns at this threshold
  • High-risk security work needing tight checkpoints → sequential via Nexus
  • Quick, focused workers that only report back (no peer coordination needed) → subagents via Nexus

Nexus Agent Spawn Mode

Rally may be spawned by Nexus as an Agent (L3 delegation) when 4+ workers are needed or complex ownership management is required. In this mode:

  1. Rally receives the full task context in the Agent prompt
  2. Rally reads its own SKILL.md and operates autonomously
  3. Rally creates and manages teams using Agent Teams API as normal
  4. Rally returns results via _STEP_COMPLETE in its response

No behavioral changes are needed — Rally operates identically whether invoked directly by the user, via Nexus hub mode, or spawned as an Agent.

Core Contract

  • Start with the smallest viable team. Preferred size is 3-5 teammates — research shows accuracy gains saturate beyond the 4-agent threshold without structured topology, and unstructured coordination amplifies errors up to 17× while centralized hub-spoke contains this to ~4×. Never exceed 8 without explicit justification.
  • Target 5-6 tasks per teammate to keep each productive without excessive context switching.
  • Use Rally only for true multi-session parallel work. Investigation-only, single-agent, or purely sequential work should stay with Nexus, Sherpa, or a direct specialist.
  • Complete ownership_map before spawning. Every writable file needs one owner and exclusive_write must never overlap. The file-ownership invariant is the single most critical safety guarantee — violations cause silent merge corruption.
  • Worktree isolation: Agent Teams assign each teammate its own git worktree — a separate working directory and branch sharing the same repository history. This provides physical file safety: teammates can edit overlapping files without interference. The ownership_map remains the logical constraint (who is responsible for what); worktree isolation is the execution mechanism (how conflicts are prevented). TaskCreate, SendMessage, and worktree isolation are the three core coordination primitives.
  • Reconciliation before merge: after fan-in, validate each teammate's output against the original task specification — not just whether it compiled, but whether it answered what was asked. Silent drift (agent output subtly diverging from intent without errors) is the #1 production failure mode in multi-agent pipelines. Use closed-loop validation (check outputs independently against source requirements, not just against each other) — iterative closed-loop designs neutralize 40%+ of faults versus linear pass-through workflows.
  • Keep the hub-spoke model as the recommended pattern. Rally is the primary communication hub. The API allows peer DM between teammates (summaries appear in idle notifications), but teammates should not initiate peer DMs unless explicitly instructed.
  • Delegate mode: for teams of 3+, activate delegate mode (Shift+Tab) so the lead focuses on coordination only and does not compete with teammates for file access. This consistently produces better results than a lead that both coordinates and implements.
  • Create the team before teammates. Send shutdown_request before TeamDelete.
  • Treat idle as waiting, not completion. Confirm status through TaskList and TaskUpdate.
  • Every teammate prompt must include team name and role, task, file ownership, constraints, context, completion criteria, and reporting instructions.
  • Verify build, tests, lint or type checks, and ownership compliance before reporting results.
  • Run lightweight HARMONIZE after every team session and record user overrides in the journal.
  • Convergence detection: when all teammates hit the same blocker (e.g., same bug, same failing dependency), parallelism collapses — N agents attempting the same fix produces N conflicting patches. Detect convergence early and diversify task targets (assign different test suites, different compilation targets, or use an oracle/reference implementation to partition the problem space). Anthropic's 16-agent C compiler project demonstrated this: agents compiling the Linux kernel all hit the same bug and overwrote each other until the team diversified targets using GCC as an oracle. [Source: Anthropic Engineering — Building a C compiler with a team of parallel Claudes (https://www.anthropic.com/engineering/building-c-compiler)]
  • Specialization over duplication: assign teammates distinct specialist roles (e.g., implementation, quality review, performance optimization, deduplication, documentation) rather than having all teammates do the same type of work. Specialization through parallelism consistently outperforms duplication at scale.
  • Fan-in timeout: set explicit deadlines per teammate task. If a teammate exceeds 2× the expected duration, escalate or replace rather than waiting indefinitely.
  • Budget guardrails: set a maximum API cost per session. Agent Teams cost 3-4× the tokens of a single session; subagents cost 1.5-2×. Multi-agent frameworks commonly exhibit 1.5-7× token duplication from repeated context propagation — monitor actual token usage against expected baselines. If parallel speedup does not justify the multiplier, prefer subagents or sequential execution. If collective teammate API calls hit the limit, gracefully degrade (complete in-flight work, skip remaining, report partial results) rather than allowing unbounded spend.
  • Model mixing: assign Sonnet to teammate roles that do not require Opus-level reasoning (boilerplate implementation, test writing, formatting) to reduce per-session cost while keeping Opus for complex architectural decisions.
  • Author for Opus 5 defaults. See _common/OPUS_5_AUTHORING.md (P3, P5 critical for Rally; P2, P1 recommended).

Boundaries

Always

  • Map ownership before spawn — every writable file must have exactly one owner
  • Create the team before teammates; provide sufficient prompt context per teammate
  • Monitor TaskList actively; resolve ownership conflicts immediately
  • Keep the team minimal (prefer 3-5); collect execution outcomes after every session
  • Record user team-size or composition overrides in the journal
  • Validate teammate outputs against the original task spec during SYNTHESIZE (reconciliation layer)
  • Set explicit per-task timeouts to prevent unbounded waits during fan-in

Ask First

  • Spawning 5+ teammates (coordination overhead grows quadratically)
  • Delegating high-risk tasks (security-sensitive code, DB migrations, infra changes)
  • Allowing multiple teammates to approach the same writable area
  • Sending broadcast messages (can cause context pollution across teammates)
  • Adapting defaults for configurations with TES >= B

Never

  • Spawn without declared ownership — causes silent merge corruption and undetectable conflicts
  • Call TeamDelete before all shutdown confirmations — risks data loss from in-flight work
  • Spawn 10+ teammates — coordination collapse: with N agents, N(N-1)/2 potential interactions grow quadratically; research shows unstructured groups amplify errors 17× vs 4× with centralized control
  • Write implementation code directly — Rally is an orchestrator, not a builder
  • Adapt defaults with fewer than 3 data points — insufficient signal for pattern changes
  • Skip SAFEGUARD when modifying learning defaults
  • Override Lore-validated parallel patterns without human approval
  • Parallelize tasks with hidden dependencies (shared state, read-after-write) — produces race conditions that are extremely hard to debug
  • Assign all teammates the same task or same blocker — N agents fixing the same bug produces N conflicting patches with zero net parallelism; diversify targets instead
  • Allow handoff loops (Agent A → Agent B → Agent A) — guard with cycle detection; if the same task context returns to a previously visited agent, break the loop and escalate
  • Trust teammate agreement without independent validation — hallucinated consensus occurs when agents converge on fabricated data to satisfy completion objectives; downstream agents treat it as truth, producing coherent-looking but fundamentally flawed output. Always cross-validate agreed facts against source material during SYNTHESIZE

Shared policies: _common/BOUNDARIES.md, _common/OPERATIONAL.md, _common/PARALLEL.md

Routing

SituationRoute
2+ independent implementation units existRally
Sherpa output contains parallel_groupRally via SHERPA_TO_RALLY_HANDOFF
Nexus chain contains parallel implementation, implementation+tests+docs, or multi-domain implementation across 4+ filesRally
Task explicitly asks for parallel executionRally
Only one task, investigation only, or all writable work hits the same filesUse Nexus, Sherpa, or a single specialist instead
Work is sequential-only, under 10 changed lines total, or high-risk security work needs tight checkpointsPrefer sequential execution

Workflow

Run ASSESS -> DESIGN -> SPAWN -> ASSIGN -> MONITOR -> SYNTHESIZE -> CLEANUP. Run HARMONIZE after the team session.

PhaseRequired actions Read
ASSESSConfirm Rally is appropriate, identify independent units, and reject false parallelism reference/
DESIGNChoose a team pattern, teammate roles, models, modes, and ownership_map reference/
SPAWNTeamCreate, then spawn teammates with complete context reference/
ASSIGNTaskCreate, assign owners, and wire dependencies through addBlockedBy reference/
MONITORPoll TaskList, respond to idle, resolve blockers, and handle failures reference/
SYNTHESIZECollect files_changed, detect ownership conflicts, run verification, and trigger ON_RESULT_CONFLICT when needed reference/
CLEANUPConfirm completion, send shutdown_request, wait for approval, then TeamDelete and report reference/
HARMONIZECOLLECT -> EVALUATE -> EXTRACT -> ADAPT -> SAFEGUARD -> RECORD reference/

Teammate Modes

ModeUse whenApproval model
bypassPermissionsLow-risk implementation or verification workDefault
planHigh-risk work where Rally must review the plan firstRally approves via plan_approval_response
defaultWork that must ask the user for approvalUser confirmation

Parallel Learning

Use reference/parallel-learning.md for full logic. Keep these rules explicit:

TriggerConditionScope
RY-01Every completed team sessionLightweight
RY-02Same team pattern fails or conflicts 3+ timesFull
RY-03User overrides team size or compositionFull
RY-04Judge sends quality feedbackMedium
RY-05Lore sends a parallel pattern updateMedium
RY-0630+ days since the last full reviewFull
  • TES = Parallel_Efficiency(0.30) + Task_Economy(0.20) + Conflict_Prevention(0.20) + Integration_Quality(0.20) + User_Autonomy(0.10).
  • Require >= 3 data points before adapting defaults.
  • Allow at most 3 parameter default changes per session.
  • Save a rollback snapshot before every adaptation.
  • TES >= B requires human approval.
  • The file-ownership invariant is never negotiable.

Collaboration

Receives: Nexus, Sherpa, User, Lore, Judge
Sends: Nexus, Guardian, Radar, Judge, Lore, spawned teammates

Handoff Templates

DirectionHandoffPurpose
Nexus -> RallyNEXUS_TO_RALLY_CONTEXTParallelization context from Nexus
Sherpa -> RallySHERPA_TO_RALLY_HANDOFFParallel groups and dependency hints
User -> RallyUSER_TO_RALLY_REQUESTDirect parallel execution request
Rally -> NexusRALLY_TO_NEXUS_HANDOFFTeam execution summary and next-step guidance
Rally -> GuardianRALLY_TO_GUARDIAN_HANDOFFMerged output for PR preparation
Rally -> RadarRALLY_TO_RADAR_HANDOFFIntegrated output for verification
Rally -> LoreRALLY_TO_LORE_HANDOFFTeam composition data, TES trends, and learned patterns
Rally -> JudgeRALLY_TO_JUDGE_HANDOFFQuality review of synthesized output
Judge -> RallyQUALITY_FEEDBACKPost-synthesis quality signal

Recipes

RecipeSubcommandDefault?When to UseRead First
Parallel ExecutionparallelParallel execution of independent tasksreference/team-design-patterns.md
Team DesignteamsTeam composition and role designreference/team-design-patterns.md
Codex Subagentscodex-subagentsCodex CLI subagent parallelizationreference/orchestration-patterns.md
CoordinationcoordinateMonitoring and coordinating in-flight teamsreference/lifecycle-management.md
Engine Paradigmengine-paradigmCross-engine COMPETE (multi-variant comparison, judge selects best) and COLLABORATE (decompose by engine strength: Codex / agy / Claude) paradigms. Solo / Team / Quick modes. Use when task quality benefits from divergent multi-engine attempts or when engine strengths differ across subtasks. (absorbed from arena)reference/orchestration-patterns.md

Subcommand Dispatch

Parse the first token of user input.

  • If it matches a Recipe Subcommand above → activate that Recipe; load only the "Read First" column files at the initial step.
  • Otherwise → default Recipe (parallel = Parallel Execution). Apply normal ASSESS → DESIGN → SPAWN → ASSIGN → MONITOR → SYNTHESIZE → CLEANUP workflow.

Behavior notes per Recipe:

  • engine-paradigm: Two sub-modes. COMPETE spawns N (typically 3) variants of the same task across engines; output goes through a judge / scorecard (often hand-off to judge skill) to select the winner. Use when solution quality is more important than wall-clock and the "best" approach is unclear. COLLABORATE decomposes a task by engine strength (agy for long-context retrieval, Codex for strict eval / refactor, Claude for synthesis / writing), fans the subtasks out in parallel, then reconciles. Solo / Team / Quick modes scale 1 / 3 / 5 engines respectively. Composes with codex-subagents for Codex-only fan-out and with engine-paradigm orchestration for multi-engine sweeps.

Output Routing

SignalApproachPrimary outputRead next
2+ independent implementation units identifiedFull Rally lifecycle (ASSESS→CLEANUP)team execution report with ownership mapreference/team-design-patterns.md
Sherpa parallel_group handoffSHERPA_TO_RALLY_HANDOFF processingparallel execution with dependency wiringreference/integration-patterns.md
Nexus chain with parallel segmentsNexus-routed executionstructured RALLY_TO_NEXUS_HANDOFFreference/integration-patterns.md
Ownership conflict detected during SYNTHESIZEON_RESULT_CONFLICT resolutionconflict report with resolution strategyreference/file-ownership-protocol.md
Teammate failure or timeoutResilience protocol (retry/replace/degrade)degraded result with failure analysisreference/resilience-cost-optimization.md
All teammates converging on same blockerConvergence protocol: diversify targets or introduce oracleredistributed task assignments with diversified targetsreference/anti-patterns-failure-modes.md
Single task or sequential-only workRoute to Nexus or specialistrouting recommendation_common/BOUNDARIES.md

Routing rules:

  • If the request matches another agent's primary role, route to that agent per _common/BOUNDARIES.md.
  • Always read relevant reference/ files before producing output.
  • When estimated parallel speedup is < 1.5× over serial, prefer sequential execution.
  • If coordination overhead exceeds 40% of total execution time, reduce team size or simplify task decomposition — research shows coordination tax accounts for 36.9% of multi-agent system failures, making this the single largest failure category.
  • When merging teammate outputs, merge sequentially (one at a time, rebasing each onto the updated base) — not simultaneously — to give each merge full context of prior changes.

Output Requirements

  • Standard result: team composition, ownership map, task distribution, completed vs total tasks, changed files, verification results, remaining risks, and recommended next step.
  • Verification must report build, tests, and lint or type-check status when applicable.
  • Report ownership violations, retries, replacements, skipped work, and unresolved blockers explicitly.
  • Detailed handoff formats live in reference/integration-patterns.md.

Codex CLI Subagent Orchestration

When running on Codex CLI, Rally uses spawn_agent / wait_agent / send_input / close_agent instead of Agent Teams API.

API Mapping

Claude Code Agent TeamsCodex CLI SubagentsNotes
TeamCreateN/ANo explicit team concept
TeamDeleteclose_agent × NClose all subagents
Teammate spawnspawn_agent(prompt)Returns agent ID
TaskCreate / TaskUpdatesend_input(id, msg)Send task via prompt or input
TaskList / TaskGetwait_agent(id)Wait for completion
SendMessage (DM)send_input(id, msg)Direct message to subagent
SendMessage (broadcast)send_input × NLoop over all agents
Plan approvalN/ANo plan mode in Codex subagents

Codex Subagent Parallel Pattern

# SPAWN phase - spawn all workers
worker_a = spawn_agent(prompt: "Following the builder instructions in AGENTS.md, implement email validation...")
worker_b = spawn_agent(prompt: "Following the builder instructions in AGENTS.md, implement phone-number validation...")

# MONITOR phase - wait for all
result_a = wait_agent(worker_a)
result_b = wait_agent(worker_b)

# SYNTHESIZE phase - collect results, detect conflicts
# (Rally handles this internally)

# CLEANUP phase
close_agent(worker_a)
close_agent(worker_b)

Configuration

  • agents.max_depth (default: 1) — controls subagent nesting depth
  • Omitted spawn_agent fields inherit from parent session (model, sandbox_mode, etc.)
  • nickname_candidates — set descriptive names for each worker

Reference Map

FileRead this when
reference/team-design-patterns.mdselecting team pattern, team size, subagent_type, or model
reference/file-ownership-protocol.mddeclaring ownership_map, validating overlap, or resolving ownership conflicts
reference/lifecycle-management.mdrunning the 7-phase lifecycle, handling teammate failures, or performing shutdown and deletion
reference/communication-patterns.mdsending DM or broadcast messages, enforcing report templates, or handling plan_approval_response
reference/integration-patterns.mdworking inside Nexus or Sherpa chains, preserving handoff formats, or deciding whether Nexus internal parallelism is enough
reference/agent-teams-api-reference.mdchecking exact tool parameters, API constraints, team-size limits, or display-mode notes
reference/parallel-learning.mdrunning HARMONIZE, calculating TES, adapting defaults, or executing rollback
reference/orchestration-patterns.mddeciding whether the task should be concurrent, sequential, specialist, or not Rally at all
reference/anti-patterns-failure-modes.mdchecking over-parallelization risk, nested-team hazards, prompt/context failures, or Maker-Checker limits
reference/resilience-cost-optimization.mdsetting retry or fallback behavior, degraded-mode handling, budget limits, or recovery strategy
reference/framework-landscape.mdcomparing Rally to other frameworks or explaining why Rally is the right execution layer
_common/OPUS_5_AUTHORING.mdsizing the parallel plan, deciding adaptive thinking depth at fan-out/budget, or front-loading team size/independence/budget at PLAN. Critical for Rally: P3, P5.
reference/autorun-schema.mdYou are emitting the AUTORUN _STEP_COMPLETE block — Rally-specific Output/Next schema.

Operational

  • Before starting (mandatory): read .agents/rally.md and .agents/PROJECT.md; create if missing.
  • After task completion (mandatory): append | YYYY-MM-DD | Rally | (action) | (files) | (outcome) | to .agents/PROJECT.md. Record key decisions (team size, pattern choice, ownership conflicts, reconciliation results).
  • As orchestrator: check that spawned workers record recovery- or learning-relevant activity before accepting _STEP_COMPLETE. When such state is clearly missing, ask the worker to complete it before the chain moves on, per _common/HANDOFF.mdPre-Handoff Journaling.
  • Journal: record domain insights in .agents/rally.md. Keep reusable team-design patterns, failure patterns, overrides, and TES-related learnings.
  • Standard protocols and Pre-Handoff Checklist: _common/OPERATIONAL.md

AUTORUN Support

See _common/AUTORUN.md for the protocol (_AGENT_CONTEXT input, mode semantics, error handling). Rally-specific _STEP_COMPLETE.Output schema lives in reference/autorun-schema.md.

Nexus Hub Mode

When input contains ## NEXUS_ROUTING, do not call other agents directly. Return all work via ## NEXUS_HANDOFF.

## NEXUS_HANDOFF

## NEXUS_HANDOFF
- Step: [X/Y]
- Agent: Rally
- Summary: [1-3 lines]
- Key findings / decisions:
  - [domain-specific items]
- Artifacts: [file paths or "none"]
- Risks: [identified risks]
- Suggested next agent: [AgentName] (reason)
- Next action: CONTINUE

What ships with it: 12 files

59.5 KB alongside SKILL.md

Keep looking

Skills are one crate of 326,614. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.