Index of every page on this site: llms.txt
All skills
Run it yourself

Use this skill when writing new features, fixing bugs, or refactoring code. Enforces test-driven development with 80%+ coverage including unit, integration, and E2E tests.

  • 2 files
  • 1.7 KB
  • Updated 3 months ago
  • GitHub
Use this Skill: https://skilld.dev/gh/yevhens-hue/claude-skills-starter-kit/tdd-workflow

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈46 tokens for metadata: the name and description. ≈317 when used: this file. ≈67 more on demand in 1 file.

Description uses 2.3% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈186 characters, or 2.3%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

🧪 Test-Driven Development (TDD) Skill

This skill governs Test-Driven Development across all code modifications, refactoring, and new feature implementations.


🛠️ The 3-Phase TDD Loop

flowchart LR
    A[1. RED: Write Failing Test] --> B[2. GREEN: Implement Minimal Code]
    B --> C[3. REFACTOR: Clean & Optimize Code]
    C --> A

Phase 1: RED (Write Failing Tests First)

  • Write tests that capture the expected feature requirements or reproduce reported bugs.
  • Run tests (node --test or npm test) to verify that the test fails for the right reason.

Phase 2: GREEN (Implement Minimal Code to Pass)

  • Write the minimum amount of production code required to make the test pass.
  • Re-run tests to confirm all assertions pass (pass 100%).

Phase 3: REFACTOR (Optimize & Clean Code)

  • Clean up duplicate code, optimize performance, and improve variable naming.
  • Ensure all tests continue to pass with zero regressions.

💻 Test Suite Pattern (node --test)

const assert = require("assert");
const test = require("node:test");

test("Feature: enforces strict schema validation", () => {
  const result = validatePayload({ name: "Test" });
  assert.strictEqual(result.isValid, true);
});

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at f37b242. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Steadyupdated 3 months ago

README badge

README badge for yevhens-hue/claude-skills-starter-kit/tdd-workflow