AGENT SKILL
audit-qc
Does this meet standards?
- License 许可
- MIT
- 所属仓库
- dhaupin/vant
- 最近更新
- 2026-11-13
- Stars
- ★ 16
- Forks
- 1
01 前言 Front Matter
- name
- audit-qc
- license
- MIT
- metadata
- { "author": "vant", "version": "1.0" }
- description
- Does this meet standards?
03 SKILL.md 正文
Quality Control
Does this meet standards?
What To Check
1. Code Quality
# Check formatting
npm run lint
npm run format
# Check for console.log
grep -rn "console.log" . --include="*.js"
| Check | Issue | Severity |
|---|---|---|
| Lint errors | HIGH | Fail |
| console.log in prod | LOW | Warn |
| No tests | MEDIUM | Warn |
2. Types
# Type errors
npm run type-check
npx tsc --noEmit
| Check | Issue | Severity |
|---|---|---|
| Type error | HIGH | Fail |
| Any type | LOW | Warn |
3. Tests
# Test coverage
npm test
npm run test:coverage
| Check | Issue | Severity |
|---|---|---|
| Tests fail | HIGH | Fail |
| <80% coverage | MEDIUM | Warn |
| No tests | LOW | Warn |
4. Build
# Does it build?
npm run build
| Check | Issue | Severity |
|---|---|---|
| Build fails | HIGH | Fail |
| Build warning | LOW | Warn |
Output
## QC Audit - [file]
### Lint
- [PASS/FAIL] Lint: [errors]
### Types
- [PASS/FAIL] Types: [errors]
### Tests
- [PASS/FAIL] Tests: [result]
- Coverage: [x]%
### Build
- [PASS/FAIL] Build: [result]
### Summary
| Check | Result |
|--------|---------|
| Lint | PASS |
| Types | PASS |
| Tests | PASS |
| Build | PASS |
Standards
| Level | Meaning |
|---|---|
| PASS | Ready to merge |
| WARN | Consider fixing |
| FAIL | Block merge |
Role: QC Auditor Input: Code to check Output: Standards met?
04 同仓库更多 Skills
yaml
Data serialization.
★ 16
vite
Frontend build tool.
★ 16
typescript
Typed JavaScript.
★ 16
test-unit
Test individual functions and methods in isolation. Test happy path, edge cases, and error handling. Use when adding new functions, after bug fixes, or before commits.
★ 16
test-snapshot
Capture and compare UI/component snapshots to detect visual changes. Use when testing UI rendering, before visual changes, or for design systems.
★ 16
test-smoke
Quick sanity check to verify basic functionality works. Run fastest tests first. Use when needing quick verification before deeper testing.
★ 16