Skip to content

Claude Code Prompts: 15 Templates and Workflows to Copy

Copy-paste prompts for writing, spreadsheets, websites and research, three workflows that chain them, how Claude Code's own /workflows runs many agents at once, and what happened when we ran four templates on November 6, 2026.

By Yotam DahanUpdated 14 min readClaude Code

Mac terminal showing a project skill at .claude/skills/weekly-sales-summary/SKILL.md: a description of when to use it and five numbered steps built from the data prompt templates
A real project skill on a Mac, October 2026: the description says when to use it, and the numbered steps are the prompts themselves.

The best Claude Code prompts 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 15 templates grouped by goal, three workflows that chain them, and how Claude Code's built-in /workflows runs many agents for you. Replace the [BRACKETS], paste the prompt, and use the "Check" line before you trust the result.

How to write good prompts for Claude Code

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

The best prompt format for Claude Code

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.

Of the five parts, the check matters most. Claude Code prompting best practices from Anthropic are built around giving Claude a way to verify its work, because without one it can report "done" when the work isn't there (best practices page, checked November 6, 2026). For chat assistants such as ChatGPT or Gemini, our AI prompt generator builds the same structure from a short form.

For a long job, put the check in a goal: /goal every date in sales-clean.csv is YYYY-MM-DD, shown by a script you run. A separate small model reads the conversation after each turn and decides whether the condition holds, without opening files, so write it as something Claude's own output can show (goal docs).

Claude Code prompt examples: before and after

BeforeAfterWhat changed
"Clean up this spreadsheet""Make a cleaned copy of @sales.csv called sales-clean.csv, write dates as YYYY-MM-DD, log every change and leave the original alone"The file, the output and a limit
"Make my homepage better""[screenshot] On a phone the price table runs off the screen. Make it fit at 375 pixels wide, then take a screenshot and compare"A visible symptom and a way to check
"Write a newsletter""Turn @notes/october.md into a 300-word newsletter for past customers, keep every date and price as written and mark gaps TBD"Inputs, audience, length and limits

Multi line prompts in Claude Code, and prompting by voice

Enter sends the message, so multi line prompts in Claude Code need \ then Enter, or Ctrl+J; the Claude Code cheat sheet lists Shift+Enter and the other shortcuts.

How to prompt Claude Code with voice: run /voice once, then hold Space while you speak, and your words land in the prompt ready to edit. It needs a Claude.ai sign-in, transcription doesn't count toward usage limits, and Spanish, French, Portuguese and 16 other languages are supported once set in /config, per Anthropic's voice dictation docs (checked November 6, 2026).

Claude Code prompt templates to get oriented

Each Claude Code prompt template below has a check line. Start with these two 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 exists, and nothing was edited.

2. 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. Template 2 is also a Claude Code prompt generator: instead of a separate tool writing the prompt, Claude asks the questions a good prompt would answer. The start of our November 6, 2026 run, shortened:

  1. You:

    I want a booking page for my pottery classes. 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.

  2. Claude Code:

    I'll ask one question at a time, and I won't write any code or files until we've agreed on the plan. Question 1: what does someone booking a class need to do? Just reserve a spot, or also pay online, pick a class type, book for a group, or cancel on their own?

  3. You:

    Reserve only. I take payment in person.

  4. Claude Code:

    Got it, reservations only and no online payment. Question 2: what kinds of classes do you offer, how are they scheduled, and roughly how many spots does each one have?

Templates for writing and editing

These keep your facts intact while Claude handles the wording.

3. 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.

4. 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.

5. 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.

Templates for data and spreadsheets

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

6. 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.

7. 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.

We ran templates 6 and 7 on November 6, 2026, with Claude Opus 5.5, on a made-up 18-row sales export with planted problems: three date formats, stray spaces, an exact duplicate, a duplicate hidden by a trailing space, an empty customer, an empty amount, a refund and a likely typo.

18

rows in, 16 out after 2 duplicates merged

