X Verify
Run lint, build, and test verification protocols
Claude CodeGeneric
---
description: Run lint, build, and test verification protocols
---
Use the `ai-engineering-system` skill for additional context about the .ai context system, templates, and workflows.
# AI Engineering System: Verify
Run verification protocols to ensure code quality before considering work complete.
## Steps
1. **Load Verification Config**
- Read `.ai/TESTING.md` for project-specific verification protocols
- Check `CLAUDE.md` for any additional verification requirements
- Fall back to standard commands if no custom config
2. **Run Lint**
```bash
npm run lint
- If errors found: Fix them automatically where possible
- Re-run lint after fixes
- Report any issues that couldn't be auto-fixed
Run Build
npm run build- If type errors found: Fix them
- Re-run build after fixes
- Report any persistent issues
Run Tests
npm run test- Report test results
- Do NOT auto-fix failing tests without user approval
- Summarize which tests failed and why
Additional Protocols
- Run any custom verification from
.ai/TESTING.md - E2E tests if specified
- Manual verification checklist items
- Run any custom verification from
Iterative Fixing
For lint and build errors:
- Parse error output
- Identify fixable issues
- Apply fixes
- Re-run verification
- Repeat until passing or blocked
Maximum 3 iterations per step before reporting to user.
Output Format
## Verification Report
### Lint
- Status: PASS/FAIL
- Issues fixed: [count]
- Remaining issues: [list if any]
### Build
- Status: PASS/FAIL
- Type errors fixed: [count]
- Remaining errors: [list if any]
### Tests
- Status: PASS/FAIL
- Passed: [count]
- Failed: [count]
- Failed tests: [list with reasons]
### Overall
- Status: PASS/FAIL
- Ready for commit: YES/NO
On Failure
If verification fails and cannot be auto-fixed:
- Report specific failures
- Suggest fixes if apparent
- Ask user how to proceed
- Do NOT mark tasks complete until verification passes
Maintain X Verify?
Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.
[X Verify on getagentictools](https://getagentictools.com/loops/xcke-ai-engineering-system-verify?ref=badge) npx agentictools info loops/xcke-ai-engineering-system-verify The second line is the CLI lookup for this page — handy in READMEs and docs.