Dev.to AI 🤖 Ai 👁 0 📖 7 min read

Claude Code now writes like me, thanks to my pre-AI email

"I hope this email finds you well. It's worth noting..." You can spot AI text in one sentence. revoice is an open-source Claude Code skill that rewrites any draft in your voice. It works from a profile built from your ow

"I hope this email finds you well. It's worth noting..." You can spot AI text in one sentence. revoice is an open-source Claude Code skill that rewrites any draft in your voice. It works from a profile built from your own writing, mainly your sent mail from before AI writing tools were common.

I write most things with Claude Code now. A style prompt helped a little, but after a few drafts the output drifted right back to sounding like everyone else's. In my experience, describing a voice doesn't get you the voice. Showing the model real evidence does. (Disclosure: the build uses yourvoice.dev, a text analysis API that I built and run.)

What it does

You give revoice a draft, and it gives you back the same draft in your voice. Here's a run with my own profile, using /revoice --audience=business. I didn't edit the output.

Before

Thank you for reaching out about the integration project. After reviewing the requirements in detail, I believe the scope is significantly larger than what was initially discussed. Notably, the current estimate does not include the data migration, which typically represents a substantial portion of the effort. I would suggest that we schedule a call to align on priorities before moving forward. I look forward to hearing from you.

After

Hi,

Thanks for reaching out about the integration project. After going through the requirements in detail, I think the scope is a lot bigger than what was first discussed. The current estimate doesn't include the data migration, and in my experience that's usually a big part of the effort.

I'd like to set up a call to agree on priorities before moving forward. I look forward to hearing from you.

Same facts, same ask. It sounds like me: "I think", "in my experience", contractions, and plain words where the draft had "substantial portion" and "align". It kept "I look forward to hearing from you", which is close enough, but I'd have written "Thoughts?"

What a profile looks like

The profile is one Markdown file you can read and edit. Here's a short slice of mine, copied as is (the "..." lines mark parts I left out):

## Word choice and signature phrases

Use these naturally. Do not stack them. One or two per short email, a few more in a long one.

...

**Stance and hedging**
- "I think", "I believe", "I'd say", "In my experience", "I've found"
- "Not sure if..." / "I'm not sure..." (often opens a soft pitch)
- "That being said, ..."
- "To be clear, ...", "To be frank, ..."
...

Every line is a rule Claude follows when it rewrites your text, and you can change any of them by hand.

How the profile is built from email

Your sent folder already holds years of your own writing, most of it from before ChatGPT, which makes it the best evidence you have. The build uses it in a few steps, and you approve the samples before anything is sent:

  1. You export your sent mail as an MBOX file, one file that holds a whole mailbox. Gmail can do this through Google Takeout; other mail apps can too, though some need an add-on.
  2. Local Python scripts, standard library only, keep mail dated before a cutoff and drop anything they can't date. The default cutoff is September 1, 2022, three months before ChatGPT came out.
  3. They cut forwards, quoted replies and signatures by pattern, so other people's words mostly stay out, though it can miss some. They also skip duplicates and anything under 150 words.
  4. They keep up to 148 samples by default, which is what keeps a default build inside the free credits (more on that below). A rule-based check on your machine then drops samples that are mostly quotes, lists or code, plus form letters, mail in another language and anything signed with another name.
  5. The build stops and shows you how many samples it will send. They're plain files in a folder, so you can open any of them, and to keep one from being sent, you change its verdict to DROP in samples/index.csv. Nothing leaves your machine until you say go.
  6. yourvoice.dev measures the samples. You get a style profile from 22 features, such as sentence length, readability, formality and punctuation habits. It also finds the phrases that recur across your emails, your informal habits (contractions, fragments, asides) and your first-person patterns, such as "I've seen" or "I used to".
  7. Claude reads about 15 of the samples and the measurements, then writes your voice file.

The same mailbox and settings always give the same samples, because the selection is plain code with no model in it.

No old email? Use your own writing or brand documents

