// Automated lint and test smoke check workflow for code quality verification. Triggers when user requests code quality checks, lint execution, test validation, or smoke testing. Use for pre-commit checks or quality gates.
| name | checking-code-quality |
| version | v1.1.0 |
| description | Automated lint and test smoke check workflow for code quality verification. Triggers when user requests code quality checks, lint execution, test validation, or smoke testing. Use for pre-commit checks or quality gates. |
Target Token Efficiency: 62% (300 tokens โ 114 tokens)
Automated lint + test workflow for quick code quality verification without manual commands.
Verify Biome settings:
# Check Biome configuration
cat biome.json | head -30
Expected Configuration:
linter.enabled: trueformatter.enabled: truenoExplicitAny: via TypeScript compilerIf Missing:
โ ๏ธ Warning: Biome ์ค์ ๋๋ฝ ๊ฐ์ง
๊ถ์ฅ: biome.json ํ์ธ ํ์
- linter.enabled: true
- formatter.enabled: true
npm run lint
Expected Output:
Auto-Fix Detection:
If errors are detected, check for auto-fixable issues:
# Attempt auto-fix for common issues
npx biome check --write .
# Re-verify after auto-fix
npm run lint
Common Auto-Fixable Issues:
Manual Fix Required:
npm run type-check)npm run test:quick
Expected Metrics:
If All Pass:
If Lint Fails:
npx biome check --write . (if auto-fixable)If Tests Fail:
Format:
๐งช Smoke Check Results
โโ Lint: โ
Pass / โ Fail (N errors)
โโ Tests: โ
134/134 (98.2%) / โ ๏ธ X/134 (Y%)
โโ Duration: Xs (target: <25s)
โโ Status: โ
Ready / โ ๏ธ Review / โ Fix Required
Before (Manual):
User: "์ฝ๋ ํ์ง ์ฒดํฌํด์ค"
Assistant: [reads package.json, explains lint, explains test, runs commands, parses output, formats report]
Tokens: ~300
After (Skill):
User: "check code quality"
Skill: [executes workflow, reports summary]
Tokens: ~114 (62% reduction)
Efficiency Gains:
Case 1: Timeout
Case 2: Zero Tests Run
vitest.config.tssetupFiles path correctCase 3: All Tests Fail
npm ci)performance/next-router-bottleneck.md - If performance issues detectedplaywright/triage.md - If E2E tests need debugging