[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M718VR1GN8BHJWBM5D7BCTFT":3,"skill-same:01M718VR1GN8BHJWBM5D7BCTFT":116},{"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":37,"linkOnly":38,"markdownContent":39,"markdownBody":40,"frontMatter":41,"refName":42,"commitSha":43,"skillDirectory":44,"forksCount":45,"repositoryHtmlUrl":46,"repositoryHomepageUrl":6,"ownerHtmlUrl":47,"ownerBlogUrl":48,"ownerDescription":6,"updatedAt":49,"install":50,"resources":63},"01M718VR1GN8BHJWBM5D7BCTFT","oma-orchestration",null,"Automated multi-agent orchestration that spawns CLI subagents in parallel, coordinates through durable file state, and monitors progress. Use for orchestration, parallel execution, and automated multi-agent workflows.","vasceannie\u002Fslopgate","vasceannie","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F20271133?v=4","01M718RGA8VV2EF22XJEMXVQ0Q","Travis Vasceannie","01M718RGB0GWSXBBZBN67Q6NHQ",1,"MIT","https:\u002F\u002Fgithub.com\u002Fvasceannie\u002Fslopgate\u002Fblob\u002Fmaster\u002F.agents\u002Fskills\u002Foma-orchestration\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36],"oma orchestration","orchestration","coordinates","agent workflows","state","parallel execution","multi","file","use","execution","for","parallel","subagents","multi-agent","cli","progress","workflows","agent orchestration","2026-11-10 10:12:30",false,"---\nname: oma-orchestration\ndescription: Automated multi-agent orchestration that spawns CLI subagents in\n  parallel, coordinates through durable file state, and monitors progress. Use\n  for orchestration, parallel execution, and automated multi-agent workflows.\n---\n\n# Orchestration - Automated Multi-Agent Coordination\n\n## Scheduling\n\n### Goal\nAutomatically orchestrate multi-agent execution with task decomposition, native\u002Ffallback dispatch, memory coordination, progress monitoring, verification, QA cross-review, retry, and result collection.\n\n### Intent signature\n- User asks to orchestrate, run in parallel, automate multi-agent execution, or coordinate full-stack work end to end.\n- Task requires multiple specialist agents and a persistent review\u002Fremediation loop.\n\n### When to use\n- Complex feature requires multiple specialized agents working in parallel\n- User wants automated execution without manually spawning agents\n- Full-stack implementation spanning backend, frontend, mobile, and QA\n- User says \"run it automatically\", \"run in parallel\", or similar automation requests\n\n### When NOT to use\n- Simple single-domain task -> use the specific agent directly\n- User wants step-by-step manual control -> use oma-coordination\n- Quick bug fixes or minor changes\n\n### Expected inputs\n- Complex feature or workflow request\n- Project config, model\u002Fvendor routing, agent types, task constraints, and workspace\u002Fsession needs\n- Acceptance criteria and verification expectations\n\n### Expected outputs\n- Orchestrator session state, task board, progress files, result files, and final summary\n- Specialist agent outputs after mechanical checks, automated verify, and QA cross-review\n- Review history and retry\u002Fremediation status when loops fail\n\n### Dependencies\n- `.agents\u002Foma-config.yaml`, `.codex\u002Fagents\u002F*.toml`, `.gemini\u002Fagents\u002F*.md`, or fallback `oma agent spawn`\n- Memory provider config, subagent prompt template, scripts, task templates, verify script, and session metrics\n\n### Control-flow features\n- Branches by vendor\u002Fnative dispatch availability, priority tiers, agent completion\u002Ffailure, verification status, QA verdict, retry limits, and clarification debt\n- Spawns processes\u002Fagents and reads\u002Fwrites memory\u002Fresult files\n- Preserves unresolved evidence when bounded recovery stops\n\n## Structural Flow\n\n### Entry\n1. Resolve agent vendor routing and runtime dispatch path.\n2. Decompose request into priority-tiered tasks.\n3. For each task, classify into one or more `domain_tags` by matching against the `Intent signature` block of each installed `.agents\u002Fskills\u002Foma-*\u002FSKILL.md`. Tasks that match no domain confidently inherit the union of their parent feature's tags.\n4. Build a per-task `exposed_skill_set` = skills whose name is in `domain_tags`. If `|exposed_skill_set| \u003C 2` after classification, fall back to the full installed set (flat exposure) and record `exposure_fallback: true` in the task board.\n5. Create session memory and task board with `exposed_skill_set` and `exposure_fallback` per task.\n\n### Scenes\n1. **PREPARE**: Plan, setup session ID, and initialize memory files.\n2. **ACT**: Spawn agents by priority tier within parallelism limits.\n3. **VERIFY**: Run self-check, `oma verify`, and QA cross-review loop.\n4. **RECOVER**: Retry failed agents with review history when limits allow.\n5. **FINALIZE**: Collect verified claims, compile summary, and preserve progress artifacts.\n\n### Transitions\n- If native dispatch is available for current runtime\u002Fvendor, use it.\n- If vendors differ or native path is unavailable, use fallback spawn.\n- If verify or QA fails, feed feedback back to the implementation agent.\n- If recovery limits are exceeded, preserve review history and return `partial` or `failed`; never force completion.\n- If a task's `exposed_skill_set` excludes a skill that a recovered failure indicates was needed, re-classify the task and re-dispatch with the expanded set rather than retrying against the original narrow set.\n\n### Failure and recovery\n- Retry failed agents up to configured limits.\n- Re-spawn with review history when review loop is exhausted.\n- Continue independent work after recording clarification debt; ask only for a material missing decision.\n\n### Exit\n- Success: all tasks complete, verify\u002Freview pass, and results are summarized.\n- Partial success: failed agents, exhausted review loops, or clarification debt are explicit.\n\n## Logical Operations\n\n### Actions\n| Action | SSL primitive | Evidence |\n|--------|---------------|----------|\n| Read config and task context | `READ` | oma config, routing, request |\n| Classify task into domain tags | `INFER` | task text vs each skill's `Intent signature` |\n| Compute exposed skill set | `SELECT` | intersection of domain tags and installed skills |\n| Select dispatch path | `SELECT` | Native vs fallback |\n| Write session state | `WRITE` | task board and memory files |\n| Spawn agents | `CALL_TOOL` | native CLI or `oma agent spawn` |\n| Poll progress | `READ` | progress\u002Fresult files |\n| Run verification | `CALL_TOOL` | `oma verify`, tests, QA |\n| Update retry state | `UPDATE_STATE` | loop counters and CD metrics |\n| Report final result | `NOTIFY` | compiled summary |\n\n### Tools and instruments\n- Native CLI subagent dispatch, fallback spawn scripts, memory tools, verify script, QA agent\n- Session metrics, prompt templates, task templates\n\n### Canonical command path\n```bash\noma agent spawn \u003Cagent-type> \u003Cprompt-file> \u003Csession-id> --task-id \u003Ctask.id> -w \u003Cworkspace>\noma verify \u003Cagent-type> --workspace \u003Cworkspace> --json\n```\n\nWhen native runtime dispatch is available, prefer the runtime-specific native path listed in this skill before falling back to `oma agent spawn`.\n\n### Resource scope\n| Scope | Resource target |\n|-------|-----------------|\n| `LOCAL_FS` | Session, task-board, progress, result, config files |\n| `PROCESS` | Agent CLI processes and verify scripts |\n| `MEMORY` | Session state and clarification debt |\n| `CODEBASE` | Workspaces owned by spawned agents |\n\n### Preconditions\n- Task is decomposable into specialist agent work.\n- Runtime\u002Fvendor dispatch path or fallback exists.\n\n### Effects and side effects\n- Spawns agents and writes session\u002Fprogress\u002Fresult artifacts.\n- May cause code changes through specialist agents.\n- May trigger iterative review and retries.\n\n### Guardrails\n1. Orchestrate per-agent dispatch from the project configuration before spawning any agent.\n2. If `target_vendor === current_runtime_vendor` and the runtime has a verified native path, use native dispatch.\n3. Otherwise fall back to `oma agent spawn`.\n4. Never exceed configured parallelism or the aggregate recovery budget. Ordinary retries and exploration hypotheses both consume it.\n5. Keep session state, task-board state, progress files, claims, and receipts aligned. Use the plan task ID on every spawn and native begin\u002Ffinish path.\n6. Domain gating must be soft: prefer a narrower `exposed_skill_set`, but fall back to flat exposure when classification confidence is low rather than starving a task of a required specialist.\n\nCurrent native executor paths:\n- Claude Code: Agent tool with `.claude\u002Fagents\u002F{agent}.md` definitions (multiple Agent tool calls in one message run in parallel; results return synchronously — no polling)\n- OpenCode: native `task` tool with `subagent_type: {agent-id}`; do not use `oma agent spawn` for same-session OpenCode work because it will not appear as a native child task\n- Codex CLI: `codex exec \"@agent ...\"` using `.codex\u002Fagents\u002F*.toml`\n- Gemini CLI: `gemini -p \"@agent ...\"` using `.gemini\u002Fagents\u002F*.md`\n\n### Configuration\n\n| Setting | Default | Description |\n|---------|---------|-------------|\n| MAX_PARALLEL | 3 | Max concurrent subagents |\n| MAX_RECOVERY_ATTEMPTS | 3 | Total retries and exploration hypotheses per task, including the original attempt |\n| POLL_INTERVAL | 30s | Status check interval |\n| Turn guidance | role-specific | Checkpoint\u002Fresume signal, not a hard stop or approval boundary |\n\nThese are workflow defaults. Resolve runtime\u002Fvendor settings from project configuration; do not depend on this skill's stale `config\u002Fcli-config.yaml` for runtime behavior.\n\n### Memory Configuration\n\nMemory provider and tool names are configurable via `.agents\u002Fmcp.json` (not the repo-root `.mcp.json`, which is the Claude Code MCP server config):\n```json\n{\n  \"memoryConfig\": {\n    \"provider\": \"file\",\n    \"basePath\": \".agents\u002Fstate\u002Fmemories\",\n    \"tools\": {\n      \"read\": \"Read\",\n      \"write\": \"Write\",\n      \"edit\": \"Edit\"\n    }\n  }\n}\n```\n\n### Workflow Phases\n\n**PHASE 1 - Plan**: Analyze request -> decompose tasks -> generate session ID\n**PHASE 1.5 - Domain gate**: For each task, intersect `Intent signature` matches across installed skills to derive `exposed_skill_set`. Record `exposure_fallback: true` when the intersection is too small to be useful and the flat library is used instead.\n**PHASE 2 - Setup**: Create `orchestrator-session-{sessionId}.md` and `task-board-{sessionId}.md` (include `exposed_skill_set` per task)\n**PHASE 3 - Execute**: Spawn agents by priority tier (never exceed MAX_PARALLEL); inject only `exposed_skill_set` into each subagent's available specialist list\n**PHASE 4 - Monitor**: Poll every POLL_INTERVAL; handle completed\u002Ffailed\u002Fcrashed agents\n**PHASE 4.5 - Verify**: Run mechanical checks for every completed agent; run `oma verify {agent-type}` only for `backend`, `frontend`, `mobile`, `qa`, `debug`, and `pm`; then run QA cross-review for every completed implementation\n**PHASE 5 - Collect**: Read claims and run-scoped reports for plan tasks whose checks passed; compile summary without deleting evidence.\n\n### Memory File Ownership\n\n| File | Owner | Others |\n|------|-------|--------|\n| `orchestrator-session-{sessionId}.md` | orchestrator | read-only |\n| `task-board-{sessionId}.md` | orchestrator | read-only |\n| `progress-{agentId}-{taskId}-{runId}-{sessionId}.md` | that run | orchestrator reads |\n| `result-{agentId}-{taskId}-{runId}-{sessionId}.md` | that run | orchestrator reads |\n\n### Agent-to-Agent Review Loop (PHASE 4.5)\n\nAfter each agent completes, enter an iterative review loop, not a single-pass verification.\n\n### Loop Flow\n\n```\nAgent completes work\n    ↓\n[1] Mechanical Self-Check: lint, type-check, tests, diff scope\n    ↓\n[2] Verify: For supported types, run `oma verify {agent-type} --workspace {workspace}`\n    Unsupported (`db`, `refactor`, `architecture`, `tf-infra`, `docs`) → record SKIP and continue\n    ↓ FAIL → Agent receives feedback, fixes, back to [1]\n    ↓ PASS\n[3] Cross-Review: QA agent reviews the changes\n    ↓ FAIL → Agent receives review feedback, fixes, back to [1]\n    ↓ PASS\nAccept result\n```\n\n### Step Details\n\n**[1] Mechanical Self-Check** (formerly \"Self-Review\"):\nBefore requesting external review, the implementation agent must:\n- Run lint, type-check, and tests in the workspace\n- Verify only planned files were modified (diff scope check)\n- Fix any mechanical failures (compile errors, test failures)\n\n**Quality judgment is NOT performed in this step.**\nDesign quality, architecture alignment, and acceptance criteria satisfaction\nare evaluated exclusively in [3] Cross-Review by the QA agent.\nReason: Self-evaluation bias causes agents to consistently overrate their own output\n(ref: Anthropic harness design research).\n\n**[2] Automated Verify**:\n```bash\noma verify {agent-type} --workspace {workspace} --json\n```\n- Run only for `backend`, `frontend`, `mobile`, `qa`, `debug`, and `pm`.\n- For `db`, `refactor`, `architecture`, `tf-infra`, and `docs`, record that automated verify is unsupported and continue to QA cross-review after the mechanical checks.\n- **PASS (exit 0)**: Proceed to cross-review\n- **FAIL (exit 1)**: Feed verify output back to the agent as correction context\n\n**[3] Cross-Review**: Spawn QA agent to review the changes:\n- QA agent reads the diff, runs checks, evaluates against acceptance criteria\n\u003C!-- oma-docs:ignore-start -->\n- If `docs\u002FCODE-REVIEW.md` exists, QA agent uses it as the review checklist\n\u003C!-- oma-docs:ignore-end -->\n- QA agent outputs: PASS (with optional nits) or FAIL (with specific issues)\n- On FAIL: issues are fed back to the implementation agent for fixing\n\n### Loop Limits\n\n| Counter | Max | On Exceeded |\n|---------|-----|-------------|\n| Self-check + fix cycles | 3 | Escalate to cross-review regardless |\n| Cross-review rejections | 2 | Report to user with review history |\n| Total loop iterations | 5 | Stop recovery; preserve failed checks and return `partial` or `failed` |\n\n### Review Feedback Format\n\nWhen feeding review results back to the implementation agent:\n```\n## Review Feedback (iteration {n}\u002F{max})\n**Reviewer**: {self \u002F verify \u002F qa-agent}\n**Verdict**: FAIL\n**Issues**:\n1. {specific issue with file and line reference}\n2. {specific issue}\n**Fix instruction**: {what to change}\n```\n\nThis replaces single-pass verification. Most \"nitpicking\" should happen agent-to-agent.\nHuman review is reserved for final approval, not catching lint errors.\n\n### Recovery Budget (after review loop exhaustion)\n\nMaintain one per-task budget: `attempts_used`, `attempts_remaining`, and any\nconfigured cost cap. The original attempt, each ordinary retry, and each\nexploration hypothesis consume one attempt. Before starting recovery, reserve\nthe complete next action; do not exceed the budget or start an incomplete\nexploration round.\n\n- First remaining attempt: re-spawn with review history.\n- Later attempts: choose either one different retry or a 2–3 hypothesis round\n  only if enough attempts and cost remain.\n- On cap exhaustion, preserve all checks, review findings, and unresolved work.\n  The task is `partial` or `failed`, never `completed`.\n\n### Clarification Debt (CD) Monitoring\n\nTrack user corrections during session execution. See `..\u002F_shared\u002Fcore\u002Fsession-metrics.md` for full protocol.\n\n### Event Classification\nWhen user sends feedback during session:\n- **clarify** (+10): User answering agent's question\n- **correct** (+25): User correcting agent's misunderstanding\n- **redo** (+40): User rejecting work, requesting restart\n\n### Threshold Actions\n| CD Score | Action |\n|----------|--------|\n| CD >= 50 | QA writes a session-scoped RCA\u002Flesson artifact |\n| CD >= 80 | Continue independent work; ask only for a material missing decision |\n| `redo` >= 2 | Pause only disputed dependent work and record the boundary |\n\n### Recording\nAfter each user correction event:\n```\n[EDIT](\"session-metrics-{sessionId}.md\", append event to Events table)\n```\n\nAt session end, if CD >= 50:\n1. Include CD summary in final report\n2. Trigger QA agent RCA generation\n3. Write `lessons-{sessionId}.md` with prevention measures\n\n## References\n- Prompt template: `resources\u002Fsubagent-prompt-template.md`\n- Memory schema: `resources\u002Fmemory-schema.md`\n- Scripts: `scripts\u002Fspawn-agent.sh`, `scripts\u002Fparallel-run.sh`, `scripts\u002Fverify.sh`\n- Task templates: `templates\u002F`\n- Skill-to-agent mapping: `..\u002F_shared\u002Fcore\u002Fskill-routing.md`\n- Verification: `scripts\u002Fverify.sh \u003Cagent-type>`\n- Session metrics: `..\u002F_shared\u002Fcore\u002Fsession-metrics.md`\n- API contract template (SSOT): `..\u002F_shared\u002Fcore\u002Fapi-contracts\u002Ftemplate.md`; read generated contracts from `.agents\u002Fresults\u002Fapi-contracts\u002F` (run artifact) or `docs\u002Fplans\u002Fcontracts\u002F` (durable spec)\n- Context loading: `..\u002F_shared\u002Fcore\u002Fcontext-loading.md`\n- Difficulty guide: `..\u002F_shared\u002Fcore\u002Fdifficulty-guide.md`\n- Clarification protocol: `..\u002F_shared\u002Fcore\u002Fclarification-protocol.md`\n- Context budget: `..\u002F_shared\u002Fcore\u002Fcontext-budget.md`\n- Code intelligence: `..\u002F_shared\u002Fcore\u002Fcode-intelligence.md`\n- Runtime lessons: `..\u002F_shared\u002Fcore\u002Fsession-metrics.md`","# Orchestration - Automated Multi-Agent Coordination\n\n## Scheduling\n\n### Goal\nAutomatically orchestrate multi-agent execution with task decomposition, native\u002Ffallback dispatch, memory coordination, progress monitoring, verification, QA cross-review, retry, and result collection.\n\n### Intent signature\n- User asks to orchestrate, run in parallel, automate multi-agent execution, or coordinate full-stack work end to end.\n- Task requires multiple specialist agents and a persistent review\u002Fremediation loop.\n\n### When to use\n- Complex feature requires multiple specialized agents working in parallel\n- User wants automated execution without manually spawning agents\n- Full-stack implementation spanning backend, frontend, mobile, and QA\n- User says \"run it automatically\", \"run in parallel\", or similar automation requests\n\n### When NOT to use\n- Simple single-domain task -> use the specific agent directly\n- User wants step-by-step manual control -> use oma-coordination\n- Quick bug fixes or minor changes\n\n### Expected inputs\n- Complex feature or workflow request\n- Project config, model\u002Fvendor routing, agent types, task constraints, and workspace\u002Fsession needs\n- Acceptance criteria and verification expectations\n\n### Expected outputs\n- Orchestrator session state, task board, progress files, result files, and final summary\n- Specialist agent outputs after mechanical checks, automated verify, and QA cross-review\n- Review history and retry\u002Fremediation status when loops fail\n\n### Dependencies\n- `.agents\u002Foma-config.yaml`, `.codex\u002Fagents\u002F*.toml`, `.gemini\u002Fagents\u002F*.md`, or fallback `oma agent spawn`\n- Memory provider config, subagent prompt template, scripts, task templates, verify script, and session metrics\n\n### Control-flow features\n- Branches by vendor\u002Fnative dispatch availability, priority tiers, agent completion\u002Ffailure, verification status, QA verdict, retry limits, and clarification debt\n- Spawns processes\u002Fagents and reads\u002Fwrites memory\u002Fresult files\n- Preserves unresolved evidence when bounded recovery stops\n\n## Structural Flow\n\n### Entry\n1. Resolve agent vendor routing and runtime dispatch path.\n2. Decompose request into priority-tiered tasks.\n3. For each task, classify into one or more `domain_tags` by matching against the `Intent signature` block of each installed `.agents\u002Fskills\u002Foma-*\u002FSKILL.md`. Tasks that match no domain confidently inherit the union of their parent feature's tags.\n4. Build a per-task `exposed_skill_set` = skills whose name is in `domain_tags`. If `|exposed_skill_set| \u003C 2` after classification, fall back to the full installed set (flat exposure) and record `exposure_fallback: true` in the task board.\n5. Create session memory and task board with `exposed_skill_set` and `exposure_fallback` per task.\n\n### Scenes\n1. **PREPARE**: Plan, setup session ID, and initialize memory files.\n2. **ACT**: Spawn agents by priority tier within parallelism limits.\n3. **VERIFY**: Run self-check, `oma verify`, and QA cross-review loop.\n4. **RECOVER**: Retry failed agents with review history when limits allow.\n5. **FINALIZE**: Collect verified claims, compile summary, and preserve progress artifacts.\n\n### Transitions\n- If native dispatch is available for current runtime\u002Fvendor, use it.\n- If vendors differ or native path is unavailable, use fallback spawn.\n- If verify or QA fails, feed feedback back to the implementation agent.\n- If recovery limits are exceeded, preserve review history and return `partial` or `failed`; never force completion.\n- If a task's `exposed_skill_set` excludes a skill that a recovered failure indicates was needed, re-classify the task and re-dispatch with the expanded set rather than retrying against the original narrow set.\n\n### Failure and recovery\n- Retry failed agents up to configured limits.\n- Re-spawn with review history when review loop is exhausted.\n- Continue independent work after recording clarification debt; ask only for a material missing decision.\n\n### Exit\n- Success: all tasks complete, verify\u002Freview pass, and results are summarized.\n- Partial success: failed agents, exhausted review loops, or clarification debt are explicit.\n\n## Logical Operations\n\n### Actions\n| Action | SSL primitive | Evidence |\n|--------|---------------|----------|\n| Read config and task context | `READ` | oma config, routing, request |\n| Classify task into domain tags | `INFER` | task text vs each skill's `Intent signature` |\n| Compute exposed skill set | `SELECT` | intersection of domain tags and installed skills |\n| Select dispatch path | `SELECT` | Native vs fallback |\n| Write session state | `WRITE` | task board and memory files |\n| Spawn agents | `CALL_TOOL` | native CLI or `oma agent spawn` |\n| Poll progress | `READ` | progress\u002Fresult files |\n| Run verification | `CALL_TOOL` | `oma verify`, tests, QA |\n| Update retry state | `UPDATE_STATE` | loop counters and CD metrics |\n| Report final result | `NOTIFY` | compiled summary |\n\n### Tools and instruments\n- Native CLI subagent dispatch, fallback spawn scripts, memory tools, verify script, QA agent\n- Session metrics, prompt templates, task templates\n\n### Canonical command path\n```bash\noma agent spawn \u003Cagent-type> \u003Cprompt-file> \u003Csession-id> --task-id \u003Ctask.id> -w \u003Cworkspace>\noma verify \u003Cagent-type> --workspace \u003Cworkspace> --json\n```\n\nWhen native runtime dispatch is available, prefer the runtime-specific native path listed in this skill before falling back to `oma agent spawn`.\n\n### Resource scope\n| Scope | Resource target |\n|-------|-----------------|\n| `LOCAL_FS` | Session, task-board, progress, result, config files |\n| `PROCESS` | Agent CLI processes and verify scripts |\n| `MEMORY` | Session state and clarification debt |\n| `CODEBASE` | Workspaces owned by spawned agents |\n\n### Preconditions\n- Task is decomposable into specialist agent work.\n- Runtime\u002Fvendor dispatch path or fallback exists.\n\n### Effects and side effects\n- Spawns agents and writes session\u002Fprogress\u002Fresult artifacts.\n- May cause code changes through specialist agents.\n- May trigger iterative review and retries.\n\n### Guardrails\n1. Orchestrate per-agent dispatch from the project configuration before spawning any agent.\n2. If `target_vendor === current_runtime_vendor` and the runtime has a verified native path, use native dispatch.\n3. Otherwise fall back to `oma agent spawn`.\n4. Never exceed configured parallelism or the aggregate recovery budget. Ordinary retries and exploration hypotheses both consume it.\n5. Keep session state, task-board state, progress files, claims, and receipts aligned. Use the plan task ID on every spawn and native begin\u002Ffinish path.\n6. Domain gating must be soft: prefer a narrower `exposed_skill_set`, but fall back to flat exposure when classification confidence is low rather than starving a task of a required specialist.\n\nCurrent native executor paths:\n- Claude Code: Agent tool with `.claude\u002Fagents\u002F{agent}.md` definitions (multiple Agent tool calls in one message run in parallel; results return synchronously — no polling)\n- OpenCode: native `task` tool with `subagent_type: {agent-id}`; do not use `oma agent spawn` for same-session OpenCode work because it will not appear as a native child task\n- Codex CLI: `codex exec \"@agent ...\"` using `.codex\u002Fagents\u002F*.toml`\n- Gemini CLI: `gemini -p \"@agent ...\"` using `.gemini\u002Fagents\u002F*.md`\n\n### Configuration\n\n| Setting | Default | Description |\n|---------|---------|-------------|\n| MAX_PARALLEL | 3 | Max concurrent subagents |\n| MAX_RECOVERY_ATTEMPTS | 3 | Total retries and exploration hypotheses per task, including the original attempt |\n| POLL_INTERVAL | 30s | Status check interval |\n| Turn guidance | role-specific | Checkpoint\u002Fresume signal, not a hard stop or approval boundary |\n\nThese are workflow defaults. Resolve runtime\u002Fvendor settings from project configuration; do not depend on this skill's stale `config\u002Fcli-config.yaml` for runtime behavior.\n\n### Memory Configuration\n\nMemory provider and tool names are configurable via `.agents\u002Fmcp.json` (not the repo-root `.mcp.json`, which is the Claude Code MCP server config):\n```json\n{\n  \"memoryConfig\": {\n    \"provider\": \"file\",\n    \"basePath\": \".agents\u002Fstate\u002Fmemories\",\n    \"tools\": {\n      \"read\": \"Read\",\n      \"write\": \"Write\",\n      \"edit\": \"Edit\"\n    }\n  }\n}\n```\n\n### Workflow Phases\n\n**PHASE 1 - Plan**: Analyze request -> decompose tasks -> generate session ID\n**PHASE 1.5 - Domain gate**: For each task, intersect `Intent signature` matches across installed skills to derive `exposed_skill_set`. Record `exposure_fallback: true` when the intersection is too small to be useful and the flat library is used instead.\n**PHASE 2 - Setup**: Create `orchestrator-session-{sessionId}.md` and `task-board-{sessionId}.md` (include `exposed_skill_set` per task)\n**PHASE 3 - Execute**: Spawn agents by priority tier (never exceed MAX_PARALLEL); inject only `exposed_skill_set` into each subagent's available specialist list\n**PHASE 4 - Monitor**: Poll every POLL_INTERVAL; handle completed\u002Ffailed\u002Fcrashed agents\n**PHASE 4.5 - Verify**: Run mechanical checks for every completed agent; run `oma verify {agent-type}` only for `backend`, `frontend`, `mobile`, `qa`, `debug`, and `pm`; then run QA cross-review for every completed implementation\n**PHASE 5 - Collect**: Read claims and run-scoped reports for plan tasks whose checks passed; compile summary without deleting evidence.\n\n### Memory File Ownership\n\n| File | Owner | Others |\n|------|-------|--------|\n| `orchestrator-session-{sessionId}.md` | orchestrator | read-only |\n| `task-board-{sessionId}.md` | orchestrator | read-only |\n| `progress-{agentId}-{taskId}-{runId}-{sessionId}.md` | that run | orchestrator reads |\n| `result-{agentId}-{taskId}-{runId}-{sessionId}.md` | that run | orchestrator reads |\n\n### Agent-to-Agent Review Loop (PHASE 4.5)\n\nAfter each agent completes, enter an iterative review loop, not a single-pass verification.\n\n### Loop Flow\n\n```\nAgent completes work\n    ↓\n[1] Mechanical Self-Check: lint, type-check, tests, diff scope\n    ↓\n[2] Verify: For supported types, run `oma verify {agent-type} --workspace {workspace}`\n    Unsupported (`db`, `refactor`, `architecture`, `tf-infra`, `docs`) → record SKIP and continue\n    ↓ FAIL → Agent receives feedback, fixes, back to [1]\n    ↓ PASS\n[3] Cross-Review: QA agent reviews the changes\n    ↓ FAIL → Agent receives review feedback, fixes, back to [1]\n    ↓ PASS\nAccept result\n```\n\n### Step Details\n\n**[1] Mechanical Self-Check** (formerly \"Self-Review\"):\nBefore requesting external review, the implementation agent must:\n- Run lint, type-check, and tests in the workspace\n- Verify only planned files were modified (diff scope check)\n- Fix any mechanical failures (compile errors, test failures)\n\n**Quality judgment is NOT performed in this step.**\nDesign quality, architecture alignment, and acceptance criteria satisfaction\nare evaluated exclusively in [3] Cross-Review by the QA agent.\nReason: Self-evaluation bias causes agents to consistently overrate their own output\n(ref: Anthropic harness design research).\n\n**[2] Automated Verify**:\n```bash\noma verify {agent-type} --workspace {workspace} --json\n```\n- Run only for `backend`, `frontend`, `mobile`, `qa`, `debug`, and `pm`.\n- For `db`, `refactor`, `architecture`, `tf-infra`, and `docs`, record that automated verify is unsupported and continue to QA cross-review after the mechanical checks.\n- **PASS (exit 0)**: Proceed to cross-review\n- **FAIL (exit 1)**: Feed verify output back to the agent as correction context\n\n**[3] Cross-Review**: Spawn QA agent to review the changes:\n- QA agent reads the diff, runs checks, evaluates against acceptance criteria\n\u003C!-- oma-docs:ignore-start -->\n- If `docs\u002FCODE-REVIEW.md` exists, QA agent uses it as the review checklist\n\u003C!-- oma-docs:ignore-end -->\n- QA agent outputs: PASS (with optional nits) or FAIL (with specific issues)\n- On FAIL: issues are fed back to the implementation agent for fixing\n\n### Loop Limits\n\n| Counter | Max | On Exceeded |\n|---------|-----|-------------|\n| Self-check + fix cycles | 3 | Escalate to cross-review regardless |\n| Cross-review rejections | 2 | Report to user with review history |\n| Total loop iterations | 5 | Stop recovery; preserve failed checks and return `partial` or `failed` |\n\n### Review Feedback Format\n\nWhen feeding review results back to the implementation agent:\n```\n## Review Feedback (iteration {n}\u002F{max})\n**Reviewer**: {self \u002F verify \u002F qa-agent}\n**Verdict**: FAIL\n**Issues**:\n1. {specific issue with file and line reference}\n2. {specific issue}\n**Fix instruction**: {what to change}\n```\n\nThis replaces single-pass verification. Most \"nitpicking\" should happen agent-to-agent.\nHuman review is reserved for final approval, not catching lint errors.\n\n### Recovery Budget (after review loop exhaustion)\n\nMaintain one per-task budget: `attempts_used`, `attempts_remaining`, and any\nconfigured cost cap. The original attempt, each ordinary retry, and each\nexploration hypothesis consume one attempt. Before starting recovery, reserve\nthe complete next action; do not exceed the budget or start an incomplete\nexploration round.\n\n- First remaining attempt: re-spawn with review history.\n- Later attempts: choose either one different retry or a 2–3 hypothesis round\n  only if enough attempts and cost remain.\n- On cap exhaustion, preserve all checks, review findings, and unresolved work.\n  The task is `partial` or `failed`, never `completed`.\n\n### Clarification Debt (CD) Monitoring\n\nTrack user corrections during session execution. See `..\u002F_shared\u002Fcore\u002Fsession-metrics.md` for full protocol.\n\n### Event Classification\nWhen user sends feedback during session:\n- **clarify** (+10): User answering agent's question\n- **correct** (+25): User correcting agent's misunderstanding\n- **redo** (+40): User rejecting work, requesting restart\n\n### Threshold Actions\n| CD Score | Action |\n|----------|--------|\n| CD >= 50 | QA writes a session-scoped RCA\u002Flesson artifact |\n| CD >= 80 | Continue independent work; ask only for a material missing decision |\n| `redo` >= 2 | Pause only disputed dependent work and record the boundary |\n\n### Recording\nAfter each user correction event:\n```\n[EDIT](\"session-metrics-{sessionId}.md\", append event to Events table)\n```\n\nAt session end, if CD >= 50:\n1. Include CD summary in final report\n2. Trigger QA agent RCA generation\n3. Write `lessons-{sessionId}.md` with prevention measures\n\n## References\n- Prompt template: `resources\u002Fsubagent-prompt-template.md`\n- Memory schema: `resources\u002Fmemory-schema.md`\n- Scripts: `scripts\u002Fspawn-agent.sh`, `scripts\u002Fparallel-run.sh`, `scripts\u002Fverify.sh`\n- Task templates: `templates\u002F`\n- Skill-to-agent mapping: `..\u002F_shared\u002Fcore\u002Fskill-routing.md`\n- Verification: `scripts\u002Fverify.sh \u003Cagent-type>`\n- Session metrics: `..\u002F_shared\u002Fcore\u002Fsession-metrics.md`\n- API contract template (SSOT): `..\u002F_shared\u002Fcore\u002Fapi-contracts\u002Ftemplate.md`; read generated contracts from `.agents\u002Fresults\u002Fapi-contracts\u002F` (run artifact) or `docs\u002Fplans\u002Fcontracts\u002F` (durable spec)\n- Context loading: `..\u002F_shared\u002Fcore\u002Fcontext-loading.md`\n- Difficulty guide: `..\u002F_shared\u002Fcore\u002Fdifficulty-guide.md`\n- Clarification protocol: `..\u002F_shared\u002Fcore\u002Fclarification-protocol.md`\n- Context budget: `..\u002F_shared\u002Fcore\u002Fcontext-budget.md`\n- Code intelligence: `..\u002F_shared\u002Fcore\u002Fcode-intelligence.md`\n- Runtime lessons: `..\u002F_shared\u002Fcore\u002Fsession-metrics.md`",{"name":5,"description":7},"master","5fab8004af1390aa17b3447f2780766c8bf2482c",".agents\u002Fskills\u002Foma-orchestration",0,"https:\u002F\u002Fgithub.com\u002Fvasceannie\u002Fslopgate","https:\u002F\u002Fgithub.com\u002Fvasceannie","thingswithstuff.io","2026-11-12 20:22:46",{"source":8,"skillName":5,"commands":51,"prompt":61,"zipAvailable":62},[52,55,58],{"tool":53,"command":54},"npx","npx skills add vasceannie\u002Fslopgate --skill oma-orchestration",{"tool":56,"command":57},"bunx","bunx skills add vasceannie\u002Fslopgate --skill oma-orchestration",{"tool":59,"command":60},"pnpm","pnpm dlx skills add vasceannie\u002Fslopgate --skill oma-orchestration","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fvasceannie\u002Fslopgate\u002Fblob\u002Fmaster\u002F.agents\u002Fskills\u002Foma-orchestration\u002FSKILL.md",true,[64,70,74,78,84,88,92,96,100,104,108,112],{"path":65,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":68,"sourceHtmlUrl":69},"config\u002Fcli-config.yaml","REFERENCE","参考文档",3441,"https:\u002F\u002Fgithub.com\u002Fvasceannie\u002Fslopgate\u002Fblob\u002Fmaster\u002F.agents\u002Fskills\u002Foma-orchestration\u002Fconfig\u002Fcli-config.yaml",{"path":71,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":72,"sourceHtmlUrl":73},"resources\u002Fmemory-schema.md",6820,"https:\u002F\u002Fgithub.com\u002Fvasceannie\u002Fslopgate\u002Fblob\u002Fmaster\u002F.agents\u002Fskills\u002Foma-orchestration\u002Fresources\u002Fmemory-schema.md",{"path":75,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":76,"sourceHtmlUrl":77},"resources\u002Fsubagent-prompt-template.md",4587,"https:\u002F\u002Fgithub.com\u002Fvasceannie\u002Fslopgate\u002Fblob\u002Fmaster\u002F.agents\u002Fskills\u002Foma-orchestration\u002Fresources\u002Fsubagent-prompt-template.md",{"path":79,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":82,"sourceHtmlUrl":83},"scripts\u002Fparallel-run.sh","SCRIPT","脚本",231,"https:\u002F\u002Fgithub.com\u002Fvasceannie\u002Fslopgate\u002Fblob\u002Fmaster\u002F.agents\u002Fskills\u002Foma-orchestration\u002Fscripts\u002Fparallel-run.sh",{"path":85,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":86,"sourceHtmlUrl":87},"scripts\u002Fspawn-agent.sh",178,"https:\u002F\u002Fgithub.com\u002Fvasceannie\u002Fslopgate\u002Fblob\u002Fmaster\u002F.agents\u002Fskills\u002Foma-orchestration\u002Fscripts\u002Fspawn-agent.sh",{"path":89,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":90,"sourceHtmlUrl":91},"scripts\u002Fverify.sh",542,"https:\u002F\u002Fgithub.com\u002Fvasceannie\u002Fslopgate\u002Fblob\u002Fmaster\u002F.agents\u002Fskills\u002Foma-orchestration\u002Fscripts\u002Fverify.sh",{"path":93,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":94,"sourceHtmlUrl":95},"templates\u002Fbackend-task.md",608,"https:\u002F\u002Fgithub.com\u002Fvasceannie\u002Fslopgate\u002Fblob\u002Fmaster\u002F.agents\u002Fskills\u002Foma-orchestration\u002Ftemplates\u002Fbackend-task.md",{"path":97,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":98,"sourceHtmlUrl":99},"templates\u002Fdebug-task.md",339,"https:\u002F\u002Fgithub.com\u002Fvasceannie\u002Fslopgate\u002Fblob\u002Fmaster\u002F.agents\u002Fskills\u002Foma-orchestration\u002Ftemplates\u002Fdebug-task.md",{"path":101,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":102,"sourceHtmlUrl":103},"templates\u002Ffrontend-task.md",598,"https:\u002F\u002Fgithub.com\u002Fvasceannie\u002Fslopgate\u002Fblob\u002Fmaster\u002F.agents\u002Fskills\u002Foma-orchestration\u002Ftemplates\u002Ffrontend-task.md",{"path":105,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":106,"sourceHtmlUrl":107},"templates\u002Fmobile-task.md",604,"https:\u002F\u002Fgithub.com\u002Fvasceannie\u002Fslopgate\u002Fblob\u002Fmaster\u002F.agents\u002Fskills\u002Foma-orchestration\u002Ftemplates\u002Fmobile-task.md",{"path":109,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":110,"sourceHtmlUrl":111},"templates\u002Fqa-task.md",441,"https:\u002F\u002Fgithub.com\u002Fvasceannie\u002Fslopgate\u002Fblob\u002Fmaster\u002F.agents\u002Fskills\u002Foma-orchestration\u002Ftemplates\u002Fqa-task.md",{"path":113,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":114,"sourceHtmlUrl":115},"templates\u002Ftasks-example.yaml",418,"https:\u002F\u002Fgithub.com\u002Fvasceannie\u002Fslopgate\u002Fblob\u002Fmaster\u002F.agents\u002Fskills\u002Foma-orchestration\u002Ftemplates\u002Ftasks-example.yaml",[117,144,167,188,211,230],{"skillNo":118,"name":119,"nameZh":6,"description":120,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":37},"01M71951JDWCYMS8GDC2C7395D","type-strictness","Enforce strict type compliance by eliminating `Any` types and `# type: ignore` comments. Use when:\n(1) Editing code that contains `Any` as a type annotation\n(2) Code has `# type: ignore` or `# pyright: ignore` comments\n(3) User requests type fixes or type strictness enforcement\n(4) Importing from untyped third-party libraries\n(5) User asks to \"fix types\", \"remove Any\", or \"add proper typing\"\n(6) Pyrefly or mypy reports type errors that need resolution\n(7) Code review reveals weak typing patterns\nFollows hierarchical resolution: codebase inference → type stubs → library inspection → type guards → casting (last resort).","https:\u002F\u002Fgithub.com\u002Fvasceannie\u002Fslopgate\u002Fblob\u002Fmaster\u002Fbundle\u002Fshared\u002Fskills\u002Ftype-strictness\u002FSKILL.md",[],[124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143],"type","type strictness","typing","types","remove","code review","fix","errors","inspection","when","code","review","reports","libraries","casting","pyrefly","mypy","pyright","library","patterns",{"skillNo":145,"name":146,"nameZh":6,"description":147,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":148,"categories":149,"keywords":150,"publishedAt":37},"01M7194XGBQXSE7Y5BZ4K5CSTK","slopgate-test-extender","Extend Python test suites with parametrization, fixture reuse, and quality enforcement. Use when asked to add tests, extend existing tests, improve test coverage, consolidate duplicate tests, fix test quality issues, or when Slopgate reports untested-production-code, missing test references, or coverage gaps. Triggers on requests like \"add tests for X\", \"extend these tests\", \"parametrize tests\", \"consolidate tests\", \"fix test quality\", \"improve test coverage\", \"write tests for this function\", \"test this module\", \"behavior tests\", \"integration tests\", \"missing tests\", \"coverage holes\", \"untested code\", or when a hook denies with test-related findings.","https:\u002F\u002Fgithub.com\u002Fvasceannie\u002Fslopgate\u002Fblob\u002Fmaster\u002Fbundle\u002Fshared\u002Fskills\u002Fslopgate-test-extender\u002FSKILL.md",[],[151,152,153,154,155,130,156,157,158,159,160,161,133,134,162,163,136,164,165,166],"slopgate test extender","test","coverage","fixture","testing","issues","write tests","improve","only","cleanup","loop","candidate","consolidate","references","opencode","orchestrator",{"skillNo":168,"name":169,"nameZh":6,"description":170,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":171,"categories":172,"keywords":173,"publishedAt":37},"01M7194RMVQS5YJJ4ZEFXX20VS","slopgate-intelligent-coding-patterns","Pattern-selection playbook for agents editing code with complex branching, stateful parsers\u002Fworkflows, duplicated skeletons, policy checks, or ordered transforms. Load before refactoring if\u002Felif dispatch chains, boolean-flag state machines, repeated validation predicates, parallel provider\u002Flanguage implementations, or regex\u002Fcontent transformation pipelines. Also load when asked to \"apply a design pattern\", \"which pattern should I use here\", \"refactor this switch statement\", \"replace if-elif chain\", \"state machine pattern\", \"strategy pattern\", \"template method\", \"pipeline pattern\", \"specification pattern\", \"dispatch table\", \"guard clause refactor\", \"reduce cyclomatic complexity\", or when Slopgate fires PY-CODE-014, PY-CODE-017, PY-CODE-018, QUALITY-LINT-001, or PY-QUALITY-010. Use with behavior-locking tests and avoid pattern theater for simple one-off code.","https:\u002F\u002Fgithub.com\u002Fvasceannie\u002Fslopgate\u002Fblob\u002Fmaster\u002Fbundle\u002Fshared\u002Fskills\u002Fslopgate-intelligent-coding-patterns\u002FSKILL.md",[],[174,175,143,176,177,178,179,180,181,182,183,184,185,159,160,186,35,133,187,134],"coding patterns","slopgate intelligent coding patterns","coding","stateful","complexity","branch","which","chain","parsers","pipeline","selection","design","utility","reduce",{"skillNo":189,"name":190,"nameZh":6,"description":191,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":192,"categories":193,"keywords":194,"publishedAt":37},"01M7194KTXBM85GB0W7JKFQD55","slopgate-hygiene-orchestrator","Orchestrate systematic elimination of linter warnings and errors across Python, TypeScript, and Rust codebases. Use when asked to \"clean up lints\", \"fix all warnings\", \"run hygiene\", \"eliminate type errors\", \"orchestrate code quality fixes\", \"fix lint errors\", \"resolve quality gate failures\", \"pass CI checks\", \"reduce tech debt\", \"refactor to pass hooks\", or when a Slopgate hook denies with QUALITY-LINT-001, PY-CODE-017, PY-CODE-018, or any collector finding. This skill coordinates multiple code-hygiene-enforcer agents working in parallel on non-conflicting file groupings, tracks progress persistently via JSON exports, and loops until all issues are resolved. CRITICAL: Never run linters directly—always use `slopgate lint check` as the primary gate, discover project-specific tools from config files, and export findings to JSON for tracking.","https:\u002F\u002Fgithub.com\u002Fvasceannie\u002Fslopgate\u002Fblob\u002Fmaster\u002Fbundle\u002Fshared\u002Fskills\u002Fslopgate-hygiene-orchestrator\u002FSKILL.md",[],[195,196,166,197,130,198,199,200,201,202,160,187,203,204,205,206,207,208,209,210],"slopgate hygiene orchestrator","hygiene","project","ci","local","clean","never run","files","run","lint check","systematic","config","typescript","debt","quality-gates","hook",{"skillNo":212,"name":213,"nameZh":6,"description":214,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":215,"categories":216,"keywords":217,"publishedAt":37},"01M7194G50FZYXXT8VNK360RPA","slopgate-code-smell-utility-locator","Autoactivate when code-smell hooks or reviews mention feature envy, thin wrappers, duplicate helpers, duplicate code,\nscattered helpers, builders\u002Ffactories\u002Fconfig\u002Fconstants\u002Fdataclass reuse, PY-CODE-012, PY-CODE-013, QUALITY-LINT-001,\nor repeated slopgate code-quality denials. Also load when asked to \"find existing helpers\", \"consolidate utilities\",\n\"search for duplicate code\", \"where is this already implemented\", \"reuse existing logic\", \"don't duplicate this\",\n\"find similar functions\", \"utility inventory\", \"code smell radar\", or before adding new helpers\u002Fwrappers so agents can\nfind existing shared utilities and consolidate instead of duplicating.","https:\u002F\u002Fgithub.com\u002Fvasceannie\u002Fslopgate\u002Fblob\u002Fmaster\u002Fbundle\u002Fshared\u002Fskills\u002Fslopgate-code-smell-utility-locator\u002FSKILL.md",[],[186,218,134,219,153,220,221,222,223,159,224,133,225,163,165,226,227,206,228,229],"slopgate code smell utility locator","shared","reviews","inventory","search","hooks","new","coordination","radar","code-quality","Utilities","dataclass",{"skillNo":231,"name":232,"nameZh":6,"description":233,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":234,"categories":235,"keywords":236,"publishedAt":37},"01M7194AWG1Q37F9756H4SFDH9","slopgate-code-hygiene-refactor","Recovery playbook for Slopgate and project quality failures. Load after hook\u002Flint denials such as PY-CODE-017 flat sibling modules, PY-CODE-018 oversized modules, QUALITY-LINT-001 post-edit quality backstops, PY-QUALITY-010 magic numbers \u002F repeated literals, PY-CODE-012\u002FPY-CODE-013 smell findings, type-suppression bans, duplicate helpers, or repeated hygiene retry loops. Also load when asked to \"refactor this module\", \"split this file\", \"extract a class\", \"reduce complexity\", \"fix god class\", \"flatten module hierarchy\", \"move code to a package\", \"extract helpers\", \"consolidate duplicates\", \"replace magic numbers with constants\", or when a hook blocks an edit with structural complaints. Focuses on preserving public APIs while refactoring toward packages, cohesive modules, typed seams, and focused tests.","https:\u002F\u002Fgithub.com\u002Fvasceannie\u002Fslopgate\u002Fblob\u002Fmaster\u002Fbundle\u002Fshared\u002Fskills\u002Fslopgate-code-hygiene-refactor\u002FSKILL.md",[],[237,238,134,239,196,240,178,241,242,197,243,221,244,130,159,186,133,187,225,163],"code hygiene","slopgate code hygiene refactor","refactor","modules","duplicates","retry","move","structural"]