Skip to content
Back to skills

Use Context Reviewer Readability

ASecurity

コードの可読性レビュー。セキュリティ (use-context-reviewer-security)、エラーハンドリング (use-context-reviewer-silence)、テスト設計 (use-context-reviewer-testability) には使わない。

  • 12 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 24, 2026
ai-agentsbashsecurity

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 24, 2026

npx -y skills add thkt/dotclaude --skill use-context-reviewer-readability --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Use Context Reviewer Readability?

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

Security grade badge for Use Context Reviewer Readability
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/thkt-use-context-reviewer-readability/badge)](https://www.skillsdirectory.com/skills/thkt-use-context-reviewer-readability)

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: use-context-reviewer-readability
description: コードの可読性レビュー。セキュリティ (use-context-reviewer-security)、エラーハンドリング (use-context-reviewer-silence)、テスト設計 (use-context-reviewer-testability) には使わない。
when_to_use: 可読性, 明確, 命名, 変数名, 関数名, ネスト, 関数設計, コメント, 複雑, Miller's Law, ミラーの法則, 認知負荷, AI-generated, 過剰設計
allowed-tools: Read Agent Bash(ugrep:*) Bash(bfs:*)
agent: reviewer-readability
context: fork
user-invocable: false
---

# use-context-reviewer-readability

しきい値は、作業記憶や 1 画面集中といった認知限界と、McCabe complexity のような確立されたメトリクスに基づく。下表は推奨値で、検出表はそれを超えた全件でなく報告に値する逸脱だけを挙げる。関数引数の推奨は 3、検出は 5 超。

| 目標         | 推奨値 | 根拠                                |
| ------------ | ------ | ----------------------------------- |
| 関数行数     | ≤30    | 1 画面の可読性                      |
| ファイル行数 | ≤400   | モジュールレベルの認知上限          |
| ネスト深度   | ≤3     | 作業記憶内での分岐追跡              |
| 関数引数     | ≤3     | 引数順の暗記限界                    |
| 循環的複雑度 | ≤10    | McCabe 1976: パス爆発なくテスト可能 |

## 検出

| ID  | パターン                       | 修正                       |
| --- | ------------------------------ | -------------------------- |
| RD1 | 曖昧な `processData()`         | `validateUserEmail()`      |
| RD1 | 誤解を招く識別子               | 名前は意図を表す           |
| RD2 | ネスト > 3 階層                | guard clause、関数抽出     |
| RD2 | 関数 > 30 行                   | 分解                       |
| RD3 | コメント: `// increment i`     | 自明なので削除             |
| RD3 | コメント: `// TODO: fix later` | issue 化または今修正       |
| RD4 | 単一実装の interface           | 2 つ目の実装が出るまで削除 |
| RD4 | 状態を持たないロジックの class | 純粋関数                   |
| RD5 | 関数引数 > 5                   | 設定オブジェクトまたは分解 |

## 参照ファイル

| トピック        | ファイル                                           |
| --------------- | -------------------------------------------------- |
| Control Flow    | ${CLAUDE_SKILL_DIR}/references/control-flow.md     |
| Comments        | ${CLAUDE_SKILL_DIR}/references/comments-clarity.md |
| AI Antipatterns | ${CLAUDE_SKILL_DIR}/references/ai-antipatterns.md  |
| Naming          | ${CLAUDE_SKILL_DIR}/references/naming.md           |

Files in this skill

  • SKILL.md2.8 KB
  • references/ai-antipatterns.md3.4 KB
  • references/comments-clarity.md2.4 KB
  • references/control-flow.md1.8 KB
  • references/naming.md1.3 KB

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.

Comments

Loading comments…

Newsletter

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