Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

Back to skills

Exhaustive Systems Analysis

ASecurity

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 checkl...

45 stars
0 votes
0 copies
0 views
Added 2/7/2026
code-qualityrustgosqlapidatabasesecuritydocumentation

Works with

api

Security Analysis

A100/100

Scanned 2/12/2026

Install to Claude Code

$npx -y skills add petekp/claude-code-setup --skill exhaustive-systems-analysis --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Exhaustive Systems Analysis?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Exhaustive Systems Analysis
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/petekp-exhaustive-systems-analysis/badge)](https://www.skillsdirectory.com/skills/petekp-exhaustive-systems-analysis)

More formats (shields.io, HTML) on the badges page.

Download Zip
Files
SKILL.md
---
name: exhaustive-systems-analysis
description: |
  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.
---

# 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:

```markdown
| # | 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)

| Check | Question |
|-------|----------|
| **Correctness** | Does code do what documentation claims? |
| **Atomicity** | Can partial writes corrupt state? |
| **Race conditions** | Can concurrent access cause inconsistency? |
| **Cleanup** | Are resources released on all exit paths (success, error, panic)? |
| **Error recovery** | Do failures leave the system in a valid state? |
| **Stale documentation** | Do comments match actual behavior? |
| **Dead code** | Are there unused code paths that could confuse maintainers? |

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

| Check | Question |
|-------|----------|
| **Input validation** | Are all inputs validated before use? |
| **Error responses** | Do errors leak internal details? |
| **Timeout handling** | Are network operations bounded? |
| **Retry safety** | Are operations idempotent or properly guarded? |
| **Authentication** | Are auth checks applied consistently? |
| **Rate limiting** | Can the API be abused? |
| **Serialization** | Can malformed payloads cause panics? |

### Concurrency (threads, async, channels, locks)

| Check | Question |
|-------|----------|
| **Deadlock potential** | Can lock acquisition order cause deadlock? |
| **Data races** | Is shared mutable state properly synchronized? |
| **Starvation** | Can any task be indefinitely blocked? |
| **Cancellation** | Are cancellation/shutdown paths clean? |
| **Resource leaks** | Are spawned tasks/threads joined or detached properly? |
| **Panic propagation** | Do panics in tasks crash the whole system? |

### UI & Presentation (views, components, templates)

| Check | Question |
|-------|----------|
| **State consistency** | Can UI show stale or inconsistent state? |
| **Error states** | Are all error conditions rendered appropriately? |
| **Loading states** | Are async operations properly indicated? |
| **Accessibility** | Are interactions keyboard/screen-reader accessible? |
| **Memory leaks** | Are subscriptions/observers cleaned up? |
| **Re-render efficiency** | Are unnecessary re-renders avoided? |

### Data Processing (parsers, transformers, validators)

| Check | Question |
|-------|----------|
| **Edge cases** | Are empty, null, and boundary values handled? |
| **Type coercion** | Are implicit conversions safe? |
| **Overflow/underflow** | Are numeric operations bounded? |
| **Encoding** | Is text encoding handled consistently (UTF-8)? |
| **Injection** | Can untrusted input escape its context? |
| **Invariants** | Are data invariants enforced and documented? |

### Configuration & Setup (config files, environment, initialization)

| Check | Question |
|-------|----------|
| **Defaults** | Are defaults safe and documented? |
| **Validation** | Are invalid configs rejected early with clear errors? |
| **Secrets** | Are secrets handled securely (not logged, not in VCS)? |
| **Hot reload** | If supported, is reload atomic and safe? |
| **Compatibility** | Are breaking changes versioned or migrated? |

---

## Severity Classification

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

| Severity | Criteria | Examples |
|----------|----------|----------|
| **Critical** | Data loss, security vulnerability, crash in production | Unhandled panic, SQL injection, file corruption |
| **High** | Incorrect behavior users will notice | Wrong calculation, race causing wrong UI state, timeout too short |
| **Medium** | Technical debt that causes confusion or future bugs | Stale docs, misleading names, redundant code paths |
| **Low** | Cosmetic or minor improvements | Unused parameter, suboptimal algorithm (works correctly) |

---

## Finding Format

Every finding must follow this structure:

```markdown
### [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-Pattern | Why It's Bad | Instead |
|--------------|--------------|---------|
| Skimming code | Misses subtle bugs | Read every line in scope |
| Assuming correctness | Agent code often has edge case bugs | Verify each code path |
| Vague findings | "This looks wrong" isn't actionable | Cite specific lines, explain why |
| Over-scoping | Analysis paralysis | Strict subsystem boundaries |
| Ignoring tests | Tests reveal assumptions | Read 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

Attribution

petekppetekp
View sourceMore from petekp →
SSkills DirectorySkills Directory

Know which skills are safe — weekly.

Best new skills + every skill we flagged as malicious. From the team that scanned 103,619.

Join free

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Know which skills are safe — weekly.

Best new skills + every skill we flagged as malicious. From the team that scanned 103,619.

Join free

Related Skills

Caveman Review

Ultra-compressed code review comments. Cuts noise from PR feedback while preserving the actionable signal. Each comment is one line: location, problem, fix. Use when user says "review this PR", "code review", "review the diff", "/review", or invokes /caveman-review. Auto-triggers when reviewing pull requests.

1023331 votes

Caveman Commit

Ultra-compressed commit message generator. Cuts noise from commit messages while preserving intent and reasoning. Conventional Commits format. Subject ≤50 chars, body only when "why" isn't obvious. Use when user says "write a commit", "commit message", "generate commit", "/commit", or invokes /caveman-commit. Auto-triggers when staging changes.

1023331 votes

Springboot Verification

Verification loop for Spring Boot projects: build, static analysis, tests with coverage, security scans, and diff review before release or PR.

2456590 votes

Verification Loop

一个全面的 Claude Code 会话验证系统。

2456590 votes

Django Verification

Verification loop for Django projects: migrations, linting, tests with coverage, security scans, and deployment readiness checks before release or PR.

2456590 votes
View all in code-quality →