Author Voice Skillのロゴ

Author Voice Skill

コミュニティ
xatuke
author-voice-skill

Create a reusable "voice skill" — a system prompt that makes an LLM write in a specific author's or persona's voice (e.g. Edgar Allan Poe, the King James Bible, a named blogger, a public figure). Use whenever someone wants to imitate, mimic, capture, or reproduce a particular writing style or voice, turn an author's style into a reusable prompt, or build a style/persona preset. Grounds the prompt in measured stylometry so it captures rhythm and structure, not just vocabulary.

概要

公開者xatuke
リポジトリmimic
スキル名author-voice-skill
スター
20
フォーク
2
同梱ファイル
1
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 1個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    xatukeがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Author Voice Skill」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/xatuke/mimic/tree/main/skills/author-voice
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/xatuke/mimic.git /tmp/mimic
mkdir -p .claude/skills
cp -r /tmp/mimic/skills/author-voice .claude/skills/author-voice-skill
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでAuthor Voice Skillを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にAuthor Voice Skillを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Author Voice Skillは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Creating an author-voice skill

A voice skill is a system prompt that reliably makes a model write like a specific author or persona, on any topic. This skill tells you how to build a good one.

The core principle

A voice is not a word list — it is a distribution over structure: how long sentences run, how often they repeat, what function words and punctuation recur, what rhetorical moves keep happening. Authorship attribution identifies writers almost entirely from these structural statistics (function-word rates, sentence rhythm, punctuation), not from topic words.

Prompting is the right tool because a system prompt is context, and context reshapes the model's token-by-token decisions — so it can change sentence length, repetition, and rhetorical sequencing. (Fine-tuning does this too but costs far more; static weight edits and decode-time word bans do not — they shift vocabulary but can't impose structure, so they produce caricature, not voice. Don't use them for this.)

So: ground the prompt in measured structure, then write explicit instructions that reproduce that structure, and validate by measuring again.

Process

1. Get a corpus

Collect ~2,000–8,000 words of the author's own writing (more is better; several different pieces/occasions beat one, so the signal is the author's voice and not one piece's topic). Clean it to plain text: strip site chrome, other speakers, stage directions, headers/footers. For public figures use transcripts of their words only; for books use the body text (drop editorial prefaces). Note sourcing and respect copyright/ consent — don't impersonate a private individual, and keep it to style, not deception.

2. Measure the signature (this is what makes the prompt good, not generic)

Run the bundled tool on the corpus:

python3 scripts/stylometry.py AUTHOR_CORPUS.txt

Read off the numbers you'll put in the prompt:

  • mean & std sentence length — the single strongest, most-overlooked lever. Short mean (~8–12) = punchy; long mean (~22–26) = periodic/ornate; high std = mixes very short and long.
  • TTR (lexical richness) — low (~0.1–0.2) means the author repeats words heavily; high means varied vocabulary. Repetition is a huge part of a distinctive voice.
  • top function words and punctuation rates — e.g. heavy and = polysyndeton (biblical/run-on); heavy — = Dickinson/aside-driven; heavy I/you = personal/direct address; many periods = short sentences; semicolons/colons = formal/periodic.
  • sentence openers — the tool prints the top sentence-first words and the % of sentences that start with a connective (and/but/so/or/yet/because…). How a writer begins sentences is one of the strongest and most-missed signatures — a high connective-opener rate (PG's But/And/So, the KJV's And) is a voice-defining tic you must turn into a move (step 3), not a statistic you note and forget. Also notice recurring non-connective openers (If you…, There are…, The thing is…).

3. Deep rhetorical & structural analysis — THIS is what separates voice from caricature

Do this properly and in depth; it is the most important step. Vocabulary and rhythm numbers get you a pastiche — the right words in the right-length sentences. What makes text actually read as the author is the rhetorical and discourse structure: the moves the writer performs and the shape a passage takes. A move is a thing the writer does (a structure you can perform), not a word they use. Extract these explicitly, with real examples, or the skill will produce caricature.

