Back to skills
SKILL.md
Use Context Reviewer Testability
ASecurityTestable 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
Security analysis
100/100Pro scans all 4 files and shows the line behind each finding
npx -y skills add thkt/dotclaude --skill use-context-reviewer-testability --agent claude-codeAre you the author of Use Context Reviewer Testability?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/thkt-use-context-reviewer-testability-dotclaude)---
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.md
- references/dependency-injection.md
- references/mock-friendly.md
- references/pure-functions.md
Attribution
Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.