بنقرة واحدة
validate
Verify implementation against specifications
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Verify implementation against specifications
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Argus — all-in-one information gathering & reconnaissance toolkit. 135 modules covering network infrastructure, web app analysis, and security/threat intelligence. Use for domain recon, subdomain enum, SSL analysis, tech stack detection, vulnerability scanning, and OSINT.
Manage secrets via Bitwarden CLI (bw). Use when pulling secrets into a shell session, creating/updating Secure Notes from .env files, listing vault items, or setting up Bitwarden on a new machine. Secrets live in Bitwarden, get loaded into memory on demand, and die with the shell session — no files on disk.
Develop a thorough, step-by-step specification for a given idea
Set up a recurring build tracker cron job for any GitHub repo. Runs a zero-LLM shell script to detect stale PRs, stale assigned issues, and phase progress, then posts to a Discord channel only when there's something actionable. Use when asked to "track this build every N hours", "prod agents on a project", "set up a build monitor", "watch this repo for stale work", or similar. The tracker is cheap to run — script does all the work, the agent only speaks when findings exist.
Run long-running coding tasks in cloud environments (Claude Code or Codex), with session teleporting and automatic PR creation.
Delegate coding tasks to subagents or run Claude Code/Codex in tmux sessions. Use the Task tool for focused multi-step coding work. Use tmux for long-running interactive sessions, parallel worktree-based fixes, and PR reviews. NOT for simple single-file edits — do those directly.
| name | validate |
| description | Verify implementation against specifications |
| user-invocable | true |
You are tasked with validating that an implementation plan was correctly executed, verifying all success criteria and identifying any deviations or issues.
When invoked:
Determine context:
Locate the plan:
plans/ directory for recent plansRespond appropriately:
I'll validate the implementation against the plan.
[If in existing conversation]:
I'll verify the work we just completed.
[If starting fresh]:
Please provide the plan file to validate against, or I can check for recently implemented plans.
If starting fresh or need more context:
Read the implementation plan completely
Identify what should have changed:
Spawn parallel research tasks to discover implementation:
Task 1 - Verify database changes:
Research if migration [N] was added and schema changes match plan.
Check: migration files, schema version, table structure
Return: What was implemented vs what plan specified
Task 2 - Verify code changes:
Find all modified files related to [feature].
Compare actual changes to plan specifications.
Return: File-by-file comparison of planned vs actual
Task 3 - Verify test coverage:
Check if tests were added/modified as specified.
Run test commands and capture results.
Return: Test status and any missing coverage
For each phase in the plan:
Check completion status:
Run automated verification:
Assess manual criteria:
Think deeply about edge cases:
Go beyond task completion -- verify the codebase actually delivers what was promised.
Extract must-haves from the plan:
Three-level artifact analysis for each required artifact:
| Level | Check | Question |
|---|---|---|
| Exists | File/function present | Does the file exist? Is the function defined? |
| Substantive | Real code, not stub | Is this actual implementation or placeholder? |
| Wired | Connected and used | Is this imported, called, routed, rendered? |
Stub detection -- flag these patterns as NOT substantive:
return null, return {}, return undefined// TODO, // FIXME, // placeholderthrow new Error("Not implemented")pass in PythononClick={() => {}}, empty event handlersResponse.json({ message: "Not implemented" })Produce verification matrix:
## Goal-Backward Verification
| Truth | Artifact | Exists | Substantive | Wired | Status |
|-------|----------|--------|-------------|-------|--------|
| User can login | src/auth/login.ts | Y | Y | Y | VERIFIED |
| Session persists | src/auth/session.ts | Y | Y | N | ORPHANED |
| Errors display | src/components/Error.tsx | Y | N | - | STUB |
| Rate limited | src/middleware/rate.ts | N | - | - | MISSING |
Gap structuring -- for any non-VERIFIED items:
### Gaps Found
#### Gap 1: Session persistence (ORPHANED)
- **Truth**: "Session persists across page reloads"
- **Issue**: session.ts exists and is substantive but never imported in app routes
- **Fix**: Import and wire session middleware in src/app.ts
#### Gap 2: Error display (STUB)
- **Truth**: "Errors display to user"
- **Issue**: Error.tsx returns null -- placeholder component
- **Fix**: Implement error rendering with message prop
Include in validation report (Step 4) under a "Goal-Backward Verification" section
Spawn parallel Task agents for thorough review:
Task 1: "Review implementation of [Phase 1 feature]"
- Check if implementation matches plan specifications
- Verify error handling and edge cases
- Look for potential bugs or issues
- Return specific findings with file:line references
Task 2: "Verify test coverage for [feature]"
- Check if tests were added as specified
- Verify test quality and coverage
- Look for missing test cases
- Return test file locations and coverage gaps
Task 3: "Check for regressions in [related component]"
- Verify existing functionality still works
- Check for breaking changes
- Look for unintended side effects
- Return any concerning changes
Create comprehensive validation summary:
# Validation Report: [Plan Name]
**Date**: [Current date and time]
**Plan**: plans/[plan_file].md
**Validation Type**: [Automated | Manual | Comprehensive]
## Implementation Status
### Phase Completion
Phase 1: [Name] - Fully implemented
Phase 2: [Name] - Fully implemented
Phase 3: [Name] - Partially implemented (see issues)
### Files Modified
`src/auth/oauth.js` - Added as specified
`src/config/auth.config.js` - Updated correctly
`tests/auth.test.js` - Missing test cases
## Automated Verification Results
### Build & Compilation
Build passes: `npm run build` (2.3s)
TypeScript: No errors
### Tests
Unit tests: 142 passing
Integration tests: 2 failing
- Error in OAuth callback test (timeout)
- Error in token refresh test (undefined variable)
### Code Quality
Linting: Clean (ESLint)
Coverage: 78% (target was 80%)
## Code Review Findings
### Matches Plan
- OAuth2 flow implemented correctly
- Token storage follows security requirements
- Error handling comprehensive
### Deviations from Plan
- Used different library than specified (passport vs manual)
- Impact: Positive - more maintainable
- Added extra validation not in plan
- Impact: Positive - improved security
### Potential Issues
**Performance**: Token validation happens on every request
- Recommendation: Add caching layer
**Security**: Refresh tokens stored in localStorage
- Recommendation: Use httpOnly cookies
**Missing**: Rate limiting not implemented
- Required by plan Phase 2
## Manual Testing Required
The following require manual verification:
### User Interface
- [ ] OAuth login button appears correctly
- [ ] Redirect flow works smoothly
- [ ] Error messages display appropriately
### Integration Testing
- [ ] Works with Google OAuth provider
- [ ] Works with GitHub OAuth provider
- [ ] Token refresh happens seamlessly
### Performance Testing
- [ ] Login completes within 3 seconds
- [ ] Handles 100 concurrent logins
## Recommendations
### Immediate Actions
1. Fix failing integration tests
2. Add missing rate limiting
3. Increase test coverage to 80%
### Before Production
1. Move refresh tokens to secure storage
2. Add token validation caching
3. Complete manual testing checklist
### Nice to Have
1. Add OAuth provider abstraction
2. Implement token rotation
3. Add audit logging
## Summary
**Overall Status**: **Mostly Complete**
The implementation follows the plan well with some positive deviations. However, there are 2 failing tests and missing rate limiting that must be addressed before this can be considered complete.
**Next Steps**:
1. Fix the failing integration tests
2. Implement rate limiting (Phase 2 requirement)
3. Complete manual testing
4. Address security recommendations
Save to: validation/YYYY-MM-DD_HH-MM-SS_planname.md
After presenting the report, ask:
Would you like me to:
1. Help fix the failing tests?
2. Implement the missing features?
3. Run specific additional checks?
4. Generate a checklist for manual testing?
Always verify:
# JavaScript/TypeScript
npm test
npm run lint
npm run typecheck
npm run build
# Python
pytest
python -m pytest --cov
flake8
mypy
# Go
go test ./...
go vet ./...
golangci-lint run
# Rust
cargo test
cargo clippy
cargo fmt --check
# Generic
make test
make check
make lint
If validation reveals issues:
Categorize by severity:
Provide fixes when possible:
Update the plan:
Remember: Good validation catches issues before they reach production. Be constructive but thorough in identifying gaps or improvements.