Files
gh-thkt-claude-config/commands/validate.md
2025-11-30 09:01:45 +08:00

3.1 KiB

description, allowed-tools, model
description allowed-tools model
Validate implementation against SOW acceptance criteria with L2 (practical) validation level. Checks acceptance criteria, coverage, and performance. Pass/fail logic with clear scoring. Identifies missing features and issues. Use when ready to verify implementation conformance. SOWの受け入れ基準に対して実装を検証。受け入れ基準、カバレッジ、パフォーマンスをチェック。 Read, Bash(ls:*), Bash(cat:*), Grep inherit

/validate - SOW Criteria Checker

Purpose

Display SOW acceptance criteria for manual verification against completed work.

Simplified: Manual checklist review tool.

Functionality

Display Acceptance Criteria

# Show criteria from latest SOW
!`ls -t ~/.claude/workspace/sow/*/sow.md | head -1 | xargs grep -A 20 "Acceptance Criteria"`

Manual Review Process

  1. Display SOW criteria
  2. Review each item manually
  3. Check against implementation
  4. Document findings

Output Format

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

📋 SOW Validation Checklist

Feature: User Authentication
Created: 2025-01-14

## Acceptance Criteria:

□ AC-01: User registration with email
  → Check: Does registration form exist?
  → Check: Email validation implemented?

□ AC-02: Password requirements enforced
  → Check: Min 8 characters?
  → Check: Special character required?

□ AC-03: OAuth integration
  → Check: Google OAuth working?
  → Check: GitHub OAuth working?

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Manual Review Required:
- Test each feature
- Verify against criteria
- Document any gaps

Usage Examples

Validate Latest SOW

/validate

Shows acceptance criteria from most recent SOW.

Validate Specific SOW

/validate "feature-name"

Shows criteria for specific feature.

Manual Validation Process

Step 1: Review Criteria

- Read each acceptance criterion
- Understand requirements
- Note any ambiguities

Step 2: Test Implementation

- Run application
- Test each feature
- Document behavior

Step 3: Compare Results

- Match behavior to criteria
- Identify gaps
- Note improvements needed

Integration with Workflow

1. Complete implementation
2. Run /validate to see criteria
3. Manually test each item
4. Update documentation with results

Simplified Approach

  • No automation: Human judgment required
  • Clear checklist: Easy to follow
  • Manual process: Thorough verification
  • /think - Create SOW with criteria
  • /sow - View full SOW document
  • /test - Run automated tests

Applied Principles

Occam's Razor

  • Simple checklist display
  • No complex validation logic
  • Human judgment valued

Single Responsibility

  • Only displays criteria
  • Validation done manually

Progressive Enhancement

  • Start with manual process
  • Automate later if needed