# Implement Feature Tdd

> Use this workflow to implement ANY new feature following Test-Driven Development strictly.

- Skill: `tomevault-io/implement-feature-tdd` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/implement-feature-tdd`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/implement-feature-tdd/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Productivity
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/implement-feature-tdd

---


## Workflow Steps

1. **Write failing E2E tests FIRST (RED)**:
   - Write E2E test for API boundaries (Controller/Resolver) using `/add-e2e-test` skill.
   - Run `npm run test:e2e` to verify it FAILS.
2. **Write unit tests (RED)**:
   - Use the `/add-tests` skill to write failing unit tests for the Services and Resolvers/Controllers.
   - Run `npm run test` to verify they FAIL.
3. **Write implementation (GREEN)**:
   - Implement the minimum code required in the Controller/Resolver and Service to make both E2E and unit tests pass.
   - Run tests until they PASS.
4. **Refactor and Check (REFACTOR)**:
   - Run `npm run check` to fix linting and types.
   - Run `npm run test:cov` to ensure test coverage remains above 80%.

Do not write production code before writing the test assertions.

---
> Source: [uxname/liteend](https://github.com/uxname/liteend) — distributed by [TomeVault](https://tomevault.io).
<!-- tomevault:4.0:skill_md:2026-06-17 -->

