{
  "markdown": "# Ghost Writer — Claude Code Plugin\n\nCollaborative ghost writing assistant for books and long-form writing projects.\n\nBased on the writing method developed in [quantum_fatalism](https://github.com/simonediroma/quantum_fatalism) — a philosophical essay written in explicit collaboration between a human author and Claude.\n\n---\n\n## Installation\n\n### From GitHub (available now)\n\nTwo commands:\n\n```bash\n# Step 1 — add the repo as marketplace\n/plugin marketplace add simonediroma/ghost-writer\n\n# Step 2 — install the plugin\n/plugin install ghost-writer@simonediroma-ghost-writer\n```\n\n### From the official marketplace (coming soon)\n\n```bash\n/plugin install ghost-writer@claude-plugins-official\n```\n\n### Test in locale\n\n```bash\nclaude --plugin-dir ./ghost-writer\n/ghost-writer:check\n```\n\n---\n\n## The one command to remember\n\n```bash\n/ghost-writer:session-start\n```\n\nRun this whenever you open the project. It reads `project-state.md` (a compact digest updated at the end of every session) and briefs you in seconds — where you left off, what's pending, what to do today.\n\nOn the very first session, or if the digest is older than 7 days, it does a full read and regenerates the digest automatically.\n\n---\n\n## Quick Start — Macro Commands\n\nFour commands cover the entire book lifecycle. Use these if you don't want to manage the sequence manually.\n\n| Command | What it runs |\n|---|---|\n| `/ghost-writer:check` | **Run this first** — verifies installation and setup in 60 seconds |\n| `/ghost-writer:wizard` | **Start here if you don't know where to begin** — conversational setup from scratch |\n| `/ghost-writer:start` | Full onboarding — author interview + book definition + voice fingerprint |\n| `/ghost-writer:chapter` | Full chapter cycle — dialogue + write + demolish + integrate |\n| `/ghost-writer:review [file]` | Full persona review — all 5 readers + integrate |\n| `/ghost-writer:finish` | Book closing — introduction + conclusion + final audit + manuscript |\n\n**Not sure which to use?** → `/ghost-writer:wizard`\n\nThe atomic commands (below) remain available for authors who want to control the sequence directly.\n\n---\n\n## Skills\n\n### Onboarding — run once, in order\n\n| Command | What it does |\n|---|---|\n| `/ghost-writer:session-start` | Opens any session — reads full project state, suggests what to do today |\n| `/ghost-writer:setup-author` | Interview: who you are, your authority, your emotional stake |\n| `/ghost-writer:setup-book` | Brainstorm: premise, reader, structure — selects the genre preset |\n| `/ghost-writer:setup-voice` | Defines tone of voice via interview + writing sample analysis |\n\n### Writing cycle — repeated per chapter\n\n| Command | What it does |\n|---|---|\n| `/ghost-writer:ask-before-writing` | Structured dialogue before writing anything |\n| `/ghost-writer:freeflow` | For blocked authors — dump everything, plugin organizes |\n| `/ghost-writer:write [section]` | Generates the section after dialogue is confirmed |\n| `/ghost-writer:write [section] --quick` | Skips dialogue — asks one question, writes directly |\n| `/ghost-writer:demolish [file]` | Hostile critical analysis — one objection at a time |\n| `/ghost-writer:demolish [file] --light` | Fast stress-test — finds only the 3 most critical issues |\n| `/ghost-writer:demolish-persona [persona]` | Demolition from a specific reader's perspective |\n| `/ghost-writer:integrate` | Incorporates responses into the text — one change at a time |\n\n### Consistency — periodic\n\n| Command | When |\n|---|---|\n| `/ghost-writer:consistency-check` | Every 3-4 completed chapters |\n| `/ghost-writer:character-interview [name]` | Optional — before writing scenes with key characters |\n| `/ghost-writer:character-check [name] [file]` | Optional — after writing scenes with profiled characters |\n\n### Closing — run once, at the end\n\n| Command | What it does |\n|---|---|\n| `/ghost-writer:write-opening` | Writes the introduction — last, after all chapters are complete |\n| `/ghost-writer:write-closing` | Writes the conclusion — closes the arc |\n| `/ghost-writer:manuscript-final` | Arc audit + assembles submission-ready manuscript |\n\n### Utility\n\n| Command | What it does |\n|---|---|\n| `/ghost-writer:status` | Project overview and suggested next step |\n\n---\n\n## Complete Workflow\n\n```\nONBOARDING (once)\n─────────────────────────────────────\nsession-start         → orient to the project (reads project-state.md digest)\nsetup-author          → who are you, your authority, your stake\nsetup-book            → what is the book + genre preset + first outline draft\nsetup-voice           → tone of voice via interview + sample analysis\n\nPER CHAPTER (repeated)\n─────────────────────────────────────\nsession-start                   → briefing: where we left off\nask-before-writing              → concept dialogue, one question at a time\n  └─ blocked? → freeflow        → dump everything, plugin organizes\n  └─ clear idea? → write --quick → skip dialogue, one question, write directly\nwrite [section]                 → generates draft in author's voice\ndemolish [file]                 → hostile critique, logic and structure (7 vectors)\n  └─ time-limited? → demolish --light  → 3 most critical issues only\ndemolish-persona editor         → structural diagnosis\ndemolish-persona target-reader  → does it work for the intended reader?\ndemolish-persona hostile-reader → does the argument hold under pressure?\nintegrate                       → incorporates all responses, one change at a time\n  → chapter complete ✅\n\nEVERY 3-4 CHAPTERS\n─────────────────────────────────────\nconsistency-check     → term drift, contradicted claims, broken promises, tone arc\n                         (streams findings as found; uses summaries first, full\n                          text only on flagged chapters)\n\nOPTIONAL (narrative books)\n─────────────────────────────────────\ncharacter-interview [name]   → psychological profile before writing key scenes\ncharacter-check [name] [ch]  → behavioral consistency check after writing\n\nCLOSING (once, at the end)\n─────────────────────────────────────\nwrite-opening         → introduction — written last\nwrite-closing         → conclusion — resolves open promises\nmanuscript-final      → arc audit + optional process note + assembled manuscript\n```\n\n---\n\n## Genre Presets\n\nSelected during `setup-book`. Adapts vocabulary, questions, and demolition logic.\n\n| Preset | Central concept | Demolition focus |\n|---|---|---|\n| `essay` | Thesis | Falsifiability, circularity, scope |\n| `fiction` | Dramatic question | Motivation, consequence, earned change |\n| `manual` | Transformation | Evidence, context dependency, prerequisites |\n| `biography` | Interpretation | Evidence, selection bias, alternative readings |\n| `fable` | The moral | Earned ending, displacement, narrative necessity |\n| `childrens-book` | The heart | Age appropriateness, child logic, pacing, read-aloud quality |\n\n---\n\n## Reader Personas\n\nUsed with `/ghost-writer:demolish-persona` or run all five sequentially with `/ghost-writer:review`.\n\n| Persona | What they find |\n|---|---|\n| `target-reader` | Accessibility, relevance, engagement |\n| `hostile-reader` | Unsupported assertions, avoided objections |\n| `domain-expert` | Technical gaps, overclaims |\n| `editor` | Structure, pacing, prose problems |\n| `out-of-target` | Unexplained jargon, invisible assumptions |\n\nEach persona file opens with a `## Quick Summary` (role, focus, key questions, feedback style) that `demolish-persona` uses by default. The full behavioral profile is in the same file for deeper reads.\n\nCustom personas: copy `personas/custom-template.md` and fill in.\n\n---\n\n## Core Principles\n\n- **Claude formalizes, doesn't invent.** Concepts come from the author.\n- **One question at a time.** Always.\n- **No change without confirmation.** The author approves every modification.\n- **Demolition strengthens.** Every weakness found now is one less for hostile readers.\n- **Genre adapts everything.** Vocabulary, questions, structure — all shaped by the preset.\n- **Memory is explicit.** Every term, promise, and demolition cycle is written down.\n- **The introduction is written last.**\n\n---\n\n## Project Files\n\nFiles the plugin reads and writes automatically. You don't need to edit these manually.\n\n| File | Purpose | Updated by |\n|---|---|---|\n| `book.config.json` | Project metadata, voice profile, preset digest | setup-book, wizard, retune |\n| `book-memory.md` | Defined terms, promises, claims, chapter log | write, integrate, consistency-check |\n| `outline.md` | Chapter list with statuses | write, chapter, longform-upgrade |\n| `voice-sample.md` | 3 paragraphs extracted from the last written chapter — style reference | write, integrate (silently) |\n| `project-state.md` | Compact session digest — chapter counts, last step, open issues | session-start (silently, at end of session) |\n| `demolition-history.md` | Book-level issue log, active + archived | demolish |\n| `chapters/NN-slug.md` | Chapter text with frontmatter (title, version, claim, status, summary) | write, integrate |\n| `sessions/` | Macro session state for resume support | chapter, review, finish |\n| `memory/part-N.md` | Per-part memory (longform mode only) | longform-upgrade, write |\n\n---\n\n## Publishing to claude.com/plugins\n\n1. Push to a public GitHub repo\n2. Update `.claude-plugin/plugin.json` with your name and repo URL\n3. Test locally: `claude --plugin-dir ./ghost-writer`\n4. Submit at: `claude.ai/settings/plugins/submit`\n\n---\n\n## Credits\n\nOriginal method: [Simone Di Roma — quantum_fatalism](https://github.com/simonediroma/quantum_fatalism)\nLicense: MIT\n",
  "bytes": 9563,
  "sha": "3af45ef1c015e40b03d0c33d08c939fa9b961b403f783d970839a85873fa81bb",
  "repo_slug": "simonediroma/claude-ghost-writer",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/plg_simonediroma_claude_ghost_writer_claude__91ba77ff/readme"
}