Agent skill
code-quality
Code quality assurance with Linus-style review principles. Enforces simplicity, good naming, proper error handling, and "good taste". Integrates with verification-loop for automated checks.
Install this agent skill to your Project
npx add-skill https://github.com/WenJunDuan/Rlues/tree/main/vibeCoding/old version/codex/config-agent_v7.8-codex/.codex/skills/code-quality
SKILL.md
Code Quality Skill
Linus Review Checklist
- Data First: 数据结构是最简的吗?
- Naming: 命名准确反映本质?
- Simplicity: 是否过度设计?能删掉什么?
- Taste: 代码有"品味"吗?
- No Any: TypeScript 无 any
- Error Handling: 错误处理完整?
Quality Gates
Pre-Commit
Required:
- TypeScript strict pass
- ESLint clean
- Prettier formatted
- Tests pass
- Coverage >= 80%
Pre-Review
Additional:
- No console.log
- No TODO comments (or tracked)
- Documentation updated
- Security scan clean
Automated Checks
# TypeScript
npx tsc --noEmit
# Lint
npm run lint
# Format
npm run format:check
# Test
npm run test
# Coverage
npm run test:coverage
Code Smell Detection
| Smell | Detection | Fix |
|---|---|---|
| Long function | >50 lines | Extract |
| Deep nesting | >3 levels | Early return |
| Magic numbers | Literals | Constants |
| Duplicate code | Similar blocks | DRY |
| God object | Many responsibilities | Split |
Integration
Called by:
verification-loopskillvibe-reviewcommand- Pre-commit hooks
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-teams
Path D 并行编排 — 子代理分工 + Agent Teams 协作。需要 CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1
tdd
Path 分级 TDD 策略
context7
E 阶段按需拉取库文档 — 用 ctx7 获取准确 API 信息
knowledge
跨会话经验管理 — 在 .ai_state 内沉淀和复用项目经验
code-quality
Rev 阶段 Plugin 编排顺序
verification
V 阶段 Path 分级验证清单
Didn't find tool you were looking for?