| name | quality-checks |
| description | Orchestrate quality checks at lifecycle points (pre-edit, post-edit, on-stop). Coordinates test, doc, style, and security checks to ensure consistent code quality. Use when making significant code changes or before completing a task.
|
| compatibility | Requires Node.js 24+; works with any codebase |
| metadata | {"version":"1.0.0"} |
Quality Checks
Run comprehensive quality gate checks on code changes. Orchestrates quality checks at key lifecycle points in the development workflow.
When to Use This Skill
- Before starting significant code changes (pre-edit baseline)
- After completing code changes (post-edit validation)
- Before marking a task as complete (final quality gate)
- When asked to run "quality check" or "quality gate"
Skill Contents
Sections
Available Resources
📚 references/ - Detailed documentation
📦 assets/ - Templates and resources
Sub-Skills
Quality checks orchestrate these sub-skills:
| Sub-Skill | Purpose | Skill Location |
|---|
testing-standards | Validates test coverage | SKILL.md |
doc-validation-rfc-37 | Validates documentation | SKILL.md |
coding-standards | Enforces code style | SKILL.md |
security-review | Checks for vulnerabilities | SKILL.md |
Lifecycle Hooks
| Hook | When | Purpose |
|---|
pre-edit | Before changes | Capture baseline metrics |
post-edit | After changes | Validate changes meet standards |
on-stop | Before completion | Final quality gate |
IDE Integration
The quality gateway integrates with AI IDEs through hooks:
| IDE | Integration Method | Reference |
|---|
| Claude Code | Native hooks in settings.json | assets/claude-quality-hooks.md |
| Cursor IDE | Rules + Commands | assets/cursor-quality-integration.md |
For hook implementation patterns, see the ai-agent-hooks skill.
Running Quality Checks
Pre-Edit (Baseline)
Before making changes:
- Record current test coverage
- Note existing linting errors
- Capture documentation state
Post-Edit (Validation)
After making changes:
- Verify test coverage maintained or improved
- Check for new linting errors
- Validate documentation is in sync
On-Stop (Final Gate)
Before completing:
- Run full test suite
- Verify no regressions
- Check all quality thresholds met
Commands
| Command | Purpose |
|---|
/quality-check | Run full quality gate |
/add-tests | Generate missing tests |
/sync-docs | Update documentation |
Assets
| Asset | Description |
|---|
assets/claude-quality-hooks.md | Claude Code hook configurations |
assets/cursor-quality-integration.md | Cursor IDE integration guide |
References
| Reference | Description |
|---|
references/test-result-caching.md | How to save and reuse test results |
Test Result Caching
Always save test output to .tmp/ instead of running tests multiple times:
pnpm test 2>&1 | tee .tmp/pnpm-test-latest.txt
grep "FAIL" .tmp/pnpm-test-latest.txt
tail -20 .tmp/pnpm-test-latest.txt
See references/test-result-caching.md for all tools.
Related Skills