Skip to content

Commit 38f3fd6

Browse files
docs: enhance validation process documentation for clarity and thoroughness
- Updated the context discovery section to include parallel research tasks for verifying database, code, and test coverage changes. - Improved systematic validation steps by emphasizing documentation of pass/fail status and investigation of failures. - Added considerations for edge cases in manual criteria assessment to ensure comprehensive testing and validation.
1 parent c823b67 commit 38f3fd6

File tree

1 file changed

+27
-32
lines changed

1 file changed

+27
-32
lines changed

claude-code/commands/validate.md

Lines changed: 27 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -30,22 +30,30 @@ Please provide the plan file to validate against, or I can check for recently im
3030

3131
### Step 1: Context Discovery
3232

33+
If starting fresh or need more context:
34+
3335
1. **Read the implementation plan** completely
3436
2. **Identify what should have changed**:
3537
- List all files that should be modified
3638
- Note all success criteria (automated and manual)
3739
- Identify key functionality to verify
3840

39-
3. **Check implementation evidence**:
40-
```bash
41-
# Check recent commits
42-
git log --oneline -n 20
43-
44-
# Check current changes
45-
git status
46-
git diff
47-
48-
# Look for the files mentioned in plan
41+
3. **Spawn parallel research tasks** to discover implementation:
42+
```
43+
Task 1 - Verify database changes:
44+
Research if migration [N] was added and schema changes match plan.
45+
Check: migration files, schema version, table structure
46+
Return: What was implemented vs what plan specified
47+
48+
Task 2 - Verify code changes:
49+
Find all modified files related to [feature].
50+
Compare actual changes to plan specifications.
51+
Return: File-by-file comparison of planned vs actual
52+
53+
Task 3 - Verify test coverage:
54+
Check if tests were added/modified as specified.
55+
Run test commands and capture results.
56+
Return: Test status and any missing coverage
4957
```
5058

5159
### Step 2: Systematic Validation
@@ -55,34 +63,21 @@ For each phase in the plan:
5563
1. **Check completion status**:
5664
- Look for checkmarks in the plan (- [x])
5765
- Verify the actual code matches claimed completion
58-
- Note any unchecked items
5966

6067
2. **Run automated verification**:
61-
Execute each command from "Automated Verification" sections:
62-
```bash
63-
# Common verification commands
64-
npm test
65-
npm run lint
66-
npm run typecheck
67-
npm run build
68-
69-
# Or project-specific
70-
make test
71-
make check
72-
pytest
73-
cargo test
74-
```
68+
- Execute each command from "Automated Verification"
69+
- Document pass/fail status
70+
- If failures, investigate root cause
7571

76-
3. **Document results**:
77-
- ✓ for passing checks
78-
- ✗ for failing checks with error details
79-
- ⚠️ for partial success or warnings
80-
81-
4. **Assess manual criteria**:
72+
3. **Assess manual criteria**:
8273
- List what needs manual testing
8374
- Provide clear steps for user verification
84-
- Note which manual checks you cannot perform
8575

76+
4. **Think deeply about edge cases**:
77+
- Were error conditions handled?
78+
- Are there missing validations?
79+
- Could the implementation break existing functionality?
80+
8681
### Step 3: Code Quality Review
8782

8883
Spawn parallel Task agents for thorough review:

0 commit comments

Comments
 (0)