Skip to content
Agent Orchestration
Skill

/tdd

Guide test-driven development workflow. Suggest when: "test first", "TDD", "write tests before", "red green refactor" mentioned, or when implementing features or bug fixes where a test-first approach is beneficial. Enforces Red-Green-Refactor cycle.

From plugin
lionagi
41312 skills2 agents1 MCP

Claude Code

$ npx -y skills add ohdearquant/lionagi --skill tdd --agent claude-code

SKILL.md

tdd.SKILL.md
name: tdd
description: >
  Guide test-driven development workflow. Suggest when: "test first", "TDD",
  "write tests before", "red green refactor" mentioned, or when implementing
  features or bug fixes where a test-first approach is beneficial. Enforces
  Red-Green-Refactor cycle.
allowed-tools: [Bash, Read, Write, Edit, Glob, Grep]

TDD Workflow

Orchestrate test-driven development: Red → Green → Refactor.

Activation Triggers

  • "TDD", "test-driven", "test first", "red green refactor"
  • Bug fix where proving the bug first is valuable
  • Feature with clear acceptance criteria
  • "write the test before implementing"

The Cycle

| Phase | Action | Gate | |-------|--------|------| | **RED** | Write failing test expressing desired behavior | Run it — MUST fail. If it passes, it tests nothing new. | | **GREEN** | Write minimum code to make the test pass | Run it — MUST pass. No over-engineering. | | **REFACTOR** | Clean up while staying green | Run ALL tests — MUST pass. Never refactor with failures. |

Run commands

# lionagi Python
scripts/ci.sh test-python tests/test_feature.py::test_name  # single test
scripts/ci.sh test-python                                  # full suite
scripts/ci.sh test-python-cov                              # with coverage

# Rust
cargo test test_name -- --nocapture   # single test
cargo test --workspace                 # full workspace

Key Principles

  • **Test must fail first**: A test that passes before implementation proves nothing
  • **Minimal implementation**: Don't over-engineer in the GREEN phase
  • **Refactor only when green**: Never refactor with failing tests
  • **Small cycles**: Keep each cycle focused on one behavior
  • **One behavior per test**: Each test verifies one specific behavior
  • **Use the project runner**: Follow the repository's configured test and CI entry points

Coverage Gates

Meet the repository's configured coverage threshold. Do not substitute generic percentages for project policy.

For lionagi, check with `scripts/ci.sh test-python-cov`.

See [methodology.md](methodology.md) for detailed cycle steps, multi-cycle patterns, parallel agent TDD through the plugin's MCP server (`fanout.submit`), anti-patterns, and lint/quality commands.

Relevant Source Files

  • `lionhub/src/lionhub/serve/mcp/server.py`, `lionhub/src/lionhub/serve/mcp/verbs.py` — `fanout.submit` / `agent.submit`, the

MCP path for parallel and single-agent TDD sessions

  • `lionhub/src/lionhub/serve/cli/orchestrate/fanout.py` — `li o fanout`, the checkout-local equivalent for

parallel workers

  • `lionhub/src/lionhub/serve/cli/agent.py` — `li agent`, the checkout-local equivalent for a single-agent

implementation session

  • `docs/internals/ci.md` — documents the supported Python test, coverage, lint, and format entry point
  • `pyproject.toml` — project test and Pyright configuration
Read more
@ohdearquant
Ships withlionagi

lionagi is a governed multi-agent orchestration framework. Build agent workflows in Python with typed, inspectable state, or run them straight from the terminal with the li CLI: single agents, parallel fan-outs, and DAG flows where an orchestrator plans

41312 skills2 agents1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
413
Star history of ohdearquant/lionagi on GitHub, a chart by star-history.com

Other skills on lionagi.

debug

debug

Systematic debug workflow: research → orchestrate agents → escalate. Suggest when: stuck after 2-3 attempts, unfamiliar tooling,…

@ohdearquant@ohdearquantInstall Skill
fanout

fanout

Fan one task out to multiple independent lionagi workers through `fanout.submit`, optionally synthesizing their answers. Use when…

@ohdearquant@ohdearquantInstall Skill
flow

flow

Plan and run a dependency-aware lionagi DAG through `flow.submit`, including dry runs and reactive follow-up capacity. Use when…

@ohdearquant@ohdearquantInstall Skill
orchestrate

orchestrate

Plan and execute multi-agent workflows through lionagi's orchestration MCP tool: flow.submit (DAG pipelines), fanout.submit…

@ohdearquant@ohdearquantInstall Skill
play

play

Run an existing lionagi playbook through the orchestration MCP server and retrieve its background result. Use when a saved…

@ohdearquant@ohdearquantInstall Skill
playbook

playbook

Author lionagi playbooks — reusable YAML workflow templates that define parametric agent tasks. Playbooks live at…

@ohdearquant@ohdearquantInstall Skill

More skills from other plugins.

1password

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

openclaw5d395k
@steipete@steipeteInstall Skill
jira-tickets

jira-tickets

Read and update Jira tickets through Orca's saved Jira connections. Use when a task comes from Jira or the user asks for Jira…

orca3d128k
@stablyai@stablyaiInstall Skill
agentmail

agentmail

Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…

paperclip4d114k
@paperclipai@paperclipaiInstall Skill
adr-create

adr-create

Create a new Architecture Decision Record with sequential numbering and AgentDB registration

@ruvnet@ruvnetInstall Skill

Questions about tdd.

Which coding agents can use tdd?
tdd installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.