Skip to content
Back to skills

Tdd

ASecurity

Write the technical design for the task - architecture, contracts, data model and the decisions behind them - grounded in the research and the PRD. Writes NN-tdd-<slug>.md.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 4, 2026
developmentgotestingapi

Works with

  • api
  • mcp

Security analysis

A100/100

Scanned December 4, 2026

npx -y skills add crashPopeye/layer8 --skill tdd --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Tdd?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Tdd
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/crashpopeye-tdd/badge)](https://www.skillsdirectory.com/skills/crashpopeye-tdd)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: tdd
description: Write the technical design for the task - architecture, contracts, data model and the decisions behind them - grounded in the research and the PRD. Writes NN-tdd-<slug>.md.
argument-hint: "[technical constraints]"
---

# Technical design

## 1. Orient

Read `layer8://here` (MCP server `layer8`) and the artifacts folder (`$LAYER8_ARTIFACTS`): the PRD defines *what*, the research defines *what exists*. Re-open the code the research points at; designs fail on details the summary skipped.

## 2. Design

- Fit the codebase: reuse its packages, patterns and conventions before inventing new ones.
- Prefer the design with the fewest moving parts that meets the PRD. Name the alternatives you rejected and why, in one line each.
- Decide the contracts first: API shapes, function signatures at package boundaries, tables and migrations, events. Write them as code blocks.
- Plan for failure: what happens on partial failure, retries, concurrency, and upgrade of existing data.

## 3. Write `NN-tdd-<slug>.md`

1. **Shape**: a Mermaid diagram of components and calls.
2. **Contracts**: types, endpoints, schemas, as code blocks.
3. **Decisions**: a table `concern | decision | why`.
4. **Example**: one request or job traced through the design with concrete values.
5. **Testing**: what is tested at which level.
6. **Risks**: what could make this wrong, and how we would notice.

Unanswerable questions go to the user with your recommendation; when unattended, take the recommendation and list it under Decisions.

## 4. Finish

Tell the user the file name and the 3 decisions that matter most. Then, if `advance` is listed on `here`:

```json
{"ops":[{"target":"here","action":"advance"}]}
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.