# mimic: 문체를 측정해 프롬프트로 만들기
# mimic: turning a measured writing style into a prompt

- Site: https://select1.dev/2026-11-06 (English), https://select1.dev/ko/2026-11-06 (Korean)
- Entry: 027
- Published: 2026-11-06 (KST). Launch date: 2026-11-05
- Pick: mimic <https://github.com/xatuke/mimic> (source: Show HN)
- Verified: ran
- What: mimic 은 저자의 문체를 AI 에이전트용 스킬로 만드는 프로덕트다. 저자의 글 2,000~8,000단어에서 문장 길이와 낱말의 빈도를 측정한다. 그 수치와 저자의 수사 습관을 시스템 프롬프트로 정리한다.
- What (en): 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.
- Why: 오늘의 픽으로 선정한 이유는 AI 가 쓴 글이 저자의 문체에 얼마나 가까운지 측정하기 때문이다.
- Why (en): It is today’s pick because it measures how close AI writing is to an author’s style.
- Verdict: 작동한다. 저장소의 데이터로 README 의 문체 점수가 그대로 나왔다.
- Verdict (en): It works. The repository’s data gave the same style scores as the README.
- Tags: writing, style, stylometry, agent-skill, prompt, python

## Checked against the README

- [pass] 저장소의 데이터로 문체 Elo 가 plain 1066, skill 1047, neutral 887 로 나온다(On the shipped 6-author × 4-task example … Elo plain 1066, skill 1047, neutral 887) — 저장소의 bench/score.py 를 벤치마크 데이터로 실행했다. 원문에 가장 가까운 글로 뽑힌 횟수(저자처럼 쓰라고만 지시한 글, 스킬로 만든 글, 지시 없는 글 순서로 12, 10, 2)와 Elo(1066, 1047, 887)가 README 와 같았다
- [unknown] 블라인드 판정 모델은 24개 항목 모두에서 스킬로 만든 글을 골랐다(the judge preferred the skill output on 24 of 24 items) — README 는 판정 모델의 이름을 밝히지 않았다. Claude Haiku 5.5 로 같은 24개 항목을 판정하자 스킬로 만든 글이 1위인 항목은 20개였다
- [fail] 검증 스크립트는 무엇을 고칠지 정확히 출력한다(It prints exactly what to fix) — 스킬로 만든 글 515단어를 원문 표본 111단어와 비교하자 스크립트는 어휘를 더 다양하게 하라고 출력했다. 같은 글의 앞 114단어만 넣자 어휘를 다양하게 하라는 지시 대신 ok 가 출력됐다

## Measured

- 블라인드 판정에서 스킬로 만든 글이 1위인 항목 수. 저자 6명 × 과제 4개: 24개 중 20개(Claude Haiku 5.5, temperature 0, 1회) (build_judge.py 로 항목 24개 각각에서 세 글의 생성 방식을 가리고 X, Y, Z 로 표시해 순서를 섞은 뒤, OpenRouter 를 거쳐 Claude Haiku 5.5 에게 세 글을 원문 표본과 비슷한 글부터 순서대로 나열하게 했다. 판정 결과의 X, Y, Z 가 어느 방식으로 생성한 글인지는 key.json 으로 확인했다)

## Progress (days after launch; full history https://select1.dev/2026-11-06/progress)

- day 3 (checked 2026-11-08) [quiet] commits since launch 0, stars 15, releases 0, contributors 1, last commit 2026-11-04
- day 7 (checked 2026-11-12) [quiet] commits since launch 0, stars 20, releases 0, contributors 1, last commit 2026-11-04
- day 15 (checked 2026-11-20) [quiet] commits since launch 0, stars 21, releases 0, contributors 1, last commit 2026-11-04

## 한국어

## 무엇이 문제인가

AI 에게 특정 저자처럼 쓰게 하려면 그 저자의 글을 보여 주고 문체를 설명해야 한다. 그 설명이 실제 문체와 일치하는지는 결과를 읽어 봐야 안다.

