Skip to content

Claude Code Prompts: 25 Templates and 5 Workflows (2026)

Claude Code prompts that get results: 25 copy-ready templates and 5 multi-step workflows grouped by goal, each with what to check before you trust it.

By Yotam DahanUpdated 10 min readClaude Code

On this page
  1. The anatomy of a prompt that works
  2. Templates to get oriented
  3. Templates for writing and editing
  4. Templates for data and spreadsheets
  5. Templates for web pages and small tools
  6. Templates for research
  7. Templates to automate and maintain
  8. Five multi-step workflows
  9. What to do next

The Claude Code prompts that work best name the goal, point to the files to use, set the limits, say what the finished output looks like, and ask Claude to prove the work is done. Below are 25 templates grouped by goal and five multi-step workflows that chain them together. Replace the [BRACKETS], paste the prompt, and use the "Check" line to review the result before you trust it.

The anatomy of a prompt that works

Every template below follows the same pattern. Once you see it, you can write your own:

Goal

One outcome per prompt, in plain words: "a one-page summary", not "help with this".

Inputs

The files to use, named with @, such as @data/sales.csv.

Limits

What not to do: don't edit originals, don't invent numbers, don't send anything.

Output

The file name and format you expect, so you know where to look.

Check

How Claude proves it is done: totals printed, tests passed, changes listed.

Mode

Plan mode for big jobs, so you approve the approach before anything changes.

The "Check" part matters most. Anthropic's Claude Code best practices put it first: give Claude a way to verify its own work, and ask for the evidence rather than a claim of success.

Templates to get oriented

Use these first in any folder you haven't worked in before.

1. Map a folder
Give me a tour of this folder: what's in it, what each file seems to be for, and anything that looks duplicated, outdated or broken. Don't change anything.

Check: every file it names actually exists, and nothing was edited.

2. Explain a file to a newcomer
Explain @[FILE] to someone who has never seen it: what it does, what it relies on, and what would break if I deleted it. Use plain words.

Check: anything it says the file relies on can be found in the folder.

3. Find every mention
Find every place in this folder where [TOPIC, PRICE OR NAME] appears. Put the file, the line and the sentence around it in a table.

Check: open two of the results and confirm the lines.

4. Interview me first
I want to [GOAL]. Before you do anything, interview me one question at a time until you understand what I need. Then write the plan to PLAN.md and wait for my OK.

Check: the plan includes every constraint you gave, in your words. Here is how the start of that conversation tends to look:

  1. You:

    I want a booking page for my pottery classes. Interview me first.

  2. Claude Code:

    First question: should people pay when they book, or only reserve a spot and pay at the studio?

  3. You:

    Reserve only. I take payment in person.

  4. Claude Code:

    Got it, no payments. Next: how many seats does one class have, and should the page stop taking bookings when it's full?

Templates for writing and editing

These keep your facts intact while Claude handles the wording.

5. Draft from rough notes
Turn @[NOTES FILE] into a [DOCUMENT TYPE] for [AUDIENCE]. Keep every fact exactly as written, mark gaps as TBD, and don't add claims of your own.

Check: compare names, numbers and dates with the notes.

6. Rewrite to a style guide
Rewrite @[FILE] to follow @[STYLE GUIDE]. Then show a table of each change and the rule behind it.

Check: the meaning of every sentence is unchanged.

7. Shorten without losing facts
Cut @[FILE] to about [NUMBER] words. Keep every number, name and date, and list what you removed.

Check: search the short version for each number from the original.

8. Spot contradictions
Compare @[DOCUMENT A] and @[DOCUMENT B]. List every contradiction in prices, dates, names or promises, quoting both documents.

Check: each item quotes both sides, so you can verify it in seconds.

9. FAQ from a document
Write an FAQ from @[FILE] using only questions the file answers. Under each answer, name the section it came from.

Check: no answer goes beyond what the file says.

Templates for data and spreadsheets

The rule for all five: Claude calculates with a script and shows its work, never by eye.

