tdd-workflow-skill

tdd-workflow-skill is a skill for OpenCode from darellchua2/opencode-config-template. It costs 26 tokens per session (4,540 once invoked), scanned C, original, Apache-2.0.

A guide to Test Driven Development, a method where you write a failing test, add the smallest code that makes it pass, and then improve the code.

In plain words
What is it for?
Use it to learn or apply TDD in Python, JavaScript, Next.js, or other frameworks, including writing tests, running the red-green-refactor cycle, and refactoring safely.
Why use it?
It gives developers a clear development loop and encourages small, testable changes instead of writing unverified code first.

Skill for OpenCode

Written for OpenCode: installed under .opencode/. Also seen: mentions OpenCode.

Good fit Use it to learn or apply TDD in Python, JavaScript, Next.js, or other frameworks, including writing tests, running the red-green-refactor cycle, and refactoring safely.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/darellchua2/opencode-config-template/tdd-workflow-skill
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 darellchua2/opencode-config-template --skill tdd-workflow-skill
Clone the repo
git clone --depth 1 https://github.com/darellchua2/opencode-config-template

Made for: OpenCode.

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 tdd-workflow-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/tdd-workflow-skill.svg)](https://agentmods.dev/skills/darellchua2/opencode-config-template/tdd-workflow-skill)
Your own site
<a href="https://agentmods.dev/skills/darellchua2/opencode-config-template/tdd-workflow-skill"><img src="https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/tdd-workflow-skill.svg" alt="Measured on agentmods" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,540 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00026 $0.04540
Opus 5 $0.00013 $0.02270
Sonnet 5 $0.00005 $0.00908
Haiku 4.5 $0.00003 $0.00454

Measured 4d ago against content hash 14fbda91484d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade C, and why

tdd-workflow-skill scanned grade C with 1 finding 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 4d 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

9. **Iteration safety**: bounded-by-default (`Iterations: 25`); safety blocks `.env`, `node_modules/`, `rm -rf`, `git push --force`. See `autoresearch-core-skill/references/iteration-safety.md`.
opencode_app/.opencode/skills/tdd-workflow-skill/SKILL.md · 672 lines

How it starts

The opening of the file, as written. The whole thing — 672 lines — stays where its author put it; the contents beside it link to each section on GitHub.

What I do

I guide developers through the complete Test Driven Development (TDD) workflow by:

  1. Explain TDD Principles: Teach the core red-green-refactor cycle and its purpose
  2. Provide Language-Specific Guidance: Offer TDD workflows for Python/pytest, JavaScript/Jest/Vitest, Next.js, and other frameworks
  3. Define Test Structure: Show how to structure tests for TDD (failing tests first, minimal implementation, refactoring)
  4. Guide Through Workflow Steps: Walk through Write Test → Run Test (Red) → Write Minimal Code → Run Test (Green) → Refactor cycle
  5. Provide Examples: Show concrete TDD examples with before/after code comparisons
  6. Integrate with Test Generation: Work seamlessly with test-generator-framework, python-pytest-creator, and nextjs-unit-test-creator
  7. Enforce TDD Best Practices: Promote test isolation, clear test names, and incremental development

When to use me

Use this skill when:

  • You want to adopt Test Driven Development methodology for a new feature
  • You need guidance on TDD workflow for a specific language or framework
  • You're teaching or mentoring developers on TDD practices
  • You want to refactor existing code using TDD techniques
  • You need to verify your test coverage follows TDD principles
  • You're setting up testing standards for a new project
  • You want to ensure tests are written before implementation code

Use this before using test generation skills like:

  • test-generator-framework for generic test patterns
  • python-pytest-creator for Python-specific TDD
  • nextjs-unit-test-creator for Next.js TDD

Prerequisites

  • Basic understanding of unit testing concepts
  • Access to testing framework for your language (pytest, Jest, Vitest, etc.)
  • Knowledge of the programming language you're working with
  • Familiarity with project structure and build tools
  • Optional: Existing test generation skills for your language

TDD Principles

The Red-Green-Refactor Cycle

TDD follows a continuous cycle:

Read the full file on GitHub · 672 lines

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. 4d ago First seen · 672 lines · 26 tokens per session scan C 14fbda91484d

Subscribe to this mod's changes

tdd-workflow-skill is a skill published in the GitHub repository darellchua2/opencode-config-template (6 stars, last pushed 2d ago), licensed Apache-2.0. It adds 26 tokens to every session and 4,540 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

Vibe Coding Mastery

The complete operating system for building software with AI. From first prompt to production deployment — prompting frameworks, architecture patterns, testing strategies, debugging playbooks, and production graduation checklists. Works with Claude Code, Cursor, Windsurf, Copilot, and any AI coding tool.

LeoYeAI/openclaw-master-skills · 61 tokens

tdd-agent

Autonomous test-driven development agent that writes code to make tests pass.

SHAdd0WTAka/Zen-Ai-Pentest · 17 tokens

Learn what defines effective BDD scenarios

Interactive guidance on writing complete, effective BDD scenarios for story-flow.

Intai/story-flow · 22 tokens

principles

Metric literacy for what this plugin reports: what cyclomatic complexity, cognitive complexity, Halstead difficulty, lines per file, duplication, coverage, CRAP, and type debt mean, and what none of them can tell you. Four reference files carry the definitions and what each collector computes, each bundled reference…

melodic-software/claude-code-plugins · 218 tokens

lfe-tdd

Red-green-refactor quality pass on code the Builder just wrote. Use in the Builder sub-pipeline after lfe-builder completes implementation.

StChiotis/Library-First-Engineering · 32 tokens

pair-programming

Skill "pair-programming" from DNYoussef/context-cascade, covering kanitsal cerceve (evidential frame activation), pair programming, kanitsal cerceve (evidential frame activation), when to use this skill and when not to use this skill.

DNYoussef/context-cascade · 0 tokens