skills/dynamic-reassignment/SKILL.md
Reassign tasks to alternative specialist agents when the primary specialist fails. Handles rate limits with backoff and persistent failures with agent switching. Triggers on: agent failure, delegation failure, rate limit during task, specialist crash.
npx skillsauth add mdmagnuson-creator/yo-go dynamic-reassignmentInstall 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.
⟳ When specialists fail, try alternatives before escalating.
Transient failures (rate limits) retry with backoff. Persistent failures (bad output, crashes) trigger reassignment to alternative agents. Checkpoints preserve progress across switches.
data/fallback-chains.yaml — Default fallback chains for all task typesWhen delegating a task, determine the fallback chain:
~/.config/opencode/data/fallback-chains.yaml for toolkit defaultsproject.json → agents.fallbackChains for project overridesoverride: true*.tsx, *.jsx → react-component*_test.go → go-tests*.spec.ts in e2e/ → playwright-tests*.test.tsx → react-testsDockerfile* → dockergenericUse verification contracts to detect failure:
| Outcome | Detection | Action |
|---------|-----------|--------|
| Success | All verificationContract.criteria pass | Task complete |
| Verification failure | One or more criteria fail | Try alternative |
| Rate limit | Error contains "429", "rate limit", "quota" | Retry with backoff |
| Context overflow | Agent reports context limit | Checkpoint → fresh session |
| Crash/error | Agent throws exception | Try alternative |
Rate limits are transient — retry same agent with exponential backoff:
⟳ Rate limited, retrying in 30s... (1/3)
Backoff schedule: 30s → 60s → 120s (3 retries max)
After 3 retries exhausted:
When a specialist fails with non-transient error:
⟳ Switching to go-tester (react-tester failed: verification failed)
chunk.json → reassignment.attempts[]Try ALL alternatives in the chain before escalating.
Track reassignment attempts in chunk.json:
{
"reassignment": {
"taskId": "US-003",
"taskType": "react-tests",
"currentAgent": "jest-tester",
"attempts": [
{
"agent": "react-tester",
"startedAt": "2026-02-28T10:00:00Z",
"endedAt": "2026-02-28T10:15:00Z",
"outcome": "verification_failed",
"error": "3 tests failed: DarkModeToggle click handler",
"retryCount": 0
}
],
"checkpointRef": "chunk.checkpoint"
}
}
Context overflow needs fresh context, not retry:
⟳ Context limit reached, starting fresh session with checkpoint
When ALL alternatives are exhausted, escalate to user:
═══════════════════════════════════════════════════════════════════════
TASK REQUIRES YOUR ATTENTION
═══════════════════════════════════════════════════════════════════════
Task: US-003 - Add dark mode toggle
Attempted:
1. react-dev (primary) — Failed: verification failed (3 tests)
2. developer (alternative) — Failed: context overflow
Checkpoint saved with:
- 3 completed steps
- 2 pending steps
- 1 decision recorded
Options:
[R] Retry with different approach (describe what to try)
[M] Fix manually (I'll provide the checkpoint context)
[S] Skip this task for now
[A] Abandon PRD and start fresh
> _
═══════════════════════════════════════════════════════════════════════
User responses:
Task Delegation
│
▼
Primary Agent Executes ──────┐
│ │
▼ │
Verification Contract │
│ │
┌───┴───┐ │
│ │ │
SUCCESS FAILURE │
│ │ │
│ Rate limit? ──YES──► Retry with backoff (max 3)
│ │ │
│ NO Exhausted?
│ │ │
│ Context overflow? ─► Fresh session with checkpoint
│ │
│ Create checkpoint
│ │
│ Alternative available?
│ │
│ ┌──┴──┐
│ YES NO
│ │ │
│ Switch ESCALATE
│ │
│ └────────────────────┘
│
▼
Task Complete
data-ai
Generate verification contracts before delegating tasks to sub-agents, defining how success will be measured. Triggers on: verification contract, delegation contract, task verification, contract-first delegation.
testing
Verify that Vercel environment variables point to the correct Supabase project for each environment to prevent staging/production cross-wiring. Triggers on: vercel supabase check, environment alignment, env var check, supabase environment.
development
Manage codebase and database vectorization for semantic search. Use when initializing, refreshing, or querying the vector index. Triggers on: vectorize init, vectorize refresh, vectorize search, semantic search, vector index, enable vectorization.
testing
Patterns for XCUITest UI tests for native Apple apps (macOS/iOS). Use when writing or reviewing XCUITest tests for Swift apps. Triggers on: XCUITest, xcuitest, native app testing, Apple UI tests, SwiftUI tests, AppKit tests, UIKit tests.