10. Profile a file before touching it
Describe @[FILE.CSV]: columns, number of rows, date range, empty cells, duplicate rows and odd values. Don't change the file.

Check: the row count matches what your spreadsheet app shows.

11. Clean a copy, never the original
Make a cleaned copy of @[FILE.CSV] called [NAME]-clean.csv: trim spaces, write dates as YYYY-MM-DD, and merge duplicates by [KEY COLUMN]. Leave the original untouched and log every change.

Check: the original is unchanged, and the counts in the log add up.

12. Answer a question with code
Using a script, answer this from @[FILE]: [QUESTION]. Show me the script and its output, not just the answer.

Check: ask for the script to run again. The answer should not change.

13. Match two lists
Match the rows in @[LIST A] and @[LIST B] by [EMAIL OR ID]. Output three files (matched, only in A, only in B) and the count for each.

Check: the three counts add up to the totals of both lists.

14. One clear chart
From @[FILE], make one chart of [METRIC] by [WEEK OR MONTH] as a single HTML file. The title should state the takeaway in plain words.

Check: the axis labels and units are right, and the title matches what the chart shows.

Templates for web pages and small tools

Single-file pages need no hosting to try: you open them straight from the folder.

15. A one-file page
Build a single index.html for [PURPOSE]: mobile friendly, readable fonts, no external libraries. Open it in my browser when it's done.

Check: narrow the browser window to phone width and try every link and button.

16. Fix what I see
[PASTE A SCREENSHOT] On mobile, [DESCRIBE THE PROBLEM]. Fix it and tell me exactly what you changed.

Check: test the fix at the same screen size as the screenshot. In the terminal, paste an image with Ctrl+V, or Alt+V on Windows.

17. A small calculator
Build a one-file tool that calculates [WHAT] from [INPUTS]. Include three test cases with known answers and show me that they pass.

Check: try one case of your own that you can work out by hand.

18. A basic accessibility pass
Review @[FILE.HTML] for basic accessibility problems: missing image descriptions, low-contrast text, headings out of order, buttons without labels. Fix them and list each fix.

Check: run the same prompt again. It should find nothing new.

Templates for research

Claude Code can search the web and read pages, which makes sources easy to demand.

19. A sourced answer
Research [QUESTION]. Use only official or primary sources, give the URL for every claim, and write "not found" when you can't verify something.

Check: open three of the links and confirm they say what Claude says they do.

20. Compare options for my situation
Compare [OPTION A], [OPTION B] and [OPTION C] for [MY SITUATION] on [CRITERIA]. Use a table, then recommend one and say what would change your mind.

Check: confirm any price on the vendor's own pricing page.

21. Pressure-test a plan
Read @[PLAN FILE]. List the five weakest assumptions, how each could fail, and a cheap way to test each one this week.

Check: every test is something you could actually do within a day.

Templates to automate and maintain

These turn one good session into something you can repeat safely.

22. Bulk rename with a dry run
Rename the files in @[FOLDER] to the pattern [PATTERN]. First show a table of old and new names and wait for my OK. Then rename them and save a log.

Check: the log matches the table, and the number of files is the same before and after.

23. Save this as a skill
Turn what we just did into a skill at ~/.claude/skills/[NAME]/SKILL.md, with a description that says when to use it. Show me the file before saving it.

Check: start a new session and ask for the task in different words. How to create a Claude skill covers the details, and the Claude Skills directory shows ones others have built.

24. Run it on a schedule
Set this up as a scheduled task that runs every [DAY AND TIME] in this folder and saves the result to [FILE]. Tell me how to pause it.

Check: in the Claude desktop app, the task appears under Routines in the Code tab. Send this one from a session in the desktop app.

25. Wrap up a session
Before we finish: list every file you created, edited, moved or deleted in this session, and every command you ran. Flag anything I should double-check.

Check: compare the list with the folder, especially moves and deletions. Rewinding restores Claude's file edits, but per Anthropic's checkpointing docs, not changes made by commands it ran.

Five multi-step workflows

Single prompts handle single jobs. These chains handle the work that takes a whole session.

1. Plan, build, verify

