The small-asks playbook: how to slice features for AI
I build Settl, an expense-splitting app, solo with Claude. My early sessions were 500 word mega prompts describing whole features, and the code came back plausible, wrong, and expensive to untangle. Everything improved the day I started treating Claude like a fast pair programmer who does exactly one focused thing at a time.
Why the mega prompt fails
A big ask forces the model to make dozens of unstated decisions at once: schema shape, error handling, naming, library choice, edge cases, what happens when the network flakes. You review none of those decisions until they are all tangled together in one giant diff. When something is wrong, and something is always wrong, you cannot tell which decision caused it. So you either accept mystery code into your app or throw the whole thing away.
Small asks flip that. Each ask makes a handful of decisions, and you review them while they are still cheap to change. Ten small wins beat one tangled monster. Every time.
The loop
- Make one focused ask. One endpoint, one screen state, one bug.
- Review the result. Actually read the diff. Run the code.
- Fix anything wrong now, while the context is small and the cause is obvious.
- Make the next ask. The reviewed result is now trusted context.
Step 4 is where this compounds. Because you reviewed ask three, ask four builds on code you trust. The model does better too: it sees working, approved patterns in the files it just touched, and it imitates them instead of inventing new ones.
Three ways to slice
- By endpoint. One route per ask.
POST /api/auth/signupis an ask. "The auth API" is not. - By screen state. Empty state, loading state, error state, happy path. Four asks, not one "build the dashboard."
- By bug. One reproduction, one fix, one test. Never "fix all the issues in this file."
The test: if you cannot name the slice in one short sentence, it is not sliced yet.
Worked example: "add user authentication" in six asks
The mega prompt version reads "add user authentication with signup, login, logout, protected routes, and a nice UI." Here is the same feature as six asks for a generic Node and React app.
Ask 1: the schema.
Add a users table: id, email (unique), password_hash, created_at. Write the
migration only. No routes, no UI.
Review: column types, the unique index, your naming convention. Thirty seconds.
Ask 2: the signup endpoint.
Add POST /api/auth/signup in src/auth/routes.ts. Validate email format and
password length, hash with bcrypt, insert the user, return 201. Return 409
on duplicate email. No sessions yet.
Review: hashing is present, nothing logs the password, errors make sense.
Ask 3: login and sessions.
Add POST /api/auth/login. Verify the password, set an httpOnly session
cookie. Return 401 with the same message for wrong email and wrong password.
Ask 4: the middleware.
Add a requireAuth middleware in src/auth/middleware.ts that reads the session
cookie and returns 401 when it is missing or invalid. Apply it to /api/me
only for now.
Ask 5: the frontend.
Build login and signup forms in src/pages/Login.tsx, wired to the two
endpoints, with inline error states. Redirect to /app on success.
Ask 6: logout, expiry, tests.
Add POST /api/auth/logout that clears the cookie. Give sessions a 7 day
expiry. Write tests for signup, login, wrong password, and expired session.
Six reviews of thirty to ninety seconds each, and every later ask stood on reviewed code. Compare that with reviewing one 900 line diff across fourteen files.
Signs your ask is too big
- The prompt contains "and" more than twice.
- You cannot predict which files will change before you send it.
- You are describing an outcome ("make auth work") instead of a change ("add this endpoint").
- You catch yourself planning to review it "later."
- If a colleague sent you the resulting diff as a PR, you would ask them to split it.
When big asks are fine
Small asks are for code you have to live with. Some code you do not.
- Scaffolding. "Set up a new Express app with TypeScript, ESLint, and a health check route" is fine as one ask. The output is standard and easy to regenerate.
- Throwaway prototypes. Spiking to see if an idea works at all? Go big, learn, then delete it and rebuild in slices.
- Mechanical changes with a verifier. Renames, import style migrations, converting test files to a new framework. Safe to batch when the compiler or test suite catches every miss.
- Code you will never read. Test fixtures, seed data, mock payloads.
The dividing line: does correctness depend on judgment calls you would want to review? If yes, slice it. If a machine can verify the result, batch it.
Run this on your codebase
Paste this into a Claude session in your repo, with your next feature filled in:
Here is a feature I want to build: [describe it in one or two sentences].
Do not write any code yet. Instead:
1. Slice it into the smallest sequence of independently reviewable asks.
Each ask should touch a handful of files at most and be verifiable on
its own (a test, a curl call, a visible screen state).
2. Order them so each ask builds on the reviewed result of the previous one.
3. For each ask, write the exact short prompt I should send you, including
real file paths from this repo.
Then stop. I will send the asks one at a time and review between each.