packages/forge/src/skills/soleri-code-patrol/SKILL.md
Triggers: "check against patterns", "pattern compliance", "convention check", "review against vault", "institutional review". Reviews code against vault patterns/conventions. Use deep-review for general quality/architecture.
npx skillsauth add adrozdenko/soleri soleri-code-patrolInstall 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.
Review code against vault patterns, anti-patterns, and project conventions. Catches violations that no linter knows about.
YOUR_AGENT_core op:route_intent
params: { prompt: "Code review: <brief description>" }
YOUR_AGENT_core op:vault_domains
YOUR_AGENT_core op:search_intelligent
params: { query: "<what this code does>" }
YOUR_AGENT_core op:search
params: { type: "anti-pattern" }
YOUR_AGENT_core op:search
params: { severity: "critical" }
YOUR_AGENT_core op:project_list_rules
YOUR_AGENT_core op:brain_strengths
| Check | Source | Severity |
| ----------------------------- | ----------------------------- | ------------- |
| Violates critical rule | search (severity: critical) | Must fix |
| Matches known anti-pattern | search (type: anti-pattern) | Must fix |
| Doesn't follow proven pattern | brain_strengths | Should fix |
| Breaks project conventions | project_list_rules | Should fix |
| Misses pattern opportunity | search_intelligent | Could improve |
## Code Patrol Report
### Must Fix (Critical)
- **[Rule name]**: [What's wrong]
Vault ref: [entry title] | Fix: [How]
### Should Fix (Warning)
- **[Anti-pattern]**: [What's wrong]
Better approach: [The pattern to follow]
### Could Improve (Suggestion)
- **[Pattern opportunity]**: [Could benefit from...]
### Summary
X critical, Y warnings, Z suggestions
If review reveals new patterns or gaps not in vault, capture with capture_quick or capture_knowledge.
Re-run patrol after user applies fixes. Check admin_health.
| Op | When to Use |
| ------------------------------------------- | ------------------------------------- |
| route_intent | Classify code domain |
| search_intelligent | Find relevant patterns |
| search | Find anti-patterns and critical rules |
| project_list_rules / get_behavior_rules | Project conventions |
| brain_strengths | Proven patterns |
| capture_quick / capture_knowledge | Capture new discoveries |
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.