investigate
Skill4 starsChanged 9 months agoMITView on GitHub
NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST. Fixing symptoms creates whack-a-mole debugging. Find the root cause, then fix it. Before executing this skill: Review returned memories for relevant past context, decisions, and patterns. If conflicting active tasks exist, warn the user before proceeding. If "false": do NOT proactively suggest other OpenClaw-CC skills during this session. Only run skills the user explicitly invokes. Before starting work, load relevant context from the 3-layer memory system: Use retrieved context to: - Avoid repeating…
74 other projects use a version of this, 2 of them edited.
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 7 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
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
seek888Skillplan-devex-review
Interactive developer experience plan review. Explores developer personas, benchmarks against competitors, designs magical moments, and traces friction points before scoring. Three modes: DX EXPANSION (competitive advantage), DX POLISH (bulletproof every touchpoint), DX TRIAGE (critical gaps only). Use when asked to "DX review", "developer experience audit", "devex review", or "API design review". Proactively suggest when the user has a plan for developer-facing products (APIs, CLIs, SDKs, libraries, platforms, docs). (gstack) Voice triggers (speech-to-text aliases): "dx review", "developer experience review", "devex review", "devex audit", "API design review", "onboarding review".
Also in 5 projects that use this
- +2 more from AICreator-Wind
- +1 more from ayuday
Other versions74 projects use a version of this.
Word for word · 0
None found.
Edited · 2
- mr-daedalium/ostack-saas★ 11410% same
- lucas-flatwhite/gstack-ko★ 4410% same
Wrote their own version · 72
- vercel/eve★ 5.5ksame name
- cyrusagents/cyrus★ 846same name
- blueberrycongee/termcanvas★ 406same name
- Houseofmvps/ultraship★ 123same name
- no-session/pstack★ 122same name
- Dimon94/skills★ 107same name
- dlupiak/claude-session-dashboard★ 71same name
- alamops/skills★ 52same name
- AICreator-Wind/gstack-openclaw-skills★ 44same name
- zhao-wuyan/ccw-command-explorer★ 43same name
62 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 repository26 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- daily-routineSkill
- memory-opsSkill
- research-collectorSkill
- task-analyzerSkill
- autonomous-opsSkill
- carefulSkill
- code-reviewSkill
- daily-routineSkill
- deep-researchSkill
- doc-fetcherSkill
- freezeSkill
- guardSkill
- knowledge-refinerSkill
- knowledge-syncSkill
- memory-opsSkill
- office-hoursSkill
- qaSkill
- research-collectorSkill
- retroSkill
- self-optimizeSkill
- session-trackerSkill
- shipSkill
- task-analyzerSkill
- unfreezeSkill
- web-researcherSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
29 rules. 0 are common, 28 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 64 edited versions we read keep these.
28
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 44
Before executing this skill:
- Distinctive: line 57
If conflicting active tasks exist, warn the user before proceeding.
- Very specific: line 68
If "false": do NOT proactively suggest other OpenClaw-CC skills during this session.
- Distinctive: line 69
Only run skills the user explicitly invokes.
- Distinctive: line 78
Before starting work, load relevant context from the 3-layer memory system:
- Distinctive: line 92
Avoid repeating past mistakes
- Distinctive: line 97
If critical related memories exist, summarize them before proceeding:
- Distinctive: line 104
Check memory for related past bugs:
- Distinctive: line 132
If insufficient context, ask ONE question via AskUserQuestion.
- Distinctive: line 145
Write a minimal reproduction (test case, script, or command)
- Distinctive: line 146
Run it and confirm the failure
- Distinctive: line 147
If cannot reproduce → gather more evidence, do NOT proceed to fix
- Distinctive: line 149
If reproduction succeeds, it becomes the regression test after the fix.
- Distinctive: line 155
After forming root cause hypothesis, lock edits to the affected module:
- Distinctive: line 169
If bug spans entire repo or scope is unclear, skip lock and note why.
- Distinctive: line 175
Check if bug matches known patterns:
- Distinctive: line 188
If unavailable, proceed with in-distribution knowledge
- Distinctive: line 194
Before writing ANY fix, verify your hypothesis:
- Distinctive: line 196
Add temporary log/assertion at suspected root cause.
- Distinctive: line 197
If hypothesis is wrong → return to Stage 1 with new data.
- Distinctive: line 198
3-strike rule: If 3 hypotheses fail, STOP.
- Distinctive: line 269
After completing the workflow, persist results to the 3-layer memory system:
- Distinctive: line 340
Read-only operations (search, list, status)
- Distinctive: line 344
Every skill must end with one of these status codes:
- Distinctive: line 355
3-strike rule: After 3 failed attempts at any step, STOP and escalate to user.
- Distinctive: line 356
Do not continue guessing. Present what was tried and ask for direction.
- Distinctive: line 358
Scope escalation: If fix/change touches 5+ files unexpectedly, pause and confirm with the user before proceeding.
- Distinctive: line 361
Security uncertainty: If you are unsure about a security implication, STOP and escalate.
- Distinctive: line 364
Verification requirement: Never claim DONE without evidence.
“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
<!-- AUTO-GENERATED from SKILL.md.tmpl — do not edit directly. Run: node scripts/gen-skill-docs.mjs -->name: investigate description: > Systematic debugging with root cause investigation. Six stages: investigate, reproduce, analyze, hypothesize, implement, verify. Iron Law: no fixes without root cause. Triggers on "디버깅", "버그 찾아", "investigate", "왜 안 돼", "debug", "find the bug", "root cause", "에러 분석". allowed-tools:
- Bash
- Read
- Write
- Edit
- Grep
- Glob
- Agent
- AskUserQuestion
- WebSearch
hooks:
PreToolUse:
- matcher: "Edit"
hooks:
- type: command command: "bash ${CLAUDE_SKILL_DIR}/../freeze/bin/check-freeze.sh" statusMessage: "Checking debug scope boundary..."
- matcher: "Write"
hooks:
- type: command command: "bash ${CLAUDE_SKILL_DIR}/../freeze/bin/check-freeze.sh" statusMessage: "Checking debug scope boundary..."
- matcher: "Edit"
hooks:
Investigate — Systematic Debugging
Iron Law
NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST.
Fixing symptoms creates whack-a-mole debugging. Find the root cause, then fix it.
Preamble
Before executing this skill:
- Load context from memory:
Review returned memories for relevant past context, decisions, and patterns.memory_search(query: "{skill-relevant-query}", associative: true, limit: 5) memory_search(tag: "{skill-name}", limit: 3) - Check OMC state for active work:
If conflicting active tasks exist, warn the user before proceeding.state_get_status() - Detect current branch (for git-related skills):
git rev-parse --abbrev-ref HEAD 2>/dev/null || echo "not-a-git-repo" - Check proactive mode:
Ifstate_read("occ-proactive")"false": do NOT proactively suggest other OpenClaw-CC skills during this session. Only run skills the user explicitly invokes. - Log skill activation:
memory_daily_log(type: "note", entry: "Skill activated: /{skill-name}")
Memory Context Loading
Before starting work, load relevant context from the 3-layer memory system:
# Search for related past work
memory_search(query: "{task description}", associative: true, limit: 5)
# Search by relevant tags
memory_search(tag: "{relevant-tag}", limit: 3)
# Check for recent related daily logs
memory_search_date(start: "{7 days ago}", end: "{today}", category: "daily-logs", limit: 5)Use retrieved context to:
- Avoid repeating past mistakes
- Build on previous decisions
- Maintain consistency with established patterns
- Reference related knowledge graph nodes
If critical related memories exist, summarize them before proceeding:
Found {N} related memories:
- {memory_1 title}: {brief relevance}
- {memory_2 title}: {brief relevance}Check memory for related past bugs:
memory_search(query: "{error description}", tag: "bug")
memory_search(query: "{affected component}", tag: "debugging")Stage 1 — Root Cause Investigation via OMC tracer
Delegate evidence gathering:
Agent(subagent_type: "oh-my-claudecode:tracer", prompt: "
Investigate: {symptom_description}
Gather evidence, trace code paths, form competing hypotheses.
Do NOT fix anything. Output structured hypothesis report.
")Use OMC code intelligence for precise tracing:
lsp_goto_definition— trace symbols to their source definitionslsp_find_references— find all callers/usages of a functionlsp_hover— get type information and documentationlsp_diagnostics— check for compiler/linter errors in affected filesast_grep_search— find structural code patterns across the codebase
- Collect symptoms: Error messages, stack traces, reproduction steps. If insufficient context, ask ONE question via AskUserQuestion.
- Read the code: Trace from symptom back to potential causes.
- Check recent changes:
git log --oneline -20 -- <affected-files> - Reproduce: Can you trigger the bug deterministically?
Output: "Root cause hypothesis: ..." — specific, testable claim.
Stage 1.5 — Reproduction (NEW)
Before forming hypotheses, reproduce the bug:
- Write a minimal reproduction (test case, script, or command)
- Run it and confirm the failure
- If cannot reproduce → gather more evidence, do NOT proceed to fix
If reproduction succeeds, it becomes the regression test after the fix.
Stage 2 — Scope Lock
After forming root cause hypothesis, lock edits to the affected module:
FREEZE_CHECK="${CLAUDE_SKILL_DIR}/../freeze/bin/check-freeze.sh"
if [ -x "$FREEZE_CHECK" ]; then
STATE_DIR="${CLAUDE_PLUGIN_DATA:-${HOME}/.omc/state}"
mkdir -p "$STATE_DIR"
echo "<detected-directory>/" > "$STATE_DIR/freeze-dir.txt"
echo "Debug scope locked to: <detected-directory>/"
fiTell user: "Edits restricted to <dir>/ for this debug session. This prevents changes to unrelated code. Run /unfreeze to remove."
If bug spans entire repo or scope is unclear, skip lock and note why.
Stage 3 — Pattern Analysis
Check if bug matches known patterns:
| Pattern | Signature | Where to look |
| Race condition | Intermittent, timing-dependent | Concurrent access to shared state |
| Nil/null propagation | NoMethodError, TypeError | Missing guards on optional values |
| State corruption | Inconsistent data, partial updates | Transactions, callbacks, hooks |
| Integration failure | Timeout, unexpected response | External API calls, service boundaries |
| Configuration drift | Works locally, fails elsewhere | Env vars, feature flags, DB state |
| Stale cache | Shows old data, fixes on clear | Redis, CDN, browser cache |
External search (sanitize first — strip hostnames, IPs, paths, customer data):
- WebSearch: "{framework} {generic error type}"
- If unavailable, proceed with in-distribution knowledge
Stage 4 — Hypothesis Testing
Before writing ANY fix, verify your hypothesis:
- Add temporary log/assertion at suspected root cause. Run reproduction. Does evidence match?
- If hypothesis is wrong → return to Stage 1 with new data. Do NOT guess.
- 3-strike rule: If 3 hypotheses fail, STOP. AskUserQuestion:
3 hypotheses tested, none match. This may be an architectural issue rather than a simple bug. A) Continue investigating — new hypothesis: [describe] B) Escalate for human review — someone who knows the system C) Add logging and wait — instrument the area and catch it next time
Red flags — slow down if you see:
- "Quick fix for now" — there is no "for now." Fix it right or escalate.
- Proposing a fix before tracing data flow — you're guessing.
- Each fix reveals a new problem — wrong layer, not wrong code.
Log each hypothesis test result:
memory_store(category: "knowledge", subcategory: "debugging",
title: "Investigation: {bug} - Hypothesis {N}",
content: "{hypothesis, test method, result, verdict}",
tags: ["investigation", "{component}"], importance: 5)Stage 5 — Implementation via OMC executor (ONLY after root cause confirmed)
Agent(subagent_type: "oh-my-claudecode:executor", model: "opus", prompt: "
Root cause confirmed: {root_cause}
Implement fix: {description}
Files: {file_list}
Constraints: minimal diff, fix root cause not symptom
")Safety limits:
- 5+ files → AskUserQuestion about blast radius
- 3 failed fix attempts → escalate
Stage 6 — Verification via OMC verifier
Agent(subagent_type: "oh-my-claudecode:verifier", prompt: "
Verify fix for: {bug_description}
Root cause: {root_cause}
Fix: {fix_description}
1. Confirm original symptom no longer reproduces
2. Run test suite
3. Check for regressions in related areas
")Output structured debug report:
═══════════════════════════════════════
DEBUG REPORT
═══════════════════════════════════════
Symptom: {what the user observed}
Root cause: {what was actually wrong}
Fix: {what was changed, with file:line references}
Evidence: {test output, reproduction showing fix works}
Regression test: {file:line of the new test}
Related: {past bugs in same area, architectural notes}
Status: DONE | DONE_WITH_CONCERNS | BLOCKED
═══════════════════════════════════════Memory Persistence
After completing the workflow, persist results to the 3-layer memory system:
Required Actions
- Log completion to daily log:
memory_daily_log(type: "done", entry: "{skill-name}: {brief result summary}") - Store significant findings (importance ≥ 6):
memory_store( category: "{appropriate category}", title: "{descriptive title}", content: "{structured result content}", tags: ["{skill-name}", "{project}", "{relevant-tags}"], importance: {6-10 based on significance} ) - Link to related memories (if applicable):
memory_link(source: "{new_memory_id}", target: "{related_id}", relation: "{related|derived|refines}")
Category Routing
| Content Type | Category | Subcategory |
| Bug fix / debugging | knowledge | debugging |
| Code review results | projects | {project-name} |
| Design decisions | projects | {project-name} |
| Research findings | knowledge | {topic} |
| Release / deploy | projects | {project-name} |
| Person-related info | people | — |
| Task / action item | tasks | — |
Messenger Notification
Send notifications for significant events via messenger:
When to Notify
| Event | Platform | Priority |
| Task/pipeline completed | telegram | Normal |
| Verification failed | telegram | High |
| Long-running task done (10+ min) | telegram | Normal |
| Critical error or blocker | telegram | High |
| PR created / release shipped | all | Normal |
| Importance ≥ 8 memory created | telegram | Normal |
Notification Format
messenger_send(
platform: "telegram",
message: "[{skill-name}] {status_emoji} {brief description}\n\n{details if relevant}"
)Status Emojis:
- Completed successfully: ✅
- Completed with warnings: ⚠️
- Failed / blocked: ❌
- Needs attention: 🔔
Do NOT Notify
- Routine memory operations
- Intermediate progress steps
- Read-only operations (search, list, status)
Completion Status Protocol
Every skill must end with one of these status codes:
| Code | Meaning | When to Use |
| DONE | All steps completed, evidence provided | Root cause found + fix verified, PR created, review finished |
| DONE_WITH_CONCERNS | Completed with warnings or caveats | Tests pass but coverage dropped, fix applied but can't fully verify |
| BLOCKED | Cannot proceed, requires user intervention | 3 failed attempts, missing permissions, external dependency down |
| NEEDS_CONTEXT | Missing information to continue | Unclear requirements, need user clarification |
Escalation Rules
- 3-strike rule: After 3 failed attempts at any step, STOP and escalate to user. Do not continue guessing. Present what was tried and ask for direction.
- Scope escalation: If fix/change touches 5+ files unexpectedly, pause and confirm with the user before proceeding.
- Security uncertainty: If you are unsure about a security implication, STOP and escalate. Never guess on security.
- Verification requirement: Never claim DONE without evidence.
- "Should work" → RUN IT. Confidence is not evidence.
- "Already tested earlier" → Code changed since. Test again.
- "Trivial change" → Trivial changes break production.
Output Format
═══════════════════════════════════════
Status: {DONE | DONE_WITH_CONCERNS | BLOCKED | NEEDS_CONTEXT}
Summary: {one-line description of outcome}
Evidence: {test output, verification results, or blocking reason}
═══════════════════════════════════════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.

