use-context-reviewer-testability

use-context-reviewer-testability is a skill for Claude Code from thkt/dotclaude. It costs 46 tokens per session (430 once invoked), scanned A, original, MIT.

A code-review guide for designing software that is easier to test by keeping dependencies and side effects separate from core logic.

In plain words
What is it for?
Reviewing dependency injection, database and service access, component network calls, time handling, configuration passing, side-effect separation, mocking, and coupling.
Why use it?
It helps avoid tests that require complicated setup, deep mocks, global configuration, real clocks, or tightly connected services.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: agent in frontmatter.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/thkt/dotclaude/use-context-reviewer-testability
Any agent
npx skills add thkt/dotclaude --skill use-context-reviewer-testability
Clone the repo
git clone --depth 1 https://github.com/thkt/dotclaude

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for use-context-reviewer-testability

README.md
[![agentmods](https://agentmods.dev/badge/skills/thkt/dotclaude/use-context-reviewer-testability.svg)](https://agentmods.dev/skills/thkt/dotclaude/use-context-reviewer-testability)
Your own site
<a href="https://agentmods.dev/skills/thkt/dotclaude/use-context-reviewer-testability"><img src="https://agentmods.dev/badge/skills/thkt/dotclaude/use-context-reviewer-testability.svg" alt="Measured on agentmods" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 430 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00046 $0.00430
Opus 5 $0.00023 $0.00215
Sonnet 5 $0.00009 $0.00086
Haiku 4.5 $0.00005 $0.00043

Measured 6d ago against content hash fd5586328ae2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

use-context-reviewer-testability scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.ja/skills/use-context-reviewer-testability/SKILL.md · 37 lines

What it actually says

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

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 37 lines · 46 tokens per session scan A fd5586328ae2

Subscribe to this mod's changes

use-context-reviewer-testability is a skill published in the GitHub repository thkt/dotclaude (12 stars, last pushed yesterday), licensed MIT. It adds 46 tokens to every session and 430 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

implementation-review

Pre-commit quality gate. Invoke before every git commit, after /flagrare:staleness-audit. Seven checks, plan gaps, use-case coverage gaps, missing test scenarios, test philosophy violations (Kent Dodds Testing Trophy), SOLID violations, Clean Code violations, and security vulnerabilities. Each check is delegated to a…

Flagrare/agent-skills · 106 tokens

wrap-up

Post-implementation quality gate. Runs automated checks (tests, lint, types), invokes /flagrare:implementation-review for the seven-check parallel review, then performs additional SOLID and Clean Code review on any findings not covered. Use when the user says 'wrap up', 'review changes', 'check my work', 'am I done'…

Flagrare/agent-skills · 79 tokens

verify-implementation

프로젝트의 모든 verify 스킬을 실행하여 통합 패턴 검증 보고서를 생성합니다. 기능 구현 후, PR 전, 코드 리뷰 시 사용.

sangrokjung/claude-forge · 37 tokens

remove-ai-slops

Removes AI-generated code smells from branch changes or an explicit file list behind regression tests. Use when the user asks to clean up, deslop, or remove AI-slop patterns from recent changes.

code-yeongyu/oh-my-openagent · 45 tokens

moai-foundation-quality

TRUST 5 quality principles and how MoAI enforces them through agents, the 3-level harness, /moai gate, and sync-auditor scoring. Use for code review, quality gate checks, coverage targets, or TRUST 5 compliance.

modu-ai/moai-adk · 58 tokens

semgrep-rule-variant-creator

Creates language variants of existing Semgrep rules. Use when porting a Semgrep rule to specified target languages. Takes an existing rule and target languages as input, produces independent rule+test directories for each language.

waybarrios/opencode-power-pack · 50 tokens