fec-tdd

fec-tdd is a command for Claude Code from bovinphang/frontend-craft. It costs 0 tokens per session (237 once invoked), scanned A, original, MIT.

A front-end test-driven development workflow. TDD means writing a test that fails first, adding the smallest code that makes it pass, and then cleaning up the code.

In plain words
What is it for?
Use it to implement front-end functions, fix bugs, or refactor logic, choosing tests for units, components, light integrations, or full browser flows.
Why use it?
It checks the intended behavior before implementation and helps catch regressions while changing code. It also keeps refactoring tied to tests that already pass.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the frontend-craft plugin — 56 skills, 11 commands, 14 agents, 5 hooks, 6 MCP servers shipped together

Good fit Use it to implement front-end functions, fix bugs, or refactor logic, choosing tests for units, components, light integrations, or full browser flows.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/bovinphang/frontend-craft/fec-tdd
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/bovinphang/frontend-craft

Made for: Claude Code.

Or install frontend-craft, the plugin that ships this one along with the rest of its 56 skills, 11 commands, 14 agents, 5 hooks, 6 MCP servers.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for fec-tdd

README.md
[![agentmods](https://agentmods.dev/badge/commands/bovinphang/frontend-craft/fec-tdd.svg)](https://agentmods.dev/commands/bovinphang/frontend-craft/fec-tdd)
Your own site
<a href="https://agentmods.dev/commands/bovinphang/frontend-craft/fec-tdd"><img src="https://agentmods.dev/badge/commands/bovinphang/frontend-craft/fec-tdd.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 237 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00237
Opus 5 $0.00000 $0.00118
Sonnet 5 $0.00000 $0.00047
Haiku 4.5 $0.00000 $0.00024

Measured 4d ago against content hash 091e99807e77, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

fec-tdd scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/fec-tdd.md · 26 lines

What it actually says

Perform test-driven development as per fec-tdd-workflow.

Execution steps

  1. Identify the front-end behavior to be verified.
  2. Select the test layer for the nearest risk: Unit, Component, Lightweight Integration, or E2E.
  3. Write a minimum failure test and run it to confirm that the failure reason is correct.
  4. Write the minimum implementation to make the test pass.
  5. Keep the tests passed before refactoring.
  6. Summarize test orders, coverage actions, and remaining risks.

Diversion

  • Component and hook testing: fec-component-testing
  • Cross-page browser process: fec-e2e-testing
  • Test layering strategy: fec-testing-strategy

Boundary

Use this command for new observable behavior and behavior-changing bug fixes. For pure behavior-preserving refactoring, do not invent a RED test: characterize the already-correct behavior and keep it GREEN → REFACTOR → GREEN.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago Changed · +5 lines 091e99807e77
  2. 8d ago First seen · 21 lines · 0 tokens per session scan A 18371d2726bb

Subscribe to this mod's changes

fec-tdd is a command published in the GitHub repository bovinphang/frontend-craft (21 stars, last pushed 7d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 237 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.