Read 15–25 passages closely, and also grep the corpus for candidate discourse markers (frequency is revealing), e.g.: for p in "you know" "right?" "by the way" "believe me" "I mean" "many people" "the thing is"; do echo "$p: $(grep -oi "$p" corpus.txt | wc -l)"; done Then extract, each with a concrete example quoted from the corpus:

  • Discourse structure — how a whole passage is organized. Linear or associative? Does it digress and snap back ("…which, by the way, …"), build to a climax, circle (ring composition), stack in threes, run call-and-response, interrupt itself? This is the layer most pastiche misses.
  • Signature rhetorical MOVES — name each as a performable action with a mini-template: self-interrupting digression → aside → return; embedded quoted mini-anecdote ("the doctor said, 'Sir, you're…'"); vague-authority sourcing ("a lot of people are saying"); hyperbolic escalation ladder; apophasis ("nobody talks about this, but…"); anaphora; rhetorical tag questions ("right?", "you know?"); refrain; direct address; the qualify-then-commit; the undercut.
  • Argument / justification pattern — how they make a claim stick (personal testimony, reconstructed dialogue, contrast-by-exaggeration, probabilistic hedging, scripture, data).
  • Recurring targets / themes / motifs — the stable set they keep returning to and can weave in anywhere (winning & losing, the media, the soul, deep time, ubuntu…).
  • Sentence openers / connective chains — if the stylometry output shows a high connective-opener rate, make it an explicit move: "start sentences with But / And / So to chain the reasoning," with the measured frequency ("about 1 in 5 sentences"). Capture any other recurring opener too (If you…, There are two…). This is the tic a vocabulary list and even a close read will miss — the opener count is what catches it, so always check it.
  • Sentence-level syntax tics — fragment↔run-on alternation, appositive stacking, trailing qualifiers, mid-sentence pivots on "and," inversion.
  • Diction & register dynamics — vocabulary, intensifiers, contractions, AND when the register shifts (high↔low, sincere↔ironic).

The payoff: in the skill you'll write these as "deploy this" instructions with templates, and tell the model to actually perform 2–3 moves per passage — not just sprinkle the vocabulary on top.

4. Write the skill prompt — use this template

# <Author> Voice — style skill

Write in the voice of <Author>. Keep the substance of whatever you're asked, but
render it as <one-line characterization>. Topic in, <Author> out.

## Calibration — write the real author, not a parody
- <aim for the actual style, not an exaggeration; vary length; deploy moves sparingly; when
   unsure choose restraint — a real passage is subtler than the stereotype>

## Rhythm
- <sentence length rule WITH the measured number: "average ~N words", short/long/varied>
- <repetition rule from TTR: reuse words / vary; give a concrete repeated-phrase example>
- <punctuation rhythm from the rates: which marks dominate and why>

## Rhetorical moves — DEPLOY these (perform 2–3 per passage; don't just name them)
- <each a *performable* move from step 3, as an instruction + a tiny template, e.g.
   "**Digress and snap back:** veer off mid-sentence with 'which, by the way, …' then return."
   / "**Embedded mini-anecdote:** quote someone — 'and he said to me, …'" /
   "**Vague-authority sourcing:** attribute claims to 'a lot of people' / 'everybody knows'">
- End with the **discourse-structure** instruction — how to SHAPE the whole passage
   (associative digressions / build-to-climax / ring composition / stacking in threes).

## Diction & punctuation
- <register, vocabulary, intensifiers, contractions; which punctuation to lean on>

## Guardrails
- Don't invent facts; if unsure, <handle it in-voice> rather than fabricating specifics.
- <keep-it-tasteful / stay-in-register notes>

## Example
**Ask:** "<a neutral everyday prompt>"
**<Author>:** "<a paragraph YOU write, fully in voice — this few-shot anchor matters a lot>"

Rules for a good prompt:

  • Lead with rhythm and put the real measured number in it. Vague "writes vividly" does nothing; "average ~11 words, many 3–6, repeat for emphasis" works.
  • Make moves concrete with tiny in-voice snippets, not abstract labels.
  • Moves are the voice; make the model PERFORM them. The structural/discourse moves from step 3 are what separate real voice from caricature — write them as "deploy this" actions with templates, and instruct the model to perform 2–3 per passage. (This is the single biggest quality lever after rhythm.)
  • Write the example yourself, in voice. The few-shot anchor is one of the biggest levers — don't skip it or leave it generic.
  • Target style, not facts — always include the "don't invent facts" guardrail, because prompts change how the model writes, never what it knows.

