Iteration & Refinement
The first result from Claude Code is rarely the final result. That’s fine — the goal of the first prompt is to get something working to react to, not perfection.
The iteration mindset
Think of each prompt as a git commit. The first gives you a base. Each subsequent prompt refines one thing. After 4–5 rounds, you have something polished.
Round 1: Basic structure
nav 컴포넌트를 만들어줘. 왼쪽에 로고, 오른쪽에 링크 3개.
Round 2: Responsive
이걸 유지하면서 모바일(640px 이하)에서 햄버거 메뉴로 바뀌게 해줘.
Round 3: Scroll behavior
스크롤 시 nav 배경이 흰색으로 바뀌고 shadow가 생기게 해줘.
이미 있는 CSS 클래스는 건드리지 마.
Round 4: Accessibility
햄버거 버튼에 aria-expanded, aria-controls 추가하고
ESC로 메뉴 닫히게 해줘.
Round 5: Polish
nav 링크에 active 상태 스타일 추가해줘.
현재 페이지 링크는 font-weight 600, color #000.
What to look for in each review
After each round, check:
- Does it do what I asked?
- Did it break something from the previous round?
- What’s the next single thing to improve?
One change per round. If you ask for 5 things at once, the AI may get some wrong and it’s hard to debug.
Demo: 5 rounds side by side
The demo shows the nav at each of the 5 stages. The final version is production-ready — with a button you type nothing but prompts to reach.
Your task: start from the Round 1 result and prompt your way to Round 5 using only natural language in Claude Code.
Claude Code의 첫 번째 결과물이 최종 결과물인 경우는 드뭅니다. 괜찮습니다 — 첫 프롬프트의 목표는 완벽함이 아니라 반응할 수 있는 무언가 작동하는 것을 얻는 것입니다.
반복 마인드셋
각 프롬프트를 git 커밋처럼 생각하세요. 첫 번째가 기반을 제공합니다. 이후 각 프롬프트는 한 가지를 정제합니다. 4–5라운드 후 완성도 높은 결과물이 나옵니다.
1라운드: 기본 구조
nav 컴포넌트를 만들어줘. 왼쪽에 로고, 오른쪽에 링크 3개.
2라운드: 반응형
이걸 유지하면서 모바일(640px 이하)에서 햄버거 메뉴로 바뀌게 해줘.
3라운드: 스크롤 동작
스크롤 시 nav 배경이 흰색으로 바뀌고 shadow가 생기게 해줘.
이미 있는 CSS 클래스는 건드리지 마.
4라운드: 접근성
햄버거 버튼에 aria-expanded, aria-controls 추가하고 ESC로 메뉴 닫히게 해줘.
5라운드: 마무리
nav 링크에 active 상태 스타일 추가해줘.
현재 페이지 링크는 font-weight 600, color #000.
각 검토에서 확인할 것
각 라운드 후 체크:
- 요청한 것을 했는가?
- 이전 라운드에서 무언가를 망가뜨렸는가?
- 다음으로 개선할 한 가지는?
라운드당 한 가지 변경. 한 번에 5가지를 요청하면 AI가 일부를 틀릴 수 있고 디버그하기 어렵습니다.