SELECT 1
Entry 027Fri 2026.11.06
One launch a day. Picked, run, explained.

Fri 2026.11.06

mimic: turning a measured writing style into a prompt

Today's pick: mimic

mimic is a product that turns an author’s writing style into a skill for AI agents. It measures sentence length and word frequencies in 2,000 to 8,000 words of the author’s writing. It puts those numbers and the author’s rhetorical habits into a system prompt.

It is today’s pick because it measures how close AI writing is to an author’s style.

exit 0Ran itIt works. The repository’s data gave the same style scores as the README.
Found on
Show HN
Built with
Python

The problem

To make an AI write like a given author, you show it the author’s writing and describe the style. You learn whether the description matches the author’s actual style only by reading the results.

Anthropic’s Claude Academy guide “Write in my voice” tells users to put the emails they sent and the documents they wrote in a folder and connect it to Claude CoworkAn agent feature of the Claude desktop app that reads and works on files in a folder the user chooses.. Cowork then works out the user’s voice from that writing and saves it as a profile. When a Cowork draft does not sound like the user, the user tells Cowork to add their edits as rules. But the guide says it takes a few weeks for the edits to take effect.

The maker compares mimic with a name-only prompt. The model gets only the author’s name and an instruction to write like that author.

How it solves it

mimic was posted on Hacker News as a Show HN on November 5, 2026. The maker, xatuke, published it on GitHub as an agent skillInstructions, sometimes with scripts, that an AI agent uses for a specific task.. It consists of Python scripts and SKILL.md, the instruction file that the agent follows.

The agent analyzes the author’s writing in two steps. First, a script measures sentence length, TTRType-token ratio: the number of different words in a text divided by the total number of words. A higher value means less repetition. It falls as a text gets longer., and the rates of function wordA word such as “the”, “of” or “to” that marks grammar. Each author uses them at a different rate regardless of topic, so they help tell authors apart. and punctuation. Second, the agent reads the writing itself and finds the rhetorical habits the author repeats. One example is moving away from the point and then coming back to it. The agent quotes the text for each habit. It writes a system prompt from the measured numbers and the habits it found. The script then measures text generated with that prompt and compares it with the original. The agent installs the finished author skill only if the user agrees.

What is different

The first difference is how the style is checked. In the Cowork guide, the user’s edits to drafts become rules. mimic uses a script to compare numbers from the generated text and the original. It prints directions, such as whether to write longer or shorter sentences. According to the README, authorship research tells writers apart by statistics on structure, such as function words and sentence length, not by topic words. The tradeoff is that the script cannot check rhetorical habits that do not show up in the numbers. The maker’s benchmark is one example. Its style scores barely separate the skill output from the name-only output.

The second difference is what goes into the prompt. The name-only prompt gives the model only the author’s name. mimic’s skill holds the measured numbers. It also tells the model to show two or three of the author’s rhetorical habits per paragraph. The maker says these habits make the difference between the author’s writing and an imitation.

How it was built

  • The repository’s 2 commits were made at 03:36 and 03:44 KST on November 5, 2026. Neither has a Co-authored-by trailer.
  • There are 19 files. The scripts use only the Python standard library.
  • The benchmark data is in the repository. Each of the 6 authors has 4 tasks. Each task has one text made with the skill, one with the name-only prompt and one with no style instruction. It also holds one original sample per author on a topic unrelated to the tasks.

Running it

I ran the repository’s benchmark and check scripts. I ran the blind judging again with Claude Haiku 5.5 through OpenRouterA service that offers many companies' AI models through one API and one account..

  1. Style scores. I ran bench/score.py on the repository’s data. It printed the same numbers as the README in 0.18 seconds. For each of the 24 tasks, score.py picked the text closest to the original sample. The distance combines the rates of function words and three-character strings with the mean number of words between punctuation marks. Name-only output was picked 12 times, skill output 10 times, and text with no style instruction 2 times. The EloA rating method that moves points between two items after each head-to-head result. It started as a chess rating. scores, in the same order, were 1066, 1047 and 887. Higher means closer to the original.
  2. Blind judging. For each of the 24 tasks, build_judge.py hid which method made each of the three texts. It labeled them X, Y and Z and shuffled them. I asked Claude Haiku 5.5 to rank the three texts by how closely their style matches the original sample. The skill output ranked first on 20 tasks, and the name-only output on 4. Text with no style instruction ranked last on 23 tasks. According to the README, the judge model in the maker’s blind test ranked the skill output first on all 24 tasks. The README does not name that model.
  3. The check script. I chose Donald Trump from the 6 authors in the benchmark. Trump also appears in SKILL.md’s example. I used stylometry.py to compare Trump’s original sample (111 words) with 4 skill passages (515 words in total). The skill passages had a mean sentence length of 6.8 words and a TTR of 0.388. The original sample had 10.1 words per sentence and a TTR of 0.622. The script said to write longer sentences and vary the vocabulary more.
  4. Matching the length. With only the first 114 words of the skill passages, the TTR was 0.649. The script printed ok for vocabulary instead. Longer text gives words more chances to repeat, so TTR falls. The script does not correct for this. SKILL.md says to collect 2,000 to 8,000 words of original text. It also says to bring the TTR of two or three generated passages close to the original’s. In SKILL.md’s Trump example, the TTR was 0.10 for the original and 0.51 for the skill output. The example does not give the length of the original or the skill output, so it cannot show whether length caused the gap.
  5. Cost. The 24 judging requests used 30,442 tokens and cost $0.005981.
$ python3 -I skills/author-voice/scripts/stylometry.py /tmp/run/work/trump-ref.txt /tmp/run/work/trump-skill.txt
  sentence length: sample=6.8 -> target=10.1 (LENGTHEN)
  vocabulary: sample TTR=0.388 -> target=0.622 (VARY MORE)
$ python3 -I skills/author-voice/scripts/stylometry.py /tmp/run/work/trump-ref.txt /tmp/run/work/trump-skill-111.txt
  vocabulary: sample TTR=0.649 -> target=0.622 (ok)

Not checked

  • Building a skill. Give an agent a new author’s writing and have it build a skill from scratch with SKILL.md.
  • The maker’s judge model. If the maker names the judge model, judge the same tasks again with it.

Verdict

It works. The repository’s data gave the same style scores as the README. But the check script compares the TTR of two texts of different lengths without correction. So it gives different advice on the same text, depending on how many words it compares. It is worth trying if you want to check an agent’s writing style with numbers.

What to take away

  • When you compare two texts by numbers, match their lengths first. Today mimic’s script gave a different vocabulary direction for the same text when only its length changed.
  • When you cite a model’s judgment as evidence, name the judge model. Today’s result differed from the README’s. The README alone cannot show whether the judge model caused the gap.

Getting started

  1. git clone https://github.com/xatuke/mimic
  2. python3 skills/author-voice/scripts/stylometry.py corpus.txt SAMPLE.txt
You need
Python 3 (standard library only). An AI agent that supports skills (such as Claude Code), and 2,000 to 8,000 words by the author.
Cost
Free under the MIT license. The model the agent uses costs extra.

Steps select 1 ran.

Progress

  1. Day 3Quiet
  2. Day 7Quiet
  3. Day 15Quiet
  4. Day 30Upcoming
  5. Day 90Upcoming
  6. Day 180Upcoming
  7. Day 365Upcoming

Latest check Day 15, Fri 2026.11.20

Commits since launch
0
Stars
9 → 21
Last commit
2026.11.04
HN points
7 → 8

No commits in this period.

Full history →