ワンクリックで
patterns
Analyze codebase patterns, detect anti-patterns, and surface static analysis findings
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Analyze codebase patterns, detect anti-patterns, and surface static analysis findings
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Explore codebase structure, entry points, tech stack, hotspots, and call graphs
Search code symbols, find function calls, and analyze codebase
Run the instinct parser catalogue against this session's observe events to surface candidate patterns for promotion to memories. Two-pass: gather candidates, judge intent, write proposals.
Parallel agents with SDLC pipeline per story
Inspect a running swarm — show the agent tree, current tools, halts/pauses, and recent task/message activity for the orchestrator's own swarm.
Systematic debugging workflow for tracking down bugs and issues
| name | patterns |
| description | Analyze codebase patterns, detect anti-patterns, and surface static analysis findings |
| triggers | ["find patterns","anti-patterns","code smells","complexity","duplicated code","clones","secrets","coupling","static analysis","code health"] |
Recommended model tier: balanced (sonnet) - this skill combines search with structured analysis
Analyze codebase patterns using static analysis findings. Surface complexity hotspots, code duplication, coupling issues, and potential secrets. Use this skill to understand code health and identify areas that need attention.
Findings must be generated first by running analyzers via the CLI:
# Run all analyzers
./.aide/bin/aide findings run --path .
# Run specific analyzers
./.aide/bin/aide findings run --path . --analyzer complexity
./.aide/bin/aide findings run --path . --analyzer coupling
./.aide/bin/aide findings run --path . --analyzer secrets
./.aide/bin/aide findings run --path . --analyzer clones
Binary location: The aide binary is at .aide/bin/aide. If it's on your $PATH, you can use aide directly.
mcp__plugin_aide_aide__findings_search)Full-text search across all findings. Supports Bleve query syntax for advanced searches.
Parameters:
query (required) — Search term or Bleve queryanalyzer (optional) — Filter to one analyzer: complexity, coupling, secrets, clonesseverity (optional) — Filter by severity: info, warning, criticalfile (optional) — Filter by file path substringlimit (optional) — Max results (default 20)Example usage:
Search for: "high complexity"
-> findings_search query="complexity" severity="warning"
-> Returns: functions with high cyclomatic complexity, with file:line
mcp__plugin_aide_aide__findings_list)List findings with filters. Use when you want to browse rather than search.
Parameters:
analyzer (optional) — Filter to one analyzerseverity (optional) — Filter by severityfile (optional) — Filter by file path substringlimit (optional) — Max results (default 20)offset (optional) — Pagination offsetExample usage:
List all critical findings
-> findings_list severity="critical"
-> Returns: all critical-severity findings across all analyzers
mcp__plugin_aide_aide__findings_stats)Get aggregate counts by analyzer and severity. Use as a starting point to understand overall code health before drilling into specifics.
Example usage:
How healthy is the codebase?
-> findings_stats
-> Returns: counts per analyzer, counts per severity, total findings
findings_stats to see counts by analyzer and severityfindings_list severity="critical" to review highest-priority itemsfindings_search with file or query filters for specific concernsfindings_search analyzer="complexity" severity="critical" to find the most complex functionscode_outline on flagged files to understand structureRead with offset/limit to examine the specific functionsfindings_list analyzer="clones" to see detected code clonesRead to compare the duplicated sectionsfindings_search analyzer="coupling" to see import fan-out/fan-in issuesfindings_list analyzer="secrets" severity="critical" for confirmed secretsfindings_list analyzer="secrets" for all potential secrets (including unverified)Read to examine context around the findingBeyond the automated analyzers, look for these patterns using findings as starting points:
| Finding | Likely Anti-Pattern | Action |
|---|---|---|
| Complexity > 20 | God function | Decompose into smaller functions |
| Fan-out > 15 | Kitchen sink module | Split responsibilities |
| Fan-in > 20 | Fragile dependency | Consider interface/abstraction |
| Multiple clones | Copy-paste programming | Extract shared utility |
| Import cycle | Circular dependency | Restructure module boundaries |
## Code Health Report
### Overview
- Total findings: X (Y critical, Z warnings)
- Top concern: [area/file with most issues]
### Hotspots
1. **`file:line`** - [description] (severity)
- Impact: [why this matters]
- Recommendation: [what to do]
### Patterns Detected
- [List of anti-patterns found with evidence]
### Recommendations
1. [Prioritized action items]
./.aide/bin/aide findings run --path .findings_stats for overall pictureRead or code_outline)