Agent skill · Compound Engineering
/ce-debug Root-cause debugging with a full causal chain before fixing
ce-debug runs five fixed phases: triage, investigate, root cause, fix and handoff. The agent must explain every step from trigger to symptom with file and line evidence before proposing a change, then asks whether to fix, stop at diagnosis or rethink the design. Fixes are test-first and committed without sweeping in your other edits.
Works with
- Claude Code
- Cursor
- Codex CLI
- GitHub Copilot CLI
- Kimi Code CLI
- Grok Build CLI
- Devin CLI
- Factory Droid
- Qwen Code
- Pi
- Antigravity CLI
- Cline
Used forDebugging
When to use it
- Something fails, throws or runs slowly and the cause is not obvious.
- A ticket or issue describes a bug you want diagnosed and fixed with a regression test.
- Several attempted fixes have not held.
How it works
- 1Triage and investigate
It fetches any issue of record, reproduces the failure, traces backwards and searches earlier tickets and PRs.
- 2Close the causal chain
It does not move on until the chain from trigger to symptom has no gaps, testing one hypothesis at a time.
- 3Present, then ask
It shows the cause, proposed fix and test plan, then asks whether to fix now, stop at diagnosis or rethink the design.
- 4Fix test-first
On the fix path it branches off the default branch if needed and records which files the fix owns.
- 5Hand off safely
It commits only fix-owned files and opens a PR only when the branch is clean and a PR-capable remote exists; otherwise it commits locally.
What it steers the agent away from
- Changing several things at once to see what helps
- Opening tickets to manufacture a record for a bug
- Leaking secrets from logs or traces into output or commits
Install this skill
It installs with the Compound Engineering pack.
Claude CodeRefresh the marketplace before updating an existing install.
/plugin marketplace add EveryInc/compound-engineering-plugin
/plugin install compound-engineeringCursorRun in Cursor Agent chat; Grok Bot picks it up from the same Cursor account.
/add-plugin compound-engineeringCodex CLIRestart Codex afterwards; invoke skills with $skill-name.
codex plugin marketplace add EveryInc/compound-engineering-plugin
codex plugin add compound-engineering@compound-engineering-pluginGitHub Copilot CLICopilot reads the Claude-compatible manifests directly.
copilot plugin marketplace add EveryInc/compound-engineering-plugin
copilot plugin install compound-engineering@compound-engineering-pluginKimi Code CLIRun /reload or start a new session afterwards.
/plugins install https://github.com/EveryInc/compound-engineering-pluginGrok Build CLITracks the repository; update with grok plugin update.
grok plugin install EveryInc/compound-engineering-pluginDevin CLISkills appear as /compound-engineering: in a new session.
devin plugins install EveryInc/compound-engineering-pluginFactory DroidDroid converts the Claude Code plugin format automatically.
droid plugin marketplace add https://github.com/EveryInc/compound-engineering-plugin
droid plugin install compound-engineering@compound-engineering-pluginQwen CodeInstalled straight from GitHub.
qwen extensions install EveryInc/compound-engineering-plugin:compound-engineeringPiThe pi-subagents package is required for skills that dispatch subagents.
pi install git:github.com/EveryInc/compound-engineering-plugin
pi install npm:pi-subagentsAntigravity CLIVerify with agy plugin list.
agy plugin install https://github.com/EveryInc/compound-engineering-pluginClineEnable Skills in Cline settings first and start a new task afterwards.
git clone https://github.com/EveryInc/compound-engineering-plugin
./compound-engineering-plugin/.cline/scripts/install-skills.sh --globalCommands come from the author’s README; check it for changes before you run them.
Questions
What if the hypotheses run out?
After two or three unconfirmed hypotheses or three failed fixes, it stops retrying and investigates why the approach is failing.
Can it run unattended?
Yes. In pipeline or return-to-caller mode it applies only fixes that do not reverse a deliberate decision and returns a fixed status value.
More guides from Compound Engineering
/ce-brainstormSettle what to build before the agent plans or codesTalks through a vague idea one question at a time and writes a requirements-only plan sized to the work.Read the guide →/ce-code-reviewRisk-matched multi-agent code review that reports firstReviews a diff or PR with risk-selected reviewer personas against the plan, reporting findings without applying them by default.Read the guide →/ce-compoundTurn each solved problem into a test, rule or learningRecords a solved problem's lesson as a test, lint rule, coding standard or repo learning, or audits stale learnings.Read the guide →/ce-planImplementation plans that research choices but never write codeTurns requirements or a request into an implementation plan, researching technical choices without writing production code.Read the guide →/ce-workExecute a plan unit by unit with a mandatory review gateImplements a plan or clear request unit by unit, verifies it locally and requires a code review before shipping.Read the guide →/lfgHands-off pipeline from request to open pull requestRoutes a request to the right skills and runs hands-off to an open pull request with review and CI handled.Read the guide →
Also in this pack
/ce-babysit-prWatches an open GitHub PR, routing review comments and CI failures to fixes until it is ready or blocked.↗/ce-commitCreates local commits with explicit file lists and outcome-focused messages, branching first if you are on the default branch.↗/ce-doc-reviewReviews a requirements doc, plan or spec through role-specific lenses and fixes problems that would derail the work.↗/ce-dogfoodDrives every user-visible change on the branch in a real browser, fixes small breakages with tests and writes a QA report.↗/ce-explainExplains how something works or why it took its shape, citing commits, PR discussion and source lines.↗/ce-handoffWrites a pointer-first handoff note so a fresh agent can continue the work, or finds and resumes an earlier one.↗/ce-ideateGenerates many repo-grounded ideas, critiques every one and explains only the survivors before any brainstorming.↗/ce-noslopRewrites, checks or drafts prose to remove AI writing tells while keeping every fact from the source.↗/ce-optimizeMoves a named metric with a measured experiment loop on a dedicated branch, keeping winning changes and reverting the rest.↗/ce-polishPuts a working feature in front of you on a live dev server and turns your typed or spoken feedback into UX fixes.↗/ce-povGives a grounded verdict on adopting an outside tool, a document or a set of approaches, optionally polling other models.↗/ce-product-pulsePulls usage, performance and error signals for a time window into a one-page report without personal data.↗
Summary by trendhub. The skill itself lives in EveryInc/compound-engineering-plugin/skills/ce-debug by Every (MIT); read the full, current text there.