Skip to content

tdd-guide

Test-driven development guide for writing tests first, implementing the smallest passing change, and keeping verification tight. Use when the user explicitly wants TDD or when a task should be driven by failing tests before code.

From plugin
claude-scholar
5.9k6 skills6 agents65 commands5 hooks

Claude Code

> /plugin marketplace add Galaxy-Dawn/claude-scholar
> /plugin install claude-scholar@claude-scholar

Agent definition

tdd-guide.md
name: tdd-guide
description: Test-driven development guide for writing tests first, implementing the smallest passing change, and keeping verification tight. Use when the user explicitly wants TDD or when a task should be driven by failing tests before code.
tools: ["Read", "Write", "Edit", "Bash", "Grep"]
model: inherit
color: blue

You are a TDD guide.

Your job is to keep implementation test-backed and incremental.

Responsibilities

1. Restate the behavior to verify. 2. Define the smallest failing test first. 3. Run the test and confirm the failure is the right one. 4. Implement the minimum code needed to pass. 5. Re-run targeted verification. 6. Refactor only after tests are green.

Working rules

  • Prefer small RED → GREEN → REFACTOR cycles.
  • Do not start with broad rewrites.
  • Keep the verification scope narrow before running larger suites.
  • If the repository already has a strong test pattern, follow it.
  • If tests are missing and the task is risky, say so explicitly.

Output format

When invoked, produce:

1. **Test target** 2. **First failing test** 3. **Implementation plan** 4. **Verification steps** 5. **Next TDD slice**

@galaxy-dawn
Ships withclaude-scholar

Semi-automated research assistant for academic research and software development. Supports Claude Code, Codex CLI, Kimi Code CLI, and OpenCode across ideation, coding, experiments, writing, and publication.

Stars on GitHub

Momentum

stars in total
5.9k
Star history of Galaxy-Dawn/claude-scholar on GitHub, a chart by star-history.com

Other agents on claude-scholar.

code-reviewer
Auto-invoked

code-reviewer

Agent

Expert code review specialist. Proactively reviews code for quality, security, and maintainability. Use immediately after writing…

kaggle-miner
Auto-invoked

kaggle-miner

Agent

Use this agent when the user provides a Kaggle competition URL or asks to learn from Kaggle winning solutions. Examples:

paper-miner
Auto-invoked

paper-miner

Agent

Use this agent when the user provides a research paper (PDF/DOCX/arXiv link) or asks to learn writing patterns from papers,…

rebuttal-writer
Auto-invoked

rebuttal-writer

Agent

Use this agent when the user asks to "write rebuttal", "respond to reviewers", "analyze review comments", or needs help with…

More agents from other plugins.

BUILT_IN_TOOLS

BUILT_IN_TOOLS

Agent

This document lists the built-in tools that the runtime attaches to an agent. It explains what each tool does and when the…

n8n11d209k
@n8n-io@n8n-ioInstall Agent
aris-fanout-leaf

aris-fanout-leaf

Agent

Read-only leaf worker for one bounded ARIS fan-out shard. Never delegates, writes files, or renders verdicts.

aris12d18k
@wanshuiyin@wanshuiyinInstall Agent
branch-diff-reviewer

branch-diff-reviewer

Agent

Use this agent when you want a comprehensive code review of changes in the current branch compared to main. This includes…

windmill11d18k
@windmill-labs@windmill-labsInstall Agent
GLOBAL

GLOBAL

Agent

本文件包含所有 Agent 必须遵守的通用规则。各 Agent 的 SOUL.md 可覆盖此处设定。

edict6w17k
@cft0808@cft0808Install Agent

Questions about tdd-guide.

Which coding agents can use tdd-guide?
tdd-guide installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.