| name | validation-analysis |
| description | Automated validation results analysis for post-commit workflow. Triggers when user requests validation analysis, code review summary, or checking background validation results. Analyzes Biome, TypeScript, and AI review reports. |
| version | v1.3.0 |
| user-invocable | true |
| allowed-tools | Bash, Read, Grep |
Post-Commit Validation Analysis
Target Token Efficiency: 75% (400 tokens โ 100 tokens)
Purpose
Automated analysis of background validation results (Biome + TypeScript + AI Review) generated after commit.
Trigger Keywords
- "๊ฒ์ฆ ๊ฒฐ๊ณผ"
- "๊ฒ์ฆ ๊ฒฐ๊ณผ ๋ถ์"
- "validation results"
- "analyze validation"
- "check validation"
- "review results"
- "post-commit results"
- "background validation"
- "์ฝ๋ ๊ฒ์ฆ ํ์ธ"
- "๋ฆฌ๋ทฐ ๊ฒฐ๊ณผ"
Context
- Project: OpenManager VIBE v5.85.0
- Validation Workflow: post-commit hook (background, 5min timeout)
- Output Location:
logs/validation/validation-complete-latest.md
- Components:
- Biome: Full codebase lint + format check โ
logs/lint-reports/
- TypeScript: Type check โ
logs/typecheck-reports/
- AI Review: Codex โ Gemini โ Qwen rotation โ
reports/ai-review/
- Issue Tracking:
reports/ai-review/.issue-tracking.json
Workflow
1. Check Summary File Existence
if [ -f "logs/validation/validation-complete-latest.md" ]; then
echo "โ
Validation summary found"
else
echo "โ ๏ธ No validation summary yet. Run 'git commit' first."
exit 0
fi
2. Read and Parse Summary
Read logs/validation/validation-complete-latest.md and extract:
- Commit hash
- Timestamp
- Report file paths
- Preview results
3. Analyze Each Component
A. Biome Results
Check for:
- โ
Pass: No errors
- โ ๏ธ Warnings: < 5 acceptable
- โ Errors: Immediate action required
Common Issues:
- Type errors (strict mode violations)
- Unused variables
- Import organization issues
B. TypeScript Results
Check for:
- โ
Pass: No type errors
- โ Fail: Type errors found
Common Issues:
- Missing type annotations
- Type mismatches
any type usage
C. AI Review Results
Role Separation:
- ๐ค Codex/Gemini: Auto-review changed files (external AI, post-commit)
- ๐ง Claude Code: Analyze results and apply fixes to code (this Skill)
Check for:
- Review score (1-10)
- Critical findings from Codex/Gemini
- Improvement suggestions
Extract:
- ๐ด Critical issues (security, performance) โ Apply fixes
- ๐ก Warnings (code quality) โ Review and improve
- ๐ต Suggestions (best practices) โ Consider for next commit
Claude Code Action:
- Read Codex/Gemini review results
- Analyze findings
- Apply improvements to actual code
- Re-run validation to verify fixes
4. Generate Priority Action List
Format:
๐ Validation Analysis Summary
Commit: [hash]
Date: [timestamp]
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ Biome: [โ
Pass / โ ๏ธ Warnings / โ Errors]
๐ TypeScript: [โ
Pass / โ Fail]
๐ค AI Review: [Score]/10
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ฏ Priority Actions:
1. [CRITICAL] Fix TypeScript errors in X files
โ See: logs/typecheck-reports/typecheck-YYYYMMDD-HHMMSS.md
2. [HIGH] Address AI review security concerns
โ See: reports/ai-review/review-AI-YYYYMMDD-HHMMSS.md
3. [MEDIUM] Resolve Biome warnings
โ Run: npm run lint:fix
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ Full Reports:
- ESLint: [path]
- TypeScript: [path]
- AI Review: [path]
๐ก Next Steps:
- Fix critical issues first
- Re-run validation after fixes
- Commit improvements with --no-verify if needed
5. Smart Recommendations
If All Pass:
โ
All validations passed!
๐ Code quality is excellent.
๐ก No action required. Safe to push.
If Only Warnings:
โ ๏ธ Minor issues detected.
โ
Safe to push if urgent.
๐ก Recommended: Fix warnings in next commit.
If Errors Exist:
โ Critical issues found!
๐ DO NOT push to production.
๐ก Required: Fix errors before deployment.
Token Optimization Strategy
Before (Manual):
User: "๊ฒ์ฆ ๊ฒฐ๊ณผ ๋ถ์ํด์ค"
Assistant: [reads summary file, reads each report, parses results, explains findings, formats output]
Tokens: ~400
After (Skill):
User: "๊ฒ์ฆ ๊ฒฐ๊ณผ"
Skill: [executes workflow, generates priority list]
Tokens: ~100 (75% reduction)
Efficiency Gains:
- โ No need to explain validation workflow
- โ No need to read multiple report files
- โ
Direct summary parsing
- โ
Structured action list
- โ
Smart priority sorting
Edge Cases
Case 1: Summary File Not Found
- Message: "No validation results yet. Did you commit recently?"
- Action: Wait 5 minutes after commit (background tasks running)
Case 2: Empty or Corrupted Summary
- Check: File size > 0 bytes
- Fallback: Read individual report files directly
Case 3: Reports Still Generating
- Symptom: Summary exists but report paths missing
- Message: "Validation in progress. Check again in 2-3 minutes."
Case 4: All Reports Missing
Success Criteria
- Summary file parsed successfully
- All 3 components analyzed
- Priority action list generated
- Clear next steps provided
- No manual file reading required
Integration with Other Skills
Trigger Sequence:
- User commits code
- post-commit hook runs (background)
- After 5+ minutes, user asks: "๊ฒ์ฆ ๊ฒฐ๊ณผ"
- This Skill activates
- If issues found, suggest:
lint-smoke - For quick re-validation
security-audit-workflow - If security issues detected
Related Skills
lint-smoke - Quick re-validation after fixes
security-audit-workflow - Deep security analysis
playwright-triage - E2E test failure analysis
ai-report-export - Export AI review results
Workflow Integration
Post-Commit Flow:
git commit
โ
.husky/post-commit โ npm run hook:post-commit
โ
scripts/hooks/post-commit.js (cross-platform Node.js)
โ
Biome + TypeScript + AI Review (parallel, 5min timeout)
โ
create-summary.sh (aggregates results)
โ
logs/validation/validation-complete-latest.md
โ
[User requests] "๊ฒ์ฆ ๊ฒฐ๊ณผ"
โ
This Skill analyzes and reports
Note: Windows์์๋ background AI review๊ฐ ์คํต๋ฉ๋๋ค (WSL/Linux only).
Changelog
- 2025-12-29: v1.3.0 - ์ด์ ํธ๋ํน ํตํฉ
.issue-tracking.json ์ด์ ์ถ์ JSON ์ฐ๋
review-issue-tracker.sh ์ค์บ ๋๊ตฌ ์ถ๊ฐ
- ํ๋ก์ ํธ ๋ฒ์ v5.85.0 ๋ฐ์
- 2025-12-22: v1.2.0 - Cross-platform hooks support
- Husky hooks โ Node.js scripts ์์ (Windows ํธํ)
- Workflow ๋ค์ด์ด๊ทธ๋จ ์
๋ฐ์ดํธ
- Windows background task ์ ํ ์ฌํญ ๋ฌธ์ํ
- 2025-12-12: v1.1.0 - Tech stack upgrade alignment
- ESLint โ Biome migration (v2.3.8)
- AI Review rotation: Codex โ Gemini โ Qwen
- 2025-11-27: v1.0.0 - Initial implementation
- Automated validation results parsing
- Priority action list generation
- Smart recommendations based on severity
- 75% token efficiency improvement