patterns
Skill19 starsChanged 3 months agoMITView on GitHub
Analyze codebase patterns, detect anti-patterns, and surface static analysis findings
15 other projects use a version of this.
Adopted by
Most recently taken up by
- anthropics/claude-plugins-officialtheir own version, first seen Nov 8, 2026
- e-reitbauer/habitstheir own version, first seen Nov 8, 2026
- nklisch/skilltaptheir own version, first seen Nov 8, 2026
- tizonai/hyperuitheir own version, first seen Oct 9, 2026
- nklisch/krometrailtheir own version, first seen Sep 30, 2026
- ai-analyst-lab/ai-analysttheir own version, first seen Sep 10, 2026
Used with
Projects with it also use setup.
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.
VercelSkillsetup
Set up Vercel CLI and project configuration. Use when the user says "set up Vercel", "configure Vercel", "link to Vercel", or "vercel init".
Also in 3 projects that use this
Other versions15 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 15
- anthropics/claude-plugins-official★ 46ksame name
- ai-analyst-lab/ai-analyst★ 304same name
- nklisch/claude-code-modes★ 116same name
- mycelium-hq/ai-brain-starter★ 50same name
- zllovesuki/cloudflare-agent-skills★ 9same name
- nklisch/skills★ 8same name
- nklisch/skilltap★ 7same name
- Lukasbrujula/claude-code-framework★ 4same name
- nklisch/krometrail★ 3same name
- ffsshhttiikk/opencode-agents-skills★ 2same name
5 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 repository25 other files it gives its agents.
- assess-findingsSkill
- autopilotSkill
- build-fixSkill
- code-searchSkill
- context-usageSkill
- debugSkill
- decideSkill
- designSkill
- docsSkill
- forgetSkill
- gitSkill
- implementSkill
- memoriseSkill
- perfSkill
- plan-swarmSkill
- recallSkill
- reflectSkill
- reviewSkill
- semgrepSkill
- surveySkill
- swarmSkill
- swarm-statusSkill
- testSkill
- verifySkill
- worktree-resolveSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 1 is distinctive, and 6 are very specific to this project.
0
Common
Most of the 11 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 107
Run findings_search analyzer="complexity" severity="critical" to find the most complex functions
- Distinctive: line 108
Read the flagged functions directly using the finding locations
- Very specific: line 115
Run findings_list analyzer="clones" to see detected code clones
- Very specific: line 117
Use Read to compare the duplicated sections
- Very specific: line 122
Run findings_search analyzer="coupling" to see import fan-out/fan-in issues
- Very specific: line 129
Run findings_list analyzer="secrets" severity="critical" for confirmed secrets
- Very specific: line 130
Run findings_list analyzer="secrets" for all potential secrets (including unverified)
“Common” is measured: kept by at least 6 in 10 of the 11 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
Pattern Analysis
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.
Prerequisites
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 clonesBinary location: The aide binary is at .aide/bin/aide. If it's on your $PATH, you can use aide directly.
Available Tools
1. Search Findings (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:line2. List Findings (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 offset
Example usage:
List all critical findings
-> findings_list severity="critical"
-> Returns: all critical-severity findings across all analyzers3. Findings Statistics (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 findingsWorkflow
Quick Health Check
- Get overview — Use
findings_statsto see counts by analyzer and severity - Triage critical — Use
findings_list severity="critical"to review highest-priority items - Drill into areas — Use
findings_searchwith file or query filters for specific concerns
Complexity Analysis
- Run
findings_search analyzer="complexity" severity="critical"to find the most complex functions - Read the flagged functions directly using the finding locations
- Examine surrounding code as needed; use
code_outlinewhen unfamiliar large-file structure would help, or read the full file when small or mostly relevant - Recommend decomposition strategies
Duplication Analysis
- Run
findings_list analyzer="clones"to see detected code clones - Each finding includes the clone pair — both file locations and line ranges
- Use
Readto compare the duplicated sections - Recommend extraction into shared functions or modules
Coupling Analysis
- Run
findings_search analyzer="coupling"to see import fan-out/fan-in issues - High fan-out means a file imports too many things (potential god module)
- High fan-in means many files depend on one (fragile dependency)
- Cycle findings indicate circular dependency chains
Secret Detection
- Run
findings_list analyzer="secrets" severity="critical"for confirmed secrets - Run
findings_list analyzer="secrets"for all potential secrets (including unverified) - Each finding includes the secret category (e.g., AWS, GitHub, generic API key)
- Snippets are redacted for safety — use
Readto examine context around the finding
Anti-Pattern Identification
Beyond 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 |
Output Format
## 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]Failure Handling
- No findings data — Tell user to run analyzers first:
./.aide/bin/aide findings run --path . - Stale findings — Findings reflect the state at last analyzer run; recommend re-running if code changed significantly
- False positives — Secret detection may flag test fixtures or example configs; note when findings appear to be in test/example code
Verification Criteria
- Checked
findings_statsfor overall picture - Reviewed critical findings
- Cross-referenced findings with the relevant source code
- Provided actionable recommendations with file:line references
- Noted any false positives or findings that need manual verification
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.