For anything bigger than one file, such as a new page or a reorganized folder.

  1. Plan mode

    Press Shift+Tab until "plan mode on", then describe the goal

  2. Read the plan

    Edit it or ask questions before approving

  3. Build

    Approve, and Claude makes the changes

  4. Prove it

    Ask for evidence: test output, totals or a screenshot

  5. Rewind if needed

    Press Esc twice to restore an earlier checkpoint

Check: the evidence matches the "done means" line in your original prompt.

2. Research to decision memo

For choosing a tool, a supplier or an approach.

  1. Split the question

    Ask for one subagent per option, so each researches separately

  2. Compare

    Use template 20 to put the findings in one table

  3. Fact-check

    Ask a fresh subagent to check every claim against its source

  4. Decide

    Read the memo and anything the fact-check flagged

Check: every flagged claim is fixed or removed before you decide.

3. Messy data to a report you can trust

For any spreadsheet you didn't create yourself.

  1. Profile

    Template 10 shows what's in the file

  2. Clean

    Template 11 makes a clean copy and a log

  3. Calculate

    Template 12 answers the questions with a script

  4. Present

    Template 14 turns the answer into a chart

Check: the final totals match the source system the export came from.

4. One-off task to reusable skill

For anything you expect to do again next week.

  1. Do it once

    Run the task and correct Claude until the result is right

  2. Save it

    Template 23 turns the session into a skill

  3. Start fresh

    Run /clear so the test isn't helped by the old conversation

  4. Test twice

    Ask for the task in two different phrasings

Check: both phrasings load the skill and give the same structure.

5. Writer and reviewer

For anything going to a client: one session writes, a fresh one reviews.

  1. Write

    Session A drafts the document or page

  2. Review

    Session B, started fresh, checks it against your checklist

  3. Fix

    Paste the review into session A and ask for the changes

  4. Confirm

    Session B checks the fixes, and nothing else

Check: the reviewer reports only problems against the checklist, not matters of taste. A fresh session judges the work without the reasoning that produced it, so it isn't biased toward its own draft.

Quick check0 of 2 correct

Which part of a prompt does Anthropic's own guidance put first?

Claude moved twenty files with a command and you want them back. What do you rely on?

What to do next

Copy template 1 into Claude Code in a folder you use every week, and follow it with template 10 on any spreadsheet inside. Keep the three or four templates you reach for most in a note, and turn the one you use daily into a skill.

When you want bigger projects to practice on, the Claude Code project ideas each start with a first prompt, and the Claude Code cheat sheet keeps the shortcuts close. For a structured path from first prompt to real projects, the Claude Code course teaches prompting as a full module.

Prompt starter sheet for your own business

A fill-in sheet that turns your business details into ten ready prompts, plus a one-page review routine to catch errors before anything leaves your folder.

Enter your email and the full section opens right here. You also get a free lesson from the course.

No spam. One click to unsubscribe. We use your email to send you the course and AI tips.

Frequently asked questions

How long should a Claude Code prompt be?

Long enough to state the goal, the inputs, the limits and what done looks like, which usually fits in a short paragraph. Rules you would repeat in every prompt belong in a CLAUDE.md file instead.

Why does Claude Code ignore part of my prompt?

Usually the prompt mixes several goals, or the session has grown long and older details were summarized. Give one goal per message, start fresh with /clear between unrelated tasks, and turn rules that must always hold into a hook.

Can I use these templates in the Claude app?

The writing and research templates work in a normal Claude chat. Templates that read folders, run scripts, edit files or schedule tasks need Claude Code, in the desktop app's Code tab or the terminal.

Do longer prompts use up my plan faster?

Everything in the conversation counts toward usage, including your prompts, the files Claude reads and its replies, so a clear prompt that avoids rework usually costs less overall. Run /usage to see where you stand against your plan's limits.

Do these prompts work with other AI coding tools?

Most of the structure carries over to tools such as Cursor or Codex. Commands like /rewind, the plan mode shortcut and the skills folder paths are specific to Claude Code.

Keep reading