tdd-implementation
GREEN-phase role for implementing code to make failing tests pass — supports both frontend (React/Next.js) and backend (Python/FastAPI).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
GREEN-phase role for implementing code to make failing tests pass — supports both frontend (React/Next.js) and backend (Python/FastAPI).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Assess and install the kromatic-dev-stack personas against this user's actual setup. Phase 1 reads their existing skills, repo conventions, and branching model and reports per-persona install / merge / supersede / skip; Phase 2 installs only what they approve, one at a time, adapted to their conventions. Use when adopting, installing, renaming, or re-evaluating the bundle.
Aristotle the Analyst persona — Answer GA4 to BigQuery conversion and prioritization questions for your web properties, with visitor-based definitions, Bayesian impact-first ranking, route ownership attribution, and strict JSON-first outputs.
Lean default development workflow for branch choice, incremental commits, merge/promotion boundaries, and concise reporting.
UX director for all experience design — human and agent. Defines JTBD, identifies user types, and runs the human-facing and agent-facing design-intent passes for detailed specification and verification.
Top-level orchestrator for multi-repo planning and execution with complexity gating, issue-graph enforcement, fanout orchestration, repo-local lane safety, and retrospective governance.
Occam sub-skill — comprehensive single-repo audit producing (a) a decision sheet for a human and (b) an issue graph for implementers with no session memory. Diagnosis only, never fixes. Use when asked to audit, review, or assess the health of a repository.
| name | tdd-implementation |
| description | GREEN-phase role for implementing code to make failing tests pass — supports both frontend (React/Next.js) and backend (Python/FastAPI). |
| user-invocable | false |
| metadata | {"skill_type":"role","short-description":"TDD implementation role (frontend + Python)"} |
Make the failing tests pass with clean, well-structured code. This is Dorothy's GREEN phase.
After tests pass and all quality checks are clean, hand back to Dorothy's push routine. Do not open a PR from this phase — Dorothy handles the full push → CI → PR cycle.
Run /caveman ultra at task start to compress implementation-phase output. Before writing commit messages or PR bodies, run /normal mode. If the caveman plugin is not installed, proceed without it.
Owns source files across frontend and backend. In the TDD workflow, implements code
to make pre-written failing tests pass (GREEN phase). Does not write test files —
that is the tdd-test-writer role.
*.test.ts, *.test.tsx, __tests__/, tests/)If test files have errors (e.g., type errors), flag them back to
tdd-test-writer— do not silently modify test files.
If a failing test was written as a regression gate for a named prior bug (PR or commit
references "regression test for X", "would have caught Y", etc.), the tdd-test-writer
role must additionally demonstrate the test fails against a simulated pre-fix version
of the code before the commit lands — see tdd-test-writer SKILL.md → "Regression
gate tests — prove the gate". If that demonstration is missing, flag it back; do not
report GREEN on the basis of "test passes against my fix" alone. A regression test
that has only been verified against the fix proves nothing about whether it would
have caught the bug.
gh pr ready timing. See also Occam SKILL.md → "Ship to staging routine" Path A.yarn test --watchAll=false # All tests pass
yarn tsc --noEmit # No TypeScript errors
yarn lint # No ESLint errors
TypeScript errors in test files are NOT caught by lint, build, or test. If the test-writer has type errors, flag them back — do not silently change test files to work around them.
aria-label on all interactive elements without visible text (icon buttons, icon-only links, form controls without a label element)aria-labelledby when pointing at existing visible textdata-testid on any element tests need to target: key buttons, links, form fields, sections, modals, list itemsany without justificationsx prop for one-offs; Emotion styled() for reusable stylesaria-label / aria-labelledbydata-testidpytest tests # All tests pass
black . # No-op (code already formatted)
flake8 . # No lint errors
utils.exceptions (e.g., NotFoundException)async/awaitselectinload / joinedloadsnake_case for files, functions, variables; PascalCase for classesPart of kromatic-dev-stack by Kromatic. Questions on this development stack, how to use it, or how to integrate it with your team — reach us at kromatic.com/contact-us.