MCPInstall

exhaustive-systems-analysis

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.

Installs
41
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/petekp/agent-skills --skill exhaustive-systems-analysis
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads exhaustive-systems-analysis automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

Exhaustive Systems Analysis

Systematic audit methodology for rooting out latent issues in codebases, particularly agent-written code that needs verification before production use.

Core Principles

  1. Subsystem isolation — Analyze each subsystem separately to prevent context pollution
  2. Evidence-based findings — Every issue must cite specific code locations
  3. Severity-driven prioritization — Critical issues first, cosmetic issues last
  4. Assume all issues will be fixed — Don't hedge; be direct about what's wrong

Workflow

Phase 1: System Decomposition

Before analysis, map the system's subsystems. Auto-discover by:

  1. Read project structure — Identify major modules, packages, or directories
  2. Trace data flow — Follow how data enters, transforms, and exits
  3. Identify side effects — File I/O, network, database, IPC, state mutations
  4. Map dependencies — Which subsystems depend on which

Output a subsystem table:

| # | Subsystem | Files | Side Effects | Priority |
|---|-----------|-------|--------------|----------|
| 1 | Lock System | lock.rs | FS: mkdir, rm | High |
| 2 | API Layer | api/*.rs | Network, DB | High |
| 3 | Config Parser | config.rs | FS: read | Medium |

Priority heuristics:

  • High: Side effects, state management, security, concurrency
  • Medium: Business logic, data transformation, validation
  • Low: Pure utilities, formatting, logging

Phase 2: Sequential Analysis

Analyze subsystems in priority order. For large codebases (>5 subsystems or >3000 LOC per subsystem), prefer clearing context between subsystems to prevent analysis drift.

For each subsystem, apply the appropriate checklist based on subsystem type.

Phase 3: Consolidation

After all subsystems analyzed:

  1. Deduplicate cross-cutting findings
  2. Rank all issues by severity
  3. Produce final report with recommended action order

Analysis Checklists

Select checklist based on subsystem characteristics. Apply multiple if applicable.

Stateful Systems (files, databases, caches, locks)

CheckQuestion
CorrectnessDoes code do what documentation claims?
AtomicityCan partial writes corrupt state?
Race conditionsCan concurrent access cause inconsistency?
CleanupAre resources released on all exit paths (success, error, panic)?
Error recoveryDo failures leave the system in a valid state?
Stale documentationDo comments match actual behavior?
Dead codeAre there unused code paths that could confuse maintainers?

APIs & Network (HTTP, gRPC, WebSocket, IPC)

CheckQuestion
Input validationAre all inputs validated before use?
Error responsesDo errors leak internal details?
Timeout handlingAre network operations bounded?
Retry safetyAre operations idempotent or properly guarded?
AuthenticationAre auth checks applied consistently?
Rate limitingCan the API be abused?
SerializationCan malformed payloads cause panics?

Concurrency (threads, async, channels, locks)

CheckQuestion
Deadlock potentialCan lock acquisition order cause deadlock?
Data racesIs shared mutable state properly synchronized?
StarvationCan any task be indefinitely blocked?
CancellationAre cancellation/shutdown paths clean?
Resource leaksAre spawned tasks/threads joined or detached properly?
Panic propagationDo panics in tasks crash the whole system?

UI & Presentation (views, components, templates)

CheckQuestion
State consistencyCan UI show stale or inconsistent state?
Error statesAre all error conditions rendered appropriately?
Loading statesAre async operations properly indicated?
AccessibilityAre interactions keyboard/screen-reader accessible?
Memory leaksAre subscriptions/observers cleaned up?
Re-render efficiencyAre unnecessary re-renders avoided?

Data Processing (parsers, transformers, validators)

CheckQuestion
Edge casesAre empty, null, and boundary values handled?
Type coercionAre implicit conversions safe?
Overflow/underflowAre numeric operations bounded?
EncodingIs text encoding handled consistently (UTF-8)?
InjectionCan untrusted input escape its context?
InvariantsAre data invariants enforced and documented?

Configuration & Setup (config files, environment, initialization)

CheckQuestion
DefaultsAre defaults safe and documented?
ValidationAre invalid configs rejected early with clear errors?
SecretsAre secrets handled securely (not logged, not in VCS)?
Hot reloadIf supported, is reload atomic and safe?
CompatibilityAre breaking changes versioned or migrated?

Severity Classification

Classify every finding. Assume user will fix all issues soon.

SeverityCriteriaExamples
CriticalData loss, security vulnerability, crash in productionUnhandled panic, SQL injection, file corruption
HighIncorrect behavior users will noticeWrong calculation, race causing wrong UI state, timeout too short
MediumTechnical debt that causes confusion or future bugsStale docs, misleading names, redundant code paths
LowCosmetic or minor improvementsUnused parameter, suboptimal algorithm (works correctly)

Finding Format

Every finding must follow this structure:

### [SUBSYSTEM] Finding N: Brief Title

**Severity:** Critical | High | Medium | Low
**Type:** Bug | Race condition | Security | Stale docs | Dead code | Design flaw
**Location:** `file.rs:line_range` or `file.rs:function_name`

**Problem:**
What's wrong and why it matters. Be specific.

**Evidence:**
Code snippet or reasoning demonstrating the issue.

**Recommendation:**
Specific fix. Include code if helpful.

Output Structure

Adapt output to project organization. Common patterns:

Pattern A: Audit Directory (recommended for 5+ subsystems)

.claude/docs/audit/
├── 00-analysis-plan.md      # Subsystem table, priorities, methodology
├── 01-subsystem-name.md     # Individual analysis
├── 02-another-subsystem.md
└── SUMMARY.md               # Consolidated findings, action items

Pattern B: Single Document (for smaller systems)

.claude/docs/audit/system-name-audit.md
# Contains: plan, all findings, summary

Pattern C: Inline with Existing Docs

If project has existing docs/ or similar, place audit artifacts there.

Always create a summary with:

  • Total findings by severity
  • Top 5 most critical issues
  • Recommended fix order

Session Management

For thorough analysis:

  • Small systems (<1000 LOC, <3 subsystems): Single session acceptable
  • Medium systems (1000-5000 LOC, 3-7 subsystems): Clear context between phases
  • Large systems (>5000 LOC, >7 subsystems): Separate sessions per subsystem

When clearing context, document progress in the analysis plan file so the next session can continue.


Pre-Analysis: Known Issues Sweep

Before deep analysis, scan for documented issues:

  1. Check CLAUDE.md / README for "gotchas" or "known issues"
  2. Search for TODO/FIXME/HACK comments
  3. Review recent commits for bug fixes (may indicate fragile areas)
  4. Check issue tracker if accessible

Add these as starting hypotheses—verify or refute during analysis.


Anti-Patterns to Avoid

Anti-PatternWhy It's BadInstead
Skimming codeMisses subtle bugsRead every line in scope
Assuming correctnessAgent code often has edge case bugsVerify each code path
Vague findings"This looks wrong" isn't actionableCite specific lines, explain why
Over-scopingAnalysis paralysisStrict subsystem boundaries
Ignoring testsTests reveal assumptionsRead tests to understand intent

Completion Criteria

Analysis is complete when:

  1. ✅ All high-priority subsystems analyzed
  2. ✅ Every finding has severity, location, and recommendation
  3. ✅ Summary document exists with prioritized action items
  4. ✅ No "TBD" or "needs investigation" items remain
  5. ✅ Cross-references between related findings added

FAQ

What does the exhaustive-systems-analysis skill do?

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.

How do I install exhaustive-systems-analysis?

Run npx skills add https://github.com/petekp/agent-skills --skill exhaustive-systems-analysis in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/exhaustive-systems-analysis/ (personal) or .claude/skills/exhaustive-systems-analysis/ (project).

Which AI agents can use exhaustive-systems-analysis?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is exhaustive-systems-analysis safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains exhaustive-systems-analysis?

It is published by petekp in petekp/agent-skills. It has 41 recorded installs.

More from petekp/agent-skills

View all →

typography

petekp/agent-skills

Apply professional typography principles to create readable, hierarchical, and aesthetically refined interfaces. Use when setting type scales, choosing fonts, adjusting spacing, designing text-heavy layouts, implementing dark mode typography, or when asked about readability, font pairing, line height, measure, typographic hierarchy, variable fonts, font loading, or OpenType features.

Frontend & Design522 installs

macos-app-design

petekp/agent-skills

Open the skill to read its SKILL.md instructions.

AI & Agents398 installs

optimize-agent-docs

petekp/agent-skills

Build a retrieval-optimized knowledge layer over agent documentation in dotfiles (.claude, .codex, .cursor, .aider). Use when asked to "optimize docs", "improve agent knowledge", "make docs more efficient", or when documentation has accumulated and retrieval feels inefficient. Generates a manifest mapping task-contexts to knowledge chunks, optimizes information density, and creates compiled artifacts for efficient agent consumption.

Docs & Writing314 installs

codebase-study-guide

petekp/agent-skills

Generate a pedagogically-grounded study guide for learning an unfamiliar codebase. Use when the user wants to onboard onto a codebase, understand a project's architecture, create learning materials for a team, or asks things like "help me learn this codebase", "create an onboarding guide", "I'm new to this project", "how does this system work", "study guide for this repo", or "explain this codebase to me". Produces a structured document that builds understanding from purpose to systems to patterns, using evidence-based learning techniques (elaborative interrogation, concept mapping, threshold concepts, worked examples, progressive disclosure).

unix-macos-engineer

petekp/agent-skills

Expert Unix and macOS systems engineer for shell scripting, system administration, command-line tools, launchd, Homebrew, networking, and low-level system tasks. Use when the user asks about Unix commands, shell scripts, macOS system configuration, process management, or troubleshooting system issues.

AI & Agents114 installs

explainer-visuals

petekp/agent-skills

Create high-quality animated explainer visuals for essays and blog posts. Use when the user wants to visualize concepts, processes, data, or ideas with interactive web animations. Triggers on requests like "create a visual for", "animate this concept", "make an explainer", "visualize this idea", "diagram this process", "show this data", or when essay content would benefit from visual explanation. Handles abstract concepts (mental models, frameworks), technical processes (algorithms, systems), and data visualization (trends, comparisons). Outputs self-contained HTML/CSS/JS that embeds directly in web content.

Frontend & Design101 installs

Popular ai & agents skills

View category →

google-agents-cli-publish

google/agents-cli

This skill should be used when the user wants to "publish an agent", "publish my ADK agent", "register an agent with Gemini", "publish to Gemini" (formerly Gemini Enterprise), or needs guidance on the agents-cli publish gemini command. Also use when the user wants to "manage agents in Agent Registry", "list/update/delete registered agents", or "register an MCP server". Covers ADK vs A2A registration modes, programmatic and interactive usage, flag reference, auto-detection from deployment metadata, Agent Registry fleet management, and troubleshooting. Part of the agents-cli skills suite. Do NOT use for deployment (use google-agents-cli-deploy).

AI & Agents513.9K installs

google-agents-cli-eval

google/agents-cli

This skill should be used when the user wants to "run an evaluation", "evaluate my agent", "evaluate my ADK agent", "write an eval dataset", "analyze eval failures", "compare eval results", "optimize agent", or needs guidance on the Gemini platform eval methodology and the Quality Flywheel. Covers eval metrics, dataset schema, LLM-as-judge scoring, and common failure causes. Applies to any agents-cli project, whatever framework the agent is written in. Do NOT use for agent API code patterns (ADK: use google-agents-cli-adk-code), deployment (use google-agents-cli-deploy), or project scaffolding (use google-agents-cli-scaffold).

AI & Agents513.5K installs

skill-creator

anthropics/skills

Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.

OfficialAI & Agents416.4K installs

codex-pet

prime-skills/runcomfy-agent-skills

Codex Pet generator on RunComfy. Build a Codex-compatible Codex Pet spritesheet.webp + pet.json from a single reference image, drop it into ${CODEXHOME:-$HOME/.codex}/pets/ / and Codex picks it up as a custom Codex Pet next to the 8 built-ins. This skill produces the exact Codex Pet atlas Codex expects (1536x1872 PNG/WebP, 8 cols x 9 rows, 192x208 cells, 9 animation states — idle, running-right, running-left, waving, jumping, failed, waiting, running, review). Calls OpenAI GPT Image 2 edit ONCE via the local RunComfy CLI as runcomfy run openai/gpt-image-2/edit to produce a canonical Codex Pet pose, then assembles all 9 animation rows programmatically with ImageMagick micro-transforms — no Codex Pro, no $imagegen, no OPENAIAPIKEY required, only RUNCOMFYTOKEN. Triggers on "codex pet", "create codex pet", "make codex pet", "hatch codex pet", "/hatch image", "desktop pet codex", "codex pets", "spritesheet.webp", or any explicit ask to build a custom pet for OpenAI Codex.

AI & Agents402.1K installs

full-output-enforcement

leonxlnx/taste-skill

Overrides default LLM truncation behavior. Enforces complete code generation, bans placeholder patterns, and handles token-limit splits cleanly. Apply to any task requiring exhaustive, unabridged output.

AI & Agents401K installs

executing-plans

obra/superpowers

Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available

AI & Agents245.7K installs