extract-voice

extract-voice is a command for Claude Code from stepolan/marketing-repo-template. It costs 10 tokens per session (691 once invoked), scanned A, original, MIT.

A command that studies an author's existing posts and drafts to describe how they write.

In plain words
What is it for?
Use it to review sentence structure, openings, endings, tone, rhetorical questions, lists, and other recurring writing patterns.
Why use it?
It turns scattered writing samples into clear guidance when a team needs to produce new content in the author's style.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter.

Good fit Use it to review sentence structure, openings, endings, tone, rhetorical questions, lists, and other recurring writing patterns.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/stepolan/marketing-repo-template/extract-voice
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/stepolan/marketing-repo-template

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for extract-voice

README.md
[![agentmods](https://agentmods.dev/badge/commands/stepolan/marketing-repo-template/extract-voice/github.svg)](https://agentmods.dev/commands/stepolan/marketing-repo-template/extract-voice)
Your own site
<a href="https://agentmods.dev/commands/stepolan/marketing-repo-template/extract-voice"><img src="https://agentmods.dev/badge/commands/stepolan/marketing-repo-template/extract-voice/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for extract-voice

Your own site · 80×15
<a href="https://agentmods.dev/commands/stepolan/marketing-repo-template/extract-voice"><img src="https://agentmods.dev/badge/commands/stepolan/marketing-repo-template/extract-voice.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 691 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00010 $0.00691
Opus 5 $0.00005 $0.00345
Sonnet 5 $0.00002 $0.00138
Haiku 4.5 $0.00001 $0.00069

Measured 10d ago against content hash b1f751452a15, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

extract-voice scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/extract-voice.md · 71 lines

What it actually says

Analyze an author's existing content and generate a voice profile from it.

Arguments: $ARGUMENTS (the author name, matching a directory under authors/)

Execute the following steps:

  1. Find all content by this author:

    • Scan authors/<name>/posted/linkedin/ for published posts
    • Scan authors/<name>/drafts/linkedin/ for drafts
    • Scan corporate/drafts/blog/ for blog posts where the Author field matches
    • Scan authors/<name>/samples/ for any imported prior work
    • If no content found, tell the user to add existing content first
  2. Read every file found. You need volume to extract patterns. Read all of them.

  3. Analyze the writing for these dimensions:

    Sentence and paragraph structure:

    • Average sentence length
    • How paragraphs are constructed (short/punchy vs. flowing)
    • Use of fragments vs. complete sentences

    Rhetorical patterns:

    • How do they open a piece? (Question, bold claim, scenario, statistic)
    • How do they close? (Question, call to action, reflection)
    • Do they use rhetorical questions? How often?
    • Do they use lists, frameworks, or narrative arcs?

    Tone and stance:

    • Formal vs. conversational
    • Authoritative vs. exploratory
    • Contrarian vs. consensus-building
    • How do they handle disagreement or critique?

    Word-level patterns:

    • Contractions or no contractions
    • Punctuation habits (em dashes, semicolons, ellipses, exclamation marks)
    • Jargon level (technical terms, industry shorthand, plain language)
    • Filler or hedge words they use or avoid
    • Characteristic phrases or constructions that recur

    Content patterns:

    • Do they use data and citations?
    • Do they tell stories or paint scenarios?
    • Do they reference personal experience?
    • Do they name-drop or give credit to others?
  4. Generate a voice profile following the structure in the existing template at authors/<name>/voice/voice-profile.md. The output must include:

    • Core Characteristics (bulleted list of defining traits)
    • Voice Patterns (with named patterns and examples pulled from their actual writing)
    • Words/Phrases to AVOID (patterns you did NOT see and that would sound off-voice)
    • Formatting Rules (what you observed about structure)
    • Instructions for AI (numbered rules for reproducing this voice)
    • Voice Check (checklist of does/does-not sound like this author)
  5. Show the profile to the user for review before writing it. Ask if anything is wrong or missing.

  6. After approval, write it to authors/<name>/voice/voice-profile.md.

  7. Report:

    • How many pieces were analyzed
    • The strongest patterns (most consistent across pieces)
    • Any inconsistencies noticed (voice shifts between pieces that may need a decision)
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 71 lines · 10 tokens per session scan A b1f751452a15

Subscribe to this mod's changes

extract-voice is a command published in the GitHub repository stepolan/marketing-repo-template (2 stars, last pushed 4mo ago), licensed MIT. It adds 10 tokens to every session and 691 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.