armada-tdd

armada-tdd is a skill for Claude Code, Codex from rafmacalaba/armada. It costs 36 tokens per session (272 once invoked), scanned A, original, MIT.

A test-driven development workflow, where tests are written and shown to fail before the implementation is added.

In plain words
What is it for?
Adding features or fixing defects by writing a failing test, making it pass with minimal code, and then refactoring.
Why use it?
It helps catch regressions by proving that a test detects the missing or broken behavior before it is fixed.

Skill for Claude CodeCodex

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/rafmacalaba/armada/armada-tdd
Any agent
npx skills add rafmacalaba/armada --skill armada-tdd
Clone the repo
git clone --depth 1 https://github.com/rafmacalaba/armada

Made for: Claude Code, Codex.

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 armada-tdd

README.md
[![agentmods](https://agentmods.dev/badge/skills/rafmacalaba/armada/armada-tdd.svg)](https://agentmods.dev/skills/rafmacalaba/armada/armada-tdd)
Your own site
<a href="https://agentmods.dev/skills/rafmacalaba/armada/armada-tdd"><img src="https://agentmods.dev/badge/skills/rafmacalaba/armada/armada-tdd.svg" alt="Measured on agentmods" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 272 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 $0.00036 $0.00272
Opus 5 $0.00018 $0.00136
Sonnet 5 $0.00007 $0.00054
Haiku 4.5 $0.00004 $0.00027

Measured 5d ago against content hash 3616d1fdcc30, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

armada-tdd 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 5d 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.

src/skills/armada-tdd/SKILL.md · 19 lines

What it actually says

Armada: Test-Driven Development

Write the test first. Watch it fail. Write the minimal implementation to pass. Refactor. Never skip the failing-test step. This is the only acceptable workflow for implementation code.

Rules

  1. Write a failing test before any implementation. The test must exercise the desired behavior, not the implementation details.
  2. Run the test and confirm it fails for the right reason (feature missing, not a syntax error). Never skip this step.
  3. Write the minimal code to make the test pass. Do not add features, error handling, or performance optimizations that the test does not demand.
  4. Refactor only after all tests are green. Remove duplication, improve names, but add no behavior.
  5. One test per behavior. Tests live in tests/*.test.js next to the source. If a bug is found, write a failing test that reproduces it before fixing.

Example: To add validateSkillName(name): write test("rejects names with uppercase"), run it (fail), write the ^[a-z] regex, run it (pass).

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. 5d ago First seen · 19 lines · 0 tokens per session scan A 3616d1fdcc30

Subscribe to this mod's changes

armada-tdd is a skill published in the GitHub repository rafmacalaba/armada (93 stars, last pushed 7d ago), licensed MIT. It adds 36 tokens to every session and 272 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

tdd-rust

TDD workflow for RTK filter development. Red-Green-Refactor with Rust idioms. Real fixtures, token savings assertions, snapshot tests with insta. Auto-triggers on new filter implementation.

rtk-ai/rtk · 45 tokens

rtk-tdd

Enforces TDD (Red-Green-Refactor) for Rust development. Auto-triggers on implementation, testing, refactoring, and bug fixing tasks. Provides Rust-idiomatic testing patterns with anyhow/thiserror, cfg(test), and Arrange-Act-Assert workflow.

rtk-ai/rtk · 61 tokens

aoe

Use when launching, monitoring, or controlling AI coding agents (Claude Code, Codex, OpenCode, etc.) in tmux via Agent of Empires (aoe). Covers creating sessions, capturing agent output, running parallel worktree agents, and organizing work into groups and profiles. Prefer aoe over raw tmux for agent management.

agent-of-empires/agent-of-empires · 71 tokens

test-driven-development

在实现任何功能或修复 bug 时使用,在编写实现代码之前.

jnMetaCode/superpowers-zh · 20 tokens

test-driven-development

Use when the user explicitly requests strict or test-first TDD, or when the current conversation already contains an explicit TDD Route: strict decision from another Aegis workflow.

GanyuanRan/Aegis · 41 tokens

old-coder

Evidence-first development — surround the implementation with an executable spec and a gauntlet of constraints (tests, types, coverage, mutation) so line-by-line review becomes optional. Use when the user explicitly asks for high-assurance or evidence-first work ("reliable", "TDD", "prove it works", "I won't read the…

AmazingAng/old-coder · 116 tokens