validation-skill
Skill1 starsChanged 11 months agoMITView on GitHub
Multi-lens code review with parallel specialist reviewers. Use /validate to run comprehensive code review on recent changes.
- Reads credentials
In this repository3 other files it gives its agents.
- autonomous-skillSkill
- flow-skillSkill
- roadmap-skillSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 4 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 22
All uncommitted changes (staged + unstaged): git diff --name-only HEAD
- Very specific: line 46
Load user guidelines: Check for ~/.claude/CLAUDE.md (user-level) and project root CLAUDE.md.
- Very specific: line 69
Read each reviewer prompt from reviewers/, substitute {files} with the file list, and spawn:
- Distinctive: line 122
After fixes, re-run only the affected reviewers to verify
- Distinctive: line 130
Document in outcome.md (if flow is active):
- Distinctive: line 156
When used during a flow's completion phase:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Validation Skill: Multi-Lens Code Review
Comprehensive code review through parallel specialist subagents, each examining changes through a different lens.
Activation
- Manual: User invokes
/validateor requests validation - During flow: Can be triggered in Implementation → Completion transition
Execution Flow
Phase 1: Preparation
- Identify changed files based on input from
/validatecommand:- All uncommitted changes (staged + unstaged):
git diff --name-only HEAD - Specific files/directories: use provided paths
- Commit range:
git diff --name-only <range>
- All uncommitted changes (staged + unstaged):
Categorize changes by type:
Category Extensions/Patterns Reviewers Source code .ts,.js,.py,.go,.rs,.java, etc.Security, Architecture, Quality, Performance, Error Handling Tests *.test.*,*.spec.*,__tests__/Testing Config *.json,*.yaml,*.toml,*.env*Scalability Docs *.md,docs/Skip code review, note for user Present summary to user:
Found [N] changed files: - [X] source files - [Y] test files - [Z] config files - [W] documentation files (skipped) Proceeding with review...- Load user guidelines: Check for
~/.claude/CLAUDE.md(user-level) and project rootCLAUDE.md. Pass to all reviewers for checking against coding standards.
Phase 2: Parallel Review
Spawn reviewer subagents in parallel using Task tool. Each reviewer:
- Receives list of changed files
- Reads and analyzes through its lens
- Returns structured findings with severity, location, and suggested fix
Reviewers (prompts in reviewers/):
| Reviewer | File | Focus |
| Security | security.md | Vulnerabilities, injection, auth issues |
| Architecture | architecture.md | Design patterns, coupling, layer violations |
| Quality | quality.md | Duplication, naming, complexity, CLAUDE.md compliance |
| Performance | performance.md | Algorithms, queries, bottlenecks |
| Scalability | scalability.md | Concurrency, state, distributed concerns |
| Testing | testing.md | Coverage, test quality, edge cases |
| Error Handling | error-handling.md | Robustness, graceful degradation |
Launching reviewers:
Read each reviewer prompt from reviewers/, substitute {files} with the file list, and spawn:
Task(
subagent_type="feature-dev:code-reviewer",
prompt="[Contents of reviewer prompt with {files} replaced]"
)Launch all relevant reviewers in parallel (single message with multiple Task calls). Quality reviewer always runs.
Phase 3: Aggregation
- Collect findings from all reviewers
- Deduplicate (same issue found by multiple reviewers)
- Prioritize by severity: Critical > High > Medium > Low
- Group by file for easier navigation
Phase 4: Presentation
Present aggregated report:
# Validation Report
## Summary
- **Files Reviewed:** [N]
- **Critical Issues:** [N] (must fix)
- **High Issues:** [N] (should fix)
- **Medium Issues:** [N] (recommended)
- **Low Issues:** [N] (noted)
## Critical Issues
| File | Line | Issue | Reviewer | Suggested Fix |
|------|------|-------|----------|---------------|
| ... | ... | ... | ... | ... |
## High Issues
[Same table format]
## Medium Issues
[Same table format]
---
**Options:**
1. Fix Critical + High issues automatically
2. Show me the details first
3. Proceed without fixing (document override)Phase 5: Handle User Decision
If user chooses Option 1 (Fix automatically):
- For each Critical/High issue, generate and apply the fix
- After fixes, re-run only the affected reviewers to verify
- Repeat until resolved or max 3 iterations
- Present final status
If user chooses Option 2 (Show details): Show full description and suggested fix for each issue, then return to options.
If user chooses Option 3 (Override): Document in outcome.md (if flow is active):
## Validation Override
Completed with [N] unresolved [severity] issues per user decision.
Issues: [list]
Reason: [ask user for reason]Severity Definitions
| Severity | Criteria | Action |
| Critical | Security vulnerability, data loss risk, crash | Must fix before completion |
| High | Significant bug, performance issue, arch violation | Should fix, can override |
| Medium | Code quality, maintainability concern | Recommended, advisory |
| Low | Style, minor improvement | Noted, no action required |
Configuration
Users can customize via conversation:
- "Skip security review" → exclude Security reviewer
- "Only check for critical issues" → filter output
- "Don't auto-remediate" → present only, no fixes
Integration with Flow
When used during a flow's completion phase:
- Critical issues block completion (user can override)
- Findings are documented in outcome.md
- Remediation is part of the flow's implementation record
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.

