| name | validate-implementation |
| description | Validate an implementation for runtime errors, accessibility, and API compliance before committing. Use as a final quality gate after implementing a feature or component. |
Skill: Validate Implementation
A quality gate that checks for runtime errors, accessibility issues, and API compliance.
When to Use
After implementing a feature or component, before committing.
Validation Steps
Step 1: TypeScript Type Checking
npm run typecheck
Fix any type errors before proceeding.
Step 2: ESLint
npm run lint
Fix any lint errors.
Step 3: Unit Tests
npm run test
All tests must pass.
Step 4: Browser Validation (via Playwright MCP)
If Playwright MCP is available:
- Navigate to the page with the new feature
- Walk through the user flow
- Check for console errors:
() => {
const errors = [];
const originalError = console.error;
console.error = (...args) => { errors.push(args.join(' ')); originalError(...args); };
return errors;
}
- Verify the UI renders correctly
Step 5: Console Error Check
Monitor the browser console during interaction:
- No
TypeError or ReferenceError
- No React warnings (missing keys, prop type mismatches)
- No network errors (404s, 500s)
- No unhandled promise rejections
Quick Checklist