Skip to content
Back to skills

Code Quality

ASecurity

Linus-style code quality enforcement. Checks taste, simplicity, and engineering rigor.

  • 186 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 5, 2026
developmenttypescriptgo

Security analysis

A100/100

Scanned September 5, 2026

npx -y skills add WenJunDuan/Rlues --skill code-quality --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Code Quality?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Code Quality
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/wenjunduan-code-quality-b004ead8/badge)](https://www.skillsdirectory.com/skills/wenjunduan-code-quality-b004ead8)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: code-quality
description: |
  Linus-style code quality enforcement. Checks taste, simplicity,
  and engineering rigor.
---

# Code Quality Skill (Linus Taste Check)

## 检查清单

| 维度 | 标准 | 严重度 |
|:---|:---|:---|
| 函数长度 | <50行 | Error |
| 嵌套深度 | <3层 | Error |
| TypeScript any | 零容忍 | Error |
| 魔法数字 | 必须命名常量 | Warning |
| 错误处理 | 完整覆盖 | Error |
| 输入验证 | 公共接口必须 | Error |
| 命名 | 准确反映本质 | Warning |
| 数据结构 | 最简设计 | Warning |
| 重复代码 | DRY | Warning |
| 过度抽象 | YAGNI | Warning |

## Linus 四问

每次 review 时回答:
1. 数据结构是最简的吗?
2. 能删掉什么?
3. 命名准确吗?
4. 这段代码有"品味"吗?

## --strict 模式额外检查

- 无未使用的 import
- 无注释掉的代码
- 无 TODO 在提交代码中
- 组件 <200 行
- 单文件 <500 行

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.