Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Agentic orchestration patterns for long-running tasks. Implements evidence-based delivery and Simon Willison's agent loop. Use when managing multi-step implementation work, coordinating subagents, orchestrating PR workflows, or running sessions that need checkpoints and escalation. Do NOT use for single-step or trivial tasks.
.claude/skills/bybren-llc-orchestration-patterns/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-02 | ✗→✓ | ▲ Improved | 71% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 161% | 0% |
| case-09 | ✗→✓ | ▲ Improved | 81% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 35% | 0% |
| case-11 | ✗→✓ | ▲ Improved | 9% | 0% |
Codify evidence-based delivery and iterative agent loop for orchestrating complex, long-running tasks. These patterns ensure verifiable progress and intelligent escalation.
Core Philosophy: "Iterate until success or blocked, then escalate."
text┌─────────────────────────────────────────────────────────┐ │ THE AGENT LOOP (for every task) │ ├─────────────────────────────────────────────────────────┤ │ │ │ 1. GOAL DEFINITION │ │ └─ Clear acceptance criteria (from spec/ticket) │ │ │ │ 2. PATTERN DISCOVERY │ │ └─ Search codebase, docs, previous sessions │ │ └─ Use: pattern-discovery skill (auto-invoked) │ │ └─ Or: /search-pattern for explicit code search │ │ │ │ 3. ITERATIVE EXECUTION LOOP: │ │ ┌─────────────────────────────────────────────┐ │ │ │ Implement approach │ │ │ │ ↓ │ │ │ │ Run validation (yarn ci:validate) │ │ │ │ ↓ │ │ │ │ If PASS → proceed to evidence │ │ │ │ If FAIL → analyze error, adjust, repeat │ │ │ │ If BLOCKED → escalate with context │ │ │ └─────────────────────────────────────────────┘ │ │ │ │ 4. EVIDENCE ATTACHMENT │ │ └─ Attach proof to Linear (see templates below) │ │ │ │ 5. QA GATE (MANDATORY before merge) │ │ └─ Independent review of PR │ │ │ └─────────────────────────────────────────────────────────┘
Core Principle: "All work requires verifiable evidence - no 'trust me, it works'"
| Type | What It Proves | Example | | -------------- | -------------------------- | -------------------------- | | Test Results | Code works as expected | yarn ci:validate output | | Screenshots | UI changes are correct | Before/after comparison | | Command Output | Operations completed | Build logs, migration logs | | QA Report | Independent verification | QA validation markdown | | Session ID | Full audit trail available | Session reference |
| Phase | Evidence Required | Linear Template | | ----------- | ------------------------------ | ---------------------- | | Dev | Test results, command output | Dev Evidence Template | | Staging | UAT validation or N/A + reason | Staging Template | | Done | QA report, merge confirmation | Done Evidence Template |
MANDATORY: Before merging any PR, perform independent review.
markdown## QA Review - PR #XXX for {{TICKET_PREFIX}}-YYY ### Commit Message Validation - [ ] Ticket reference in subject line - [ ] Proper format: `type(scope): description [{{TICKET_PREFIX}}-XXX]` ### Code Pattern Validation - [ ] RLS context helpers used (no direct Prisma) - [ ] Naming conventions followed - [ ] File structure matches patterns ### CI Status - [ ] All checks passing - [ ] No new lint warnings ### Evidence Verification - [ ] Dev evidence attached to Linear - [ ] Acceptance criteria addressed ### Verdict - [ ] APPROVED for merge - [ ] CHANGES REQUESTED (list below)
All QA reports go to: docs/agent-outputs/qa-validations/{{TICKET_PREFIX}}-{number}-qa-validation.md
| Condition | Escalate To | Include | | ---------------------- | ----------- | --------------------------- | | Blocked > 4 hours | TDM | Full context, attempts made | | Architecture ambiguity | ARCHitect | Options, trade-offs | | Cross-team dependency | TDM | Which teams, what's blocked | | Security concern | SecEng | Specific risk, evidence |
markdown**Escalation Required** **Blocked On**: [specific blocker] **Attempts Made**: 1. [what you tried] 2. [what you tried] **Context**: - Ticket: {{TICKET_PREFIX}}-XXX - Session ID: [if available] - Time blocked: X hours **Request**: [specific ask - what do you need?]
For tasks spanning multiple steps or sessions:
textEvery 10-15 steps: 1. Update progress with current state 2. If nearing limits, summarize state 3. If handoff needed, provide continuation context At session boundaries: 1. Summarize completed work 2. List remaining items 3. Document any blockers 4. Attach evidence to Linear
markdown**Session Checkpoint** **Completed**: - [x] Task 1 - [x] Task 2 **In Progress**: - [ ] Task 3 (at step X) **Remaining**: - [ ] Task 4 - [ ] Task 5 **Blockers**: [if any] **Next Action**: [specific next step]
text# Complete workflow for feature implementation: 1. /start-work {{TICKET_PREFIX}}-XXX └─ Syncs to main, creates branch, sets context 2. Pattern discovery (skill auto-invokes or use /search-pattern) └─ Finds relevant patterns before implementation 3. [Implementation with agent loop] ├─ Implement ├─ Validate (yarn ci:validate) ├─ Adjust if needed └─ Repeat until passing 4. /pre-pr └─ Full validation checklist 5. Create PR with evidence 6. [QA GATE - MANDATORY] └─ Perform QA review └─ Fix any blocking issues └─ Commit QA report 7. Merge (only after QA approval) 8. /end-work └─ Updates Linear, cleans up
| Anti-Pattern | Why It's Bad | Do This Instead | | ------------------------ | --------------------------- | ----------------------------- | | Skip QA review | Miss commit message issues | Always perform QA pre-merge | | No evidence in Linear | No audit trail | Attach evidence every phase | | Ignore CI failures | Broken code reaches main | Fix in agent loop, don't skip | | Force-push without check | May lose teammate's changes | Use --force-with-lease | | Continue when blocked | Waste time, no progress | Escalate with context |
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→fail | 15,789 | 6,206 | -61% | 1 | 1 | 0% | 2,440 | 2,149 | -12% | 0 | 0 | — |
case-02 | fail→pass | 11,189 | 6,552 | -41% | 1 | 1 | 0% | 1,605 | 2,743 | +71% | 0 | 0 | — |
case-03 | pass→pass | 7,251 | 6,877 | -5% | 1 | 1 | 0% | 1,278 | 2,926 | +129% | 0 | 0 | — |
case-04 | pass→pass | 23,695 | 18,041 | -24% | 1 | 1 | 0% | 4,956 | 5,697 | +15% | 0 | 0 | — |
case-05 | pass→pass | 19,062 | 16,213 | -15% | 1 | 1 | 0% | 3,019 | 4,264 | +41% | 0 | 0 | — |
case-06 | pass→pass | 8,470 | 4,117 | -51% | 1 | 1 | 0% | 1,211 | 2,013 | +66% | 0 | 0 | — |
case-07 | pass→pass | 7,133 | 3,167 | -56% | 1 | 1 | 0% | 1,068 | 2,184 | +104% | 0 | 0 | — |
case-08 | fail→pass | 5,461 | 2,236 | -59% | 1 | 1 | 0% | 796 | 2,079 | +161% | 0 | 0 | — |
case-09 | fail→pass | 7,057 | 1,845 | -74% | 1 | 1 | 0% | 1,109 | 2,007 | +81% | 0 | 0 | — |
case-10 | fail→pass | 9,899 | 1,976 | -80% | 1 | 1 | 0% | 1,507 | 2,041 | +35% | 0 | 0 | — |
case-11 | fail→pass | 15,828 | 5,999 | -62% | 1 | 1 | 0% | 2,470 | 2,681 | +9% | 0 | 0 | — |
case-12 | pass→pass | 3,921 | 2,343 | -40% | 1 | 1 | 0% | 568 | 2,018 | +255% | 0 | 0 | — |
case-13 | pass→pass | 12,407 | 2,041 | -84% | 1 | 1 | 0% | 1,936 | 2,025 | +5% | 0 | 0 | — |
case-14 | pass→pass | 10,837 | 3,563 | -67% | 1 | 1 | 0% | 1,665 | 2,295 | +38% | 0 | 0 | — |
case-15 | fail→pass | 6,988 | 1,937 | -72% | 1 | 1 | 0% | 1,117 | 1,988 | +78% | 0 | 0 | — |
case-16 | fail→pass | 9,892 | 2,095 | -79% | 1 | 1 | 0% | 1,579 | 2,019 | +28% | 0 | 0 | — |
case-17 | fail→pass | 11,904 | 2,063 | -83% | 1 | 1 | 0% | 1,784 | 1,948 | +9% | 0 | 0 | — |
case-18 | pass→pass | 12,215 | 2,142 | -82% | 1 | 1 | 0% | 1,753 | 2,015 | +15% | 0 | 0 | — |
case-19 | fail→pass | 11,562 | 2,243 | -81% | 1 | 1 | 0% | 1,641 | 2,023 | +23% | 0 | 0 | — |
case-20 | fail→pass | 14,082 | 2,657 | -81% | 1 | 1 | 0% | 2,221 | 2,087 | -6% | 0 | 0 | — |
case-21 | fail→pass | 10,684 | 2,005 | -81% | 1 | 1 | 0% | 1,375 | 1,973 | +43% | 0 | 0 | — |
case-22 | fail→fail | 11,620 | 2,965 | -74% | 1 | 1 | 0% | 1,530 | 2,113 | +38% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted, and 21 counted toward the lift figure. The other 1 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of +50 percentage points is the difference between those two pass rates over the 21 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.