enterprise-debug
4-phase systematic debugging: investigate, blast radius scan, root cause identification, TDD fix.
Skill by anotherben
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/anotherben-enterprise-debug
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: testing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/enterprise-debug
What's inside
- Skill name
enterprise-debug- Description
- 4-phase systematic debugging: investigate, blast radius scan, root cause identification, TDD fix. Finds root causes not symptoms. Blast radius scan catches sibling bugs. 3-fail circuit breaker prevents fix-forward loops. Use for any bug, test failure, or unexpected behavior.
- License
- MIT
- Instructions
- 545 lines in SKILL.md · view on GitHub
Before installing
- Instructions call the network
Agent Skills spec issues
- body: 545 lines (spec recommends under 500)
Files (2)
- SKILL.md
- evals.json · evals/
SKILL.md (first lines)
### LEARNED BEHAVIORS (auto-loaded)
Before starting, load domain-specific lessons:
1. Call `cortex_lessons(tag='feedback:DEBUG')` to retrieve corrections specific to this skill
2. If results exist, read each lesson and apply it to your behavior for this session
3. During execution, if the user corrects your approach, write a domain-tagged annotation:
```json
{"target":"skill:enterprise-debug","note":"<correction>","author":"enterprise-debug","tags":["feedback","feedback:DEBUG","lesson"],"timestamp":"<ISO>"}
```
Append to `.cortex/knowledge.jsonl`
# Enterprise Debug — 4-Phase Systematic Debugging
## Philosophy
Bugs are never unique. If it is a bug here, it is a bug elsewhere. The blast radius scan is what separates enterprise debugging from guessing.
Three rules:
1. **Find the root cause, not the symptom.** A symptom fix creates two future bugs.
2. **Scan the blast radius.** The same class of bug exists in sibling functions, sibling files, and validation code.
3. **Prove the fix with TDD.** A fix without a failing test is a guess.
```
/enterprise-debug order duplication — processOrder called twice in orderHandler.js
/enterprise-debug test failure: userService.test.js "rejects empty email" now fails
/enterprise-debug users report wrong totals on dashboard page
```
---
## STACK RESOLUTION
Read `.claude/enterprise-state/stack-profile.json` at skill start. Extract:
- `$TEST_CMD` = `commands.test_all`
- `$TEST_SINGLE` = `commands.test_single`
- `$SOURCE_DIR` = `structure.source_dirs.backend`
- `$TENANT_FIELD` = `multi_tenancy.field`
- `$FILE_EXTENSIONS` = `conventions.file_extensions`
If no profile exists: BLOCKED — run /enterprise-discover first.
---
## Phase 1: INVESTIGATE (5-15 minutes)
Goal: reproduce the bug, trace the execution path, form a hypothesis.
### Step 1: Reproduce
Get the exact error. Not a description of the error — the actual error.
```
REPRODUCTION
════════════
Trigger: [exact steps to reproduce — API call, user action, cron job]
Error: [exact error message, stack trace, or wrong behavior]
Expected: [what should happen instead]
Frequency: [always / intermittent / only under specific conditions]
Environment: [dev / prod / both]
```
If you cannot reproduce, you cannot fix. Spend time here.
**For test failures**: run the failing test and paste the full output.
```bash
$TEST_SINGLE --testPathPattern="<pattern>" --no-coverage 2>&1
```
**For runtime errors**: find the error in logs or reproduce via API call.
```bash
curl -s http://localhost:3000/api/<endpoint> | jq .
```
**For "wrong data" reports**: query the database directly to confirm the data is wrong (not just the display).
```sql
SELECT relevant_columns FROM table WHERE conditions;
```
### Step 2: Trace the Execution Path
Follow the data end-to-end. Every layer. No shortcuts.
```
EXECUTION TRACE
═══════════════
Entry point: [route/job/webhook that triggers the code]
→ Middleware: [auth, validation — file:line]
→ Route: [handler function — file:line]
→ Service: [business logic function — file:line]
→ Query: [SQL or ORM call — file:line]
→ DB: [table(s) affected, actual data state]
→ Response: [what gets returned — file:line]
→ Consumer: [frontend hook/component — file:line]
→ Render: [what the user sees — file:line]
```
Read every file in the trace. Do not skip layers. The bug is often NOT where you think it is.
### Step 3: Form a Hypothesis
```
HYPOTHESIS
══════════
I think: [specific root cause]
Because: [evidence from the trace — cite file:line]
This predicts: [if I'm right, then X should also be true]
Verification: [how to test the hypothesis — a query, a log check, a test]
```
Run the verification. If the hypothesis is wrong, form a new one. Do not proceed to Phase 2 until the hypothesis is verified.
### Step 3b: Challenge the Hypothesis (But-Why)
Before accepting your hypothesis, drill into it:
```
HYPOTHESIS CHALLENGE
════════════════════From anotherben/agentic-governance, MIT.
More from anotherben/agentic-governance
- 0.479score
enterprise
anotherben
Use when starting a feature, significant refactor, enterprise hardening effort, or multi-stage bugfix that needs end-to-end workflow control, portable…
SkillCFreshness: CClaude Code +9 - 0.479score
enterprise-contract
anotherben
Use when an enterprise implementation plan exists and work needs a locked contract with postconditions, invariants, consumer mapping, and traceability before…
SkillCFreshness: CClaude Code +9 - 0.479score
enterprise-discover
anotherben
Use when starting enterprise work in a new repo, new worktree, unfamiliar package, or new computer, or whenever commands, paths, conventions, portability, or…
SkillCFreshness: CClaude Code +9 - 0.479score
enterprise-forge
anotherben
Use when reviewed enterprise work still needs adversarial probing, mechanical checks, and recycle-loop bug closure before final verification
SkillCFreshness: CClaude Code +9 - 0.479score
enterprise-harness
anotherben
Use when enterprise work has been built and reviewed and needs a final mechanical ship gate before merge, install, or release-level signoff
SkillCFreshness: CClaude Code +9 - 0.479score
enterprise-plan
anotherben
Use when an approved enterprise design exists and the next step is to turn it into an exact implementation plan with file paths, task boundaries, and…
SkillCFreshness: CClaude Code +9 - 0.479score
enterprise-pr-review
anotherben
End-to-end PR conversation closer and advisory review harvester for enterprise work.
SkillCFreshness: CClaude Code +9 - 0.479score
enterprise-review
anotherben
Use when enterprise implementation is complete enough for a structured review that separates spec compliance from code quality and classifies drift explicitly
SkillCFreshness: CClaude Code +9 - 0.479score
enterprise-verify
anotherben
Use when enterprise work is about to be declared complete and the claim needs fresh evidence, postcondition tracing, and an explicit proof-scope verdict
SkillCFreshness: CClaude Code +9 - 0.479score
enterprise-build
anotherben
Use when a locked enterprise contract exists and implementation must proceed through strict TDD, contract traceability, and staged review handoffs
SkillCFreshness: CClaude Code +9 - 0.479score
enterprise-compound
anotherben
Use when verified enterprise work or a resolved debugging session should be captured as searchable institutional knowledge with prevention guidance
SkillCFreshness: CClaude Code +9 - 0.474score
enterprise-stack-review
anotherben
Tech stack decision phase for the enterprise pipeline.
SkillCFreshness: CClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- May 4, 2026 (5 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/anotherben/agentic-governance
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from anotherben
- 0.534score
deep-think
anotherben
Mandatory read-only pre-action and plan-review protocol for substantive coding, debugging, design, review, refactor, system-analysis, workflow, and…
SkillCFreshness: C★ 7Claude Code +9 - 0.530score
code-variable-audit
anotherben
Audit pull requests, branches, diffs, or local source files for semantically suspicious variable, identifier, member-access, and payload-field usage.
SkillCFreshness: C★ 7Claude Code +9 - 0.530score
daily-domain-refactor-runner
anotherben
Use when inspecting Helpdesk domains for SRP, README, write-boundary, table ownership, or service-migration opportunities and when running one selected domain…
SkillCFreshness: C★ 7Claude Code +9 - 0.530score
diagnose
anotherben
Use when debugging bugs, failures, regressions, stale proof, recurring whack-a-mole fixes, unclear ownership, poor seams, missing domain boundaries…
SkillCFreshness: C★ 7Claude Code +9 - 0.529score
deploy-checklist
anotherben
Use when preparing to deploy code to production, merging to main, running migrations on production databases, or setting environment variables on Render.
SkillCFreshness: C★ 7Claude Code +9 - 0.526score
contract-manager
anotherben
Review plans, fixes, and designs before implementation so code can be built mechanically.
SkillCFreshness: C★ 7Claude Code +9
Cite this page
enterprise-debug skill. Agent Mart. https://agentmart.dev/skills/anotherben-enterprise-debug (last updated 2026-10-24)