omk-control-loop-debugger
Diagnose agent, runtime, tool, hook, context, provider-routing, DAG, retry, fallback, and evidence-gate failures using an industrial automation feedback-control loop. Use when workflows oscillate, stall, lose context, misroute tools, or need setpoint/sensor/controller/actuator/disturbance/correction analysis.
git clone --depth 1 https://github.com/dmae97/open-multi-agent-kit /tmp/omk-control-loop-debugger && cp -r /tmp/omk-control-loop-debugger/templates/skills/kimi/omk-control-loop-debugger ~/.claude/skills/omk-control-loop-debuggerSKILL.md
## Control-loop Debugger Use this to turn agent failures into a feedback-loop diagnosis instead of a vague postmortem. ## Model - Setpoint: the user's requested target result and acceptance criteria. - Sensor: observed evidence from tests, logs, traces, diffs, screenshots, or user feedback. - Controller: router, scheduler, skill selection, policy, prompt, or state machine deciding the next action. - Actuator: edit, tool call, Kimi run, worker lane, hook, MCP server, or external command. - Disturbance: tool failure, context loss, stale state, version drift, quota, permissions, flaky tests, or hidden dependency. - Correction: retry, fallback, narrowed scope, state cleanup, manual review, test addition, or hard block. ## Debug Process 1. Restate the setpoint in measurable terms. 2. List sensors and mark which are fresh, stale, missing, or contradictory. 3. Compare sensor evidence to the setpoint and name the control error. 4. Identify which controller decision created or failed to correct the error. 5. Check actuator authority, side effects, timeout, and rollback path. 6. Name disturbances separately from root cause. 7. Pick one correction and define evidence that proves the loop is stable. ## Failure Patterns - Oscillation: repeated retries without new evidence. - Saturation: context, token, time, quota, or worker capacity exhausted. - Sensor drift: stale tests, old logs, cached docs, or wrong working directory. - Bad actuator: command edits the wrong path, writes too broadly, or cannot affect the failure. - Controller mismatch: wrong skill, worker, provider, workflow, or fallback route. ## Output ```txt Setpoint: Sensor evidence: Control error: Controller decision: Actuator path: Disturbance: Correction: Verification: Residual risk: ```
Persistent memory, recall, session replay, and memory-governance workflow adapted from rohitg00/agentmemory for OMK. Use when setting up agent memory, deciding what to remember, importing/replaying sessions, reducing repeated context, or auditing memory safety.
Minimal, goal-driven, surgical coding workflow adapted from forrestchang/andrej-karpathy-skills for OMK. Use for coding, refactoring, debugging, and review tasks where assumptions, overengineering, or broad edits could cause regressions.
Legal workflow drafting, triage, review, research planning, legal operations, law-student or clinic support, and legal AI governance adapted from Anthropic claude-for-legal. Use for commercial, privacy, product, corporate, employment, regulatory, AI governance, IP, litigation, legal-clinic, and law-student tasks. Draft-only; attorney review and current source verification required.
Real-engineering alignment, shared-language, TDD, diagnosis, and architecture-review workflow adapted from mattpocock/skills for OMK. Use before non-trivial implementation, ambiguous product work, debugging loops, test-first changes, or codebase architecture cleanup.
Managed-agent teamwork, issue assignment, progress tracking, reusable-skill compounding, and handoff workflow adapted from multica-ai/multica for OMK. Use when coordinating multiple agents, converting work into agent-ready tasks, tracking blockers, or turning repeated solutions into skills.
Review AdaptOrch, OMK, and similar DAG multi-agent orchestration frameworks. Use when assessing DAG node responsibility, dependency edges, worker write authority, fallback/retry/timeout/evidence gates, review/merge boundaries, or reproducible decision traces.
Optional read-only OMK web/social/video research workflow inspired by Panniantong/Agent-Reach. Use for web search, current social evidence, YouTube/Bilibili/Reddit/Twitter/X/RSS/GitHub public research, and Agent Reach availability checks without auto-installing or collecting credentials.
Backend API review for NestJS, Express, FastAPI, database access, validation, auth, error handling, and API contracts.