investigate
Skill2.1k starsChanged 7 months agoMITArchived repositoryView on GitHub
Systematic debugging with Iron Law methodology. 5-phase investigation from evidence collection to verified fix. Triggers on "investigate", "debug", "root cause".
75 other projects use a version of this.
Adopted by
Most recently taken up by
- skycmoon/skillstheir own version, first seen Oct 6, 2026
- ku5ic/claude-kittheir own version, first seen Oct 6, 2026
- lohi-ai/babysittheir own version, first seen Oct 5, 2026
- blas1n/claude-skillstheir own version, first seen Oct 4, 2026
- HanksChen0110/skillstheir own version, first seen Oct 3, 2026
- linchpin/skillstheir own version, first seen Oct 2, 2026
Used with
Projects with it also use qa-only, document-release and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
AICreator-WindSkillqa-only
纯 QA 报告工具。只生成 bug 报告,不修复。
Also in 10 projects that use this
AICreator-WindSkilldocument-release
技术作家工具。更新项目文档。
Also in 9 projects that use this
ayudaySkillcso
Chief Security Officer mode. Performs OWASP Top 10 audit, STRIDE threat modeling, attack surface analysis, auth flow verification, secret detection, dependency CVE scanning, supply chain risk assessment, and data classification review. Use when: "security audit", "threat model", "pentest review", "OWASP", "CSO review".
Also in 7 projects that use this
ayudaySkillsetup-deploy
Configure deployment settings for /land-and-deploy. Detects your deploy platform (Fly.io, Render, Vercel, Netlify, Heroku, GitHub Actions, custom), production URL, health check endpoints, and deploy status commands. Writes the configuration to CLAUDE.md so all future deploys are automatic. Use when: "setup deploy", "configure deployment", "set up land-and-deploy", "how do I deploy with gstack", "add deploy config".
Also in 7 projects that use this
Kit4SomeSkillunfreeze
Also in 8 projects that use this
CodeWithBehnamSkillsetup-browser-cookies
Import cookies from your real browser (Comet, Chrome, Arc, Brave, Edge) into the headless browse session. Opens an interactive picker UI where you select which cookie domains to import. Use before QA testing authenticated pages.
Also in 7 projects that use this
- +4 more from AICreator-Wind
- +1 more from ayuday
Other versions75 projects use a version of this.
Word for word · 1
- zhao-wuyan/ccw-command-explorer★ 43100% same
Edited · 0
None found.
Wrote their own version · 74
- vercel/eve★ 5.5ksame name
- cyrusagents/cyrus★ 846same name
- blueberrycongee/termcanvas★ 406same name
- Houseofmvps/ultraship★ 123same name
- no-session/pstack★ 122same name
- mr-daedalium/ostack-saas★ 114same name
- Dimon94/skills★ 107same name
- dlupiak/claude-session-dashboard★ 71same name
- alamops/skills★ 52same name
- AICreator-Wind/gstack-openclaw-skills★ 44same name
64 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository59 other files it gives its agents.
- .codex/AGENTS.mdAGENTS.md
- brainstormSkill
- ccw-chainSkill
- ccw-helpSkill
- delegation-checkSkill
- issue-manageSkill
- memory-captureSkill
- memory-manageSkill
- prompt-generatorSkill
- review-codeSkill
- review-cycleSkill
- security-auditSkill
- shipSkill
- skill-generatorSkill
- skill-iter-tuneSkill
- skill-simplifySkill
- skill-tuningSkill
- spec-generatorSkill
- team-arch-optSkill
- team-brainstormSkill
- team-coordinateSkill
- team-designerSkill
- team-executorSkill
- team-frontend-debugSkill
- team-frontendSkill
- team-interactive-craftSkill
- team-issueSkill
- team-lifecycle-v4Skill
- team-motion-designSkill
- team-perf-optSkill
- team-planexSkill
- team-quality-assuranceSkill
- team-reviewSkill
- team-roadmap-devSkill
- team-tech-debtSkill
- team-testingSkill
- team-uidesignSkill
- team-ui-polishSkill
- team-ultra-analyzeSkill
- team-ux-improveSkill
- team-visual-a11ySkill
- wf-composerSkill
- wf-playerSkill
- workflow-executeSkill
- workflow-lite-executeSkill
- workflow-lite-planSkill
- workflow-lite-test-reviewSkill
- workflow-multi-cli-planSkill
- workflow-planSkill
- workflow-skill-designerSkill
- workflow-tdd-plan-planSkill
- workflow-test-fixSkill
- brainstormSkill
- investigateSkill
- review-cycleSkill
- spec-generatorSkill
- workflow-planSkill
- workflow-tdd-planSkill
- workflow-test-fixSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 5 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 64 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
No fix without confirmed root cause: Every investigation follows a strict evidence chain:
- Distinctive: line 18
Verify fix and generate structured report
- Distinctive: line 26
3-Strike Escalation: If 3 consecutive hypothesis tests fail, STOP and escalate with a diagnostic dump.
- Distinctive: line 27
Regression Coverage: Every fix must include a test that fails without the fix and passes with it.
- Distinctive: line 28
Structured Output: All findings are recorded in machine-readable JSON for future reference.
- Very specific: line 110
All CLI calls use --mode analysis (read-only).
“Common” is measured: kept by at least 6 in 10 of the 64 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Investigate
Systematic debugging skill that enforces the Iron Law: never fix without a confirmed root cause. Produces a structured debug report with full evidence chain, minimal fix, and regression test.
Iron Law Principle
No fix without confirmed root cause. Every investigation follows a strict evidence chain:
- Reproduce the bug with concrete evidence
- Analyze patterns to assess scope
- Form and test hypotheses (max 3 strikes)
- Implement minimal fix ONLY after root cause is confirmed
- Verify fix and generate structured report
Violation of the Iron Law (skipping to Phase 4 without Phase 3 confirmation) is prohibited.
Key Design Principles
- Evidence-First: Collect before theorizing. Logs, stack traces, and reproduction steps are mandatory inputs.
- Minimal Fix: Change only what is necessary. Refactoring is not debugging.
- 3-Strike Escalation: If 3 consecutive hypothesis tests fail, STOP and escalate with a diagnostic dump.
- Regression Coverage: Every fix must include a test that fails without the fix and passes with it.
- Structured Output: All findings are recorded in machine-readable JSON for future reference.
Execution Flow
Phase 1: Root Cause Investigation
Reproduce bug, collect evidence (errors, logs, traces)
Use ccw cli --tool gemini --mode analysis for initial diagnosis
Output: investigation-report.json
|
v
Phase 2: Pattern Analysis
Search codebase for similar patterns (same error, module, antipattern)
Assess scope: isolated vs systemic
Output: pattern-analysis section in report
|
v
Phase 3: Hypothesis Testing
Form max 3 hypotheses from evidence
Test each with minimal read-only probes
3-strike rule: STOP and escalate on 3 consecutive failures
Output: confirmed root cause with evidence chain
|
v
Phase 4: Implementation [GATE: requires Phase 3 confirmed root cause]
Implement minimal fix
Add regression test
Verify fix resolves reproduction case
|
v
Phase 5: Verification & Report
Run full test suite
Check for regressions
Generate structured debug report to .workflow/.debug/Directory Setup
mkdir -p .workflow/.debugOutput Structure
.workflow/.debug/
debug-report-{YYYY-MM-DD}-{slug}.json # Structured debug reportCompletion Status Protocol
This skill follows the Completion Status Protocol defined in _shared/SKILL-DESIGN-SPEC.md sections 13-14.
| Status | When |
| DONE | Root cause confirmed, fix applied, regression test passes, no regressions |
| DONE_WITH_CONCERNS | Fix applied but partial test coverage or minor warnings |
| BLOCKED | Cannot reproduce bug, or 3-strike escalation triggered in Phase 3 |
| NEEDS_CONTEXT | Missing reproduction steps, unclear error conditions |
Reference Documents
| Document | Purpose |
| phases/01-root-cause-investigation.md | Evidence collection and reproduction |
| phases/02-pattern-analysis.md | Codebase pattern search and scope assessment |
| phases/03-hypothesis-testing.md | Hypothesis formation, testing, and 3-strike rule |
| phases/04-implementation.md | Minimal fix with Iron Law gate |
| phases/05-verification-report.md | Test suite, regression check, report generation |
| specs/iron-law.md | Iron Law rules definition |
| specs/debug-report-format.md | Structured debug report JSON schema |
CLI Integration
This skill leverages ccw cli for multi-model analysis at key points:
| Phase | CLI Usage | Mode |
| Phase 1 | Initial diagnosis from error evidence | --mode analysis |
| Phase 2 | Cross-file pattern search | --mode analysis |
| Phase 3 | Hypothesis validation assistance | --mode analysis |
All CLI calls use --mode analysis (read-only). No write-mode CLI calls during investigation phases 1-3.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

