Course
Claude Code Fundamentals
All steps
Your First Real Work Session
Requesting a New Feature
How to phrase a clear request and follow the work step by step.
Phrasing the request correctly is the difference between an excellent result and a frustrating one. Claude Code does not guess. It does exactly what you ask, so be precise in how you write it.
❌ Vague Request
- Add a login page
- Improve the code
- Fix the problem
- Add dark mode
✅ Clear Request
- Add a /login page using NextAuth with a form that takes email and password
- Improve the fetchUsers function in /lib/api.ts. Reduce the database queries
- Fix the error on line 45 of /app/checkout/page.tsx
- Add dark mode using a CSS class on the html element with localStorage
PromptA full feature request template
I want to add a comment system for posts. Requirements: - A Comment table in the database related to Post and User - An API route at /api/posts/[id]/comments supporting GET and POST - A CommentSection component that displays comments and allows adding one - Optimistic update. The comment appears immediately before the server confirms - Make it RTL compatible for Arabic
Elements of a Good Request
- Start with the goal: 'I want to add...'
- Name the related files if you know them
- State the specific technical requirements
- Mention any constraints or special considerations
- Ask for an explanation before it starts if the task is large