A systematic diagnostic tool to identify prompt failure patterns, A/B test variations, and generate high-performance optimized instructions.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install prompt-debugger
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 prompt-debugger using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The Prompt Debugger is a specialized utility designed to bridge the gap between unexpected AI outputs and desired results. It analyzes the structural integrity of prompts to identify root causes of failure such as ambiguity, conflicting instructions, and missing context. By applying proven engineering principles, this tool helps developers refine their interactions with LLMs for more predictable and accurate performance.
As part of the Openclaw Skills ecosystem, it provides a structured framework for prompt engineering that goes beyond simple trial and error. It offers a static analysis of instructions, allowing users to categorize failure modes—like hallucination or instruction following—and apply targeted fixes to improve the quality of system prompts and agent instructions.
To integrate this prompt engineering utility into your workflow, ensure you have the Openclaw Skills environment configured. You can then use the following commands to analyze your prompts:
# Diagnose a failing prompt
openclaw run prompt-debugger diagnose --prompt "[your prompt here]" --output "[failing output]"
# Generate an optimized rewrite
openclaw run prompt-debugger rewrite --prompt "[your prompt here]"
# Score the quality of a prompt
openclaw run prompt-debugger score --prompt "[your prompt here]"
The Prompt Debugger organizes its analysis using structured reports and metadata. The following schema defines the output for diagnostic data:
| Field | Description | Type |
|---|---|---|
| diagnosis | Contains identified issues, failure modes, and proposed fixes | Object |
| rewrite | The final optimized version of the prompt | String |
| score | Numerical rating (0-10) across multiple quality dimensions | Object |
| anti_patterns | List of detected problematic language or structural flaws | Array |
It supports multiple output formats including text for readability, json for programmatic integration, and markdown for documentation.
Loading
A comprehensive linting and validation tool designed to audit Maven pom.xml files for structural integrity, dependency hygiene, and plugin best practices.

A specialized tool for validating Stylelint configuration files to ensure modern standards, rule accuracy, and optimal plugin usage.

Automatically diagnose code errors, build failures, and infrastructure logs to provide actionable root cause analysis and code fixes.

A comprehensive automation skill for detecting discrepancies between Infrastructure-as-Code definitions and actual deployed cloud resources.

A comprehensive tool for validating, auditing, and evolving Apache Avro schemas across registries and local environments.

A powerful utility to validate .editorconfig syntax and automatically fix style violations in your source files.








