5. Validate and iterate

Generate 2–3 neutral prompts (e.g. "describe a cup of coffee", "write about your morning") with your draft as the system prompt, save the outputs to SAMPLE.txt, and run:

python3 scripts/stylometry.py AUTHOR_CORPUS.txt SAMPLE.txt

It prints exactly what to fix: shorten/lengthen sentences, repeat more/less, which function words and punctuation to push. Then read the sample (metrics can be gamed by degenerate text). Tighten the weakest section of the prompt and regenerate. Stop when the sentence length and TTR are near the target and it reads unmistakably like the author. Two or three iterations is normal; strong, distinctive voices (short-sentence, archaic, or highly repetitive ones) land fastest.

6. Offer to install it — and ask first

Once the skill reads unmistakably like the author, ask the user whether to install it as a skill for this agent — never install silently. Ask literally, e.g.:

Install the voice as a skill for this agent? [y/N]

Only on an explicit yes, copy the finished SKILL.md into the agent's skills directory so it's available in future sessions. For Claude Code that's ~/.claude/skills/<author>-voice/SKILL.md (create the folder). Bring the measured numbers with it — the installed skill is just the prompt you wrote, so it keeps working anywhere. If the user says no, leave the file where it is and tell them the path; installing later is the same copy. Don't install into shared/team locations without being asked.

Pitfalls

  • Overshoot / caricature is the big one. A skill that stacks every signature move and pushes markers "to 11" produces a parody that is stylometrically FARTHER from the real author than a restrained imitation — the real author is always subtler than the stereotype. Add a Calibration rule to every skill ("write the actual author, not a parody; vary sentence length; use signature moves sparingly amid ordinary sentences; when unsure, choose restraint"), and in validation check that generations don't overshoot the author's measured numbers (e.g. sentences far shorter/choppier than the real corpus). Strong models especially overshoot, because they already imitate well and the skill only over-steers them.
  • Vocabulary-only prompts read as caricature. Capturing structure (length, repetition, rhetorical sequence) is what makes it convincing. This is why you measure.
  • Overshoot: an ornate author's prompt can make sentences too long, a punchy one too short. Check the number and dial the rhythm rule.
  • Subtle voices (calm analytical essayists) move the metrics less and need the example to carry more weight — invest in the few-shot.
  • Facts aren't voice. Niche facts will still be wrong; that's expected and orthogonal.
  • Don't reach for fine-tuning or weight-editing for this — prompting is cheaper and captures structure that static edits can't.

Worked example (Trump)

Measured: mean sentence length 11.4 words (short), TTR 0.10 (very repetitive), heavy I/you/we, high periods and contractions. → the prompt's Rhythm section said "average ~11 words, many 3–6, repeat constantly ('very, very strong'), low vocabulary variety on purpose," plus signature moves (extreme superlatives, "believe me"/"folks", rhetorical questions, self-reference) and a fully in-voice example. Result on a fresh model: sentence length 19→8, TTR 0.65→0.51, cosine-distance to the real corpus 1.11→0.85 — i.e. it moved from orthogonal to clearly in-voice, capturing the short-punchy-repetitive structure a vocabulary list alone never would.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Author Voice Skill」では何ができますか?

Create a reusable "voice skill" — a system prompt that makes an LLM write in a specific author's or persona's voice (e.g. Edgar Allan Poe, the King James Bible, a named blogger, a public figure). Use whenever someone wants to imitate, mimic, capture, or reproduce a particular writing style or voice, turn an author's style into a reusable prompt, or build a style/persona preset. Grounds the prompt in measured stylometry so it captures rhythm and structure, not just vocabulary.

TypingMindでAuthor Voice Skillを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Author Voice Skillはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにAuthor Voice Skillをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/xatuke/mimic/tree/main/skills/author-voiceを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Author Voice Skillを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Author Voice Skillで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもAuthor Voice Skillを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Author Voice Skill」は無料ですか?

はい。xatukeがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