Run when you need it
Code Handoff
/code-handoff
Turns a chat into a ready-to-paste brief for a coding tool like Claude Code or Codex.
- About 15 minutes to set up
- Works in Claude, ChatGPT, Gemini or Copilot
How to use it
Copy the prompt, start a new session in your AI app, and paste it in. It asks you a few questions at a time and builds the skill around how you work.
What the setup covers
- Explain what we're building
- Figure out which app we're in
- Ask about my coding setup
- Check where handoffs can be saved
- Choose what the handoff includes
- Choose the format
- Choose when to suggest switching
- Write the skill
- Test it
- Save the skill
- Set up the "tell me when" heads-up
- Wrap up with a quick summary
See moreSee less
The full prompt
This is exactly what gets copied. You don't need to read it all first.
I'd like your help building a personalized code handoff skill. When something I'm working on in a chat turns into a building job (an app, a website, a script, an automation, or work across lots of files), it reviews our conversation and writes a handoff I can paste into a coding tool like Claude Code or Codex, so the tool can pick up the work without me re-explaining.
I'd also like you to tell me when a task would go better in one of those tools.
A skill is a saved set of instructions I can run any time, from any chat, by name. We'll call this one "code-handoff."
Please guide me through the setup below, one step at a time.
How to guide me
- I'm not technical. Use plain, everyday language. The first time you use a term like "connector," "skill" or "scheduled task," explain it in a few words.
- Go slowly, one step at a time. At the start of each step, tell me in a sentence or two what we're about to do and why it matters. Then do it, tell me what you found in plain language, and wait for me before moving on.
- Use pop-up questions. If this app can show questions with clickable choices, use that for every question that has choices. Ask one to three questions at a time. For each question:
- give a few clear choices, with the one you recommend listed first and marked "(Recommended)"
- always let me type my own answer instead
- accept "use the default" as an answer If this app can't show clickable questions, ask in plain text with numbered choices and mark the one you recommend.
- Be honest about what this app can do. Don't say something is connected, saved or scheduled until you've checked. If you're not sure where a setting or button is, say so and tell me where to look instead of guessing.
- Use this app's own words for its features once you know which app this is.
- Never include passwords, API keys or other secrets in a handoff. Replace them with a placeholder such as [ADD YOUR KEY HERE], and tell me where I'll need to add it.
- Don't run code or change my files as part of this skill, except saving the handoff where I ask.
- Keep my private details out of your replies during setup. A short confirmation like "that's connected" is enough.
- Use what you already know. If you know things about me from memory, past chats or my settings, tell me what you think you know and ask me to confirm it, instead of asking from scratch.
- Let me take a break. If I need to stop partway, tell me how to pick up where we left off.
Step 1: Explain what we're building
In a few short sentences, explain:
- What it produces: one copy-ready block, written as me speaking to the coding tool, that covers what we're building, the decisions made, what exists so far, what's left, and how to check it works.
- Why coding tools: they can work directly with the files on my computer, run and test code, and handle big projects that are awkward in a chat.
- The signs a task belongs in a coding tool: building an app or website, working across many files, running code or tests, working with big data files, connecting to other services, or copying code back and forth between a chat and somewhere else.
- An honest limit: skills don't watch my chats in the background. So at the end, we'll set up a short standing instruction that tells you to give me a heads-up when a chat turns into a building job.
- The steps ahead: figure out which app we're in, learn my coding setup, choose what the handoff includes, choose its format, choose when you'll suggest switching, test it, save it, then set up the heads-up.
- That it takes about 15 minutes.
Then ask if I'm ready to start.
Step 2: Figure out which app we're in
Why, in your own words: every AI app handles skills and connections a little differently, so you'll check what this one can do before we design anything.
Work out, then tell me in plain language:
- Which AI app this is (for example Claude, ChatGPT, Gemini or Microsoft Copilot), and whether it matters that I'm on a computer or a phone.
- Whether this app, on my current plan, can:
- save a skill, or what its closest equivalent is (for example a custom assistant, a Gem, a project or saved instructions)
- use a saved skill automatically when it fits, without me naming it
- remember things about me between chats, or keep standing instructions (often called custom instructions, personal preferences or memory)
- show text in a box with a copy button
- connect to my other apps, such as a project folder or GitHub, and what it calls those connections (if I want handoffs saved there)
- How I'd run a saved skill here (for example typing "/" or "@" and its name, or picking it from a menu).
If you can't tell which app this is or what it supports, ask me. If something we need isn't available, tell me now, explain what we can still build, and ask whether to continue.
Step 3: Ask about my coding setup
Why, in your own words: the handoff should fit the coding tool I'll paste it into, and how comfortable I am with it.
Ask me, a couple of questions at a time:
- Which coding tool do I use, or plan to use? Choices: Claude Code, Codex, Cursor, GitHub Copilot, Windsurf, a builder like Replit, Lovable, Bolt or v0, or none yet.
- If none yet: explain in plain words what Claude Code and Codex are (coding assistants that work with the files on my computer), mention that others exist, and help me pick one that fits the AI app and plan I already have.
- Where does my code live? Choices: a folder on my computer, GitHub, inside a builder app, or nowhere yet.
- How comfortable am I with coding tools? Choices: never used one, tried a little, or use one regularly.
- Do I want each handoff saved to a file in my project (for example HANDOFF.md), or just shown here to copy? Recommend just shown here to copy, unless I work on the same project over many days.
Step 4: Check where handoffs can be saved
Why, in your own words: you'll make sure you can actually reach each tool before we build anything around it.
If I only want handoffs to copy and paste, there's nothing to connect, so say so and move on to the next step.
For each tool I named:
- Check whether it's connected, and do one small, private test (for example, list the files in my project folder). Tell me only whether it worked.
- If it isn't connected, explain in one sentence what connecting it adds. Then give me step-by-step instructions for connecting it in this app, one step per line. Wait for me to say it's done, then test again.
- If it needs IT or admin approval, tell me what to ask for, note it, and move on.
- If it can't be connected in this app, say so and suggest a simple workaround. For example, I can copy the handoff and save it in my project myself.
Finish with a short table: Tool, What it's for, Status (Working / Needs attention / Not available here).
Step 5: Choose what the handoff includes
Why, in your own words: a coding tool can only build the right thing if it knows the goal, the decisions and the limits.
Propose these core sections, one line each:
- Goal: what we're building, who it's for, and why.
- Requirements: the must-haves, in my exact words where it matters.
- Decisions, and why: choices we made (tools, design, approach), options we rejected, and the reasons.
- What exists so far: files, code snippets, links, accounts or services already set up, and where the project lives.
- What's left to do: an ordered task list.
- How to check it works: what "done" looks like, and how I'll test it.
- Limits and don'ts: things not to change, keep-it-simple rules, budget or hosting limits.
- Open questions: anything still undecided.
- Setup notes: accounts or keys needed (as placeholders), and anything about my computer or setup.
- First instruction: what the coding tool should do first. Recommend: read the project, confirm the plan with me, then start.
Then ask:
- Should it start with a 2-3 line plain-English recap for me, shown outside the copy block? Recommend yes, especially if I'm new to coding tools.
- How detailed should it be? Choices: just enough to lose nothing important (Recommended), or very thorough.
Step 6: Choose the format
Why, in your own words: the handoff should paste cleanly into the coding tool and give it everything in one go.
Ask me:
- Should it be written as me speaking to the coding tool ("I'm building...")? Recommend yes.
- Should it all come in one copy-ready block? Recommend yes.
- If I want it saved: where, and under what name? Recommend HANDOFF.md in the project folder.
- Explain that some coding tools read a standing instructions file in the project every time they start (Claude Code reads CLAUDE.md, and Codex reads AGENTS.md). Offer to include the lasting rules (my requirements and don'ts) in a form I can save there, so I don't have to repeat them. Recommend yes if I'll work on the project over several sessions.
Step 7: Choose when to suggest switching
Why, in your own words: a quick heads-up at the right moment saves hours of copying code back and forth.
Show me these signs that a task would go better in a coding tool, and ask which ones matter to me (recommend all):
- Building an app, a website or a tool
- Working across many files at once
- Needing to run code, install things or test
- Working with large data files (hundreds of rows or more)
- Connecting to other services or APIs
- Something that should start on its own when something happens, rather than on a schedule
- Copying code back and forth between the chat and somewhere else
- A project that keeps growing over several days
Then ask how often to mention it. Choices: once per chat, in one sentence (Recommended), or every time it's relevant.
Step 8: Write the skill
Why, in your own words: the skill is the recipe every handoff follows every time, so you'll write it down and show it to me before saving anything.
Fill in the template below with my choices. Show me a plain-English summary first (what goes in the handoff, how it's written, where it goes, and when you'll suggest switching), then the full instructions. Ask if I want to change anything.
--- START OF SKILL TEMPLATE ---
Name: code-handoff
Description: Reviews this conversation and writes a copy-ready handoff for a coding tool such as Claude Code or Codex, so it can pick up the build without re-explaining. Use when I run code-handoff, ask to move this to a coding tool, or when a chat turns into building an app, website, script or automation, working across many files, or running code.
My coding tool: [tool]. Where the code lives: [folder, GitHub, builder app, or nowhere yet]. My comfort level: [level].
Writing the handoff:
- [Start with a 2-3 line plain-English recap for me, outside the copy block.]
- Write it as me, speaking to the coding tool ("I'm building...").
- Make it self-contained. The coding tool sees nothing but this handoff. Include essential code snippets, exact error messages and exact requirements inline. List any files or images I'll need to give it.
- Give every decision its reason, so the coding tool doesn't undo it.
- Never include passwords, API keys or other secrets. Use placeholders such as [ADD YOUR KEY HERE], and list where each one is needed.
- Be honest about unknowns. Say what wasn't decided, and what you're unsure about.
- Cover the whole conversation, not just the latest part.
- Detail level: [just enough to lose nothing important / very thorough].
Sections, in order. Keep every section, and write "None" if it's empty:
- Goal
- Requirements
- Decisions, and why
- What exists so far
- What's left to do
- How to check it works
- Limits and don'ts
- Open questions
- Setup notes
- First instruction: [read the project, confirm the plan with me, then start].
Output:
- Put the handoff in one copy-ready block (use a code block if this app shows a copy button on it).
- After it, add one short line telling me how to use it, for example: "Open [tool] in your project folder and paste this as your first message."
- [Also save it as (file name) in (location).]
- [Also give me the lasting rules (requirements and don'ts) as a short block I can save as (CLAUDE.md or AGENTS.md).]
When to suggest switching (whenever this skill is available, even if I haven't run it):
- Signs: [the signs I chose].
- When you see them, tell me [once per chat / every time], in one sentence, that this may go better in [my coding tool], and offer to run code-handoff. Don't interrupt quick questions.
Rules:
- Never run code or change my files, except saving the handoff where I asked.
- Never include secrets.
--- END OF SKILL TEMPLATE ---
Step 9: Test it
Why, in your own words: seeing a real handoff is the easiest way to tell if it gives a coding tool what it needs.
Offer three ways to test it:
- Point it at a recent chat where I was building something, if this app can reach past chats.
- A short practice scenario, such as "a simple website for my business with a contact form," which you'll discuss for a minute before writing the handoff.
- This setup conversation, just to see the format.
Run it, following the instructions we just wrote, and show me the handoff. Then ask:
- Would a coding tool have everything it needs from this?
- Is anything missing, or too much?
- Is the plain-English recap helpful?
If I use a coding tool already, suggest I paste the handoff in and see how it does. Update the instructions based on my answers.
Step 10: Save the skill
Why, in your own words: saving it as a skill means I can hand off a build to my coding tool any time, from any chat.
Once I'm happy with the test, save the skill as "code-handoff" with the final instructions, using this app's own way of saving skills. If I need to click something to save or install it, tell me exactly what to click, one step at a time, and wait for me.
Then have me try it. Tell me exactly what to type or click to run it in this app, and to press Enter. If it doesn't show up right away, have me try it in a new chat. Confirm it worked.
If this app doesn't support skills, tell me plainly. If it has a close equivalent for saving reusable instructions, offer to use it. Otherwise, give me the final instructions as one block I can copy and paste when I need a handoff.
Step 11: Set up the "tell me when" heads-up
Why, in your own words: skills only run when they're used, so to get a heads-up in any chat, we'll add a short standing instruction.
Explain in plain language:
- That skills don't watch my chats in the background. Some apps pick a skill automatically when a chat seems to need it, but that isn't guaranteed.
- That most AI apps have a place for standing instructions the app reads at the start of every chat (often called custom instructions, personal preferences or memory). Tell me what it's called in this app, and where it is.
- What the instruction does: when a chat turns into a building job, you'll mention once, in one sentence, that it may go better in my coding tool, and offer to run code-handoff. It won't interrupt quick questions.
Offer this text, filled in with my choices: "When a conversation turns into building software, a website, a script or an automation, or needs work across many files, running code or handling large data files, tell me once, in one sentence, that it may go better in [my coding tool], and offer to run my code-handoff skill."
Ask whether I'd like to add it. If I say yes and you can add it yourself, do it and confirm. If not, give me step-by-step instructions for where to paste it in this app, and wait for me to say it's done. Tell me how to turn it off later.
Step 12: Wrap up with a quick summary
Why, in your own words: so I have a short reference for what we built and how to use it.
Give me a short summary in plain language, as brief as you can make it, under these headings (leave out any that don't apply):
- What we built: one or two sentences.
- How to use it: exactly what to type in this app, with one example.
- When it runs: only when I run it, plus a one-line heads-up when a chat looks like a building job (if I added the standing instruction).
- Where results go: in the chat, ready to copy, plus the file in my project if I chose that.
- Using the handoff: how to open my coding tool in my project and paste it in.
- The heads-up: whether the standing instruction is on, where it lives, and how to turn it off.
- How to change it: for example, open any chat and say "Update my code-handoff skill to..."
- How to pause or remove it: where to find the skill in this app.
Keep the whole summary short enough to read in under a minute.
Then, in one line each, suggest 2 ideas for my next skill, based on what you learned about my work. For example: a chat-summary skill for moving any conversation to a new chat, a thought partner for planning a build before starting, or a writing-style skill.
