Skip to content
Back to skills

Use Context Reviewer Testability

ASecurity

Testable code design review. Do NOT use for security (use-context-reviewer-security) or readability (use-context-reviewer-readability).

  • 12 stars
  • 0 votes
  • 0 copies
  • 1 view
  • 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-dotclaude/badge)](https://www.skillsdirectory.com/skills/thkt-use-context-reviewer-testability-dotclaude)

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: Testable code design review. Do NOT use for security (use-context-reviewer-security) or readability (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

## Detection

| ID  | Pattern                      | Fix                             |
| --- | ---------------------------- | ------------------------------- |
| TE1 | Direct `import { db }` usage | Inject dependency as parameter  |
| TE1 | `new Service()` inside class | Constructor injection           |
| TE2 | `fetch()` inside component   | Extract to hook/service, inject |
| TE2 | Mixed side effects + logic   | Separate pure/impure            |
| TE3 | Deep mock chains             | Simplify dependencies           |
| TE4 | Global `config` access       | Pass config as prop/parameter   |
| TE4 | `Date.now()` in logic        | Inject clock/time provider      |
| TE5 | Tight coupling               | Depend on abstractions (DIP)    |

## Criteria

Test setup fits in under 10 lines.

## References

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