Version 0.3.0 added two more sources, and 0.3.2 fixed how they're read. /revoice --build now asks first where your writing is, and then it only asks what that source needs:

  • A folder of your own writing. Articles, posts and essays as .md, .txt, .html, .docx or .pdf files, plus a list of URLs for pages you own. The build drops boilerplate and duplicates, then splits each document into passages of about 350 words, and each passage counts as one sample. Before it goes any further, it asks you to confirm the writing is your own and wasn't AI-assisted, and that you're OK sending it to the text analysis API and to Claude.
  • A folder of brand documents. Several authors, one brand voice, and the profile is named for the brand. Brand documents are often confidential, so before it reads anything, the build asks you to confirm you're allowed to send them to the text analysis API and to Claude. If something in there can't leave the building, take it out first.

You need at least 10 kept passages, and for a brand, at least 3 documents. Below 20 passages or 5 documents, the build warns you that the profile will be weaker.

What stays on your machine, and what doesn't

Stays on your machine Leaves it during the build
Your MBOX export or document folder The samples you approved, sent to yourvoice.dev for measurement
Every email or passage that isn't a kept sample (or, if you opt in, a reference email) About 15 samples read by Claude, so they go to your model provider like anything you paste into Claude Code
The finished voice profile file (it goes to Claude with each draft you rewrite) If you opt in to the reference set: up to 148 emails from other senders, sent to yourvoice.dev for comparison

After the build, /revoice never calls yourvoice.dev again. Each rewrite runs like anything else you do in Claude Code: your draft, your profile and the skill's instructions go to Claude.

yourvoice.dev doesn't store the text you send. It's processed to produce a result, and the usage log holds counts, never content (that's in the privacy policy). The reference set is off by default; it lets the profile tell your phrases from the ones everyone uses. If you turn it on, keep two things in mind: those emails are other people's mail and are sent as extracted, without the sample review, so only turn it on for mail you're allowed to send to a third-party API. And each one costs 1 credit, so on a full-size build it pushes the cost past the free credits. When the profile looks right, you can delete the working folder with the samples.

Cost

revoice is free and MIT licensed. yourvoice.dev gives you 250 free credits once you sign up and verify your email.

The API charges 1 credit per text it analyzes. A build sends one joined text, then each kept sample, then up to 100 of them a second time for the phrase fingerprint. A default email build of at most 148 samples comes to at most 1 + 148 + 100 = 249 credits, plus 1 for checking your key: 250, exactly the free grant. For documents, 20 documents of about 1,500 words give you about 85 passages: 1 + 85 + 85 = 171 credits, plus 1 for the key check.

Before it extracts anything, the build spends that 1 credit to check your key and read your balance. After extraction, a free estimate tells you if the build costs more than you have. If the balance still can't cover it, the build stops after its first request instead of running out of credits halfway through.

Limits

  • It needs Claude Code and Python 3.10 or newer.
  • The profile is only as good as the writing you give it. A few dozen short emails make a thinner profile than a few years of them.
  • It changes how your draft says things and keeps what it says.
  • It isn't built to fool AI detectors. The point is text that sounds like you.

Try it

In Claude Code:

/plugin marketplace add samestrin/revoice-skill
/plugin install revoice@revoice-skill

Start a new session and try the bundled example voice, no key needed:

/revoice --voice=example Thanks for the quick reply

When you're ready to build your own, create an API key on yourvoice.dev and save it to a file only you can read. On macOS, copy the key, then run this (the README has the Linux and Windows versions):

mkdir -p ~/.config/revoice && pbpaste > ~/.config/revoice/api-key && chmod 600 ~/.config/revoice/api-key

Then run the build:

/revoice --build

Claude walks you through the rest. After that, rewrite any draft with /revoice @draft.md or paste the text inline, and add --audience=business or --audience=casual to shift the tone.

What I learned

Most of the AI tools I build now end up split the same way. Plain code handles the parts that need to be repeatable, and the model gets real examples to work from instead of a list of adjectives.

revoice is on GitHub. If you try it on your own mail or docs, I'd be curious how close it gets, and whether it catches any phrases you didn't realize you lean on.

📰 Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.