Supports TDD workflows with red-green-refactor cycles. Focuses on testing public interfaces for robust software.

Install

mkdir -p .claude/skills/tdd-navikt && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/13406" && unzip -o skill.zip -d .claude/skills/tdd-navikt && rm skill.zip

Installs to .claude/skills/tdd-navikt

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Testdrevet utvikling — test-first, red-green-refactor, bugfiks med reproduksjonstest og ny funksjonalitet med tester først. Brukes via /tdd ved testdrevet arbeidsflyt.
167 charsno explicit “when” trigger
Intermediate

Key capabilities

  • →Clarify interface changes with the user
  • →List behaviors to be tested
  • →Write one test to confirm one system aspect
  • →Incrementally add tests and minimal code to pass them
  • →Refactor after all tests pass

How it works

The skill guides a Test-Driven Development (TDD) workflow, emphasizing test-first, red-green-refactor cycles, and testing through public APIs.

Inputs & outputs

You give it
User requirements for new functionality or bug fixes
You get back
Tested code with verified behavior through public interfaces

When to use tdd

  • →Run TDD red-green cycle
  • →Write tests for new features
  • →Reproduce bugs with failing tests
  • →Refactor existing logic safely

About tdd

Guides the TDD process by enforcing test-first development for new features and bug fixes. Encourages testing through public APIs to ensure refactoring resilience.

Testdrevet utvikling — test-first, red-green-refactor, bugfiks med reproduksjonstest og ny funksjonalitet med tester først. Brukes via /tdd ved testdrevet arbeidsflyt.

When not to use it

  • →When writing all tests first before any implementation
  • →When refactoring while tests are failing (RED state)
  • →When mocking internal collaborators instead of system boundaries

Limitations

  • →Tests must describe behavior, not implementation details.
  • →Tests must use only public interfaces.
  • →Refactoring is only allowed when all tests pass (GREEN state).

How it compares

This skill enforces a vertical, incremental TDD workflow, focusing on testing behavior through public interfaces and refactoring only in the GREEN state, unlike a horizontal approach or testing implementation details.

Compared to similar skills

tdd side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
tdd (this skill)05moNo flagsIntermediate
tdd-workflow66moReviewIntermediate
qlty-check58moReviewBeginner
superpowers-tdd58moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry