In short.
Optimus unit-test is an AI coding skill for developers improving coverage in existing codebases, but it needs working test infrastructure and stops when the existing suite fails. Its instructions permit new test files and appended cases while preserving existing test logic and source code. Discovery identifies testing gaps, estimates what can be covered without refactoring and proposes up to 10 items for approval. Nothing was executed, so generated-test quality, coverage gains and regression handling remain unassessed. Supported host versions and operating costs are unknown from the supplied files.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage includes all four captured files in skills/unit-test: README.md, SKILL.md, agents/openai.yaml and agents/test-infrastructure-analyzer.md. The root LICENSE is covered as the related notice outside that folder. The parent README, shared references, other Optimus skills, host implementations and project-specific inputs are outside the supplied evidence. All captured files are pinned to db331abc6d51134456f5dd3f936ca99e23984ba0. Nothing was executed; installation, host enforcement, generated tests, coverage changes, regression behavior and multi-repository operation remain unassessed.
The overview
Identity
Optimus unit-test belongs to oprogramadorreal/optimus-claude and is invoked as /optimus:unit-test, optionally followed by a path. The README presents it as a Claude Code skill. Its files also include Codex metadata that prohibits implicit invocation; exact supported hosts and versions are not established by these files.
Original source folder: [https://github.com/oprogramadorreal/optimus-claude/tree/master/skills/unit-test]. The captured instructions are pinned to commit db331abc6d51134456f5dd3f936ca99e23984ba0.
Assessment
The strongest fit is incremental test coverage work on an established project with a passing suite. Approval before writing and a limit of 10 planned items make each run bounded, while the prohibition on source changes keeps test generation separate from refactoring.
These boundaries are written instructions for an assistant. The supplied files do not demonstrate their enforcement or the quality of resulting tests. Nothing was executed, and no coverage improvement or reliability result is established.
Users
It suits developers maintaining code that accumulated without systematic tests, teams preparing a release and maintainers checking coverage after refactoring. A directory argument supports focused work instead of a whole-project pass.
Beginners still need a working project test setup and must review the proposed plan. Experienced developers can supply repository conventions, fixtures and runner commands. Projects needing failing tests repaired or dependencies restructured require work outside this skill.
Capabilities
The workflow surveys test files, detects the framework and runner, runs the existing suite, collects coverage when configured and identifies code that can be tested without structural changes. It prioritizes public APIs, pure functions and clear business logic before private helpers.
It specifies separate handling for initialized repositories and monorepo subprojects, excludes Git submodules from discovery and reports suspected source bugs without fixing them. Without coverage tooling, it estimates coverage by matching source and test filenames.
Using it
Requirements
The README requires Git, Optimus installed in a supported host and project initialization through /optimus:init. The skill stops if .claude/CLAUDE.md is absent or no test framework is detected. A passing baseline is required before adding tests.
It reads project coding and testing guidance, deriving testing conventions from existing tests when testing.md is missing. A test command in .claude/CLAUDE.md is specifically required for /optimus:deep coverage. Host version requirements and model requirements are unknown.
Mechanism
After loading project context, the assistant performs discovery itself for small or path-scoped projects, using roughly 100 source files as guidance. Larger surveys can use a reconnaissance subagent. The analyzer returns framework details, runner provenance, suite status, coverage and testability classifications.
The user can approve all planned items, select particular items or skip writing. Each new test runs immediately; the assistant may attempt to correct the test up to three times, without changing source code. Abandoned failing additions are removed, and suspected source bugs are reported.
Normal mode ends with a full-suite regression run. A newly added test file that causes regressions is to be reverted. The separate deep-coverage harness changes execution through a shared reference that was not supplied.
Setup
Use an Optimus installation supported by the host, initialize the project with /optimus:init and confirm that .claude/CLAUDE.md and a functioning test framework exist. The supplied folder does not contain installation commands or the supported-host version list.
Check that the project's testing guidance identifies the intended runner and coverage command. Then invoke /optimus:unit-test for the project or add a directory path. Copying SKILL.md alone would omit referenced shared instructions and related skill files.
Example
Illustrative use, not an observed run: in an initialized project with a passing suite, invoke /optimus:unit-test src/api. The documented workflow discovers the applicable tests and runner, establishes a baseline and presents up to 10 proposed targets. Choosing Selective lets the user approve particular item numbers.
For an approved target, the assistant should append cases to its existing test file when available. If testing requires extracting a hardcoded database dependency, it should flag that barrier and leave the source unchanged. No generated tests or coverage results were supplied.
Assessment & evidence
Limitations
The skill cannot repair a failing baseline or make tightly coupled code testable. It skips generated code, migrations, declarative configuration and wrappers without logic. Its discovery output is capped at 12 testable and 15 untestable entries, while its generation plan is capped at 10 items; one run is not an exhaustive review.
Filename-based coverage estimates do not measure executed lines or branches. Achievable coverage targets are estimates rather than demonstrated guarantees. A coverage-threshold miss alone is distinguished from a failing test.
Shared agent constraints, dispatch architecture, mocking guidance, workspace detection and coverage-harness instructions are referenced but absent from the supplied evidence. Their contents and the resulting end-to-end behavior remain unassessed.
Reasoning
Prioritizing public interfaces and deterministic logic directs effort toward code with clear inputs and outputs. Requiring a green baseline helps distinguish failures introduced by new tests from existing problems. Avoiding source changes also makes the intended scope easier to inspect.
Those design choices support a bounded coverage workflow, but a passing test can still contain weak assertions or miss important behavior. Coverage figures and successful runner output would therefore need to be considered alongside the actual test cases; neither was available here.
Alternatives
The README identifies complementary Optimus paths: /optimus:init establishes test infrastructure, /optimus:refactor testability restructures code that cannot be tested as written, and /optimus:deep coverage alternates test generation with testability refactoring.
It also describes test-guardian as a passive agent that flags coverage gaps without writing tests. These relationships are documented in the unit-test folder, but the implementations of those other resources were not supplied, so their quality and compatibility were not assessed.
Evidence
The available primary sources are the folder README, SKILL.md, the test-infrastructure analyzer prompt, agents/openai.yaml and the repository root LICENSE. They establish the documented workflow, invocation settings and redistribution terms. They contain no execution logs, generated-test examples or measured outcomes.
Pinned workflow source: [https://raw.githubusercontent.com/oprogramadorreal/optimus-claude/db331abc6d51134456f5dd3f936ca99e23984ba0/skills/unit-test/SKILL.md]. Pinned analyzer source: [https://raw.githubusercontent.com/oprogramadorreal/optimus-claude/db331abc6d51134456f5dd3f936ca99e23984ba0/skills/unit-test/agents/test-infrastructure-analyzer.md].
Access & freshness
Costs
Operating cost is unknown. The supplied files specify no skill price, host subscription or API pricing, token budget, runtime measurements or cost estimates. Discovery can use a subagent, and test writing can involve repeated runner calls, but no measured usage is available.
The MIT licence permits use and redistribution under its conditions; it does not establish that the required assistant host or execution environment has no cost.
Rights
The repository-level MIT licence names oprogramadorreal as the 2026 copyright holder. It permits use, copying, modification, distribution, sublicensing and sale, provided the copyright and permission notices accompany copies or substantial portions.
The licence disclaims warranties and liability. Its permissions cover the supplied software and documentation; they do not establish terms for third-party hosts or dependencies.
Freshness
The supplied snapshot is pinned to commit db331abc6d51134456f5dd3f936ca99e23984ba0 and was captured on 15 November 2026 at 23:35:51.399 UTC. The capture timestamp is not a release date.
No release version is established. Whether the master branch has changed since capture, and which host versions currently support this skill, are unknown.
Actions
Before adopting it, confirm host compatibility, obtain the referenced shared files and establish a passing project test suite. Start with a narrow path, inspect the proposed targets and review generated assertions and dependency substitutions before accepting changes.
Use instrumented coverage when available and keep estimates labelled as estimates. If the baseline has assertion failures, triage them separately; if the runner cannot build or start, the documented repair path is /optimus:init. Code requiring structural changes belongs in a separate refactoring step.
