superui-tdd

superui-tdd is a skill for Claude Code, Codex from HappyDoggyAI/superui. It costs 67 tokens per session (941 once invoked), scanned A, original, MIT.

A frontend coding workflow that builds user interfaces with tests written before the code. It checks visual details, screen-size rules, interactions, accessibility, and design tokens against project documents.

In plain words
What is it for?
Use it to implement React or other frontend screens from DESIGN.md, specifications, proposals, or test plans, including responsive layouts, styling, interactions, and accessibility checks.
Why use it?
It prevents UI code from drifting away from the approved design or responsive rules. The failing-test-first process makes missing or incorrect behavior visible early.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present. Also seen: $skill-name invocation.

Part of the superui plugin — 6 skills shipped together

Good fit Use it to implement React or other frontend screens from DESIGN.md, specifications, proposals, or test plans, including responsive layouts, styling, interactions, and accessibility checks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/happydoggyai/superui/superui-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.

Any agent
npx skills add HappyDoggyAI/superui --skill superui-tdd
Clone the repo
git clone --depth 1 https://github.com/HappyDoggyAI/superui

Made for: Claude Code, Codex.

Or install superui, the plugin that ships this one along with the rest of its 6 skills.

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 superui-tdd

README.md
[![agentmods](https://agentmods.dev/badge/skills/happydoggyai/superui/superui-tdd/github.svg)](https://agentmods.dev/skills/happydoggyai/superui/superui-tdd)
Your own site
<a href="https://agentmods.dev/skills/happydoggyai/superui/superui-tdd"><img src="https://agentmods.dev/badge/skills/happydoggyai/superui/superui-tdd/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for superui-tdd

Your own site · 80×15
<a href="https://agentmods.dev/skills/happydoggyai/superui/superui-tdd"><img src="https://agentmods.dev/badge/skills/happydoggyai/superui/superui-tdd.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 941 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.00067 $0.00941
Opus 5 $0.00034 $0.00470
Sonnet 5 $0.00013 $0.00188
Haiku 4.5 $0.00007 $0.00094

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

Security

Grade A, and why

superui-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 10d 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.

skills/superui-tdd/SKILL.md · 98 lines

How it starts

The opening of the file, as written. The whole thing — 98 lines — stays where its author put it; the contents beside it link to each section on GitHub.

TDD Frontend Implementation

Implement frontend UI through strict test-driven development. Do not skip RED, and do not silently drift from DESIGN.md.

Core Rules

  • RED cannot be skipped: write a failing test, see it fail, then implement.
  • DESIGN.md is the only design truth source. Colors, type, spacing, radius, and shadows must use its tokens.
  • RESPONSIVE_RULES.md is a hard constraint. Code violating a MUST NOT rule must be rewritten.
  • Any deviation from DESIGN.md must be recorded in design-adjustments.md with reason and fallback.
  • Tests and tracking artifacts use <ARTIFACT_ROOT>; implementation code goes in the target project.
  • Read skills/superui-shared/TASK_MANAGEMENT.md; update todo.md, append RED/GREEN/REFACTOR evidence to progress.md, and update pipeline-status.md.

Required Inputs

File Source Purpose
DESIGN.md superui-design-md tokens and design rules
specs/*.md superui-planner GIVEN/WHEN/THEN behavior
test-plan.md superui-planner test scope and standards
proposal.md or design-proposal.md superui-planner implementation order and component tree

Read skills/superui-shared/RESPONSIVE_RULES.md before coding.

Workflow

  1. Preflight: load required inputs and responsive rules.
  2. RED: write one failing test suite for one component or behavior.
  3. GREEN: write the smallest implementation that passes the failing test.
  4. REFACTOR: improve code while keeping all tests green.
  5. Repeat for the next component or behavior.
  6. Validate visual, interaction, accessibility, and responsive requirements.
  7. Record deviations in design-adjustments.md.

Test Layers

Layer Preferred tools Fallback
Visual contract Playwright + pixelmatch or screenshot comparison Manual comparison against DESIGN.md previews
Interaction behavior Playwright + Testing Library Cypress
Accessibility axe-core + Playwright pa11y or manual WCAG checklist

Read the full file on GitHub · 98 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 10d ago First seen · 98 lines · 67 tokens per session scan A a3252d207bb8

Subscribe to this mod's changes

superui-tdd is a skill published in the GitHub repository HappyDoggyAI/superui (2 stars, last pushed 2mo ago), licensed MIT. It adds 67 tokens to every session and 941 once invoked, about $0.0003 per session on Opus 5. 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-31.

Related

Other skills, from other repositories

react-web

React web development with hooks, React Query, Zustand.

alinaqi/maggy · 13 tokens

review-screenshot

A standard workflow for taking screenshots to check a user interface, using a dedicated review process for different verification modes.

YuDefine/nuxt-supabase-starter · 75 tokens

figma-to-react-workflow

Orchestrates end-to-end Figma-to-React conversion pipeline with enforced TDD, automated pixel-diff visual QA, E2E testing, and app-type awareness (web apps, Chrome extensions, PWAs). Keywords: Figma to React, design tokens, autonomous component generation, Figma conversion, Tailwind config, component library, TDD…

PMDevSolutions/Aurelius · 0 tokens

tdd-from-figma

Writes failing tests FIRST from Figma structure and the design token lockfile, then implementation makes them pass. Per-component TDD cycle using exact values from design-tokens.lock.json. App-type-aware: generates Chrome extension, PWA, and web app test templates. Keywords: TDD, test-driven development, Figma tests…

PMDevSolutions/Aurelius · 0 tokens

web-dev-standards

Use when designing software architectures ('codebase-design' Deep Modules/Design-It-Twice), writing tests ('test-driven-development' mock boundaries), creating setup scripts ('interactive-wizard'), TypeScript standards, Next.js, Expo, or Monorepos.

J-StaR-Films-Studios/VibeCode-Protocol-Suite · 57 tokens

fec-tdd-workflow

A frontend test-driven development workflow, or TDD, describes the expected behavior with a failing test, implements the smallest change to pass it, and then refactors. It covers UI components, hooks, API clients, route guards, and user workflows.

bovinphang/frontend-craft · 80 tokens