root-cause-analysis
Enforces root-cause-first bug investigation — read the error, reproduce it, trace the data flow backward. Never propose a solution before the investigation phase completes.
- License 许可
- MIT
- 最近更新
- 2026-11-03
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- root-cause-analysis
- effort
- high
- description
- Enforces root-cause-first bug investigation — read the error, reproduce it, trace the data flow backward. Never propose a solution before the investigation phase completes.
- when_to_use
- Trigger the moment debugging starts — never proactively — and always before any fix is proposed or any change is made. Phrases include "why is this failing", "this bug", "unexpected behavior", "error when I…", and declarative bug reports with no question mark — "checkout crashes on empty cart", "there's a bug where X happens" — a stated symptom is a bug report too. Not for a jabworks/agentic-toolkit skill or plugin misbehaving (won't trigger, won't show up, dist drift); that's toolkit-debugging-playbook.
- argument-hint
- <error message or bug description>
02 资源文件 1
- 参考文档evals/trigger_eval.json2.3 KB
03 SKILL.md 正文
/root-cause-analysis
Investigate first. Fix second. Always.
Usage
/root-cause-analysis $ARGUMENTS
/root-cause-analysis "TypeError: cannot read property of undefined in checkout"
The Four Phases
Run in order. Don't skip ahead.
┌──────────────────────────────────────────────────────────────────┐
│ Phase 1: ROOT CAUSE INVESTIGATION │
│ - Spec check FIRST: detect package root (walk up from CWD to │
│ git root, find nearest package manifest). Check: │
│ <package-root>/specs/ and <git-root>/specs/ │
│ Match the failing feature/domain (fuzzy kebab-case). │
│ If found, read quirks.md, api.md, fields.md, │
│ implementation.md. Note any behavior contradicting the spec.│
│ - Read the full error message and stack trace │
│ - Reproduce the failure (confirm it's real, not stale) │
│ - Check recent changes: git log since last known good state │
│ - Trace data flow backward from the failure point │
│ │
│ Phase 2: PATTERN ANALYSIS │
│ - Find working examples of the same pattern in the codebase │
│ - Compare broken path vs working path completely │
│ - Identify the single difference │
│ │
│ Phase 3: HYPOTHESIS + SINGLE-VARIABLE TEST │
│ - Form one hypothesis │
│ - Design a test that proves or disproves it │
│ - Change exactly one thing │
│ │
│ Phase 4: IMPLEMENT THE FIX │
│ - Write a failing test first (if /test-first-development is active) │
│ - Apply the single targeted fix │
│ - Verify the fix resolves the root cause, not symptoms │
└──────────────────────────────────────────────────────────────────┘
Hard Rules
Never propose a solution in Phase 1. Investigation comes first — no exceptions.
Three strikes. If three independent fixes have all failed:
- Stop patching.
- Step back and question whether the problem is where you think it is.
- Ask the user before continuing.
One variable at a time. Multiple simultaneous changes make it impossible to know what fixed what.
Red Flags — Stop and Reassess
✗ Proposing solutions before reading the full stack trace
✗ Changing multiple things at once "to see what works"
✗ Continuing to patch after 3 failed attempts
✗ Treating a symptom as the root cause
✗ Skipping reproduction ("it's obvious what the problem is")
Integration with Condux
- Phase 4 + /test-first-development active: write a failing test before the fix
- After fixing: run
/preflightto confirm nothing regressed - Bug reveals architectural issue: escalate to
/discoverybefore patching further - Multiple unrelated failures: if 2+ failures are independent (different
files, no shared cause), use
subagent-deploymentto fix them concurrently instead of one at a time
04 同仓库更多 Skills
orphan
暂无简介
no-blurb
暂无简介
workflow
Routes any dev task into the right execution tier (Small/Medium/Large) and carries condux's operating rules — proportional effort, lazy skill loading, soft gates, implement-yourself-by-default.
usage-trace
Checks and manages durable, local usage capture — ingest, health status, and the opt-in limit snapshot — for Claude Code and Codex. Capture itself runs automatically at session start.
toolkit-skill-standards
Use when writing or reviewing a SKILL.md for jabworks/agentic-toolkit — frontmatter budgets, the trigger contract ("Use when…" description or when_to_use field), progressive disclosure into references/, and keeping a new description out of existing skills' trigger space. Triggers include "review this skill description", "write the frontmatter", "does this collide with an existing skill", "where should this content live". Not for scaffold/sync mechanics; use toolkit-foundry.
toolkit-research-frontier
Use when planning improvement work on jabworks/agentic-toolkit itself — open problems (trigger-collision automation, YAML-strict frontmatter checks, docs-catalog enforcement), existing assets, the next three concrete steps, and the four-front library-health campaign with commands and success criteria. Triggers include "let's improve our toolkit", "let's improve this repo", "what should we improve next", "toolkit roadmap", "open problems", "run the health campaign".