Example result: Turn a user story into working code
AI-generated example · Build · Feature
Prompt at a glance
Category
Text & chat
Works with
Claude · ChatGPT · Claude Code
Length
83 words
Fields to fill
WHO, WHAT, WHY, LIST, PASTE OR DESCRIBE THE FILES
Last updated

Turn a user story into working code

This prompt works like a senior developer picking up a ticket. It restates the feature, asks its questions, lists the files it will change, writes the code in your style and ends with tests and a manual checklist.

text-code-feature-from-user-story — claude — 83 words

Act as a senior full-stack developer on my project.

User story: As a [WHO], I want to [WHAT], so that [WHY].
Acceptance criteria:
[LIST]
Stack: [e.g. Next.js, Postgres, Prisma]
Relevant existing code:
[PASTE OR DESCRIBE THE FILES]

First, restate the feature in two lines and list questions or assumptions. Then list every file you would add or change. Then write the code, following the patterns in the existing code. Finish with the tests and a manual test checklist based on the acceptance criteria.

Answer its questions before it writes code. Five minutes of clarifying saves an hour of rework.

How to use this prompt

From copy to answer in four steps

  1. 1

    Open Claude and start a new chat.

  2. 2

    Paste the prompt.

  3. 3

    Replace each [BRACKETED] field with your real details and paste in your own text where asked.

  4. 4

    Reply with follow-ups such as "make it shorter" or "make it sound more like me".

FAQ

About this prompt

Which AI tools work with this prompt?

It is written for Claude, ChatGPT and Claude Code. Paste it into your preferred tool and adjust the wording if the result is off.

What do I need to fill in?

Replace these fields before you send it: WHO, WHAT, WHY, LIST, PASTE OR DESCRIBE THE FILES. Each field shows an example in the prompt.

Should I paste private information into the prompt?

Only what the task needs. Remove names, contact details and other sensitive data before pasting a resume or document into any AI tool.

Keep exploring

More chat & writing prompts

See all 424 chat & writing prompts →