check-quality
18
总安装量
4
周安装量
#19360
全站排名
安装命令
npx skills add https://github.com/phrazzld/claude-config --skill check-quality
Agent 安装分布
mcpjam
4
droid
4
kilo
4
gemini-cli
4
antigravity
4
windsurf
4
Skill 文档
/check-quality
Audit quality infrastructure. Output findings as structured report.
What This Does
- Check testing infrastructure (Vitest, Jest, coverage)
- Check git hooks (Lefthook, Husky)
- Check CI/CD (GitHub Actions)
- Check linting/formatting (ESLint, Prettier, Biome)
- Output prioritized findings (P0-P3)
This is a primitive. It only investigates and reports. Use /log-quality-issues to create GitHub issues or /fix-quality to fix.
Process
1. Testing Infrastructure
# Test runner
[ -f "vitest.config.ts" ] || [ -f "vitest.config.js" ] && echo "â Vitest" || echo "â Vitest"
[ -f "jest.config.ts" ] || [ -f "jest.config.js" ] && echo "â Jest" || echo "â Jest (prefer Vitest)"
# Coverage
grep -q "coverage" package.json 2>/dev/null && echo "â Coverage script" || echo "â Coverage script"
grep -q "@vitest/coverage" package.json 2>/dev/null && echo "â Coverage plugin" || echo "â Coverage plugin"
# Test files exist
find . -name "*.test.ts" -o -name "*.spec.ts" 2>/dev/null | head -5 | wc -l | xargs -I{} echo "{} test files found"
2. Git Hooks
# Hook manager
[ -f "lefthook.yml" ] && echo "â Lefthook" || echo "â Lefthook (recommended)"
[ -f ".husky/_/husky.sh" ] && echo "â Husky (prefer Lefthook)" || echo "- Husky not found"
# Hooks installed
[ -f ".git/hooks/pre-commit" ] && echo "â pre-commit hook" || echo "â pre-commit hook"
[ -f ".git/hooks/pre-push" ] && echo "â pre-push hook" || echo "â pre-push hook"
3. CI/CD
# GitHub Actions
[ -f ".github/workflows/ci.yml" ] || [ -f ".github/workflows/test.yml" ] && echo "â CI workflow" || echo "â CI workflow"
# CI coverage reporting
grep -rq "vitest-coverage-report" .github/workflows/ 2>/dev/null && echo "â Coverage in PRs" || echo "â Coverage in PRs"
# Branch protection (check via gh)
gh api repos/{owner}/{repo}/branches/main/protection 2>/dev/null | jq -r '.required_status_checks.contexts[]?' 2>/dev/null | head -3
4. Linting & Formatting
# ESLint
[ -f "eslint.config.js" ] || [ -f ".eslintrc.js" ] || [ -f ".eslintrc.json" ] && echo "â ESLint" || echo "â ESLint"
# Prettier
[ -f "prettier.config.js" ] || [ -f ".prettierrc" ] && echo "â Prettier" || echo "- Prettier not found"
# Biome (modern alternative)
[ -f "biome.json" ] && echo "â Biome" || echo "- Biome not found"
# TypeScript
[ -f "tsconfig.json" ] && echo "â TypeScript" || echo "â TypeScript"
grep -q '"strict": true' tsconfig.json 2>/dev/null && echo "â Strict mode" || echo "â Strict mode"
5. Commit Standards
# Commitlint
[ -f "commitlint.config.js" ] || [ -f "commitlint.config.cjs" ] && echo "â Commitlint" || echo "â Commitlint"
# Changesets
[ -d ".changeset" ] && echo "â Changesets" || echo "- Changesets not found"
6. Test Coverage Analysis
# Run coverage if available
pnpm coverage 2>/dev/null | tail -20 || npm run coverage 2>/dev/null | tail -20 || echo "No coverage script"
Spawn test-strategy-architect agent for deep test quality analysis if tests exist.
Output Format
## Quality Gates Audit
### P0: Critical (Must Have)
- No test runner configured - Cannot verify code works
- No CI workflow - Changes not validated before merge
### P1: Essential (Every Project)
- No pre-commit hooks - Code can be committed without checks
- No coverage configured - Cannot measure test coverage
- ESLint not configured - No static analysis
- TypeScript not in strict mode - Losing type safety
### P2: Important (Production Apps)
- No commitlint - Inconsistent commit messages
- No coverage reporting in PRs - Hard to track test quality
- No pre-push hooks - Tests bypass possible
### P3: Nice to Have
- Consider Lefthook over Husky (faster, simpler)
- Consider Vitest over Jest (faster, native ESM)
- Consider Biome over ESLint+Prettier (faster, unified)
## Current Status
- Test runner: None
- Coverage: Not configured
- Git hooks: None
- CI/CD: None
- Linting: Partial
## Summary
- P0: 2 | P1: 4 | P2: 3 | P3: 3
- Recommendation: Set up Vitest with Lefthook hooks first
Priority Mapping
| Gap | Priority |
|---|---|
| No test runner | P0 |
| No CI workflow | P0 |
| No coverage | P1 |
| No git hooks | P1 |
| No linting | P1 |
| Not strict TypeScript | P1 |
| No commitlint | P2 |
| No coverage in PRs | P2 |
| Tool upgrades | P3 |
Related
/log-quality-issues– Create GitHub issues from findings/fix-quality– Fix quality infrastructure/quality-gates– Full quality setup workflow