SkillsReviewed · oprogramadorreal

Optimus TDD

Optimus TDD is a coding skill for developers building features or fixing bugs with an AI assistant, but it requires passing tests and includes automatic Git commits and a branch push. It guides one failing-test, implementation and cleanup cycle per behavior, with an additional regression check for bug fixes.

Researched 16 Nov 2026

In short.

Optimus TDD is a skill for developers who want an AI assistant to write code test-first, but it requires a passing test suite and automatically commits and pushes its work. Its instructions cover behavior decomposition, feature branches, optional Git worktrees, failing-test checks, minimal implementation, cleanup and bug-regression checks. It also specifies file-recovery safeguards intended to preserve unrelated edits. These are documented procedures rather than demonstrated results: execution reliability, supported host versions, development cost and improvements in software quality remain unassessed.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage comprises the four captured files within skills/tdd: SKILL.md, README.md, agents/openai.yaml and references/testing-anti-patterns.md. The repository-root LICENSE supplies the related notice. Shared Optimus references, installation documentation, other skills, host internals and project-specific files are outside this scope. No commands were executed. Installation, host compatibility, test outcomes, recovery behavior, commits, pushes, coverage changes and performance remain unassessed.

The overview

identity

Optimus TDD is the skills/tdd component of oprogramadorreal/optimus-claude, invoked as /optimus:tdd. Its main asset is an instruction file that directs an AI coding assistant through an eight-step development procedure; it is not a standalone test runner.

The README presents it as a Claude Code skill. The included agents/openai.yaml also supplies Codex metadata disabling implicit invocation. That metadata establishes intended invocation behavior, but does not establish the complete supported-host or version list.

assessment

The documented workflow fits projects with clear expected behavior, working tests and developers comfortable reviewing Git changes. Its most distinctive features are checking that a new test fails for the intended reason, repeating bug tests with the fix removed and restored, and recording recoverable file contents before edits.

These safeguards are instructions for the assistant to follow. They do not independently enforce correct execution or prove that user changes will always be preserved. The supplied material contains no execution results or comparative evidence of better code quality.

users

The intended users are developers adding testable features, implementing business rules or fixing reproducible bugs. Beginners get an explicit sequence: describe the behavior, observe a failing test, add enough code to pass, then clean up. Experienced developers get guidance for project conventions, task specifications, monorepos and Git ownership boundaries.

It is a weaker fit for exploratory work whose desired behavior is still unclear. The documentation redirects behavior-preserving refactoring and tests for existing code to other Optimus skills, and excludes documentation-only, styling and configuration tasks from this workflow.

capabilities

The instructions cover confirming the task, decomposing it into observable behaviors, creating a feature or fix branch, optionally using a worktree, and completing one test-first cycle per behavior. They can use confirmed specifications from docs/specs/ or JIRA context from docs/jira/. Given/When/Then scenarios in a specification can become the behavior list directly.

Other documented capabilities include lint and type checks when configured, a three-attempt implementation checkpoint, milestone boundaries for larger tasks, conventional commits, a final summary and a push to origin. Coverage comparison is included only when both measurements produce actual percentages. Cross-cycle review and pull-request creation are recommended through separate skills.

Using it

requirements

The README requires Optimus in a supported host, Git and working test infrastructure with a passing baseline. The workflow stops if the initial suite fails or no test runner can be found. It also requires normal execution mode rather than plan mode. Exact supported hosts, minimum versions and installation commands are not established by the supplied folder.

Project setup through /optimus:init is recommended. The skill uses project instructions, coding guidelines and testing conventions when available, with a user-chosen general-guidance fallback for missing setup documents. The complete delivery path also needs a usable origin remote. The gh or glab CLI is optional for the separate pull-request skill; TDD does not invoke those CLIs itself.

mechanism

Each behavior follows Red, Green and Refactor. Red writes a focused test and requires an observed assertion failure for the right reason. Green adds the minimum implementation needed to pass. Refactor cleans up the affected code while configured checks and tests remain passing. For bug reproduction, an extra gate temporarily restores the failing implementation, requires the regression test to fail, then restores the fix and requires it to pass.

Before editing, the assistant is instructed to record file existence and raw-byte hashes, retain a verified Git blob or exact private copy, and track its last-written state. Restoration must account for independent edits. Commits use exact task-owned paths, and mixed user/task changes require ownership resolution. A new branch alone does not isolate existing uncommitted changes.

setup

Install Optimus using its repository documentation and confirm host compatibility before invoking /optimus:tdd with a task description. The folder recommends /optimus:init for project instructions and test infrastructure, and /optimus:permissions for branch-aware Git protection. Their implementation and installation procedures are outside the supplied material.

