Back/Operations/Claude
IntermediateOperations

Build Custom AI Automations by Having a Conversation with Claude

Turn a recurring frustration into a small Claude Code skill by describing the problem in plain language. Let Claude ask a few questions, push it to remove manual steps, test the script, and package the working flow as a reusable command.

Build Custom AI Automations by Having a Conversation with Claude

Hilary starts with her habit of missing return deadlines, asks Claude to design a less manual solution, and ends with a reusable returns command that reads order emails and finds the right return path.

Before you start

What you need

  • A recurring problem you can describe from experience
  • Access to the information the solution needs, such as order emails
  • A few real examples for a test run

What you’ll make

A reusable Claude Code command with a plain-language skill file and the script needed to perform the task.

Tools used

Step by step

The workflow

Follow the sequence once, then adapt the prompts, checks, and handoffs to your own setup.

4 steps

Step01

Start with a Problem Statement

Open Claude Code and describe one recurring frustration in the language you would use with a friend. Explain what makes the current process annoying and ask Claude to suggest a better system.

Example prompt
Hey Claude, I keep forgetting to return things on time. Also, I hate doing returns. I want you to come up with a way to make this easier for me. What do you suggest?
Step02

Engage in Collaborative Refinement

Answer a few questions about the shape of the problem, then challenge any solution that still leaves you doing the tedious work. Ask what access or information would let Claude handle more of it.

Example prompt
I like the direction, but I do not want to tell you what I ordered every time. Can you find recent purchases from my connected email, identify likely return deadlines, and tell me where each return needs to go? Ask up to three questions, then use your judgment to propose a testable first version.
Step03

Let Claude Design and Build

Have Claude build a standalone script first. Once a few test runs work, ask it to package the instructions and script as a reusable returns command.

Example prompt
Build this as a testable script before connecting it to any other routine. It should search recent order emails, extract the retailer, item, order number, purchase date, stated return window, and return destination, then show the evidence behind each result. After the test passes, package it as a /returns skill.
Step04

Test Your New Custom Skill

Run the new command against several recent purchases. Correct bad matches or missing retailer rules, then rerun until the output gives you a reliable next action for each item.

What good looks like

  • The command discovers the relevant purchase without asking you to re-enter every order.
  • It identifies the return deadline, retailer policy, and next action for each item.
  • A test run works on real examples before the command joins a larger daily workflow.
  • The skill can explain what it found and where the return information came from.

Build your next product with ChatPRD

Turn an idea into a PRD, user stories, and a plan.

Try ChatPRD free

After the steps

Runbook notes

How to recover when the loop fails and where human judgment helps.

Recover

If it goes sideways

The skill matches the wrong order or includes purchases that are not being returned.
Narrow the search by retailer, date range, sender, item name, or order number and show the matched receipt before continuing.
The return deadline or instructions come from an outdated policy.
Fetch the current retailer policy, record its URL and retrieval date, and distinguish the general policy from terms printed on the receipt.
The email connection cannot find the order confirmation.
Confirm the connected account, search common receipt senders and item names, and let the user paste an order number or receipt as a fallback.

Start shipping
better products.

Join 100,000+ product managers who use ChatPRD to write better docs, align teams faster, and build products users love.

Free to start
No credit card
SOC 2 certified
Enterprise ready