--- name: writing description: "Writing: voice creation and validation, prose editing and condensing, interface copy cleanup, anti-AI cleanup, professional communication, translation." user-invocable: true allowed-tools: - Read - Write - Bash - Grep - Glob - Edit - Task - Skill - Agent routing: not_for: "code comments (use code-quality), drift between existing docs and code (use docs-sync-checker), local documentation MCP servers (use programming), scheduling or calendaring content (use content), code review (use review)" triggers: - "write article" - "blog post" - "write in voice" - "voice pipeline" - "voice writer" - "validate voice" - "voice fidelity" - "write email" - "draft memo" - "executive summary" - "status update" - "meeting notes" - "pushback email" - "disagree professionally" - "translate" - "translation" - "localize" - "draft article" - "generate content" - "professional communication" - "draft response" - "technical article" - "technical writing" - "journalist voice" - "technical writer" - "technical journalism" - "API documentation" - "technical docs" - "documentation validation" - "integration guide" - "condense" - "reduce words" - "clarity pass" - "information density" - "remove prose" - "tighten" - "clean copy" - "interface copy" - "microcopy" - "empty state copy" - "button text" - "toast copy" category: content pairs_with: - joy-check - content - testing --- # Writing Skill Nine modes. Match the request to the correct mode and follow its section. | Request matches | Mode | |---|---| | Article, blog post, content using a voice profile | Voice Writing | | Build a voice profile from writing samples | Voice Creation | | Check draft against voice profile fidelity | Voice Validation | | Email, memo, status update, meeting notes, pushback | Professional Communication | | Translate or localize a document | Translation | | Technical explainer, opinion, or analysis article | Technical Journalism: load `references/technical-journalist-writer.md` | | API reference, architecture doc, runbook, integration guide | Technical Documentation: load `references/technical-documentation.md` | | Condense prose, cut filler, tighten markdown without losing instructions | Condense: load `references/condense.md` | | Interface copy, labels, hints, empty states, toasts, confirmations, button text | Clean Copy: load `references/clean-copy.md` | ## Deep References | Signal | Load | Content | |---|---|---| | Narrative validation, 500+ word content | `references/narrative-patterns.md` | 13-check rubric (StoryScope-derived) | | Voice writing pipeline (v3, 5 phases) | `references/human-pipeline-v3.md` | 5-phase wabi-sabi-first workflow & rationale | | Professional-communication examples | `references/pc-examples.md` | Worked transformation examples | | Professional-communication templates | `references/pc-templates.md` | Status templates, phrase transformations | | Voice creation: pattern extraction | `references/cv-pattern-identification.md` | Phrase fingerprints, architectures | | Voice creation: triple-validation | `references/cv-extraction-validation.md` | Recurrence/power/exclusivity rubric | | Voice creation: skill file generation | `references/cv-skill-generation.md` | SKILL.md structure, frontmatter, samples | | Voice creation: rules template | `references/cv-voice-rules-template.md` | Positive/contrastive identity, prohibitions | | Voice creation: iteration and authorship | `references/cv-iteration-guide.md` | Validation commands, authorship matching | | Voice creation: phase banners | `references/cv-phase-banners.md` | Progress reporting templates | | Voice creation: triad eval | `references/cv-triad-eval.md` | Held-out pairwise test, order-swap consistency, commands | | Translation modes, chunking | `references/tr-modes.md` | Quick/normal/refined, parallel dispatch | | Translation glossary | `references/tr-glossary-template.md` | Glossary format, term-preservation rules | | Technical journalism: explainers, opinion, analysis | `references/technical-journalist-writer.md` | Matter-of-fact voice rules, structure, sourcing; files in `references/technical-journalist-writer/` | | Technical documentation: API docs, runbooks, integration guides | `references/technical-documentation.md` | Source-verified docs, templates, standards; files in `references/technical-documentation/` | | Condense prose, reduce words, clarity pass, information density | `references/condense.md` | 3-phase prose-density workflow: SCOPE, CONDENSE, VERIFY | | Interface copy, UI labels, hints, empty states, toasts, button text | `references/clean-copy.md` | 4-rung deletion ladder, survival criteria, and batch review format for user-facing strings | --- ## Mode 1: Voice Writing (Human Pipeline v3.1 — 5 Phases, Wabi-Sabi-First) 5-phase pipeline for human-sounding, voice-profiled articles and blog posts (replaces the legacy 13-phase pipeline, validated via order-swapped blind A/B testing). Load `references/human-pipeline-v3.md` for full rules and phase rationale. Each phase runs with fresh context using `.voice-phase/` artifacts. Set `VOICE_WRITER_ACTIVE=1` before writing the final post. ### Phases 1. **BRIEF & ANCHORS** (`.voice-phase/01-brief.md`): Identify the voice profile, target site `CLAUDE.md`, and **2-3 full-length real human anchor pieces in the same format** (blog posts for blog posts, never short-form comment averages alone). Distill raw facts into a story-first substance brief: core vex/joy arc, vivid conversational specifics (cut raw commit SHAs and diff-stat noise), one productive aside, honest blunt moments, and one open question left standing. 2. **IMMERSED DRAFT** (`.voice-phase/02-draft.md`): Read the 2-3 full-length anchor pieces, the voice skill's hard bans/corrections, and `.voice-phase/01-brief.md`. Draft the full piece in one natural sitting—format-natural paragraphs (**30-50%** 4-6 sentence story blocks mixed with 2-3 sentence paragraphs and **4-6** natural 1-sentence pivots), crisp spoken sentences (mean 10-13 words, zero `, [verb]-ing` participial chains, max 3-4 numbers/sentence), subject-first spoken cadence, natural spoken contraction density (`>= 2.0` opps/100w, ~75-85% contracted), and genuine wabi-sabi roughness from the start. 3. **NARRATIVE & VOICE SURGERY** (`.voice-phase/03-edited-draft.md`): **One** fresh-eyes human editor pass reading the draft aloud from top to bottom. Fix opening pull, StoryScope 13-check narrative flow (`references/narrative-patterns.md`), vague euphemisms or telemetry-cram sentences, unexplained forward references, repeated sentence/paragraph templates (`"Short thesis. Dense while-clause."`, `"I [verb]"` drumbeats), joy-without-fake-cheerfulness framing, and a natural human ending (candid reflection, honest doubt, or plain stop—never a summary, callback, aphoristic button, or Jira status update). Hard cap: one pass. 4. **WABI-SABI & DETERMINISTIC GUARD** (`.voice-phase/04-wabisabi-draft.md`): Non-negotiable wabi-sabi preservation pass + full deterministic guardrails. - Run `voice-stylometry.py`, `scan-ai-patterns.py`, and `scan-negative-framing.py`; fix every true deterministic failure (burstiness, mean sentence length, punctuation, contraction rate & density, curly quotes, paragraph breathing, fronted comma openers, `, [verb]-ing` participial chains, telemetry cram, uniform paragraphs, true-positive AI clichés). - Diff `.voice-phase/02-draft.md` vs. `.voice-phase/03-edited-draft.md` and restore any organic human roughness, 4-6 sentence story breath, or candid aside that Phase 3 over-polished or chopped into a stub. - Cut leftover LLM giveaways (negation-contrast pivots, aphoristic buttons, performed honesty). **Never** manufacture fake typos or artificial comma splices—keep wabi-sabi organic. 5. **OUTPUT & VERIFY**: Apply front matter, write to `content/posts/YYYY-MM-DD-slug.md`, re-verify with `voice-stylometry.py`, `scan-ai-patterns.py`, `scan-negative-framing.py`, and site build (`hugo --minify` to temp dir). Record `.voice-pipeline-complete` with `phases_passed: ["BRIEF", "DRAFT", "SURGERY", "WABI-SABI", "OUTPUT"]` (supported directly by `hooks/pipeline-phase-gate.py`) and clean up `.voice-phase/`. --- ## Mode 2: Voice Creation 7-phase pipeline to build a voice profile from writing samples. Each phase has a gate. Report progress with phase banners (load `references/cv-phase-banners.md`). ### Phase 1: COLLECT (Gate: 50+ samples) Gather 50+ writing samples across contexts and lengths. Mix sources: Reddit, HN, blog, forum, email, chat, social. Do not clean typos -- imperfections ARE the voice. Do not cherry-pick. Save to `skills/voice-{name}/references/samples/*.md`. ### Phase 2: EXTRACT (Gate: profile.json valid, script exit 0) Run deterministic analysis: ```bash python3 ~/.claude/scripts/voice-analyzer.py analyze \ --samples skills/voice-{name}/references/samples/*.md \ --output skills/voice-{name}/profile.json ``` Add stylometry bands: `python3 scripts/voice-stylometry.py band --samples skills/voice-{name}/references/samples/*.md`. Merge into `profile.json`. ### Phase 3: PATTERN (Gate: 10+ phrase fingerprints, 3+ thinking patterns, 2/4 architectures) Identify distinctive patterns from samples + profile.json. Load `references/cv-pattern-identification.md` for phrase fingerprints, thinking patterns, wabi-sabi markers, and linguistic architectures. Apply triple-validation rubric from `references/cv-extraction-validation.md`: every pattern must pass cross-domain recurrence, generative power, and distinguishing exclusivity. Verdict: KEEP / FOOTNOTE / DROP. ### Phase 4: RULE (Gate: 4+ positive traits, 6+ contrastive aspects, 3+ prohibitions) Transform KEEP/FOOTNOTE patterns into rules. Load `references/cv-voice-rules-template.md`. Build: positive identity (with dampening adverbs), contrastive table (This Voice vs Generic AI), hard prohibitions, wabi-sabi rules, anti-essay patterns, architectural patterns. ### Phase 5: GENERATE (Gate: SKILL.md 2000+ lines, samples 400+ lines) Generate the voice skill files. Load `references/cv-skill-generation.md`. Create `skills/voice-{name}/SKILL.md` and `config.json`. Most line count is SAMPLES, not rules (V7-V9 failed with rules-only; V10 passed with 100+ samples). ### Phase 6: VALIDATE (Gate: score >= 60, 0 errors) Generate 3 test pieces (short, medium, long). Run: ```bash python3 ~/.claude/scripts/voice-validator.py validate \ --content /tmp/voice-sample-{name}-{N}.md \ --profile skills/voice-{name}/profile.json --voice {name} --format text --verbose python3 ~/.claude/scripts/voice-validator.py check-banned \ --content /tmp/voice-sample-{name}-{N}.md --voice {name} ``` If validation flags natural imperfections as errors, adjust config.json thresholds, not the content. Max 3 iterations. **Triad eval (new or changed skill).** Run the voice triad eval against the held-out set with a no-skill baseline arm. A skill that loses to no skill is worse than useless. Load `references/cv-triad-eval.md` for the method and commands. Keep the skill change only when it wins on held-out pieces; revert otherwise. ### Phase 7: ITERATE (Gate: 4/5 authorship match) Authorship matching: present hold-out samples mixed with generated samples to 5 roasters. Target: 4/5 say SAME AUTHOR. Load `references/cv-iteration-guide.md` for the full procedure. If failing, add more samples (not more rules). Max 3 iterations. **Re-run the triad eval** after each iteration that changes the skill. Stop after three rounds without a kept change. --- ## Mode 3: Voice Validation Critique-and-rewrite loop for voice fidelity. Max 3 iterations: scan, revise, rescan. ### Phase 1: IDENTIFY TARGET Determine voice profile, mode, and content to validate. Load the target voice's checklist. ### Phase 2: SCAN **Step 0**: Run deterministic stylometry checks if the voice has a `profile.json`: ```bash python3 scripts/voice-stylometry.py check \ --profile skills/voice-{name}/profile.json --draft ``` Checks: burstiness band, punctuation profile, corrective antithesis, temporal openers, uniform paragraph shapes, profile decay. **Step 1**: Run negative prompt checklist across all categories: Tone, Structure, Sentences, Language (ban: amazing, terrible, revolutionary, perfect, game-changing, transformative, incredible, outstanding, exceptional, groundbreaking), Emotion, Questions, Metaphors. For 500+ word content, add Narrative category (load `references/narrative-patterns.md`). **Step 2**: Check pass conditions: feels human-written, voice-specific patterns present, could NOT be posted on LinkedIn without edits (for casual voices). **Step 3**: Document each violation with: category, quoted text, fix recommendation. ### Phase 3: REVISE Apply the smallest change that resolves each violation. Preserve meaning. Keep substance and arguments intact. ### Phase 4: VERIFY Rescan revised content. If PASS: output with validation report. If FAIL and iteration < 3: return to Phase 3. If FAIL and iteration = 3: output with flagged concerns. --- ## Mode 4: Professional Communication Transform dense technical communication into structured business formats. ### Phase 1: PARSE Classify input type (technical update, debugging narrative, status report, dependency discussion). Extract ALL propositions: facts, implications, temporal markers, system references, blockers, emotional context. Document implicit context. Count propositions. ### Phase 2: STRUCTURE Categorize propositions: Status, Actions, Impacts, Blockers, Next. Prioritize by business impact: Business Impact > Technical Functionality > Timeline > Resources > Risk. ### Phase 3: TRANSFORM Apply standard template (load `references/pc-templates.md` for full library): ``` STATUS: GREEN|YELLOW|RED KEY POINT: [single most important takeaway] Summary: [3 bullets: accomplishment/issue + impact] Technical Details: [2-3 sentences] Next Steps: [specific actions with verb, scope, owner, timeline] ``` Tone rules: strip hedging, transform defensive language, preserve urgency markers, keep technical terms intact. Status: GREEN (complete, no follow-up), YELLOW (resolved with follow-up or blocked), RED (active critical issue). Always document reasoning. ### Phase 4: VERIFY Compare output against extracted propositions -- zero information loss. Verify technical accuracy. Confirm status matches severity. Validate action items have (verb, scope, owner, timeline). Check detail level for audience. --- ## Mode 5: Translation Translate documents using three modes: quick (single-pass), normal (analyze-then-translate), refined (full pipeline with polish). Core principle: rewrite as a skilled native writer, not word-for-word conversion. ### Phase 1: DETECT AND PREPARE Infer mode: "quick/fast/draft" = quick; "professional/polished/refined" = refined; default = normal. Detect source and target languages. Flag documents > 2000 words for chunked parallel translation. Load `references/tr-modes.md`. ### Phase 2: ANALYZE (skip in quick mode) Identify: language/dialect, register (academic/technical/narrative/marketing/casual/legal), document type, specialized terminology. For technical content, build glossary (load `references/tr-glossary-template.md`). ### Phase 3: TRANSLATE Translation principles: use idiomatic target-language word order; break long source sentences at natural target-language pauses; render metaphors by intent, not literally; annotate specialized terms on first use; match register from Phase 2; preserve proper nouns and brand names. For documents > 2000 words: split at heading/paragraph boundaries, build session glossary, dispatch parallel subagent calls per chunk with glossary injected, reassemble, check term consistency. ### Phase 4: POLISH (refined mode only) Scan for register inconsistency. Rewrite literal-sounding constructions. Audit specialized term handling. ### Phase 5: DELIVER Report: source, target, mode, word count, chunks, untranslated terms.