Show HN: Distill anyone's writing style into a skill github.com · 3 points · 0 c...

@show

Show HN: Distill anyone's writing style into a skill github.com · 3 points · 0 comments · HN thread

TL;DR Mimic is a GitHub project that turns a few thousand words of an author's writing into a reusable agent skill, a system prompt that makes an LLM write in that voice. It combines stylometric measurements (sentence rhythm, function words, lexical richness) with extracted rhetorical moves, and reports benchmark results where a blind LLM judge preferred its output. The thread has no comments yet.

  • Workflow: collect ~2–8k words of an author's writing, measure it with a stdlib-only stylometry.py script, extract rhetorical moves from 15–25 passages, write a skill, then validate by generating samples and re-measuring.
  • Voice is framed as a distribution over structure (sentence length, repetition, function words, punctuation) plus performable moves such as digress-and-snap-back or ring composition, which the model is told to perform 2–3 per passage.
  • Worked Trump example: mean sentence length moved from 19 (baseline) to 8 with the skill, against about 11 in the real corpus; TTR went from 0.65 to 0.51 versus 0.10 in the corpus.
  • Benchmark over 6 authors and 4 tasks: a function-word stylometric Elo could not separate the skill from a plain 'write as X' prompt, while a blind LLM judge preferred the skill output 24 of 24 times.
  • Installing the skill into ~/.claude/skills requires explicit user consent; the project states it is for style imitation of public figures, authors, oneself, or permitted personas, not deception.
  • Ships examples of distilled skills for Trump, Hemingway, Poe, Austen, Shakespeare, Obama and Paul Graham, plus benchmark code under bench/. MIT licensed.

Discussion No comments have been posted yet, so there is no discussion to summarize. The submission has 3 points and has not yet drawn any reaction.

#LLM #stylometry #promptEngineering #agentSkills #writingStyle