Skip to content
Back to skills

Use Context Reviewer Testability

ASecurity

テスト可能なコード設計のレビュー。セキュリティ (use-context-reviewer-security)、可読性 (use-context-reviewer-readability) には使わない。

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

Security analysis

A100/100

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

Scanned September 24, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Use Context Reviewer Testability?

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

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

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-testability
description: テスト可能なコード設計のレビュー。セキュリティ (use-context-reviewer-security)、可読性 (use-context-reviewer-readability) には使わない。
when_to_use: テスト容易性, モック, mock-friendly, DI
allowed-tools: Read Agent Bash(ugrep:*) Bash(bfs:*)
agent: reviewer-testability
context: fork
user-invocable: false
---

# use-context-reviewer-testability

## 検出

| ID  | パターン                       | 修正                            |
| --- | ------------------------------ | ------------------------------- |
| TE1 | `import { db }` の直接使用     | 依存をパラメータとして注入      |
| TE1 | クラス内の `new Service()`     | コンストラクタ注入              |
| TE2 | コンポーネント内の `fetch()`   | hook/service に抽出して注入     |
| TE2 | 副作用とロジックの混在         | pure/impure を分離              |
| TE3 | 深い mock チェーン             | 依存を簡潔にする                |
| TE4 | グローバルな `config` アクセス | config を prop/parameter で渡す |
| TE4 | ロジック内の `Date.now()`      | clock/time provider を注入      |
| TE5 | 密結合                         | 抽象に依存する (DIP)            |

## 基準

テストセットアップが 10 行未満に収まる。

## 参照ファイル

| トピック | ファイル                                               |
| -------- | ------------------------------------------------------ |
| DI       | ${CLAUDE_SKILL_DIR}/references/dependency-injection.md |
| Pure     | ${CLAUDE_SKILL_DIR}/references/pure-functions.md       |
| Mocking  | ${CLAUDE_SKILL_DIR}/references/mock-friendly.md        |

Files in this skill

  • SKILL.md1.7 KB
  • references/dependency-injection.md2.1 KB
  • references/mock-friendly.md2.1 KB
  • references/pure-functions.md2.5 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.