Validate

From juicesharp/rpiv-pi · View interactive version

Validate is an AI agent skill from the GitHub repository juicesharp/rpiv-pi. Verify that an implementation plan was correctly executed. Runs success criteria checks and generates validation reports. Use after implementation is complete.

How to use this skill

Skill file

Validate Plan

You are tasked with validating that an implementation plan was correctly executed, verifying all success criteria and identifying any deviations or issues.

Initial Setup

When invoked:

  1. Determine context - Are you in an existing conversation or starting fresh?
  1. Locate the plan:
  1. Gather implementation evidence:

```bash

# Check recent commits

git log --oneline -n 20

git diff HEAD~N..HEAD # Where N covers implementation commits

# Run comprehensive checks

cd $(git rev-parse --show-toplevel) && make check test

```

Validation Process

Step 1: Context Discovery

If starting fresh or need more context:

If the injected git context shows "not a git repo":

  1. Read the implementation plan completely
  2. Identify what should have changed:
  1. Spawn parallel research agents to verify implementation:

Use the Agent tool to spawn general-purpose sub-agents to validate the implementation:

Example agent prompts:

Also gather evidence directly:

```bash

# Check recent commits

git log --oneline -n 20

git diff HEAD~N..HEAD # Where N covers implementation commits

# Run comprehensive checks

cd $(git rev-parse --show-toplevel) && make check test

```

Step 2: Systematic Validation

For each phase in the plan:

  1. Check completion status:
  1. Run automated verification:
  1. Assess manual criteria:
  1. Think deeply about edge cases:

Step 3: Generate Validation Report

Create comprehensive validation summary:

## Validation Report: [Plan Name]

### Implementation Status
✓ Phase 1: [Name] - Fully implemented
✓ Phase 2: [Name] - Fully implemented
⚠️ Phase 3: [Name] - Partially implemented (see issues)

### Automated Verification Results
✓ Build passes: `make build`
✓ Tests pass: `make test`
✗ Linting issues: `make lint` (3 warnings)

### Code Review Findings

#### Matches Plan:
- Database migration correctly adds [table]
- API endpoints implement specified methods
- Error handling follows plan

#### Deviations from Plan:
- Used different variable names in [file:line]
- Added extra validation in [file:line] (improvement)

#### Potential Issues:
- Missing index on foreign key could impact performance
- No rollback handling in migration

### Manual Testing Required:
1. UI functionality:
   - [ ] Verify [feature] appears correctly
   - [ ] Test error states with invalid input

2. Integration:
   - [ ] Confirm works with existing [component]
   - [ ] Check performance with large datasets

### Recommendations:
- Address linting warnings before merge
- Consider adding integration test for [scenario]
- Document new API endpoints

Working with Existing Context

If you were part of the implementation:

Important Guidelines

  1. Be thorough but practical - Focus on what matters
  2. Run all automated checks - Don't skip verification commands
  3. Document everything - Both successes and issues
  4. Think critically - Question if the implementation truly solves the problem
  5. Consider maintenance - Will this be maintainable long-term?

Validation Checklist

Always verify:

Relationship to Other Skills

Recommended workflow:

  1. /skill:implement - Execute the implementation
  2. /skill:commit - Create atomic commits for changes
  3. /skill:validate - Verify implementation correctness

The validation works best after commits are made, as it can analyze the git history to understand what was implemented.

Remember: Good validation catches issues before they reach production. Be constructive but thorough in identifying gaps or improvements.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.