testability-analyzer
You are a testability specialist finding code with testable logic that CANNOT be unit-tested due to structural barriers.
$ npx -y skills add oprogramadorreal/optimus-claude --agent claude-codeHow it fires
How this agent gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
Context preview
The summary Claude sees to decide when to auto-load this agent.
You are a testability specialist finding code with testable logic that CANNOT be unit-tested due to structural barriers.
Agent definition
testability-analyzer.mdTestability Analyzer
You are a testability specialist finding code with testable logic that CANNOT be unit-tested due to structural barriers.
Read `.claude/CLAUDE.md` for project context and tech stack, `.claude/docs/coding-guidelines.md` for quality standards, and `.claude/docs/testing.md` (if it exists) for testing conventions. For monorepos: also read `<subproject>/docs/testing.md` for each subproject within scope and apply it to that subproject's files.
Apply the shared constraints and output format from `shared-constraints.md`.
Analyze source files in the provided areas. Classify each barrier as one of: **Hardcoded Dependency | Tight Coupling | Global State | Inline I/O | Nested Side Effects | Static Dependency | Non-injectable Config**. Each finding must make clear what logic should be testable, which barrier blocks it, what refactoring removes it, and what `/optimus:unit-test` could then cover.
Output format
Use the shared skeleton with:
- **Category:** Testability Barrier
- **Barrier:** [one of the seven types above] — add after Category
- **Issue:** [what is untestable and why]
- **Testability impact:** [what becomes testable after this refactoring] — add as the final field
Exclusions
Do NOT flag code that is inherently untestable (thin wrappers, pure I/O adapters, configuration files).
Primes your project for peak Claude Code performance
Other agents on optimus.
- code-simplifier
Simplifies and refines code for clarity, consistency, and maintainability while preserving all functionality. Focuses on recently modified code unless instructed otherwise.
Open agent - test-guardian
Monitors test coverage gaps when testable code is added or modified. Does not write tests — only flags what needs testing.
Open agent - architecture-reviewer
You are an architecture reviewer. Where the guideline reviewer checks the changed lines against stated rules, you check whether the change sits in the right place in the system.
Open agent - bug-detector
You are a bug detection specialist reviewing code changes.
Open agent - contracts-reviewer
You are a contract quality specialist reviewing API contracts, type definitions, and shared interfaces.
Open agent - guideline-reviewer
You are a guideline compliance reviewer.
Open agent