Anthropic 의 Claude Academy 에 있는 「Write in my voice」 가이드에서는 사용자가 자신이 보낸 메일과 작성한 문서를 폴더에 모아 Claude Cowork 에 연결한다. Cowork 는 그 글에서 사용자의 말투를 파악해 프로필로 저장한다. Cowork 가 작성한 초안의 말투가 사용자와 다르면, 사용자는 고친 내용을 규칙으로 추가하라고 Cowork 에 지시한다. 단, 몇 주가 지나야 반영이 된다고 한다.

제작자는 mimic 을, 모델에게 저자 이름만 주고 그 저자처럼 쓰라고 지시하는 방식과 비교했다.

## 어떻게 해결했나

mimic 은 2026년 11월 5일 Hacker News 에 Show HN 글로 올라왔다. 제작자 xatuke 는 에이전트 스킬인 mimic 을 GitHub 에 공개했다. mimic 은 에이전트가 따르는 지시문 파일 SKILL.md 와 Python 스크립트로 이루어져 있다.

에이전트는 저자의 글을 두 단계로 분석한다. 첫 단계에서는 스크립트가 문장 길이, TTR, 기능어와 문장 부호의 빈도를 측정한다. 둘째 단계에서는 에이전트가 글을 직접 읽고 저자가 반복하는 수사 습관을 원문 인용과 함께 찾는다. 본론에서 벗어났다가 다시 돌아오는 습관이 그 예다. 에이전트는 측정한 수치와 찾은 습관으로 시스템 프롬프트를 작성한다. 그 프롬프트로 생성한 글을 스크립트로 다시 측정해 원문과 비교한다. 에이전트는 완성한 저자 스킬을 사용자가 동의할 때만 설치한다.

## 무엇이 다른가

첫째, 문체를 확인하는 방법이 다르다. Cowork 가이드에서는 사용자가 초안을 읽고 고친 내용이 규칙으로 쌓인다. mimic 은 생성한 글과 원문의 수치를 스크립트로 비교하고, 문장을 길게 쓸지 짧게 쓸지 같은 수정 방향을 출력한다. README 에 따르면 저자 판별 연구에서는 주제어가 아니라 기능어와 문장 길이처럼 글의 구조를 나타내는 통계로 저자를 구별한다. 트레이드오프는 수사 습관처럼 수치로 드러나지 않는 특징은 스크립트로 확인할 수 없다는 점이다. 제작자의 벤치마크가 그 예다. 문체 수치로 비교하면 스킬로 만든 글과 저자처럼 쓰라고만 지시한 글의 차이가 거의 없었다.

둘째, 프롬프트에 넣는 내용이 다르다. 저자처럼 쓰라고 지시할 때는 모델에게 저자 이름만 준다. mimic 의 스킬에는 측정한 수치가 들어간다. 저자의 수사 습관을 한 단락에 두세 가지씩 드러내라는 지시도 있다. 제작자는 저자의 글과 흉내 낸 글의 차이가 이 습관에서 생긴다고 했다.

## 어떻게 만들었나

- 커밋 2개는 2026년 11월 5일 KST 03:36 과 03:44 에 작성됐다. Co-authored-by 트레일러는 없다.
- 파일은 19개다. 스크립트는 Python 표준 라이브러리만 사용한다.
- 벤치마크 데이터가 저장소에 들어 있다. 저자는 6명이다. 저자마다 과제가 4개씩 있어 항목은 모두 24개다. 과제마다 스킬로 만든 글, 저자처럼 쓰라고만 지시한 글, 지시 없는 글이 한 편씩 있다. 저자마다 과제와 관계없는 주제로 쓴 원문 표본도 하나씩 있다.

## 실행해 보니

저장소의 벤치마크와 검증 스크립트를 실행했다. 블라인드 판정은 OpenRouter 를 거쳐 Claude Haiku 5.5 로 다시 실행했다.

