/typefox-agent-skills:write-like-mefrom typefox-agent-skills
Rewrites AI-generated text to match the user's personal writing voice using a style profile extracted from their hand-written documents. Builds or applies a style-pattern DB to humanize drafts before final polish.
Ships in typefox-agent-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Machine-written drafts carry a recognizable voice that is not the user's. This skill moves a draft toward the user's own voice as the step before their manual polish — never a replacement for it — using a style-pattern DB: a JSON profile of the user's writing habits, each habit backed by counts and verbatim quotes from documents the user wrote by hand. The DB format is in references/db-schema.md; the dimensions along which habits are recorded in references/taxonomy.md. Those files say author where this one says user — the same person, the one whose hand-written documents the profile is built from and who is asking for the rewrite.
The picture behind both modes. The taxonomy's dimensions are the axes of a style space, and a profile marks out the region of it the user's own writing occupies: one measured band per axis (a range, not a point), with the tier saying how well that band is known. Extraction draws the region; processing moves a draft into it, axis by axis and in whichever direction each axis is off — machine prose has a region of its own, and where the two overlap there is nothing to do. It is a map, not a metric: the axes carry different units and there is no distance to compute, so the comparison table ranks rows one at a time instead of scoring the document as a whole. Two founding rules follow. The user's profile has veto power: a coordinate already inside the region does not move, even where the construction is machine-typical — a user who writes with em dashes keeps them. Converge on rates, not extremes: the region is a box drawn around real documents, so its corners — every habit at once, each at its maximum — are precisely the places none of the user's writing occupies; that corner is caricature, and aiming at measured rates keeps a rewrite out of it. Inside the region a rewrite is free: strictness decides which axes it may move along at all, tone decides where along them to aim.
| mode | when | reference |
|---|---|---|
| process (default) | any text the user hands over — pasted, or as file paths. Assume it is AI-generated; the task is to make it read like the user | references/processing.md |
| extract | only when the user explicitly asks for their profile to be built or refreshed and names the documents to build it from | references/technique.md |
| process, AI-only | only when the user explicitly asks to strip machine habits from a draft without a profile, or without moving it toward any voice — or picks it when asked (step 2 below) | references/processing.md, Single-DB runs |
| process, profile-only | only when the user explicitly says the text is their own hand-written work, to be polished for consistency with their profile | references/processing.md, Single-DB runs |
| unfold | only when the user explicitly asks for their profile to be turned into a stand-alone skill of their own — a write-like-<name> skill without scripts or DBs | references/unfolding.md |
Extraction is never implicit. A processing request with no profile does not turn into an extraction, and an extraction request without document pointers ("learn my style", "set this up for me") gets one question back — which documents, by path — and stops there. The skill does not scan disks or guess which files the user wrote: the corpus is the user's claim of authorship, and only the user can make it. Extraction writes the DB; processing only reads it.
$HOME/.agents/write-like-me/user-style.json.python3 scripts/styledb.py info PROFILE (script paths in this file are relative to the skill directory; PROFILE is absolute — see Scripts). Exit 0: proceed. Exit 2: the DB is older than the skill — apply references/migration.md first. Exit 3: the DB is newer than this skill — stop and tell the user to update the skill. A DB with partial: true is an unmerged extraction part; refuse it and point at the merge command in technique.md.review.status: pending means the user never confirmed the profile. Proceed, but say so in the report and offer the review round.The AI DB. Processing (bar a profile-only run) also reads the skill's own AI style-pattern DB, data/ai-style-patterns.json (path relative to the skill directory): its rows are the AI-evidence column of the comparison table, measured in the same run (--db PROFILE --db data/ai-style-patterns.json). Give it the same version check (info); it must have kind: ai and partial: false. It ships with the skill and is written by neither mode — if it is missing or fails its checks, the rewrite proceeds with the built-in ai_* counters of scripts/textstats.py as fallback evidence, and the report says so.
Every pattern carries an evidence tier (1 strong, 2 moderate, 3 weak; rules in db-schema.md). The setting picks which tiers may drive a rewrite:
| setting | tiers applied | choose when the user says |
|---|---|---|
| soft | 1 | "light touch", "just the obvious", "gently", "only what you're sure about" |
| medium (default) | 1–2 | nothing about strength |
| hard | 1–3 | "go all in", "everything", "as close as you can get" |
A softer setting leaves more machine voice in place; a harder one risks applying a habit the corpus only weakly supports. Tiers gate which patterns are eligible and nothing else: a row inside the ceiling is worked as hard on soft as on hard, in both directions, so a light touch is a shorter list of rows and not a lighter hand on each. The gap between draft and profile still decides the order of work. What no setting ever licenses is inventing material — that line sits between substitution and manufacture, is the same at every setting, and is drawn in Step 3 of references/processing.md. Patterns dropped by the setting are listed in the report so the user sees what a harder run would touch.
Strictness is one dial, tone the other: strictness says how much evidence an edit needs, tone says which end of the user's own range to aim for. A request like "more formal", "warmer, less clinical", or "keep it factual but friendly" is written down as a short tone brief — the axes named, where the user wants this document on each, one sentence of intent — and carried through every step, including into chunk subagents. No request means no brief, and the profile's rates stay the targets. The brief steers selection among the forms the profile attests and never reaches past them: where a request needs a register the corpus does not contain, the report says so instead of inventing it. (A register is the document type each corpus document is tagged with — article, email, docs, note — and the profile's only record of how formal the user gets.) The brief's shape, the axes, and the four precedence rules — among them the one case in which tone outranks the do-not-touch veto — are in references/processing.md, Tone steering.
The procedure is references/processing.md; read it before Step 1. It defines the verdicts and marks measure prints, the table classes, the rule-derivation rules, the invariants, the convergence criteria, and the report template; where this spine and the reference disagree, the reference is right, and a change to one belongs in both. Its spine, per input document:
python3 scripts/textstats.py measure INPUT --db PROFILE --db data/ai-style-patterns.json --sort-gap --setting SETTING --register REGISTER. The output is the agenda: every measurable profile row with a verdict, class, and gap, the setting's [manual] marks, one folded line each for the rows the input is too short for and the rows its register sets aside, and the judged patterns to read for under read for these.displaces, and instead references, never from invention; targets are the user's rates, read per register where a description splits them, shifted inside the range by the tone brief.python3 scripts/structure_check.py INPUT REWRITTEN, with targeted edits until no rewrite row still reads absent or gap and the structure check has no errors. A non-zero exit is a gate, and every row left outside the range is named in the report with its reason.<name>.styled.<ext> beside it, never overwritten unless asked. The report's measured sections are printed by textstats.py measure INPUT REWRITTEN --db … --report-table and transcribed from it rather than recalled; a short input gets one line, and the report on request.A single-DB run (Modes) walks the same spine with one --db on the measure line; what each step drops is owned by references/processing.md, Single-DB runs.
Inputs beyond ~3,000 words, or several documents at once, are processed in section-aligned chunks by subagents that receive the same rule set and the same tone brief; measurement, rules, and convergence stay on the whole document.
The procedure is references/technique.md; read it before starting. Its six founding rules — evidence-paired patterns only, reading discovers and counters rank, rates not extremes, absences are data, nothing confidential, subject vocabulary is content — shape every step, and the DB fields and tier rules are in references/db-schema.md. Where this spine and the reference disagree, the reference is right, and a change to one belongs in both. Its spine:
python3 scripts/styledb.py init DB --corpus-dir ROOT REGISTER=PATH... writes the manifest and prints the register balance. A compilation is split into several files first, because tiers count documents; a corpus under the guidance (≥8 documents, ≥6,000 words) gets that stated and proceeds with the shortfall on record; a register carrying more than about half the words is a question to the user before reading — corpus.register_weights balances without discarding anything, capping costs words and tiers.python3 scripts/textstats.py measure FILE... --vet lists the documents whose AI-marker rates stand out; the user confirms or drops, and the manifest's vetting records it.python3 scripts/textstats.py hits FILE... -e REGEX, false positives subtracted with an exclude regex, and only what no exclude separates demoted to judged; python3 scripts/styledb.py count DB --corpus-dir ROOT writes the per-document counts, then python3 scripts/styledb.py validate DB --fix --corpus-dir ROOT computes rates, spread, coverage, and tiers and verifies every quote and count against the corpus.styledb.py render as supporting material that goes in the reply or a file that outlives the run; the answers go into a verdict file the agent writes and applies with python3 scripts/styledb.py review DB --verdicts FILE — the user never edits JSON; persist as reviewed, or as pending with that fact in the handover.<name>_old.json, write, and validate the written file; on a reviewed profile offer styledb.py seal DB -o DEFAULT_PATH, which drops the corpus paths while the unsealed DB stays beside the corpus.Large corpora are split across subagents that each write a partial DB, merged with python3 scripts/styledb.py merge PART... -o DB in two phases — discover, then count the merged candidates everywhere — so that tiers reflect full coverage.
All stdlib Python 3.8+; --help on each. The scripts/… and data/… paths are relative to the skill directory: prefix them with the base directory shown when the skill loads rather than changing into it, and pass the input, the profile, and the output as absolute paths, or a relative one is resolved against whatever the shell's working directory happens to be and the rewrite lands beside the wrong file.
| script | purpose |
|---|---|
scripts/styledb.py | info (version check), init (manifest from REGISTER=PATH specs), validate [--fix] [--corpus-dir], count --corpus-dir (per-document counts from the corpus), merge, review --verdicts (apply the review round), seal (drop corpus paths from a reviewed DB), render [--setting], tiers |
scripts/textstats.py | measure FILE... [--db DB]... [--sort-gap] [--setting S] [--register R] [--report-table] [--vet] — the built-in counters no DB row carries, DB patterns with a verdict each (rows the input is too short for, or outside its register, folded into one line of ids), and with the flags the comparison table's class and gap columns, the setting's tier ceiling, and the input's register; --report-table prints the report's measured sections as markdown with the AI-evidence column filled; --vet lists the corpus documents that stand out on the AI markers; hits FILE... -e REGEX [-i] [-x EXCLUDE] prints a candidate counter's matches with context and the DB fields to copy; counters lists definitions |
scripts/structure_check.py | ORIGINAL REWRITTEN — outline, block sequence, list counts, verbatim blocks, inline code, links, numbers; exit 1 on a violation, and that exit is a gate |
data/README.md (opens in a new tab)data/ai-style-patterns.json (opens in a new tab)evals/README.md (opens in a new tab)evals/evals.json (opens in a new tab)evals/files/README.md (opens in a new tab)evals/files/ai-draft.md (opens in a new tab)evals/files/corpus/conference-talk.md (opens in a new tab)evals/files/corpus/email-release.md (opens in a new tab)evals/files/corpus/fs-mocks.md (opens in a new tab)evals/files/corpus/readme-tidy.md (opens in a new tab)evals/files/corpus/retro-note.md (opens in a new tab)evals/files/user-style.json (opens in a new tab)references/db-schema.md (opens in a new tab)references/german-l1-guidance.md (opens in a new tab)references/migration.md (opens in a new tab)references/processing.md (opens in a new tab)references/taxonomy.md (opens in a new tab)references/technique.md (opens in a new tab)references/unfolding.md (opens in a new tab)scripts/structure_check.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
writing-style, voice-matching, text-humanization, style-profile, de-ai
Other plugins' skills for the same job
7 skills in this plugin
/agent-experienceMake a code repository agent-ready with state-of-the-art AX (Agent Experience): audit and set up AGENTS.md / CLAUDE.md and agent docs, wire verification sensors with self-correction messages, and build docs-as-memory (architecture docs, ADRs, exec plans). Use when the user wants to make a repo agent-ready or AI-friendly, onboard coding agents, create/review/improve AGENTS.md, CLAUDE.md, or other agent instruction files, set up a project for agent-first development, asks why an agent keeps repeating a mistake, asks any AX question (general or project-specific), or mentions "harness engineering", "agent readiness", "context engineering" (its repo-side slice), or "AX". Not for building agent runtimes or orchestration code, nor for authoring a single agent skill — use skill-creator for that./eclipse-license-checkVet third-party dependencies for an Eclipse Foundation project with the Eclipse Dash License Tool — license checks, "do I need to vet X?" questions, IPLab review filing, and release IP due diligence. Use whenever the user mentions Eclipse license checking, dash-licenses, the Dash License Tool, IPLab, third-party content for an Eclipse release, or dependency approval under the Eclipse IP Policy, even if they don't name the tool. Do not use for non-Eclipse projects or general license advice unrelated to the Eclipse IP Policy.npx claudepluginhub typefox/agent-skills --plugin typefox-agent-skills