Perform comprehensive, deep analysis of a system and its subsystems to identify bugs, race conditions, stale documentation, dead code, and correctness issues. Use when asked to "audit this system", "exhaustive analysis of X", "analyze for correctness", "root out issues in...", "deep dive into...", "verify this code is correct", "find bugs in...", or when reviewing agent-written code for production readiness. Automatically decomposes systems into subsystems, applies appropriate analysis checklists, and produces structured findings with severity classification.
Use this skill for full-system correctness work. The job is to map the system, identify the highest-risk behaviors, prove or refute concrete failure hypotheses, and leave behind a report another engineer can act on without re-reading the whole codebase.
chat-first output. Return findings inline unless the user asks for docs or the audit clearly needs multi-session artifacts.artifact mode for large or resumable audits. Use docs/audit/ or .claude/docs/audit/, matching the repo's existing conventions.Before reading deeply, write a one-screen scope brief using the template in references/templates.md.
Capture:
chat-first or artifact modeIf the request is broad, narrow it to the modules that can actually change user outcomes or ship readiness.
Read only the materials that establish intended behavior:
README, CLAUDE.md, architecture docs, ADRsTODO, FIXME, HACK, and "known issues"Extract:
Map the system into subsystems before deep analysis. Use the coverage ledger template in references/templates.md.
For each subsystem record:
planned | in_progress | done | follow_upPrioritize by user impact first, then by side effects, concurrency, privilege, and recent churn. Folder structure alone is not a priority system.
For each high- or medium-risk subsystem, write 2-3 concrete hypotheses before diving in. Good hypotheses are falsifiable and tied to a behavior boundary.
Examples:
Update or discard hypotheses as evidence comes in. This step prevents aimless scanning.
Read the subsystem end-to-end:
Select only the relevant checklist sections from references/checklists.md. Do not load every checklist if the subsystem only needs one or two.
When subagents are available, assign one bounded subsystem per subagent with disjoint files and ask for:
Every finding must separate observation from inference.
Required fields:
Severity: Critical | High | Medium | LowStatus: Confirmed | Likely | Needs follow-upConfidence: High | Medium | LowType: Bug | Race condition | Security | Stale docs | Dead code | Design flaw | ReliabilityLocation: exact file path and line or functionImpacted behavior: the user-visible workflow, invariant, or contract at riskObserved evidence: code citation, command output, test result, log, or search resultInference: why that evidence implies the reported problemWhat I checked: searches, tests, docs, commits, or alternate explanations ruled outRecommendation: the smallest credible next actionNext verification step: required when status is Needs follow-upUse Confirmed only when the bug is directly demonstrated by code, a failing test, a repro path, or a hard contradiction. Use Likely when the reasoning is strong but not directly reproduced. Use Needs follow-up when something is suspicious but the evidence is incomplete.
After subsystem reviews:
Prefer stronger evidence over more words. From strongest to weakest:
Static reasoning alone can still be valuable, but it should usually produce Likely, not Confirmed.
For dead code or stale docs, always show what you searched and why you believe the code or documentation is obsolete. A dead-code claim without a consumer search is incomplete.
Use the templates in references/templates.md for:
Use single-session mode for small audits. For large audits or when context is tight, create a lightweight control plane:
00-plan.md for the scope brief and coverage ledgerSUMMARY.md for consolidated findings and fix orderHANDOFF.md if work will continue laterA good handoff includes:
Needs follow-upThe audit is complete when:
npx skills add petekp/exhaustive-systems-analysis下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer