agentleFS
andraspandrasp/claude-code-flow/skills/validation-skill/SKILL.md

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

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
  1. Distinctive:

    All uncommitted changes (staged + unstaged): git diff --name-only HEAD

    line 22
  2. Very specific:

    Load user guidelines: Check for ~/.claude/CLAUDE.md (user-level) and project root CLAUDE.md.

    line 46
  3. Very specific:

    Read each reviewer prompt from reviewers/, substitute {files} with the file list, and spawn:

    line 69
  4. Distinctive:

    After fixes, re-run only the affected reviewers to verify

    line 122
  5. Distinctive:

    Document in outcome.md (if flow is active):

    line 130
  6. Distinctive:

    When used during a flow's completion phase:

    line 156

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Validation Skill: Multi-Lens Code Review

Comprehensive code review through parallel specialist subagents, each examining changes through a different lens.

Activation

  • Manual: User invokes /validate or requests validation
  • During flow: Can be triggered in Implementation → Completion transition

Execution Flow

Phase 1: Preparation

  1. Identify changed files based on input from /validate command:
    • All uncommitted changes (staged + unstaged): git diff --name-only HEAD
    • Specific files/directories: use provided paths
    • Commit range: git diff --name-only <range>
  2. Categorize changes by type:

    CategoryExtensions/PatternsReviewers
    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...
  3. Load user guidelines: Check for ~/.claude/CLAUDE.md (user-level) and project root CLAUDE.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/):

ReviewerFileFocus
Securitysecurity.mdVulnerabilities, injection, auth issues
Architecturearchitecture.mdDesign patterns, coupling, layer violations
Qualityquality.mdDuplication, naming, complexity, CLAUDE.md compliance
Performanceperformance.mdAlgorithms, queries, bottlenecks
Scalabilityscalability.mdConcurrency, state, distributed concerns
Testingtesting.mdCoverage, test quality, edge cases
Error Handlingerror-handling.mdRobustness, 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

  1. Collect findings from all reviewers
  2. Deduplicate (same issue found by multiple reviewers)
  3. Prioritize by severity: Critical > High > Medium > Low
  4. 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):

  1. For each Critical/High issue, generate and apply the fix
  2. After fixes, re-run only the affected reviewers to verify
  3. Repeat until resolved or max 3 iterations
  4. 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

SeverityCriteriaAction
CriticalSecurity vulnerability, data loss risk, crashMust fix before completion
HighSignificant bug, performance issue, arch violationShould fix, can override
MediumCode quality, maintainability concernRecommended, advisory
LowStyle, minor improvementNoted, 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

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.