🧪
QualityTypeScript

Test-Driven Development

by crbnos

Test-Driven Development is a Quality skill for Claude Code, published by crbnos in carbon.

2.3K stars335 forkson crbnos/carbonAdded 2026/08/12+1% in starsRepository updated 2026/08/12
businesserpleanmanagementmanufacturingmcp-servermespostgresqlqmsreact-routersupabasetypescript
Install in seconds
Install Test-Driven Development
Copy Test-Driven Development into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/crbnos/carbon/tree/main/.claude/skills/test-driven-development ~/.claude/skills/test-driven-development

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/crbnos/carbon.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
.claude/skills/test-driven-development/SKILL.md in crbnos/carbon
Installs to
~/.claude/skills/test-driven-development
Collection
One of 47 skills cataloged from this repository
Category
Quality1354 skills

What Test-Driven Development does

Test-Driven Development enforces writing a failing Vitest test before production code in Carbon. Use it for features and bug fixes when you need a regression-safe red→green→refactor loop.

Test-Driven Development is cataloged under Quality on DirSkills. Test-Driven Development comes from a repository tagged business, erp, lean, management and manufacturing.

Documentation

README

test-driven-development — red, green, refactor

The rule: no production code without a failing test first. A test written after the code passes immediately — and a test you never saw fail proves nothing: it may test the wrong thing, test the implementation instead of the behavior, or miss the exact case you got wrong.

Already wrote code before the test? Stash or delete it, write the test, watch it fail, then re-implement. Don't keep it open "as reference" — that is writing tests after, with extra steps.

The cycle

1. RED — write one failing test

One behavior per test, named for the behavior ("rejects a receipt line with zero quantity", not "test1"). Test real code; mock only what you cannot run (network, clock). Copy setup from a sibling test file in the same package.

This is the opening of the README. Read the full README on GitHub.

Commands Test-Driven Development provides

Slash commands named in this skill’s SKILL.md, listed in the order they first appear.

  • /fix

Frequently asked about Test-Driven Development

  • What else does crbnos publish alongside Test-Driven Development?

    Test-Driven Development is one of 47 skills that DirSkills catalogs from crbnos/carbon, the repository it ships in. Its siblings there include Agent Browser, Agent Browser and Browser Error Snapshot. Each one is a separate skill with its own page in this directory, installs the same way Test-Driven Development does, and is maintained by crbnos in that same repository. The rest of the collection is listed on the crbnos/carbon page.

  • How does Test-Driven Development compare to other Quality skills?

    Test-Driven Development ranks #536 by stars among the 1354 Quality skills in this catalog. The most-starred ones next to it are Benchmark, Benchmark Optimization Loop and API Design Patterns. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Test-Driven Development against them. Open each page to compare what they document and how they install.

More from crbnos/carbon

Test-Driven Development is one of 47 skills cataloged on DirSkills from crbnos/carbon.

See all 47 skills
🌐
2026/07/20

Agent Browser

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task.
Automation
2.3K318
🌐
2026/07/21

Agent Browser

A browser automation CLI for AI agents to navigate websites, fill forms, click buttons, take screenshots, extract data, and automate browser tasks.
Automation
2.3K327
📸
2026/07/20

Browser Error Snapshot

Captures screenshot and element snapshot on browser errors during e2e testing, saving to gitignored .ai/scratch/e2e/. Invoke when 'Something went wrong', auth errors, blank pages, or unexpected redirects appear. A building block that captures and returns, leaving further action to the caller.
Quality
2.3K318
🧪
3w ago

Browser Feature Testing

Browser Feature Testing drives the running Carbon app through a specific user flow in a real browser to verify a feature or fix works end to end. It builds a plan from the diff or an issue, tests with agent-browser, and caches successful playbooks for reuse.
Quality
2.3K335
🐛
2026/07/20

Bug Fix Pipeline

Orchestrates the bug-fix lifecycle from root cause analysis to implementing and proving the fix with a mandatory red→green regression test. Use when fixing a bug, test failure, or unexpected behavior.
Quality
2.3K318
🔑
2026/07/20

Carbon Auth

Authenticate against a local Carbon ERP dev server using the DEV_BYPASS_EMAIL bypass with agent-browser. Used as a prerequisite for automated tests that require an authenticated session.
Automation
2.3K318