examples/reference-agent/skills/deep-review/SKILL.md
Use for in-depth code review beyond linting — architecture fitness, code smells, solution quality, optimization opportunities. Triggers on "deep review", "review this code", "is this well architected", "code smells", "review this module", "architecture review", "is this the right approach", "optimization review". Works on any codebase. For vault-specific knowledge quality, use vault-smells instead.
npx skillsauth add adrozdenko/soleri deep-reviewInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Multi-pass code review that goes beyond surface lint. Analyzes structural health, code smells, architectural fitness, and solution quality. Works on any codebase — vault context is optional enrichment, not a requirement.
The user provides a target: file, module, directory, PR diff, or function. If unclear, ask.
Metrics (gather by reading the code):
Structural Smells:
fn(true, false, true))Duplication Smells:
Temporal Smells (check git history):
git log --format=format: --name-only --since="3 months ago" <target-path> | sort | uniq -c | sort -rn | head -20
Present findings before moving to Pass 2.
Dependency Direction:
Abstraction Level:
Cohesion & Coupling:
Vault Context (optional — only if vault is connected):
salvador_core op:search_intelligent
params: { query: "<module name> architecture pattern" }
If vault has relevant patterns, check alignment. If not, skip — this pass works without vault.
Simplification:
Edge Cases:
Performance:
Evolutionary Fitness:
## Deep Review: [target name]
### Structural Health
| Metric | Value | Verdict |
|--------|-------|---------|
| Lines | X | OK / ⚠️ Large |
| Functions | X | OK / ⚠️ Many |
| Max nesting | X | OK / ⚠️ Deep |
| Dependencies | X | OK / ⚠️ Heavy |
| Export surface | X public / Y total | OK / ⚠️ Wide |
### Code Smells
| Smell | Location | Severity | Detail |
|-------|----------|----------|--------|
| God file | file.ts | ⚠️ | 450 lines, 3 mixed concerns |
| Feature envy | fn() → other module | ⚠️ | Reaches into X internals |
| Deep nesting | line 120-180 | 💡 | 5 levels, consider early returns |
### Architecture
| Aspect | Assessment |
|--------|------------|
| Dependency direction | ✅ Clean / ⚠️ Reverse dep on X |
| Abstraction level | ✅ Right / ⚠️ Over/Under |
| Cohesion | ✅ High / ⚠️ Mixed concerns |
| Coupling | ✅ Low / ⚠️ Tight with X |
### Solution Quality
| Area | Finding |
|------|---------|
| Simplification | [opportunity or "none found"] |
| Edge cases | [gaps found or "well covered"] |
| Performance | [concerns or "no issues"] |
| Evolutionary fitness | [assessment] |
### Recommendations
| Priority | Action | Impact |
|----------|--------|--------|
| 1 | [most impactful] | High |
| 2 | [second] | Medium |
| Level | Meaning | | ----- | ------------------------------------------------------------- | | ✅ | Clean — no action needed | | 💡 | Info — worth knowing, low priority | | ⚠️ | Warning — should fix, causes friction | | 🔴 | Critical — fix before shipping, causes bugs or blocks scaling |
If the review uncovers a pattern or anti-pattern worth remembering:
salvador_core op:capture_knowledge
params: {
title: "<pattern name>",
description: "<what was found, why it matters>",
type: "pattern" | "anti-pattern",
category: "architecture",
tags: ["code-review", "<specific-tag>"]
}
Only capture if genuinely reusable — not every review finding is vault-worthy.
Do NOT rationalize away findings. If a smell or issue is detected, report it honestly.
| Pass | Focus | Key Activities | | --------------- | ---------------- | ----------------------------------------------------------- | | 1. Structural | Metrics + Smells | Read code, check complexity, find smells, check git history | | 2. Architecture | Fitness | Dependency direction, abstraction level, cohesion/coupling | | 3. Solution | Quality | Simplification, edge cases, performance, evolution |
testing
Triggers: "terse mode", "be brief", "less tokens", "fewer tokens", "compress output", "caveman", or invokes /terse. Token-efficient responses with full technical accuracy.
tools
Triggers: "compress this file", "compress CLAUDE.md", "compress memory", "shrink this", "reduce tokens in file", or invokes /compress. Compresses natural language files to save input tokens.
testing
Triggers: "release", "bump version", "publish packages", "cut a release", "version bump", "npm publish". Bumps monorepo versions, commits, tags, pushes to trigger CI release. Use deliver-and-ship for quality gates.
development
Triggers: "implement X", "build Y", "fix Z", "add feature", or any work task needing planning + execution. Full orchestration loop: plan, execute, complete with vault context and brain recs.