The TDD file also references shared documents for repository detection, branch naming, commit formatting, worktree handling and specification precedence. Those documents are absent here, so this folder alone does not establish a complete standalone installation. During use, expect task and behavior confirmation, plus an optional worktree choice.

example

The README gives /optimus:tdd "Fix: login fails when email has uppercase letters" as an invocation example. A corresponding illustrative behavior would be that a registered user can log in with valid credentials when the email contains uppercase letters. The exact expected behavior must come from the project's requirements.

The documented sequence would confirm that behavior, create a fix branch, write a test reproducing the failure and add the minimum fix. The regression gate would then remove only that fix, require the test to fail, restore the fix and require it to pass. This is an explanation of the intended procedure, not an executed example or reported test result.

Assessment & evidence

limitations

A passing baseline is mandatory, so the skill cannot proceed directly in a project with broken tests or no runner. It also depends on requirements that can be expressed as observable behavior. Shared Optimus references and related skills are outside the supplied folder, leaving their behavior and compatibility unassessed.

Its recovery, staging and push procedures were not executed. Their reliability remains unassessed. Passing tests would also cover only the behaviors those tests exercise; the supplied files do not demonstrate exhaustive coverage, production correctness or protection against every possible independent edit.

reasoning

The workflow's rationale is to turn expected behavior into feedback the assistant can observe before implementing it. Requiring the test to fail on an assertion helps distinguish a missing behavior from a broken import or test environment. The additional bug gate checks whether the regression test responds to removal of the fix.

The testing reference supports that approach by discouraging assertions about mocks, unnecessary mocking and checks through internal storage details. These are useful design principles, but their effectiveness depends on the chosen behaviors and tests. Improved productivity or defect rates cannot be inferred from the instructions alone.

alternatives

Within Optimus, the documentation recommends /optimus:unit-test for adding tests to existing code and /optimus:refactor for restructuring without changing behavior. It positions /optimus:brainstorm before complex feature work, and /optimus:code-review after TDD for issues spanning multiple cycles. Those resources are referenced but their implementations are not supplied.

A developer could also apply the same test-first sequence manually with the project's existing test runner. That would require managing the branch, recovery records and commits separately. No comparison establishes that this skill is faster or more reliable than manual TDD or another assistant.

evidence

The original resource folder is [https://github.com/oprogramadorreal/optimus-claude/tree/master/skills/tdd]. The captured source is pinned to revision db331abc6d51134456f5dd3f936ca99e23984ba0 at [https://github.com/oprogramadorreal/optimus-claude/tree/db331abc6d51134456f5dd3f936ca99e23984ba0/skills/tdd].

The material contains SKILL.md, README.md, agents/openai.yaml and references/testing-anti-patterns.md, together with the repository-root LICENSE. It establishes the documented workflow, invocation policy, testing advice and licence terms. It supplies no runtime logs, compatibility results, benchmarks or measured costs.

Access & freshness

costs

The supplied files give no host subscription price, model or API charge, token usage, measured duration or per-task cost. Those costs are unknown.

The procedure calls for repeated test runs, additional bug-regression runs and optional coverage measurements. These create work for the assistant and development environment, but no evidence supports a numerical cost or time estimate. The MIT licence does not establish the price of the required host or related services.

rights

The repository's captured MIT licence names copyright holder oprogramadorreal and year 2026. It permits use, copying, modification, publication, distribution, sublicensing and sale, provided the copyright and permission notices accompany copies or substantial portions. The README links this skill to that licence.

The licence provides the software without warranty and disclaims liability. It supports redistribution of the captured skill with its notices, but does not establish rights or service terms for the assistant host, external services or a user's project.

freshness

The supplied snapshot was captured on 2026-11-16 at 16:59:16.179 UTC and identifies revision db331abc6d51134456f5dd3f936ca99e23984ba0. That identifies the source version described here; it does not establish its release date or current compatibility.

No semantic release version, supported-host version list or subsequent repository history is supplied. Changes after this snapshot and differences in the moving master branch are unknown.

actions

Before use, confirm the full Optimus installation requirements and supported host version, identify the project's test command, and establish a passing baseline. Read the shared references used by the skill, since they define parts of branch naming, worktree handling and commits that are not included here.

Start with a bounded behavior whose expected result is clear. Check the proposed behavior list and Git destination, choose worktree isolation when appropriate, and expect automatic commits followed by a branch push. After completion, inspect the actual test results and diff, then use the recommended separate code review before pull-request creation.

Evidence for this report

LICENSEnotice · checked 2026-11-16
skills/tdd/README.mdselected · checked 2026-11-16
skills/tdd/SKILL.mdselected · checked 2026-11-16
skills/tdd/agents/openai.yamlselected · checked 2026-11-16