원클릭으로
tdd
WHEN working in TDD Red-Green-Refactor; NOT ad-hoc coding; write tests first, add minimal code to green, then assess refactoring.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
WHEN working in TDD Red-Green-Refactor; NOT ad-hoc coding; write tests first, add minimal code to green, then assess refactoring.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
WHEN scraping iOS/macOS App Store data (apps, reviews, ratings, search); NOT for installing or testing apps; retrieves structured JSON data using iTunes/App Store APIs with curl and jq formatting
Comprehensive guide for implementing on-device AI models on iOS using Foundation Models and MLX Swift frameworks. Use WHEN building iOS apps with (1) Local LLM inference, (2) Vision Language Models (VLMs), (3) Text embeddings, (4) Image generation, (5) Tool/function calling, (6) Multi-turn conversations, (7) Custom model integration, or (8) Structured generation.
WHEN building ChatGPT apps using the OpenAI Apps SDK and MCP; create conversational, composable experiences with proper UX, UI, state management, and server patterns.
WHEN building SwiftUI views, managing state, setting up shared services, or making architectural decisions; NOT for UIKit or legacy patterns; provides pure SwiftUI data flow without ViewModels using @State, @Binding, @Observable, and @Environment.
WHEN building design systems or component libraries with Tailwind CSS; covers design tokens, CVA patterns and dark mode.
WHEN building React components/pages/apps; enforces scalable architecture, state management, API layer, performance patterns.
| name | tdd |
| description | WHEN working in TDD Red-Green-Refactor; NOT ad-hoc coding; write tests first, add minimal code to green, then assess refactoring. |
Test-Driven Development with behavior-focused testing, factory patterns, and the Red-Green-Refactor cycle.
Every single line of production code must be written in response to a failing test.
This is non-negotiable. If you're typing production code without a failing test demanding it, you're not doing TDD.
Write a test that describes the desired behavior. The test must fail because the behavior doesn't exist yet.
Rules:
Write the minimum code to make the test pass. Nothing more.
Rules:
With tests green, assess whether refactoring would add value.
Rules:
| Topic | Guide |
|---|---|
| Red-Green-Refactor examples with step-by-step workflows | workflow-examples.md |
| Factory functions, composition, test organization, 100% coverage | test-factories.md |
| Critical violations, high priority issues, style improvements | violations.md |
| Behavior testing patterns, test naming, and organization | patterns.md |
Use workflow-examples.md when you need:
Use test-factories.md when you need:
Use violations.md when you need:
Use patterns.md when you need:
Is there a failing test demanding this code?
├── Yes → Write minimal code to pass
└── No → Write the failing test first
Does the test verify a business outcome?
├── Yes → Does it use the public API only?
│ ├── Yes → Does it use factory functions?
│ │ ├── Yes → Good test ✓
│ │ └── No → Refactor to use factories
│ └── No → Rewrite to avoid internals
└── No → Rewrite to focus on behavior
Are all tests green?
├── Yes → Is the code already clean?
│ ├── Yes → Commit and move on
│ └── No → Commit first, then refactor
└── No → Make tests pass first
Does this code make the current failing test pass?
├── Yes → Is there any code that could be removed
│ and tests still pass?
│ ├── Yes → Remove it
│ └── No → Done, commit
└── No → Keep writing minimal code
Before committing, verify:
let/beforeEach)