source-command-sparc-tdd

source-command-sparc-tdd is a skill for Claude Code, Codex from ayushcodes10/echo-mem. It costs 18 tokens per session (345 once invoked), scanned A, original, Apache-2.0.

A test-driven development guide for the SPARC workflow. Test-driven development, or TDD, means writing tests before the code and then improving the code while keeping those tests passing.

In plain words
What is it for?
Use it to plan tests, write failing tests first, implement the minimum code needed, refactor it, and run unit, integration, end-to-end, or performance tests.
Why use it?
It provides a repeatable cycle for checking behaviour early and reducing the chance that changes break existing functionality.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: names the TodoWrite tool; installed under .agents/ (shared by several agents); mentions Codex.

Good fit Use it to plan tests, write failing tests first, implement the minimum code needed, refactor it, and run unit, integration, end-to-end, or performance tests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ayushcodes10/echo-mem/source-command-sparc-tdd
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.

Any agent
npx skills add ayushcodes10/echo-mem --skill source-command-sparc-tdd
Clone the repo
git clone --depth 1 https://github.com/ayushcodes10/echo-mem

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 source-command-sparc-tdd

README.md
[![agentmods](https://agentmods.dev/badge/skills/ayushcodes10/echo-mem/source-command-sparc-tdd/github.svg)](https://agentmods.dev/skills/ayushcodes10/echo-mem/source-command-sparc-tdd)
Your own site
<a href="https://agentmods.dev/skills/ayushcodes10/echo-mem/source-command-sparc-tdd"><img src="https://agentmods.dev/badge/skills/ayushcodes10/echo-mem/source-command-sparc-tdd/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for source-command-sparc-tdd

Your own site · 80×15
<a href="https://agentmods.dev/skills/ayushcodes10/echo-mem/source-command-sparc-tdd"><img src="https://agentmods.dev/badge/skills/ayushcodes10/echo-mem/source-command-sparc-tdd.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 345 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00018 $0.00345
Opus 5.5 $0.00007 $0.00138
Sonnet 5.5 $0.00004 $0.00069
Haiku 4.5 $0.00002 $0.00034

Measured 1mo ago against content hash d6b62a62fe7f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

source-command-sparc-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 1mo 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.

.agents/skills/source-command-sparc-tdd/SKILL.md · 66 lines

What it actually says

source-command-sparc-tdd

Use this skill when the user asks to run the migrated source command sparc-tdd.

Command Template

SPARC TDD Mode

Purpose

Test-driven development with TodoWrite planning and comprehensive testing.

Activation

Option 1: Using MCP Tools (Preferred in Codex)

mcp__claude-flow__sparc_mode {
  mode: "tdd",
  task_description: "shopping cart feature",
  options: {
    coverage_target: 90,
    test_framework: "jest"
  }
}

Option 2: Using NPX CLI (Fallback when MCP not available)

# Use when running from terminal or MCP tools unavailable
npx Codex-flow sparc run tdd "shopping cart feature"

# For alpha features
npx Codex-flow@alpha sparc run tdd "shopping cart feature"

Option 3: Local Installation

# If Codex-flow is installed locally
./Codex-flow sparc run tdd "shopping cart feature"

Core Capabilities

  • Test-first development
  • Red-green-refactor cycle
  • Test suite design
  • Coverage optimization
  • Continuous testing

TDD Workflow

  1. Write failing tests
  2. Implement minimum code
  3. Make tests pass
  4. Refactor code
  5. Repeat cycle

Testing Strategies

  • Unit testing
  • Integration testing
  • End-to-end testing
  • Performance testing
  • Security testing
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. 1mo ago First seen · 66 lines · 18 tokens per session scan A d6b62a62fe7f

Subscribe to this mod's changes

source-command-sparc-tdd is a skill published in the GitHub repository ayushcodes10/echo-mem (2 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 18 tokens to every session and 345 once invoked, about $0.0001 per session on Opus 5.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-09-12.

Related

Other skills, from other repositories

tdd-with-memory

A test-first implementation workflow that recalls past decisions, conventions, and lessons before coding. TDD, or test-driven development, means writing a failing test first, then implementing the code and finally cleaning it up.

ezBuilder/code-brain · 35 tokens

cpp-testing

Use only when writing/updating/fixing C++ tests, configuring GoogleTest/CTest, diagnosing failing or flaky tests, or adding coverage/sanitizers.

affaan-m/ECC · 34 tokens

composing-matchers

Build compound Gomega assertions by combining matchers — And/SatisfyAll (all pass), Or/SatisfyAny (any pass), Not (negate), WithTransform to map the actual before matching, Satisfy for an ad-hoc predicate, HaveValue to dereference pointers/interfaces, HaveField for struct fields and method results, HaveEach for every…

onsi/gomega · 136 tokens

test-runner

For a code change, pick the right test tier by change surface, run apc test with baseline diff, and report only NEW reds vs baseline back to the task's acceptance criterion. Separates envblocked from SUT red so a broken machine never fails the code.

Prismer-AI/PrismerCloud · 59 tokens

spec-driven-tests

Rebuild a package's unit test suite around a behavior specification (SPEC.md) derived from the implementation, with every test citing a numbered rule ID. Use when asked to do a spec-driven test rebuild, write a SPEC.md for a package, repeat the state or store spec process (PRs.

tldraw/tldraw · 63 tokens

nw-hexagonal-testing

5-layer agent output validation, I/O contract specification, vertical slice development, and test doubles policy with per-layer examples.

nWave-ai/nWave · 29 tokens