[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77HCDBTCQH4WMKJ44TG382E":3,"skill-same:01M77HCDBTCQH4WMKJ44TG382E":51},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":29,"commitSha":30,"skillDirectory":31,"forksCount":32,"repositoryHtmlUrl":33,"repositoryHomepageUrl":34,"ownerHtmlUrl":35,"ownerBlogUrl":36,"ownerDescription":6,"updatedAt":37,"install":38,"resources":50},"01M77HCDBTCQH4WMKJ44TG382E","debt-orchestrator",null,"Coordinate bounded, evidence-backed maturity debt work in the current repository, with isolated workers and independent verification. Use for debt burndowns or explicitly requested sustained campaigns.","anthony-chaudhary\u002Ffak","anthony-chaudhary","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F18080164?v=4","01M77GSKCAEKV3JS07J40B94DY","Anthony Chaudhary","01M77GSKD26Z7F4FQQD4VA30VX",48,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fanthony-chaudhary\u002Ffak\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdebt-orchestrator\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: debt-orchestrator\ndescription: Coordinate bounded, evidence-backed maturity debt work in the current repository, with isolated workers and independent verification. Use for debt burndowns or explicitly requested sustained campaigns.\ndisable-model-invocation: false\nuser-invocable: true\nallowed-tools: Read, Bash, Write, Edit, Grep, Glob, Task\nargument-hint: \"[repository or lane] [--wave-size N] [--perf-focus] [--opencode-commands] [--spawn-opencode] (no args = one bounded pass)\"\nmetadata:\n  opencode: agent-permission\n---\n\n# \u002Fdebt-orchestrator — Multi-Agent Maturity Debt Burndown & Performance Acceleration\n\nRetire concrete maturity debt gaps across the codebase using verified lane leases, tree-disjoint multi-agent wave dispatch (via in-harness subagents or OpenCode leaf workers), and rigorous 3x harsher standards on factors driving long-term continual performance gains.\n\nThe shape: **baseline debt lanes (`fak debt-lanes --json`) → plan concurrent-safe waves (`fak debt-orchestrator --plan-waves --perf-focus`) → arbitrate leases (`dos arbitrate`) → parallel wave dispatch (in-harness `task` or OpenCode leaf workers via `--opencode-commands`) → harvest & independently witness → autonomous safe git landing (`fak sync`, `fak commit --path`, `fak sync push`) → compare burndown (`--compare`) → loop.**\n\n---\n\n## Default 9-Surface Class Discovery\n\nDiscovery scans all **9 standard surface classes** by default across the repository, ensuring complete workspace inventory without hiding peripheral, tool, or stewardship debt:\n\n1. **`internal`**: Core runtime, mediation, security, and compute packages.\n2. **`pkg`**: Public shared packages and client SDKs.\n3. **`platform`**: Hardware and OS platform-specific implementations.\n4. **`cmd`**: Command-line interface binaries and verbs.\n5. **`tools`**: Internal developer tooling and submodules.\n6. **`skills`**: Agent skill packs (`.claude\u002Fskills`, `.agents\u002Fskills`).\n7. **`workflows`**: CI\u002FCD workflows (`.github\u002Fworkflows`).\n8. **`examples`**: Example code and runnable demos.\n9. **`docs`**: Technical architecture and reference documentation.\n\nTo restrict scanning to package roots only (`internal`, `pkg`, `platform`), pass `--no-expanded-surfaces` (or `--expanded-surfaces=false`).\n\n---\n\n## The Debt Generation Lifecycle\n\nMaturity debt is an active, deterministic accounting system driven by three core lifecycle mechanisms:\n\n1. **1\u002F10 Stub Admission**:\n   - Every new package or unit of work added to the codebase is immediately admitted to the production denominator at **1\u002F10th (10%) target maturity** admission.\n   - Stubs cannot hide unmeasured: creating a skeleton directory or placeholder package instantly claims its production ceiling in the denominator while contributing minimal realized points.\n   - This ensures immediate structural visibility for new code and blocks phantom growth.\n\n2. **Dilution from Immature WIP**:\n   - Any incomplete, unhardened, or untested work-in-progress expands the production denominator (`DenominatorPoints`) while contributing fractionally to realized points (`RealizedPoints`).\n   - This creates measurable **dilution from WIP** (`DilutionFromWIP`), mathematically lowering the system-wide production grade (`GradePercent`) and grade letter until the unit reaches target maturity.\n   - Dilution forces teams to finish and harden existing WIP before opening new speculative surfaces.\n\n3. **Dynamic Detector Debt**:\n   - 15 independent, typed detector dimensions continuously inspect all scanned surfaces on disk.\n   - Detectors inspect unit code, test files, benchmarks, and configuration for structural defects:\n     - **Thin tests**: test files with zero assertions or mock-only passes.\n     - **Stub markers**: `TODO`, `FIXME`, `XXX`, or `panic(\"not implemented\")` calls (safely scanned across lines >64KB).\n     - **Modularity deficits**: god-files (>1500 lines) and god-functions (>200 lines).\n     - **Formulaic comment gaming**: \"Contract:\"\u002F\"Invariant:\" stuffing or excessive comment bloat (>35%).\n     - **Performance hazards**: unbenchmarked core\u002Fenabling paths or missing runtime proofs.\n     - **Hygiene & safety**: unsafe pointer arithmetic, subprocess execution, undocumented exports, race\u002Ffuzz gaps.\n   - Findings dynamically attach carrying cost interest surcharges (elevating the rate up to the critical compounding band >25%) and degrade health verdicts (`healthy` → `degraded` → `critical`).\n\n---\n\n## The 3x Harsher Performance Discipline\n\nTo ensure that debt retirement translates directly into long-term continual performance gains (rather than synthetic metric-chasing or comment padding), the debt orchestrator enforces five uncompromising performance gates:\n\n1. **Substantive Benchmarks Mandatory (Core & Enabling)**:\n   - Any Core or Enabling lane lacking substantive benchmarks (`!Benchmarked`) incurs an automatic interest carrying cost surcharge (`unbenchmarked_core_perf_hazard (+0.06)` \u002F `unbenchmarked_enabling_perf_hazard (+0.04)`) and a 3x harsher health deduction (-0.15).\n   - Core runtime paths cannot achieve `healthy` status without passing benchmarks.\n   - Benchmark functions MUST use `b.Run` or loop over `b.N` in `\u003Cunit_of_work>\u002F*_test.go`; empty loops or mocked timers are rejected by structure.\n   - Baseline results must be registered in `BENCHMARK-AUTHORITY.md`.\n\n2. **Real Runtime Proofs & Dogfooding (Mocks Prohibited)**:\n   - \"Mocks hide integration bugs\" (Hermes' rule). Core and Enabling paths without real loopback execution or dogfooding (`!Dogfooded`) incur carrying cost surcharges (`unproven_runtime_core_perf_hazard (+0.05)`) and 3x harsher health deductions (-0.15).\n   - Real runtime proof must be wired into `runtime-proofs.json` or verified through on-device integration tests (`*integration*test.go`).\n   - Purely synthetic mock-only tests do not count toward debt retirement.\n\n3. **Zero Tolerance for Modularity Deficits & God-Constructs**:\n   - God-files (>1500 lines) and god-functions (>200 lines), model hardcoding, and tight coupling carry severe compounding interest surcharges (+0.08 to +0.10) and block advancing to `hardened` or `production_grade` rungs.\n   - These monolithic blocks prevent compiler vectorization, SIMD\u002FVulkan\u002FMetal acceleration, and clean parallelization.\n   - Workers must decompose oversized files into single-responsibility units and remove model coupling.\n\n4. **Zero Tolerance for Formulaic Comment Gaming**:\n   - Comments do NOT award maturity points. Adding formulaic \"Contract:\", \"Invariant:\", or \"Fail-closed:\" headers is flagged as comment gaming and penalized with interest rate surcharges.\n   - Comment bloat (>35% comment ratio) is classified as bad debt and prevents promotion to production grade.\n\n5. **Performance-Focused Wave Prioritization (`--perf-focus`)**:\n   - When `--perf-focus` (or `--harsher-perf`) is passed to `fak debt-orchestrator`, wave planning sorts Core and Enabling lanes with performance debt (unbenchmarked, unproven runtime, modularity deficits) ahead of peripheral debt, regardless of raw principal totals.\n\n---\n\n## Scope and Stop Conditions\n\n- **Default pass**: 1 bounded pass with at most 1 admitted wave (4–8 small outcomes across verified disjoint lanes).\n- **Scale to hardware**: Do not exceed physical CPU cores or create thrashing.\n- **Sustained campaigns**: Continue through verified waves until the target grade or target points are achieved, budget is exhausted, or a checkable blocker is encountered.\n- **Inspect active ownership**: Skip held work (`.dos` leases) and leave a resumable receipt. Never launch duplicate workers on held lanes.\n\n---\n\n## Step 1 — Measure Baseline & Plan Safe Waves\n\nCapture baseline state and plan concurrent-safe waves:\n\n```bash\n# Capture full baseline:\nfak debt-lanes --workspace \u003Crepo-root> --json > baseline.json\nfak debt-lanes --top 5\n\n# Plan waves with 3x harsher performance focus:\nfak debt-orchestrator --workspace \u003Crepo-root> --wave-size 4 --max-waves 2 --perf-focus\n\n# Plan waves with ready-to-run OpenCode leaf worker commands:\nfak debt-orchestrator --workspace \u003Crepo-root> --wave-size 4 --max-waves 2 --perf-focus --opencode-commands\n\n# Emit machine-readable wave plan JSON:\nfak debt-orchestrator --workspace \u003Crepo-root> --wave-size 4 --max-waves 2 --perf-focus --opencode-commands --json > wave-plan.json\n```\n\nUse filtering flags to target specific debt areas:\n- `--no-expanded-surfaces`: disable expanded surfaces; scan package roots only (`internal`, `pkg`, `platform`).\n- `--surface \u003Cclass>`: filter by surface class (`internal`, `pkg`, `platform`, `cmd`, `tools`, `skills`, `workflows`, `examples`, `docs`).\n- `--perf-focus` \u002F `--harsher-perf`: prioritize unbenchmarked, unproven, and modularity debt.\n- `--health degraded,critical`: target only unhealthy or compounding lanes.\n- `--criticality core,enabling`: focus on performance-critical infrastructure.\n- `--query \u003Ctext>`: filter across lane name, unit of work, companion, or health issue tokens (`unbenchmarked`, `unproven_runtime`, `missing_tests`, `modularity_deficit`).\n- `--cross-index`: display dual-repo companions, inbound blast radius, and DOS trees.\n\n---\n\n## Step 2 — Pre-Dispatch Lease Arbitration\n\nBefore launching workers, verify tree-disjointness and acquire leases using DOS:\n\n```bash\n# Adjudicate lane admission:\ndos arbitrate --lane \u003Clane> --tree \u003Cunit_of_work>\u002F**\n\n# Acquire durable lease:\ndos lease-lane acquire --lane \u003Clane> --owner debt-orchestrator --tree \u003Cunit_of_work>\u002F**\n```\n\nNever dispatch concurrent workers touching overlapping package directories. Shared Go package edits cause immediate compile breakages.\n\n---\n\n## Step 3 — Wave Dispatch (Subagents or OpenCode Leaf Workers)\n\nChoose between in-harness subagents (Option A) or OpenCode leaf workers (Option B):\n\n### Option A: In-Harness Subagents (`task` Tool)\n\nDispatch concurrent subagents across pairwise tree-disjoint lanes in a single coordinator response:\n\n```text\ntask subagent_type=\"worker\" prompt=\"Maturity Debt Lane: gateway (internal\u002Fgateway)...\"\ntask subagent_type=\"worker\" prompt=\"Maturity Debt Lane: compute (internal\u002Fcompute)...\"\ntask subagent_type=\"worker\" prompt=\"Maturity Debt Lane: engine (internal\u002Fengine)...\"\n```\n\nInstruct each worker to:\n1. Confine edits strictly to `internal\u002F\u003Clane>\u002F...` (1–3 files).\n2. Fulfill missing performance deliverables (benchmarks, runtime proofs, modularity cleanup).\n3. Verify package tests and benchmarks (`go test -v .\u002Finternal\u002F\u003Clane>\u002F...`, `go test -bench=. .\u002Finternal\u002F\u003Clane>\u002F...`).\n4. Execute autonomous safe git landing (`fak sync check`, `fak commit --path`, `fak sync push`).\n\n### Option B: OpenCode Leaf Workers (`--opencode-commands`)\n\nUse generated OpenCode CLI commands to launch detached, user-visible child workers:\n\n```bash\n# Inspect generated commands from wave plan:\nfak debt-orchestrator --wave-size 4 --max-waves 1 --perf-focus --opencode-commands\n\n# Example generated invocation:\nopencode run --variant high --auto --title \"Debt: gateway (internal\u002Fgateway)\" \"Maturity Debt Lane: gateway...\"\n```\n\n#### Five Invariants of OpenCode Leaf Workers:\n1. **High Reasoning Effort (`--variant high`)**: Child workers run with Gemini 3.8 Flash high reasoning mode for rigorous verification.\n2. **Direct Leaf Execution (No Nested Tasks)**: Leaf workers execute deliverables directly within package boundaries. Calling the `task` tool or attempting nested delegation is strictly prohibited (prevents subagent depth limit recursion failure, #12028).\n3. **Automated Approvals (`--auto`)**: Workers run unattended with permissions granted for local file operations.\n4. **Mandatory 4-Phase Delivery & Landing Pipeline**:\n   - Phase 1 [Implement]: Author tests, benchmarks, runtime wiring, or modularity refactor.\n   - Phase 2 [Verify]: Run package verification commands (`go test`, `go vet`, benchmarks).\n   - Phase 3 [Autonomous Safe Git Landing]: Commit by explicit path and push unprompted (`fak sync check`, `fak commit --path`, `fak sync push`).\n   - Phase 4 [Receipt]: Output compact 3-line receipt upon completion.\n5. **Milestone Progress Reporting**: Report progress via structured comment tags (`\u003C!-- fak:progress milestone=\"...\" delta=\"...\" tests=\"...\" -->`).\n\n---\n\n## Step 4 — Witness and Harvest\n\nWorkers return compact receipts. The coordinator independently verifies delivered evidence:\n\n1. **Verify Git Commits**: Confirm commits landed on trunk with valid trailers (`(fak \u003Clane>)`):\n   ```bash\n   git log -n 5 --oneline\n   ```\n2. **Verify Performance Witnesses**: Run benchmarks and tests on the touched packages:\n   ```bash\n   go test -v .\u002Finternal\u002F\u003Clane>\u002F...\n   go test -bench=. -benchmem .\u002Finternal\u002F\u003Clane>\u002F...\n   go vet .\u002Finternal\u002F\u003Clane>\u002F...\n   ```\n3. **Check Denominator Honesty**: Confirm the production grade increased without shrinking the denominator:\n   ```bash\n   fak debt-lanes --workspace \u003Crepo-root> --compare baseline.json\n   ```\n\n---\n\n## Step 5 — Close the Pass & Release Leases\n\n1. Release finished leases:\n   ```bash\n   dos lease-lane release --lane \u003Clane> --owner debt-orchestrator\n   ```\n2. Clean up allocated scratch directories:\n   ```bash\n   fak tree-doctor --reap-scratch debt-orchestrator --json\n   ```\n3. Emit compact verdict receipt (\u003C3 lines):\n   - **Line 1**: Summary of retired debt, grade delta, and waves completed.\n   - **Line 2**: List of matured lanes, touched paths, and landed commit SHAs.\n   - **Line 3**: Checkable verification command.\n\n---\n\n## Verification and Witness\n\nVerify this skill definition using the project gates:\n\n```bash\n# 1. Structural admission and anti-slop verification:\npython tools\u002Fskill_slop_scorecard.py .claude\u002Fskills\u002Fdebt-orchestrator\u002FSKILL.md --corpus .claude\u002Fskills\n\n# 2. Frontmatter portability check:\npython tools\u002Fskill_frontmatter_lint.py --check\n\n# 3. Synchronize cross-harness adapter for OpenCode (.agents\u002Fskills\u002Fdebt-orchestrator\u002FSKILL.md):\ngo run .\u002Fcmd\u002Ffak-project-assets sync --json\n\n# 4. Verify zero unexplained parity gaps across harnesses:\ngo run .\u002Fcmd\u002Ffak-project-assets parity --json\n```\n","# \u002Fdebt-orchestrator — Multi-Agent Maturity Debt Burndown & Performance Acceleration\n\nRetire concrete maturity debt gaps across the codebase using verified lane leases, tree-disjoint multi-agent wave dispatch (via in-harness subagents or OpenCode leaf workers), and rigorous 3x harsher standards on factors driving long-term continual performance gains.\n\nThe shape: **baseline debt lanes (`fak debt-lanes --json`) → plan concurrent-safe waves (`fak debt-orchestrator --plan-waves --perf-focus`) → arbitrate leases (`dos arbitrate`) → parallel wave dispatch (in-harness `task` or OpenCode leaf workers via `--opencode-commands`) → harvest & independently witness → autonomous safe git landing (`fak sync`, `fak commit --path`, `fak sync push`) → compare burndown (`--compare`) → loop.**\n\n---\n\n## Default 9-Surface Class Discovery\n\nDiscovery scans all **9 standard surface classes** by default across the repository, ensuring complete workspace inventory without hiding peripheral, tool, or stewardship debt:\n\n1. **`internal`**: Core runtime, mediation, security, and compute packages.\n2. **`pkg`**: Public shared packages and client SDKs.\n3. **`platform`**: Hardware and OS platform-specific implementations.\n4. **`cmd`**: Command-line interface binaries and verbs.\n5. **`tools`**: Internal developer tooling and submodules.\n6. **`skills`**: Agent skill packs (`.claude\u002Fskills`, `.agents\u002Fskills`).\n7. **`workflows`**: CI\u002FCD workflows (`.github\u002Fworkflows`).\n8. **`examples`**: Example code and runnable demos.\n9. **`docs`**: Technical architecture and reference documentation.\n\nTo restrict scanning to package roots only (`internal`, `pkg`, `platform`), pass `--no-expanded-surfaces` (or `--expanded-surfaces=false`).\n\n---\n\n## The Debt Generation Lifecycle\n\nMaturity debt is an active, deterministic accounting system driven by three core lifecycle mechanisms:\n\n1. **1\u002F10 Stub Admission**:\n   - Every new package or unit of work added to the codebase is immediately admitted to the production denominator at **1\u002F10th (10%) target maturity** admission.\n   - Stubs cannot hide unmeasured: creating a skeleton directory or placeholder package instantly claims its production ceiling in the denominator while contributing minimal realized points.\n   - This ensures immediate structural visibility for new code and blocks phantom growth.\n\n2. **Dilution from Immature WIP**:\n   - Any incomplete, unhardened, or untested work-in-progress expands the production denominator (`DenominatorPoints`) while contributing fractionally to realized points (`RealizedPoints`).\n   - This creates measurable **dilution from WIP** (`DilutionFromWIP`), mathematically lowering the system-wide production grade (`GradePercent`) and grade letter until the unit reaches target maturity.\n   - Dilution forces teams to finish and harden existing WIP before opening new speculative surfaces.\n\n3. **Dynamic Detector Debt**:\n   - 15 independent, typed detector dimensions continuously inspect all scanned surfaces on disk.\n   - Detectors inspect unit code, test files, benchmarks, and configuration for structural defects:\n     - **Thin tests**: test files with zero assertions or mock-only passes.\n     - **Stub markers**: `TODO`, `FIXME`, `XXX`, or `panic(\"not implemented\")` calls (safely scanned across lines >64KB).\n     - **Modularity deficits**: god-files (>1500 lines) and god-functions (>200 lines).\n     - **Formulaic comment gaming**: \"Contract:\"\u002F\"Invariant:\" stuffing or excessive comment bloat (>35%).\n     - **Performance hazards**: unbenchmarked core\u002Fenabling paths or missing runtime proofs.\n     - **Hygiene & safety**: unsafe pointer arithmetic, subprocess execution, undocumented exports, race\u002Ffuzz gaps.\n   - Findings dynamically attach carrying cost interest surcharges (elevating the rate up to the critical compounding band >25%) and degrade health verdicts (`healthy` → `degraded` → `critical`).\n\n---\n\n## The 3x Harsher Performance Discipline\n\nTo ensure that debt retirement translates directly into long-term continual performance gains (rather than synthetic metric-chasing or comment padding), the debt orchestrator enforces five uncompromising performance gates:\n\n1. **Substantive Benchmarks Mandatory (Core & Enabling)**:\n   - Any Core or Enabling lane lacking substantive benchmarks (`!Benchmarked`) incurs an automatic interest carrying cost surcharge (`unbenchmarked_core_perf_hazard (+0.06)` \u002F `unbenchmarked_enabling_perf_hazard (+0.04)`) and a 3x harsher health deduction (-0.15).\n   - Core runtime paths cannot achieve `healthy` status without passing benchmarks.\n   - Benchmark functions MUST use `b.Run` or loop over `b.N` in `\u003Cunit_of_work>\u002F*_test.go`; empty loops or mocked timers are rejected by structure.\n   - Baseline results must be registered in `BENCHMARK-AUTHORITY.md`.\n\n2. **Real Runtime Proofs & Dogfooding (Mocks Prohibited)**:\n   - \"Mocks hide integration bugs\" (Hermes' rule). Core and Enabling paths without real loopback execution or dogfooding (`!Dogfooded`) incur carrying cost surcharges (`unproven_runtime_core_perf_hazard (+0.05)`) and 3x harsher health deductions (-0.15).\n   - Real runtime proof must be wired into `runtime-proofs.json` or verified through on-device integration tests (`*integration*test.go`).\n   - Purely synthetic mock-only tests do not count toward debt retirement.\n\n3. **Zero Tolerance for Modularity Deficits & God-Constructs**:\n   - God-files (>1500 lines) and god-functions (>200 lines), model hardcoding, and tight coupling carry severe compounding interest surcharges (+0.08 to +0.10) and block advancing to `hardened` or `production_grade` rungs.\n   - These monolithic blocks prevent compiler vectorization, SIMD\u002FVulkan\u002FMetal acceleration, and clean parallelization.\n   - Workers must decompose oversized files into single-responsibility units and remove model coupling.\n\n4. **Zero Tolerance for Formulaic Comment Gaming**:\n   - Comments do NOT award maturity points. Adding formulaic \"Contract:\", \"Invariant:\", or \"Fail-closed:\" headers is flagged as comment gaming and penalized with interest rate surcharges.\n   - Comment bloat (>35% comment ratio) is classified as bad debt and prevents promotion to production grade.\n\n5. **Performance-Focused Wave Prioritization (`--perf-focus`)**:\n   - When `--perf-focus` (or `--harsher-perf`) is passed to `fak debt-orchestrator`, wave planning sorts Core and Enabling lanes with performance debt (unbenchmarked, unproven runtime, modularity deficits) ahead of peripheral debt, regardless of raw principal totals.\n\n---\n\n## Scope and Stop Conditions\n\n- **Default pass**: 1 bounded pass with at most 1 admitted wave (4–8 small outcomes across verified disjoint lanes).\n- **Scale to hardware**: Do not exceed physical CPU cores or create thrashing.\n- **Sustained campaigns**: Continue through verified waves until the target grade or target points are achieved, budget is exhausted, or a checkable blocker is encountered.\n- **Inspect active ownership**: Skip held work (`.dos` leases) and leave a resumable receipt. Never launch duplicate workers on held lanes.\n\n---\n\n## Step 1 — Measure Baseline & Plan Safe Waves\n\nCapture baseline state and plan concurrent-safe waves:\n\n```bash\n# Capture full baseline:\nfak debt-lanes --workspace \u003Crepo-root> --json > baseline.json\nfak debt-lanes --top 5\n\n# Plan waves with 3x harsher performance focus:\nfak debt-orchestrator --workspace \u003Crepo-root> --wave-size 4 --max-waves 2 --perf-focus\n\n# Plan waves with ready-to-run OpenCode leaf worker commands:\nfak debt-orchestrator --workspace \u003Crepo-root> --wave-size 4 --max-waves 2 --perf-focus --opencode-commands\n\n# Emit machine-readable wave plan JSON:\nfak debt-orchestrator --workspace \u003Crepo-root> --wave-size 4 --max-waves 2 --perf-focus --opencode-commands --json > wave-plan.json\n```\n\nUse filtering flags to target specific debt areas:\n- `--no-expanded-surfaces`: disable expanded surfaces; scan package roots only (`internal`, `pkg`, `platform`).\n- `--surface \u003Cclass>`: filter by surface class (`internal`, `pkg`, `platform`, `cmd`, `tools`, `skills`, `workflows`, `examples`, `docs`).\n- `--perf-focus` \u002F `--harsher-perf`: prioritize unbenchmarked, unproven, and modularity debt.\n- `--health degraded,critical`: target only unhealthy or compounding lanes.\n- `--criticality core,enabling`: focus on performance-critical infrastructure.\n- `--query \u003Ctext>`: filter across lane name, unit of work, companion, or health issue tokens (`unbenchmarked`, `unproven_runtime`, `missing_tests`, `modularity_deficit`).\n- `--cross-index`: display dual-repo companions, inbound blast radius, and DOS trees.\n\n---\n\n## Step 2 — Pre-Dispatch Lease Arbitration\n\nBefore launching workers, verify tree-disjointness and acquire leases using DOS:\n\n```bash\n# Adjudicate lane admission:\ndos arbitrate --lane \u003Clane> --tree \u003Cunit_of_work>\u002F**\n\n# Acquire durable lease:\ndos lease-lane acquire --lane \u003Clane> --owner debt-orchestrator --tree \u003Cunit_of_work>\u002F**\n```\n\nNever dispatch concurrent workers touching overlapping package directories. Shared Go package edits cause immediate compile breakages.\n\n---\n\n## Step 3 — Wave Dispatch (Subagents or OpenCode Leaf Workers)\n\nChoose between in-harness subagents (Option A) or OpenCode leaf workers (Option B):\n\n### Option A: In-Harness Subagents (`task` Tool)\n\nDispatch concurrent subagents across pairwise tree-disjoint lanes in a single coordinator response:\n\n```text\ntask subagent_type=\"worker\" prompt=\"Maturity Debt Lane: gateway (internal\u002Fgateway)...\"\ntask subagent_type=\"worker\" prompt=\"Maturity Debt Lane: compute (internal\u002Fcompute)...\"\ntask subagent_type=\"worker\" prompt=\"Maturity Debt Lane: engine (internal\u002Fengine)...\"\n```\n\nInstruct each worker to:\n1. Confine edits strictly to `internal\u002F\u003Clane>\u002F...` (1–3 files).\n2. Fulfill missing performance deliverables (benchmarks, runtime proofs, modularity cleanup).\n3. Verify package tests and benchmarks (`go test -v .\u002Finternal\u002F\u003Clane>\u002F...`, `go test -bench=. .\u002Finternal\u002F\u003Clane>\u002F...`).\n4. Execute autonomous safe git landing (`fak sync check`, `fak commit --path`, `fak sync push`).\n\n### Option B: OpenCode Leaf Workers (`--opencode-commands`)\n\nUse generated OpenCode CLI commands to launch detached, user-visible child workers:\n\n```bash\n# Inspect generated commands from wave plan:\nfak debt-orchestrator --wave-size 4 --max-waves 1 --perf-focus --opencode-commands\n\n# Example generated invocation:\nopencode run --variant high --auto --title \"Debt: gateway (internal\u002Fgateway)\" \"Maturity Debt Lane: gateway...\"\n```\n\n#### Five Invariants of OpenCode Leaf Workers:\n1. **High Reasoning Effort (`--variant high`)**: Child workers run with Gemini 3.8 Flash high reasoning mode for rigorous verification.\n2. **Direct Leaf Execution (No Nested Tasks)**: Leaf workers execute deliverables directly within package boundaries. Calling the `task` tool or attempting nested delegation is strictly prohibited (prevents subagent depth limit recursion failure, #12028).\n3. **Automated Approvals (`--auto`)**: Workers run unattended with permissions granted for local file operations.\n4. **Mandatory 4-Phase Delivery & Landing Pipeline**:\n   - Phase 1 [Implement]: Author tests, benchmarks, runtime wiring, or modularity refactor.\n   - Phase 2 [Verify]: Run package verification commands (`go test`, `go vet`, benchmarks).\n   - Phase 3 [Autonomous Safe Git Landing]: Commit by explicit path and push unprompted (`fak sync check`, `fak commit --path`, `fak sync push`).\n   - Phase 4 [Receipt]: Output compact 3-line receipt upon completion.\n5. **Milestone Progress Reporting**: Report progress via structured comment tags (`\u003C!-- fak:progress milestone=\"...\" delta=\"...\" tests=\"...\" -->`).\n\n---\n\n## Step 4 — Witness and Harvest\n\nWorkers return compact receipts. The coordinator independently verifies delivered evidence:\n\n1. **Verify Git Commits**: Confirm commits landed on trunk with valid trailers (`(fak \u003Clane>)`):\n   ```bash\n   git log -n 5 --oneline\n   ```\n2. **Verify Performance Witnesses**: Run benchmarks and tests on the touched packages:\n   ```bash\n   go test -v .\u002Finternal\u002F\u003Clane>\u002F...\n   go test -bench=. -benchmem .\u002Finternal\u002F\u003Clane>\u002F...\n   go vet .\u002Finternal\u002F\u003Clane>\u002F...\n   ```\n3. **Check Denominator Honesty**: Confirm the production grade increased without shrinking the denominator:\n   ```bash\n   fak debt-lanes --workspace \u003Crepo-root> --compare baseline.json\n   ```\n\n---\n\n## Step 5 — Close the Pass & Release Leases\n\n1. Release finished leases:\n   ```bash\n   dos lease-lane release --lane \u003Clane> --owner debt-orchestrator\n   ```\n2. Clean up allocated scratch directories:\n   ```bash\n   fak tree-doctor --reap-scratch debt-orchestrator --json\n   ```\n3. Emit compact verdict receipt (\u003C3 lines):\n   - **Line 1**: Summary of retired debt, grade delta, and waves completed.\n   - **Line 2**: List of matured lanes, touched paths, and landed commit SHAs.\n   - **Line 3**: Checkable verification command.\n\n---\n\n## Verification and Witness\n\nVerify this skill definition using the project gates:\n\n```bash\n# 1. Structural admission and anti-slop verification:\npython tools\u002Fskill_slop_scorecard.py .claude\u002Fskills\u002Fdebt-orchestrator\u002FSKILL.md --corpus .claude\u002Fskills\n\n# 2. Frontmatter portability check:\npython tools\u002Fskill_frontmatter_lint.py --check\n\n# 3. Synchronize cross-harness adapter for OpenCode (.agents\u002Fskills\u002Fdebt-orchestrator\u002FSKILL.md):\ngo run .\u002Fcmd\u002Ffak-project-assets sync --json\n\n# 4. Verify zero unexplained parity gaps across harnesses:\ngo run .\u002Fcmd\u002Ffak-project-assets parity --json\n```\n",{"name":5,"metadata":24,"description":7,"allowed-tools":26,"argument-hint":27,"user-invocable":28,"disable-model-invocation":20},{"opencode":25},"agent-permission","Read, Bash, Write, Edit, Grep, Glob, Task","[repository or lane] [--wave-size N] [--perf-focus] [--opencode-commands] [--spawn-opencode] (no args = one bounded pass)",true,"main","f565b7b7db63e79649f3a02c08108132a86c5d05",".claude\u002Fskills\u002Fdebt-orchestrator",16,"https:\u002F\u002Fgithub.com\u002Fanthony-chaudhary\u002Ffak","https:\u002F\u002Fanthony-chaudhary.github.io\u002Ffak\u002Fshowcase.html","https:\u002F\u002Fgithub.com\u002Fanthony-chaudhary","https:\u002F\u002Flinkedin.com\u002Fin\u002Fanthonychaudhary","2026-11-15 03:06:00",{"source":8,"skillName":5,"commands":39,"prompt":49,"zipAvailable":28},[40,43,46],{"tool":41,"command":42},"npx","npx skills add anthony-chaudhary\u002Ffak --skill debt-orchestrator",{"tool":44,"command":45},"bunx","bunx skills add anthony-chaudhary\u002Ffak --skill debt-orchestrator",{"tool":47,"command":48},"pnpm","pnpm dlx skills add anthony-chaudhary\u002Ffak --skill debt-orchestrator","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fanthony-chaudhary\u002Ffak\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdebt-orchestrator\u002FSKILL.md",[],[52,59,68,75,82,87],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M78V4059KRP2T88YR6Z05MJQ","serve-receipt","On-demand research protocol + deterministic receipt for serving a Hugging Face model on a concrete GPU target — fan out research lanes (model facts\u002Ffiles, engine support matrix, serving recipes, KV\u002Fstate memory math), compute the tiered feasibility verdict with `fak serve-receipt` (never narrated math), and emit a witnessed launch receipt. Use when asked for an \"initial config\", \"serving receipt\", or \"how do I serve \u003Cmodel> on \u003CGPUs>\".","https:\u002F\u002Fgithub.com\u002Fanthony-chaudhary\u002Ffak\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fserve-receipt\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":63,"licenseFileUrl":64,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M77HRGKQV2CJ2K6ZFN4YQ32K","caveman","Ultra-compressed communication mode. Cuts output tokens 65% (measured) by speaking like caveman while keeping full technical accuracy. Supports intensity levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says \"caveman mode\", \"talk like caveman\", \"use caveman\", \"less tokens\", \"be brief\", or invokes \u002Fcaveman. Also auto-triggers when token efficiency is requested.","MIT","https:\u002F\u002Fgithub.com\u002Fanthony-chaudhary\u002Ffak\u002Fblob\u002Fmain\u002Finternal\u002Fsyspromptmmu\u002Fthird_party\u002Fcaveman\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fanthony-chaudhary\u002Ffak\u002Fblob\u002Fmain\u002Finternal\u002Fsyspromptmmu\u002Fthird_party\u002Fcaveman\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M77HRAY3Y3BE7APN5PVJF7NV","quality-report","Score the repo quality and emit a report card.","https:\u002F\u002Fgithub.com\u002Fanthony-chaudhary\u002Ffak\u002Fblob\u002Fmain\u002Finternal\u002Fctxplans\u002Ftestdata\u002Frepo\u002F.claude\u002Fskills\u002Fquality-report\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M77HR9807KHAX13DG9PW2K2Q","ctx-overlay","Compact the context window and prune the memory store when a session grows too long.","https:\u002F\u002Fgithub.com\u002Fanthony-chaudhary\u002Ffak\u002Fblob\u002Fmain\u002Finternal\u002Fctxplans\u002Ftestdata\u002Frepo\u002F.claude\u002Fskills\u002Fctx-overlay\u002FSKILL.md",[],[],{"skillNo":83,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M77HR7XQ9X8F2CY9Z4F2ZEZ3","https:\u002F\u002Fgithub.com\u002Fanthony-chaudhary\u002Ffak\u002Fblob\u002Fmain\u002Finternal\u002Fctxplanlint\u002Ftestdata\u002Frepo\u002F.claude\u002Fskills\u002Fquality-report\u002FSKILL.md",[],[],{"skillNo":88,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M77HR5BVKCTR1WNJGRBSDNX7","https:\u002F\u002Fgithub.com\u002Fanthony-chaudhary\u002Ffak\u002Fblob\u002Fmain\u002Finternal\u002Fctxplanlint\u002Ftestdata\u002Frepo\u002F.claude\u002Fskills\u002Fctx-overlay\u002FSKILL.md",[],[]]