شعار 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 يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • الملفات المرفقة: 1

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

  • مفتوحة المصدر

    نشرها xatuke على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Author Voice Skill في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/xatuke/mimic/tree/main/skills/author-voice
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

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

فعّل Author Voice Skill في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Author Voice Skill تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Author Voice Skill بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تستهلك تعليمات المهارة أي توكنات ما دامت المهارة غير مستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف 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.

الملفات المرفقة

يقرأ النموذج هذه الملفات عند الحاجة ما دامت المهارة محمّلة. وهي متاحة للقراءة ولا تُنفّذ أبدًا.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي 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.

لماذا تستخدم Author Voice Skill على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Author Voice Skill عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Author Voice Skill في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/xatuke/mimic/tree/main/skills/author-voice. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Author Voice Skill؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Author Voice Skill؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Author Voice Skill معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Author Voice Skill مجانية؟

نعم. نشرها xatuke على GitHub بموجب ترخيص MIT. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