Skip to content
Back to skills

Code Quality

ASecurity

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.

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

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-cee64847/badge)](https://www.skillsdirectory.com/skills/wenjunduan-code-quality-cee64847)

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: |
  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.
---

# Code Quality Skill

## Linus Review Checklist

- [ ] **Data First**: 数据结构是最简的吗?
- [ ] **Naming**: 命名准确反映本质?
- [ ] **Simplicity**: 是否过度设计?能删掉什么?
- [ ] **Taste**: 代码有"品味"吗?
- [ ] **No Any**: TypeScript 无 any
- [ ] **Error Handling**: 错误处理完整?

## Quality Gates

### Pre-Commit
```yaml
Required:
  - TypeScript strict pass
  - ESLint clean
  - Prettier formatted
  - Tests pass
  - Coverage >= 80%
```

### Pre-Review
```yaml
Additional:
  - No console.log
  - No TODO comments (or tracked)
  - Documentation updated
  - Security scan clean
```

## Automated Checks

```bash
# 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-loop` skill
- `vibe-review` command
- Pre-commit hooks

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 testing →

Comments

Loading comments…

Newsletter

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