The Anatomy of a Good Prompt
Every effective prompt has three parts: context, intent, and constraints.
Context → What already exists? What are we working within?
Intent → What should this element do or look like?
Constraints → What should it NOT do? What must it stay compatible with?
Bad prompt vs. Good prompt
Bad:
버튼 만들어줘
The AI will produce something — but it guesses at size, color, behavior, and purpose. You’ll spend more time correcting it than you saved.
Good:
primary CTA 버튼을 만들어줘.
- 배경 #2563eb, hover시 #1d4ed8
- padding 12px 24px, border-radius 6px
- 0.15s ease transition
- focus-visible outline 2px offset 2px
- HTML + CSS만, JS 없음
The AI now has no ambiguity. The result matches your intent on the first try.
The specificity spectrum
You don’t always need maximum specificity. Match detail level to stakes:
| Situation | Specificity needed |
|---|---|
| Exploring ideas | Low — let AI surprise you |
| Building a component | Medium — colors, layout, behavior |
| Production-ready | High — states, accessibility, edge cases |
Hands-on: 5 buttons from 5 prompts
Open the demo and read the five button variants. Each was generated from the prompt shown below it. Notice what changes when you specify more.
Your task: Write a prompt for a “destructive action” button (red, for delete operations) that includes hover, focus, and disabled states. Then compare it to the example shown at the end.
효과적인 프롬프트는 세 부분으로 구성됩니다: 컨텍스트, 의도, 제약.
컨텍스트 → 이미 존재하는 것은? 무엇 안에서 작업하는가?
의도 → 이 요소가 무엇을 해야 하거나 어떻게 보여야 하는가?
제약 → 무엇을 하면 안 되는가? 무엇과 호환성을 유지해야 하는가?
나쁜 프롬프트 vs. 좋은 프롬프트
나쁜:
버튼 만들어줘
AI는 무언가를 만들겠지만 크기, 색상, 동작, 목적을 추측합니다. 절약한 것보다 수정에 더 많은 시간을 쓰게 됩니다.
좋은:
primary CTA 버튼을 만들어줘.
- 배경 #2563eb, hover시 #1d4ed8
- padding 12px 24px, border-radius 6px
- 0.15s ease transition
- focus-visible outline 2px offset 2px
- HTML + CSS만, JS 없음
이제 AI에게 모호함이 없습니다. 결과가 첫 시도에 의도와 일치합니다.
구체성 스펙트럼
항상 최대 구체성이 필요하지는 않습니다. 상황에 맞게 세부 수준을 조절하세요:
| 상황 | 필요한 구체성 |
|---|---|
| 아이디어 탐색 | 낮음 — AI가 놀라게 두기 |
| 컴포넌트 구축 | 중간 — 색상, 레이아웃, 동작 |
| 프로덕션 완성 | 높음 — 상태, 접근성, 엣지 케이스 |
핸즈온: 5개 프롬프트에서 나온 5개 버튼
데모를 열고 다섯 가지 버튼 변형을 확인하세요. 각각은 아래에 표시된 프롬프트에서 생성되었습니다. 더 구체적으로 명세할수록 무엇이 바뀌는지 주목하세요.