Blog style

From gabrielmoreira/agent-skills-mirror · View interactive version

Blog style is an AI agent skill from the GitHub repository gabrielmoreira/agent-skills-mirror. Measure writing-style statistics (sentence length, vocabulary, transitions, phrasing) from 5 to 10 posts you or your client wrote, and produce a voice profile for VOICE.md, blog-persona, and blog-write. Use for "learn my style", "build a writing baseline". It describes style; it does not detect or a

How to use this skill

Skill file

Blog Style - Writing Style Learning

Bundled paths below use host Markdown substitution of ${CLAUDE_SKILL_DIR};

it is not an exported shell variable. Resolve them before execution, quote

paths, and refuse nonabsolute overrides. Pass blog_reference_root resolved

from ${CLAUDE_SKILL_DIR}/../blog/references, blog_template_root from

${CLAUDE_SKILL_DIR}/../blog/templates, and needed sibling roots to agents.

Read the main reference orchestration-details.md before loading project

context; pass only its helper-fenced output to downstream agents.

Learn an author voice profile from existing posts, then use it as a baseline for

VOICE.md, blog-persona, and blog-write. The profile captures measurable style

signals so future drafts can preserve the author's cadence, vocabulary, and

tone.

Limits to state when reporting results:

authorship detection or attribution. Do not use it to claim who wrote a text

or whether a person or an AI wrote it, and say so if asked.

profile to imitate a named third party who has not agreed to it.

script only measures them. When you later load project-root VOICE.md, use the

fenced helper described in the blog skill section "Auto-loaded Project-Root

Context".

Commands

| Command | Purpose |

|---------|---------|

| /blog style learn <paths> | Analyze sample posts and generate a voice profile |

Learn Workflow

Use 5 to 10 representative posts from the same author, brand, or editorial

voice. Accept individual markdown files, MDX files, text files, or a directory

containing posts.

Run the local learner:

BLOG_SCRIPT_DIR="${CLAUDE_BLOG_SCRIPTS_DIR:-${CLAUDE_SKILL_DIR}/../../scripts}"
case "$BLOG_SCRIPT_DIR" in /*) ;; *) echo "ERROR: script dir must be absolute" >&2; exit 1 ;; esac
python3 "$BLOG_SCRIPT_DIR/style_learn.py" <paths> --format markdown

For machine-readable output:

python3 "$BLOG_SCRIPT_DIR/style_learn.py" <paths> --format json --output voice-profile.json

For a VOICE.md-ready block (this replaces the whole file, so if VOICE.md

already exists, write to voice-profile.md first, show the user a diff, and

overwrite only after they confirm):

python3 "$BLOG_SCRIPT_DIR/style_learn.py" <paths> --format markdown --output VOICE.md

If fewer than the requested minimum sample count is supplied, warn and continue.

The default minimum is 5 posts.

Profile Fields

The learner aggregates the existing blog analyzer across each sample post:

Consuming the Profile

Drop the markdown block into project VOICE.md when the goal is durable

project context. Blog-write can use the style baselines as drafting targets:

looser cadence.

terms.

question-led the draft should feel.

Feed the JSON output into blog-persona when a structured persona should be

created or updated. Map the learned values to persona sentence length, passive

voice, readability, vocabulary, and tone settings.

Error Handling

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.