AI interviews you to gather Project/Task requirements
Thariq tweeted this:
my favorite way to use Claude Code to build large features is spec based start with a minimal spec or prompt and ask Claude to interview you using the AskUserQuestionTool then make a new session to execute the spec
The prompt:
the prompt I've been using is:
read this @SPEC.md and interview me in detail using the AskUserQuestionTool about literally anything:
technical implementation, UI & UX, concerns, tradeoffs, etc.
but make sure the questions are not obvious
be very in-depth and continue interviewing me continually until it's complete, then write the spec to the file
To get this working, you need 2 things:
- Whatever project you’re working on - either brand new, or existing one, create
a file called
SPEC.mdat the project root and explain the goal of your task in it. Be as detailed as as brief as you want to be. But know that this is just a starting point. - a Claude custom command. Mine is simply
/interview. Create this by creating the file~/.claude/commands/interview.mdwith the above prompt (adjust per your use).
Restart Claude Code, and now you’ll have access to the /interview command. Run it
and CC will read the SPEC file and start asking you questions!
These will eventually be done, and Claude will update the SPEC.md file with an execution plan. Now you just have to restart a fresh CC session and tell it to execute the plan in the SPEC.md file to the T.
I haven’t done this myself yet. I have ideas for using this in 2 projects. I’ll start one tomorrow and write here how it goes.