1. 문체 점수. 저장소의 데이터로 `bench/score.py` 를 실행하자 0.18초 만에 README 와 같은 값이 나왔다. `score.py` 는 기능어 빈도, 세 글자 단위 문자열의 빈도, 문장 부호 사이 구간의 평균 낱말 수를 합쳐 원문 표본과의 거리를 계산한다. 항목마다 이 거리가 가장 짧은 글을 고른다. 저자처럼 쓰라고만 지시한 글이 12번, 스킬로 만든 글이 10번, 지시 없는 글이 2번 뽑혔다. Elo 점수는 같은 순서로 1066, 1047, 887 이었다. 높을수록 원문에 가깝다.
2. 블라인드 판정. `build_judge.py` 로 항목 24개마다 세 글의 생성 방식을 가리고 X, Y, Z 로 표시한 뒤 순서를 섞었다. Claude Haiku 5.5 에게 세 글을 원문 표본과 비슷한 글부터 순서대로 나열하게 했다. 스킬로 만든 글이 1위인 항목은 20개, 저자처럼 쓰라고만 지시한 글이 1위인 항목은 4개였다. 지시 없는 글은 23개 항목에서 3위였다. README 에 따르면 제작자의 블라인드 판정에서는 판정 모델이 24개 항목 모두에서 스킬로 만든 글을 1위로 골랐다. README 에는 그 모델의 이름이 없다.
3. 검증 스크립트. 벤치마크의 저자 6명 가운데 도널드 트럼프를 골랐다. 트럼프는 SKILL.md 의 예시에도 나온다. 트럼프의 원문 표본 111단어와 스킬로 만든 글 4편 515단어를 `stylometry.py` 로 비교했다. 스킬로 만든 글은 평균 문장 길이가 6.8단어, TTR 이 0.388 이었다. 원문 표본은 10.1단어, 0.622 였다. 스크립트는 문장을 더 길게 쓰고 어휘를 더 다양하게 하라고 출력했다.
4. 길이를 맞춘 비교. 같은 글의 앞 114단어만 넣자 TTR 은 0.649 가 됐다. 스크립트는 어휘를 다양하게 하라는 지시 대신 ok 를 출력했다. 글이 길수록 같은 낱말이 다시 나올 기회가 많아 TTR 은 낮아진다. 스크립트는 이 차이를 보정하지 않는다. SKILL.md 에는 원문을 2,000~8,000단어 모으고, 생성한 글 두세 편의 TTR 을 원문에 맞추라는 지시가 있다. SKILL.md 의 트럼프 예시에서 TTR 은 원문이 0.10, 스킬로 만든 글이 0.51 이었다. 예시에는 원문과 스킬로 만든 글의 길이가 나와 있지 않아, 이 차이의 원인이 길이인지 알 수 없다.
5. 비용. 판정 요청 24건에 토큰 30,442개, $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)
```

## 확인하지 못한 것

- 스킬 만들기. 에이전트에게 새 저자의 글을 주고 SKILL.md 대로 스킬을 처음부터 만들게 하자.
- 제작자의 판정 모델. 제작자가 사용한 판정 모델이 공개되면 그 모델로 같은 항목을 다시 판정하자.

## 판정

작동한다. 저장소의 데이터로 README 의 문체 점수가 그대로 나왔다. 다만 검증 스크립트는 길이가 다른 두 글의 TTR 을 보정하지 않고 비교한다. 그래서 같은 글이라도 비교하는 길이에 따라 다른 지시를 출력한다. 에이전트가 작성한 글의 문체를 수치로 점검하려는 경우에 써 볼 만하다.

## 얻어갈 것

- 두 글의 특징을 수치로 비교할 때는 글의 길이부터 맞추자. 오늘 동일한 글을 길이만 바꿔 mimic 의 스크립트에 넣었는데도, 어휘에 관한 지시가 다르게 출력됐다.
- 모델의 판정을 근거로 내세울 때는 판정 모델의 이름을 함께 밝히자. 오늘의 판정 결과는 README 와 달랐지만, README 만으로는 그 차이가 판정 모델 때문인지 확인할 수 없다.

### 용어

- Claude Cowork: Claude 데스크톱 앱에서 사용자가 지정한 폴더의 파일을 읽고 작업하는 에이전트 기능이다.
- 에이전트 스킬: AI 에이전트가 특정 작업을 할 때 읽는 지침 파일과 실행하는 스크립트의 묶음.
- TTR: 글에 나온 서로 다른 낱말 수를 전체 낱말 수로 나눈 값이다. 값이 클수록 같은 낱말을 덜 반복했다는 뜻이다. 글이 길수록 값은 낮아진다.
- 기능어: the, of, to 처럼 문법 관계를 나타내는 낱말이다. 주제와 관계없이 저자마다 사용 비율이 달라 저자 판별에 활용된다.
- OpenRouter: 여러 회사의 AI 모델을 API 하나와 계정 하나로 사용할 수 있는 서비스.
- Elo: 두 항목을 맞붙인 결과로 점수를 주고받아 순위를 계산하는 방식이다. 체스 순위에서 시작했다.

## English

## 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 Cowork. 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 skill. 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, TTR, and the rates of function words 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 OpenRouter.

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

### Terms

- Claude Cowork: An agent feature of the Claude desktop app that reads and works on files in a folder the user chooses.
- agent skill: Instructions, sometimes with scripts, that an AI agent uses for a specific task.
- TTR: Type-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.
- function word: A 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.
- OpenRouter: A service that offers many companies' AI models through one API and one account.
- Elo: A rating method that moves points between two items after each head-to-head result. It started as a chess rating.

## Launches the same day

- TubeHaus <https://github.com/biolend83/tubehaus> (Show HN, 13): YouTube 클라이언트. Google 계정 없이 Android, 데스크톱, TV 에서 사용하는 오픈소스 앱이다.
- mimic <https://github.com/xatuke/mimic> (Show HN, 7): 문체 스킬 생성기. 저자의 글을 측정해, 에이전트가 그 문체로 쓰게 하는 스킬을 만든다.
- Grasmere <https://grasmere.app/> (Show HN, 7): 마크다운 편집기. 작가와 연구자를 위해 만들었다고 소개한다.
- Query the Murder <https://querythemurder.com/> (Show HN, 7): SQL 추리 게임. 애거사 크리스티 소설 18편의 살인 사건을 SQL 질의로 푼다.
- Nico <https://nico.app/> (Show HN, 6): Mac 용 개인 에이전트. 에이전트 두 개가 함께 일한다고 소개한다.
- pixel-gif-sticker-pack <https://github.com/WoYun520/pixel-gif-sticker-pack> (GitHub, 394): Codex 스킬. 캐릭터 참고 이미지로 움직이는 GIF 스티커 팩을 만들고 검사한다.
- dsh-hongguo <https://github.com/frostming/dsh-hongguo> (GitHub, 128): DSH 플러그인. 에이전트가 일하는 동안 사이드바에서 Hongguo 단편 드라마를 보여 준다.
- hermes-voice <https://github.com/majorminorlabs/hermes-voice> (GitHub, 127): 음성 연결 도구. Home Assistant Assist 로 Hermes Agent 와 음성으로 대화한다.
- Glasshand <https://www.producthunt.com/products/glasshand> (Product Hunt, 288): 에이전트용 기기 제어 도구. 에이전트에게 실제 iPhone 과 Mac 을 준다고 소개한다.
- Rerun <https://www.producthunt.com/products/rerun> (Product Hunt, 185): AI 구독 관리 도구. 사용자의 AI 구독을 동료 팀처럼 일하게 한다고 소개한다.
- Living Brain <https://www.producthunt.com/products/living-brain> (Product Hunt, 170): 에이전트 메모리 계층. 여러 에이전트가 함께 사용하는 기억 저장소라고 소개한다.

## Getting started

- Steps: git clone https://github.com/xatuke/mimic ; python3 skills/author-voice/scripts/stylometry.py corpus.txt SAMPLE.txt
- Needs: Python 3(표준 라이브러리만). 스킬을 지원하는 AI 에이전트(예: Claude Code)와 저자의 글 2,000~8,000단어.
- Cost: MIT, 무료. 에이전트가 사용하는 모델의 비용은 따로 든다.