12

dates rewritten, 1 of them flagged as ambiguous

4

odd values flagged and left alone, as the prompt asked

Our test file and full session logs, November 6, 2026. The log's 18 changes match these counts, and the original file was unchanged.

The profile caught the duplicate hidden by a trailing space, which a strict duplicate check misses. It also noticed that 06/10/2026 sat among October orders. In the clean copy it read that date month first, like the rest of the file, marked it AMBIGUOUS in the log and asked us to confirm.

Our test setup blocked shell commands that needed approval, so Claude cleaned this small file by reading it, and said so. On a second file in French number format, a total it added up by eye was off by €0.50, while the script it wrote next matched our own count to the cent.

8. 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.

Claude Code prompts for websites and small tools

Single-file pages need no hosting to try: you open them from the folder. For a full landing page, follow the landing page prompts in order.

9. 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.

10. 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. In the terminal, paste an image with Ctrl+V, or Alt+V on Windows.

11. 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 you can work out by hand. When we ran a version of this prompt, the tests checked the math but not the page, and Claude said so; the Claude Code project ideas guide has the run.

Templates for research

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

12. 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.

13. 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.

Templates to automate and maintain

14. 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.

15. 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 desktop app, the task appears on the Scheduled page of the Code tab's sidebar. A scheduled task can't ask you clarifying questions, so spell out what success looks like, as Anthropic's common workflows page warns. A desktop task runs only while the app is open and the computer awake.

Where to keep your Claude Code templates

  • A plain text file for templates you adapt every time, such as the writing and research ones.
  • A CLAUDE.md file for rules you would otherwise repeat in every prompt: your tone, your folders, "never send anything".
  • Not the Claude Code system prompt. It holds Claude Code's own instructions; yours belong in CLAUDE.md. For a one-off scripted run, claude -p --append-system-prompt "..." adds your text to the end of it (CLI reference, checked November 22, 2026).
  • A skill for a prompt you run the same way every week. Template 14 writes one for you.

The skill in the hero image, built from templates 6 to 8, is this text. Save it as .claude/skills/weekly-sales-summary/SKILL.md in your project folder and change the folder names:

md
---
description: Builds the weekly sales summary from the newest export in /inbox. Use when I ask for the weekly sales summary or last week's numbers.
---

1. Find the newest CSV in /inbox. Describe it first: rows, date range, empty cells and duplicates. Don't change it.
2. Make a cleaned copy in /output named sales-YYYY-MM-DD-clean.csv and log every change.
3. With a script, total revenue and orders by day and by product for the last 7 days. Show the script and its output.
4. Write summary.md in /output: three bullet points I can read in 30 seconds, then the totals table.
5. Finish by listing every file you created and anything that looked wrong in the data.

Is there an official Claude Code prompt library?

Not as a standalone library. Anthropic's old prompt library address now opens its prompting best practices page, and the closest Claude Code collection is the "Prompt recipes" section of the common workflows page, written mostly for developers (checked November 6, 2026).

If you searched for Claude Code templates and found claude-code-templates, that is a separate npm package from the aitmpl.com project, not from Anthropic, and it installs skills, agents, commands, settings and hooks rather than prompts (checked November 8, 2026).

Three Claude Code workflows that chain prompts

These are chains you drive yourself, one prompt at a time. Claude Code also has built-in dynamic workflows, covered next.

1. Plan, build, verify (anything bigger than one file)
  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

2. Messy data to a report you can trust
  1. Profile

    Template 6 shows what's in the file

  2. Clean

    Template 7 makes a clean copy and a log

  3. Calculate

    Template 8 answers the questions with a script

  4. Settle

    You answer every row the log marks AMBIGUOUS

3. Writer and reviewer (anything going to a client)
  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

A fresh session judges the work without the reasoning that produced it. You rarely need Claude Code prompts for code review: the built-in /code-review command plays the reviewer, checking your changes in a fresh subagent that never saw the conversation.

