A disciplined, multi-phase diagnosis loop designed for tracing hard bugs and performance regressions through structured reproduction and feedback loops.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install mp-diagnose
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install mp-diagnose using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The diagnose skill provides a rigorous framework for troubleshooting complex technical anomalies, shifting debugging from guesswork to a structured engineering discipline. By prioritizing the creation of an automated, deterministic feedback loop, it ensures that developers and AI agents can isolate root causes efficiently rather than staring blindly at code.
This workflow navigates through feedback creation, reproduction confirmation, multi-hypothesis ranking, precision instrumentation, regression testing, and post-mortem cleanups. It is optimized to raise the reproduction rate of non-deterministic bugs, establishing an execution path where software errors are predictably captured, analyzed, and permanently resolved.
[DEBUG-a4f2]) or utilizing interactive debuggers to test the active hypotheses.To initiate the diagnostic routine within Openclaw Skills, invoke the tool inside your repository execution environment.
Ensure that relevant project domain glossaries and Architectural Decision Records (ADRs) are readily available in your current working directory to assist the agent in understanding contextual boundaries.
# Trigger the debugging and diagnostic agent flow
openclaw run diagnose --target="bug-description-or-issue-id"
# Grep and clean up temporary tagged instrumentation when complete
grep -rn "[DEBUG-" ./
The diagnose skill organizes its troubleshooting lifecycle through the following artifacts and structures:
| Phase Component | Artifact / Strategy Type | Description |
|---|---|---|
| Feedback Seams | Test Scripts / Mocks | Unit, integration, e2e, Playwright/Puppeteer scripts, or throwaway harnesses used to expose the error path. |
| Hypothesis Format | Falsifiable String | Formatted explicitly as: "If |
| Trace Elements | Unique Tagged Logs | Temporary logging structures injected across codebase branches utilizing a unified grep-able prefix like [DEBUG-...]. |
| Baseline Capture | Timing Harness / Profiler Maps | High-resolution timestamps (performance.now()), query execution plans, or profiler states to track performance metrics. |
git bisect run by determining states across distinct codebase versions or historical datasets.scripts/hitl-loop.template.sh when an environment requires physical user interface interactions./improve-codebase-architecture skill when poor test isolation or tight coupling prevents proper seam injection.Loading
A dedicated AI agent skill for building quick, throwaway prototypes to validate architectural logic or UI designs before committing to production code.

A systematic, test-driven development workflow designed to guide AI agents through precise, vertical red-green-refactor loops.

An aggressive, investigative AI-driven interviewing framework designed to stress-test your system architectures, technical designs, and plans until true alignment is achieved.

An expert database modeling skill that architecturally transforms business requirements into production-ready schemas, ER diagrams, indexing strategies, and optimized DDL definitions.

A multi-dimensional code quality gate and security audit skill that validates correctness, architecture, performance, and AI agent integrity before merge or deployment.

An automated short-video generation skill that transforms a single topic prompt into a complete, high-quality video ready for multi-platform distribution.








































