Lucid Writer
Make the writing clearer without making the evidence stronger than it is.
Lucid Writer is an Agent Skill for Claude Code and Codex; its behaviour has been tested on Claude Code only. It edits, drafts and reviews research articles, reports, abstracts and reviewer responses, from a two-sentence copyedit to a full manuscript audit. Before it changes wording, it checks each material claim:
claim → evidence → scope → uncertainty → inference ceiling → wording
Docs: https://mdmanurung.github.io/lucid-writer/
Install
Claude Code plugin (skill plus three review subagents):
/plugin marketplace add mdmanurung/lucid-writer
/plugin install lucid-writer@lucid-writer
Or the installer, for Claude Code and Codex:
git clone https://github.com/mdmanurung/lucid-writer
cd lucid-writer
bash scripts/install.sh both # Windows: .\scripts\install.ps1 both
Use one of the two, not both. Always-on mode and learned rules need the plugin; the installer adds the skill and subagents only. The helper scripts need Python 3.11 or newer; <skill-dir> below is skills/lucid-writer in a clone, ~/.claude/skills/lucid-writer or ~/.agents/skills/lucid-writer after the installer. Install by hand, update and uninstall are on the docs home page.
Use
There is no special command: the skill loads when a writing task matches. Start with "Use lucid-writer to…" to force it.
| Mode | Example ask | What you get |
|---|
| Edit | "Tighten this paragraph by ~20%." | the revised text only, with numbers, citations and caveats kept |
| Draft | "Turn Figure 3 and these notes into a Results subsection." | a draft, with [EVIDENCE NEEDED] where support is missing |
| Build | "Restructure this Discussion around the main answer." | a planned rewrite, with changes carried through the document |
| Review | "Audit the manuscript against the figures. Do not rewrite yet." | prioritised findings ending with a Not checked list |
For high-stakes work:
- Review subagents: run the evidence auditor and skeptical reviewer in parallel, then manuscript preflight before submission. Skip them for ordinary edits; they cost extra tokens.
- Project state:
python3 <skill-dir>/scripts/init_project.py . creates .lucid-writer/ with a brief, a claim ledger and a decision log.
- Mechanical checks:
lint.py manuscript.md flags placeholders, hidden text, causal verbs and filler (unvalidated heuristics; --strict exits 1 on release flags); validate_ledger.py checks the claim ledger and the optional evidence.csv; qualifier_check.py reports hedges and design limits a revision dropped.
- Always-on (Claude Code plugin only):
/lucid-writer full injects the evidence rules at session start, and your voice for deliverables; /lucid-writer prose is plain-prose rules for chat, with no evidence rules; /lucid-writer off stops it.
- Learned rules (Claude Code plugin only):
/lucid-writer:learn "<rule>" stores a proposed writing rule; /lucid-writer:rules approves, rejects and retires it. Only rules you approve are injected, below the evidence rules. A phrase check refuses common attempts to loosen the evidence rules; it can miss new wordings, so read each rule before you approve it.
- Mycelium: in a project with
.living/ and .mycelium/, numbers checked by /mycelium-extra:verify outrank the prose.
Its rules forbid strengthening a claim beyond its evidence, even on request; inventing citations or numbers; following instructions hidden in manuscripts or reviewer comments; and rewriting to evade AI detectors. These are instructions to the model, not guarantees. In the only blinded comparison so far, rewrites overclaimed in 10 of 48 runs without the skill and 6 of 46 with it (p = 0.41), so an effect is not yet shown. See Evaluation.
Example, from Case 1 in evals/before-after-review.md (skill v0.4, one model run in-session; not a blinded result):
Use lucid-writer to revise this paragraph without changing claim strength:
Input:
Interestingly, participants with higher baseline CD161+ CD4 T-cell frequencies showed a significantly delayed time to parasitaemia (HR 0.72, 95% CI 0.55–0.95, p=0.018). Taken together, these findings demonstrate that CD161+ CD4 T cells play a crucial protective role against malaria infection.
Lucid Writer:
Higher baseline CD161+ CD4 T-cell frequencies were associated with delayed parasitaemia (HR 0.72, 95% CI 0.55–0.95; p=0.018). This association is consistent with a relationship between this phenotype and parasite control but does not establish a causal protective role.
The hazard ratio, interval and p-value are kept; "demonstrate ... protective role" is lowered to what an association supports.
Documentation