원클릭으로
iterate-tdd
iterate on a TDD based on user feedback - do not use this if you already used create-tdd
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
iterate on a TDD based on user feedback - do not use this if you already used create-tdd
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | iterate-tdd |
| description | iterate on a TDD based on user feedback - do not use this if you already used create-tdd |
| disable_model_invocation | true |
| disable-model-invocation | true |
You are refining an existing Technical Design Document (TDD) based on the user's feedback. The reflexes are the same as building one from scratch; the difference is that you work from feedback and resolve one thing at a time rather than running the full two-phase interview.
Guide the conversation, don't execute autonomously. After each change or answered question, stop and ask the user what's next. Never grind through multiple updates without user input between each one.
Re-paint, don't append. After every change, re-work the affected section so the System Design and Program Design always read as a design written on purpose - high-level, coherent, current - never a Q&A log or a changelog of decisions. Re-painting a whole section is expected; just edit the document in place rather than rewriting it wholesale in one pass.
Exactly one question per message. When you grill, end every message with a single question - never a second question, a stacked follow-up, or an "and also...". Offering 2-3 options to choose between is still one question; stacking multiple independent decisions into one message is not allowed. Walk down the design tree one decision at a time, then stop and wait. If several things feel open, ask only the one that unblocks the rest - the others come after the answer. Never ask for a vague "any feedback?".
Show, don't tell. When discussing architecture, data flow, or code structure, reach for a diagram, type signature, or code-shape sketch and display it inline. A quick diagram communicates more than paragraphs of prose.
Make it read like a document a human designed for other humans. A reader should be able to skim the headers alone and come away with the shape of the design. Give every section and sub-point a header that states its takeaway - the way a good slide title asserts its message ("Sync runs as a background job after the write commits"), not a generic topic label ("Sync"). Keep paragraphs short, and place each diagram, signature, or snippet immediately beside the prose it illustrates - never let the text become a wall with all the visuals piled at the end. When you re-paint a section, fix these too: split walls of text, add takeaway headers, and pull diagrams up next to their prose.
System design vs program design: Keep these concerns distinct. System design explains behavior across components: sequence diagrams, flow charts, service/component boundaries, data flow, external interfaces, and high-level endpoint/schema/method contracts (in whatever transport the codebase uses). Program design explains the in-code shape: call-stack trees, frontend component trees, file-tree diffs, dependency-injection maps, testing seam maps, and method signatures not captured in system design.
The goal is leverage: The TDD should help the user decide, align, and re-steer the implementation without loading the entire implementation into their head. Prefer the smallest set of diagrams, trees, signatures, and file-shape examples that reveal the important decisions and tradeoffs. Don't dump exhaustive implementation detail just because it's available.
If the user calls this with no instructions or feedback, ask them:
I'm ready to iterate on the TDD. Would you like to:
1. Provide specific feedback or changes to incorporate
2. Continue grilling the design - I'll walk the system and program design one decision at a time, presenting each with options and my recommendation
3. Have me surface additional technical design questions
Let me know which direction, or share your feedback directly.
Then wait for the user's response before proceeding.
If the user asks to "continue working through questions" or "keep grilling" or similar:
Find and read the task directory:
ls -La .tasks/TASKNAME to find all related documents in the task directory. Do NOT use the Grep or Glob tools, or ls -l (lower case L) as the directory may be a symlink.ticket.md, research, design discussion, PRD if present, etc.)If the user gives any input:
Optional - Spawn parallel Agent() calls for research:
For deeper investigation:
Each agent knows how to:
Update document (if changes needed):
Update PRD/mockups (if technical decisions affect product):
Stop and ask what's next:
<content_guidance> Outline system design - cross-component architecture, data flow, control flow, public contracts, and diagrams; express how the system changes (what exists today vs. what's new) inside this section rather than in a separate current/desired-state section
Outline program design - How we're building this in code, what components are involved, call stacks, component trees, file-tree diffs, dependency injection hierarchies, testing seams, and what patterns we'll follow
Discuss technical decisions
Present patterns to follow
</content_guidance>
Read({SKILLBASE}/references/tdd_final_answer_resolved.md)
When documents conflict, the most recent document wins: TDD > PRD > design discussion > research > ticket
The TDD captures technical decisions made AFTER reading the PRD, design discussion, ticket, and research. If an earlier document says one thing but the TDD resolved it differently, follow the TDD.
## Mermaid DiagramsDiagrams are how you communicate architecture visually. Use them liberally when discussing technical design.
Creating diagrams:
flowchart for control flow and data flowsequenceDiagram for component interactionserDiagram for data modelsclassDiagram for type hierarchiesExample:
sequenceDiagram
participant Client
participant API
participant DB
Client->>API: POST /resource
API->>DB: INSERT
DB-->>API: OK
API-->>Client: 201 Created
## HTML Diagrams
Use HTML artifacts when a concept is too complex for Mermaid or plain text, especially when you need to combine code shape, data flow, UI structure, colors, annotations, or side-by-side comparisons.
Creating HTML artifacts:
.tasks/{task-slug}/diagram-{description}.html{SKILLBASE}/references/artifact_template.html and follow it - copy its <style> block and build your content with its prose elements and utility classes so the artifact matches this application's visual language, not the codebase the TDD is aboutReferencing HTML artifacts:
Reference the generated file path in the TDD, for example: .tasks/{task-slug}/diagram-{description}.html
Program design views should be concrete but selective. Include the views that clarify this TDD; do not add every view just to satisfy a checklist.
Call-stack tree: use for backend, CLI, daemon, worker, or orchestration changes.
entrypoint.ts
handleUserIntent
orchestrateChange
validateInput
persistChange
Use diff syntax for call-stack trees only when it helps highlight changed, added, or removed calls. If most of the snippet is net-new, plain text is usually clearer.
entrypoint.ts
handleUserIntent
+ orchestrateChange
- legacyChangeFlow
Frontend component tree: use for UI changes. Show production components, hooks, state/action changes, and package boundaries.
<ResourcePage> (apps/example/src/routes/resource.tsx)
useResourceActions()
<ResourceToolbar>
<CreateResourceDialog> (packages/ui)
Use diff syntax for frontend component trees only when it helps highlight changed, added, or removed components, hooks, props, or state. If most of the snippet is net-new, plain tsx or text is usually clearer.
<ResourcePage> (apps/example/src/routes/resource.tsx)
useResourceActions()
+ useOptimisticResourceState()
<ResourceToolbar>
+ <CreateResourceDialog> (packages/ui)
File-tree diff: use for broad refactors or when file responsibility is a design decision. Format this like tree output so directory depth is easy to scan. Use diff syntax when it helps distinguish changed, added, or removed files; if most of the tree is net-new, plain text is usually clearer. Keep it high-level; exhaustive file changes belong in the structure outline and plan.
src
└── resource
+ ├── resource-client.ts # NEW - wraps API contract calls
+ ├── resource-client.test.ts # NEW - covers request/response mapping
~ └── resource-route.tsx # MODIFIED - wires create action into UI
Dependency-injection map: use when reviewers need to understand seams and injected dependencies. Group dependencies by the object or workflow that receives them, and explain what each dependency lets the code do or fake in tests.
createResourceWorkflow
receives resourceStore -> persists resources, fakeable in workflow tests
receives eventPublisher -> emits resource-created events after commit
receives clock -> makes timestamps deterministic
ResourcePage
receives createResource -> UI does not know transport details
receives queryClient -> updates cached resource list after success
Testing seam map: use when test strategy is part of the technical design. Show the few seams that prove risky behavior is testable, and connect behavior to the fake/mock boundary and test location.
Behavior Seam / fake Test location
rejects invalid resource input fake resourceStore unused resource-workflow.test.ts
rolls back publish failure fake eventPublisher throws resource-workflow.test.ts
shows optimistic row fake createResource promise ResourcePage.test.tsx
maps API validation errors mocked API response resource-client.test.ts
## Referencing the PRD
If a PRD exists:
If no PRD exists:
When you write or edit documents in .tasks/, include the generated local file path in your final response. If the tool output includes additional artifact metadata, you may include it as well.
When writing markdown files that contain code blocks showing other markdown (like README examples or SKILL.md templates), use 4 backticks (````) for the outer fence so inner 3-backtick code blocks don't prematurely close it:
# Example README
## Installation
```bash
npm install example
```
Use only when the user explicitly asks or allows delegating implementation to a Codex worker — launch Pi running openai-codex/gpt-5.6-sol (xhigh) as a visible sidecar implementer that this session orchestrates over AMQ. Write exact task specs, dispatch with --kind todo, validate the results yourself, then iterate, resume, respawn, or launch another worker. Never invoke on your own initiative.
Use only when the user explicitly allows or asks for this skill to be invoked to pair with a second agent harness — launch a sidecar, get a second opinion from another agent, have one harness drive another, or review work with another agent over AMQ. Otherwise, never invoke it.
first step of planning
convert structure outline into a detailed implementation plan
Create a Product Requirements Document with inline mockups
generate research questions based on a task, spec, or ticket