Built-in workflows: /deep-research and /workflows

Claude Code workflows of the dynamic kind hand the whole job to a script: Claude writes it, a runtime starts many subagents in the background, and you get one result. They work on all paid plans, and on Pro you first switch on the Dynamic workflows row in /config, per Anthropic's workflows docs (checked November 8, 2026).

  1. Run the built-in one. Type /deep-research and a question. It searches from several angles, cross-checks the sources and returns a cited report.
  2. Watch it. Claude Code asks before it starts; /workflows opens the progress view, where p pauses and x stops.
  3. Ask for your own. Start a prompt with "use a workflow to", and Claude writes a workflow for that task.
  4. Keep the good ones. In /workflows, select a run and press s: in .claude/workflows/ it is shared with the project, in ~/.claude/workflows/ it is only yours.
Your own research workflow
use a workflow to research how [THREE COMPETITORS] price [SERVICE]: read each one's official pricing page in parallel, then compare them in one table with a link for every price and "not found" where a price isn't published.

Check: open three of the links and confirm the prices. A workflow uses more of your plan than a conversation: on Pro, Claude aims for fewer than five agents, and a run with more than 25 agents shows a Large workflow warning.

When a prompt doesn't work: Claude Code prompt tips and fixes

If your Claude Code prompt is too long at the very start of a conversation, the first row has Anthropic's documented fixes, from its errors page (checked November 8, 2026).

What you seeWhat it meansFix
Prompt is too long · this conversation is a single exchangeThat one request is over the limit by itself: your message plus the system prompt, tool definitions, attached files and CLAUDE.md/clear and resend with less pasted text; run /context, turn off unused MCP servers with /mcp disable <name>, and trim a long CLAUDE.md
Still wrong after two correctionsFailed attempts crowd the conversation/clear and rewrite the first prompt with what you learned
"Done!" with nothing to showThe prompt had no checkAsk for the totals, the test output or a list of changed files
A number looks plausible but nobody computed itClaude added it up by eyeAsk for template 8: a script and its output

Quick check0 of 3 correct

What does Anthropic's best practices page tell you to give Claude so that "done" really means done?

Claude cleaned your export and one date could be read two ways. Where do you look first?

Claude quotes a monthly total it worked out while reading the file. What do you ask for?

What to do next

Copy template 1 into Claude Code in a folder you use every week, then run template 6 on any spreadsheet inside and read every line it flags. Keep the three or four templates you reach for most in a note, and turn the one you use daily into a skill. The free worksheet on this page puts the profile, clean and script prompts on one sheet with a check line for each.

For bigger projects to practice on, the Claude Code project ideas each start with a first prompt. For a structured path, the Claude Code training, in early access, has a four-lesson module on writing prompts, including how to check that AI isn't making things up. Its module 2, lesson 1 is free in full on the course page and sets up the CLAUDE.md where your repeated rules belong.

Spreadsheet prompt chain worksheet: 3 prompts, 3 checks

The profile, clean and script prompts from our logged test as a fill-in worksheet, with a check line for each step, the ambiguous-row hunt and a what-did-you-assume review.

Enter your email and the full section opens right here.

No spam. One click to unsubscribe. We use your email to send you this bonus, new guides and news about our courses.

Frequently asked questions

Do these Claude Code prompts work in other AI tools?

Most of the structure does. Goal, files, limits, output and proof work in any assistant and in coding tools such as Cursor or Codex, but /rewind, the plan mode shortcut, the skills folder paths and prompts that read folders or run on a schedule are specific to an agent like Claude Code.

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: the 15 templates on this page run 19 to 32 words each. 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.

Can I change the Claude Code system prompt?

You rarely need to, because your CLAUDE.md is loaded in every session. For one-off runs, the --append-system-prompt flag adds your own text to the end of the default prompt, while --system-prompt replaces the whole default prompt, Claude Code's own instructions included.

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.

Keep reading