/workflows:writing the document, article or chapter to writefrom workflows
Structured prose writing workflow with plan grammar, claim tracking, and citation gates. Use for articles, memos, briefs, chapters, and any human-facing document.
Ships in workflows. 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.
work with a computed grammar and citation gateWhat this skill carries — grep references/ for any subject the names below miss:
!d=${CLAUDE_SKILL_DIR}; command -v skill-toc >/dev/null 2>&1 && exec skill-toc "$d"; s=$HOME/.claude/skills/plugin-utils/bin/skill-toc; [ -x "$s" ] && exec "$s" "$d"; echo "(skill-toc unavailable: references and scripts are NOT listed here — install the plugin-utils plugin, or start a new session so its bin/ reaches PATH)"
The lifecycle is work. Read it and follow it.
This file is a delta: it supplies the domain — the CLARIFY axes, the plan grammar, the lens,
the mechanical checks, the refs, the authority text. It ships no workflow.js and restates none of
work's mechanics.
What makes a run writing rather than plain work is one thing work cannot supply: a PLAN
GRAMMAR that a program parses. Eight required headings, stable CLAIM-NN ids, a total
claim→section map and a section-outputs table are read by
scripts/writing_section_index.py; the drafts are then checked against that parse by
scripts/writing_gate_probe.py and scripts/writing_prose_gate.py. work's JS reads their exit
codes.
Main chat clarifies, plans and dispatches. It does not write the document. It never creates or edits
a file under the writing project's drafts/, outlines/ or references/ — not by Write/Edit, and
not by Bash (cat >, a heredoc, sed -i, tee). The one exception is
writing_bench_compile.py under Phase 2 Path A, which is a compiler, not an author. Drafting runs in
a dispatched agent. work's
dispatch is already structural (the verifier is pinned to Explore, the lens is the read-only
writing-reviewer), so this is a rule on you, not a hook — a skill-frontmatter hook is measured not to reach dispatched agents, so there is nothing to
attach it to.
work's Phase 1, on these axes.
Prose written before the thesis is settled anchors the argument to whatever sentence came out first,
and every later correction has to fight it. Sources gathered before the outline do the same: you do
not know what the argument needs until it exists, so a pre-outline pile anchors the outline to
whatever was fetched and spends fetches on material the argument never uses. Training-data recall
is not a source. A citation you remember is a claim about a document nobody opened; source
gathering goes through the librarian agent and must materialise real artifacts under the writing
project's references/, with a bibliography file the gate can resolve keys against.
| Axis | Establish with the user |
|---|---|
| Thesis | The single claim the document argues, or the angle if it is not an argument |
| Audience | Who reads it, what they already accept, and what would persuade them |
| Purpose | The decision, submission or publication the document serves |
| Scope | Length, venue, format, deadline, and what the document covers |
| Exclusions | What is deliberately out of the argument, and must not creep in |
| Domain | legal | econ | general — selects the style guide each drafting task loads and the prose gate's --style |
| Inputs | The one or two documents the argument responds to (e.g. the opposing expert report) — inputs, not sources; they go to references/ now. Everything else is fetched per node in Phase 2 |
| Deliverables | The outline files, the draft files, and the assembled document |
| Evidence | What makes each section credible: a pinned source, a quoted authority, or user judgment |
| Review surfaces | What the user will actually read at Phase 5 |
| Planning surface | bench (default) or plan file — where the outline gets authored |
bench is the recommended answer and Phase 2's default path; plan file is the escape hatch for a
document short enough that an artifact is overhead.
Ask in one AskUserQuestion call when answers are independent. Ask cascading questions separately:
the venue decides the length, and the length decides the section count.
work's remaining axes are taken as work states them, with two domain bindings: work axis 4
(observable success criteria) is answered by the four mechanical checks below — GRAMMAR, CITE,
CLAIM and PROSE-HARD, defined in
references/writing-checks.md
— whose command strings become mechanicalChecks verbatim; work axis 6 (which provider runs the
review lens) is answered routed, so no lensProvider key is passed.
CLARIFY gathers no sources. It dispatches the librarian only for the inputs, and only if they are
not already under references/. A node the per-node source round could not fill is a planned
evidence task, not a claim you write anyway.
work's Phase 2. The plan opens with frontmatter workflow: writing — required, so a context clear
at approval resumes here and not in work.
The plan must be written in the required plan grammar below, because
scripts/writing_section_index.py parses it and is the only canonical grammar parser — there is
no LLM discovery fallback and no second reader. A heading it cannot find is a section nothing checks.
That grammar is the contract both planning surfaces satisfy. Path A (bench) reaches it through a compiler; Path B (plan file) reaches it by writing the plan. Either way ExitPlanMode approves a plan the parser accepts, and nothing downstream can tell which path produced it.
Exactly these eight headings, each appearing once, in this order:
## Writing Intent
## Claims
## Counterarguments
## Document Structure
## Claim → Section Map
## Source Plan
## Section Outputs
## Review Surfaces
The arrow in ## Claim → Section Map is U+2192 (→), never ->; the parser matches the heading
literally.
Field rules, all enforced by the parser:
## Writing Intent defines Thesis:, Audience:, Purpose:, Hook:, Scope: and
Domain:. Domain: is one of legal, econ, general.## Claims defines the claim set with unique, stable CLAIM-NN identifiers. An id means the
same claim for the life of the document; renumbering is a defect, not a tidy-up.## Counterarguments states the objections the document must meet, in the wording the
COUNTER check will look for.## Document Structure carries one ordered ### Section Name per output section. Duplicates
are refused, and the order here is the drafting order.## Claim → Section Map is a table with exactly the columns Claim and Section, giving
one primary section per claim. It must be total and single-valued: a claim with no section is
undrafted, and a claim with two has no owner.## Source Plan defines Bibliography: (a project-contained, traversal-free path — the file
every CITE check resolves keys against), Notebook:, Notebook URL: and Key Sources:. Write
none for an intentional absence; the parser refuses an empty value.## Section Outputs is a table with exactly the columns Section | Outline | Draft | Depends On,
in the same order as ## Document Structure. Outline paths start with outlines/, Draft paths
with drafts/, and every Depends On entry must point backward, to a section already named
above it — a forward or circular dependency means no drafting order exists. Write - for none.## Review Surfaces lists, as bullets, what reviewers actually inspect at Phase 5.Three further domain requirements on the plan:
refs on every task row and on the lens — required, may be empty. work's spine does not validate it;
wc-probe P7 refuses an absent key in THIS file, so a live run assembled from an approved plan is
unchecked. Write refs: [] to state "no domain rules" rather than omitting the key.## Section Outputs — its outline and its draft are that
one row's work, never two rows. This is where the plugin's per-section drafting fan-out went: work
implements the rows sequentially against one tree and verifies each independently. Parallelism
across sections is the acknowledged loss; a shared spine and a single gate are the gain.plansDirectory is "./.planning" for a writing project — so work's
approved plan is already the generated plan the parser authenticates. work honours whatever the
setting says (default .claude/plans), so read the configured value rather than assuming this
one. Never copy the plan.Authoring both the outline and the detailed outline yourself, and reducing the user to approving at ExitPlanMode, is what this path exists to end. It is not faster — it hands the user an argument they did not make and must now argue with.
Main chat, in order:
Publish ${CLAUDE_SKILL_DIR}/assets/bench.html with the Artifact tool,
capabilities: {"db": {}, "sample": {}}. Persona agents hold no Artifact tool, so this is
main-chat work by construction, not a delegation you forgot to make.
Seed it — write_db to collection plan, doc bench: the CLARIFY answers as intent
(thesis, audience, purpose, hook, scope, domain, genre), srcmeta.bibliography,
and the inputs as sources [{id, key, cite, artifact}] if there are any. No other sources.
The user never retypes the interview into the bench.
Hand over the URL and STOP. The user outlines level 1, then level 2; Claude proposes in-page; the user accepts. This is a real wait for a human — not a poll, not a loop, not a timeout.
Source round, per node. read_db the bench to a file, then
uv run python3 ${CLAUDE_PLUGIN_ROOT}/skills/writing/scripts/writing_bench_compile.py --bench <file> --source-requests
prints the open requests [{id, position, text, path, needs}] (needs-flagged nodes with no
source, unpinned non-level-1 leaves) and writes nothing. Dispatch one librarian Agent task per
request, in parallel, briefed with the node text plus its ancestor path: artifacts under
<proj>/references/, BibTeX appended to the one srcmeta.bibliography — never a new .bib.
Then read_db doc plan/chat, append to props one {id, author:"session", title, text, op:{type:"pinSource", nodeId, source:{key, cite, artifact}}} per result, and write_db it back,
never overwriting props or msgs. The user accepts in the rail. STOP and wait; repeat when the
user marks more nodes "needs sources". The compile refuses any open request, so the gate holds.
On the user's go-ahead, read_db the doc to a file and compile:
uv run python3 ${CLAUDE_PLUGIN_ROOT}/skills/writing/scripts/writing_bench_compile.py \
--bench <file> --project <proj> --slug <slug>
A non-zero exit is not a failure to work around. By outline position it names unaccepted
nodes, an open source request, a missing artifact, a key not in srcmeta.bibliography (naming
any other references/**/*.bib holding it), or a name over NAME_MAX — set a short title in the
bench (a level-1 short is the section name; the full text becomes the gloss). Tell the user and
wait. In genres amicus/expert/comment a level-1 claim maps to its own section. --force
removes outline files the previous plan named and the new one does not.
Verify and approve — writing_section_index.py exits 0 for the project, then ExitPlanMode on
the compiled plan.
The bench URL is recorded as a Bench URL: line in the body of
<proj>/.planning/ACTIVE_WORKFLOW.md — the existing file, never a new one.
Write the plan in the grammar above and approve it at ExitPlanMode. Unchanged.
Main chat never authors outline or draft prose. Running
writing_bench_compile.py — a deterministic compiler emitting the user's own accepted outline — is
not authoring, and it is the only sanctioned main-chat write under outlines/. Prose is still
written only by dispatched agents.
work's Phase 3 unchanged.
Both runners refuse anything else, so this is a contract, not a convention. <proj> is the writing
project root.
| Path | What it is |
|---|---|
<proj>/.planning/<slug>.md | work's approved plan, hashed in place — the generated plan the parser authenticates. Never a copy; never the basename PLAN.md, which the parser rejects as legacy |
<proj>/.planning/.state/review.json | the receipt, generated by scripts/writing_receipt.py from work's own two approvals. The parser refuses to parse without it |
<proj>/.planning/ACTIVE_WORKFLOW.md | written by the same shim, carrying workflow: writing and style: <Domain>. The parser reads it as legacy provenance, so the receipt must be well-formed for the layout to read canonical rather than legacy-only |
<proj>/outlines/…, <proj>/drafts/… | the Outline and Draft paths ## Section Outputs names verbatim |
<proj>/<bib>.bib | the Source Plan Bibliography: path |
The receipt shim, run once after ExitPlanMode and before the work dispatch. Every --plan-hash in
this skill is the writing plan hash — SHA-256 of the plan minus its <!-- work:dispatch ... -->
block, printed by uv run python3 ${CLAUDE_PLUGIN_ROOT}/skills/writing/scripts/lib/plan_hash.py <plan>:
uv run python3 ${CLAUDE_PLUGIN_ROOT}/skills/writing/scripts/writing_receipt.py \
--project <proj> --plan <planPath> --plan-hash <writing plan hash> \
--approved-session <the ExitPlanMode approval's session id> \
--reviewer-session <the work run id that authorizes implementation> --domain <legal|econ|general>
The three commands, quoted exactly as
references/writing-checks.md
defines them — one per project for GRAMMAR and PROSE-HARD, one per section for CITE+CLAIM:
uv run python3 ${CLAUDE_PLUGIN_ROOT}/skills/writing/scripts/writing_section_index.py <proj>
0 = grammar clean; 1 = violations, listed as JSON on stdout; 2 = usage. A 2 is a check
defect, not a content failure — the check did not run, and an unrun check is never a pass.
uv run python3 ${CLAUDE_PLUGIN_ROOT}/skills/writing/scripts/writing_gate_probe.py "<proj>/drafts/<Section>.md" --bib "<proj>/<bib>.bib" --plan "<proj>/.planning/<slug>.md" --plan-hash <writing plan hash>
0 = pass; 1 = fail, with the offending keys and line numbers under evidence. One invocation per
section; the draft argument is the Draft cell of that section's ## Section Outputs row, verbatim.
QUOTE THE DRAFT PATH, always. Section names carry spaces and parentheses
(drafts/Part I. The Gap (Draft).md); unquoted, the line dies with
bash: syntax error near unexpected token '(' before python is reached. A probe runs its cmd
verbatim and no corrected re-run is permitted, so an unquoted template is a permanent gate defect.
uv run python3 ${CLAUDE_PLUGIN_ROOT}/skills/writing/scripts/writing_prose_gate.py --project <proj> --style <domain>
0 = no hard-severity span; 1 = blocked; 2 = gate defect (missing or unrunnable engine,
unparseable output). Soft findings print as advisory and never set the exit code. <domain> is the
plan's Domain:. The wrapper invokes
${CLAUDE_SKILL_DIR}/../../scripts/prose-audit.py in place — never forked, never modified,
that tree is read-only — under its own uv run --with lxml --with pyyaml python3, so this command
line does not carry those flags and must not gain them. Never wire the engine's own exit code to
the gate: it ends in sys.exit(worst) and so conflates hard with soft, which would block a run on
advisory puffery.
One worked in-tree fixture project, fixtures/clean/, is what every check runs against; it is
described at fixtures/README.md.
The broken variants are generated, not stored:
scripts/writing_flip_test.py
copies the clean fixture once per check, applies exactly one defect, and asserts the check exits 0 on
clean, non-zero on the break, and that the failure names its own subject — the last of those
because exit-code-only assertions let a check pass while exercising a different dimension entirely.
The args go in the plan's <!-- work:dispatch --> arming block, and the dispatch is work's own
work-dispatch.sh — never a hand-written runner line. That script owns the TIER 1 plan-lint
gate, which refuses to dispatch on a major/critical plan finding and fails CLOSED on a verdict it
cannot count; hand-rolling the invocation silently drops it. work owns the Monitor wait, the
result handling and the return shape too, and work-result.sh reads the verdict. This run's
projectDir is the session repo, so work's own run directory is already inside it and no
--run-dir override applies. There is no built-in Workflow call — the guard at
~/.claude/hooks/main-thread-guard.sh denies that tool outright.
The arming block goes into the compiled plan at <proj>/.planning/<slug>.md, and you pass that
path explicitly. The writing plan hash (plan_hash.py, above) excises the
<!-- work:dispatch ... --> block, so arming does not stale the outlines' plan_hash. The explicit
path works even when the repo-root plansDirectory is not the writing project's .planning (e.g.
paper/.planning) — never write a wrapper plan at the repo root.
PLAN=<proj>/.planning/<slug>.md
bash ${CLAUDE_PLUGIN_ROOT}/skills/work/scripts/work-dispatch.sh "$PLAN"
bash ${CLAUDE_PLUGIN_ROOT}/skills/work/scripts/work-dispatch.sh --provider codex "$PLAN" # "run this through codex"
Forward the provider. A provider named in this skill's $ARGUMENTS, however it is spelled —
--provider codex, --dispatch codex, "run this on gpt" — is --provider codex on the line
above. --provider is the only spelling the scripts take, and both reject the others by name.
Omitting it silently runs the user's codex request on claude.
const proj = /* the manuscript project directory */
const bib = /* the bibliography path, relative to proj */
const planPath = /* the armed plan's path, .planning/<slug>.md under proj */
const planHash = /* the writing plan hash (scripts/lib/plan_hash.py) */
const domain = /* the plan's Domain: "general", "legal" or "econ" — it is also the --style */
const goal = /* one sentence */
const args = {
projectDir,
goal,
// ONE ROW PER SECTION, drawn from the plan's ## Section Outputs, in that table's order — this is
// the per-section fan-out, expressed as task rows. Outline and draft are the SAME row's work.
// Every task carries refs. Drafting rows load skills/writing-general/SKILL.md — the base register
// for every Domain — plus skills/writing-legal/SKILL.md or skills/writing-econ/SKILL.md when the
// plan's Domain: field names one of those, alongside writing-checks.md, which is unconditional on
// every row. The raw style guides are NOT loaded for drafting: the register supersedes them and
// overrides three of their rules.
// PATH A (bench): the outline files already exist and are the USER'S WORK. The row drafts
// AGAINST them and writes drafts/<Section>.md ONLY.
// work: "Expand <proj>/outlines/<Section>.md — the user's accepted outline, which you must NOT
// edit or 'improve' — into <proj>/drafts/<Section>.md, carrying the claims the Claim →
// Section Map assigns this section and citing only bibliography keys its outline pinned.
// If the draft needs a beat the outline does not have, STOP and raise it; never add one
// silently. DRAFT FRONTMATTER CONTRACT — as below."
// writablePaths: ["<proj>/drafts/<Section>.md"]
// PATH B (plan file): the row below, which writes both files.
tasks: [
{ id: "T1",
name: "Section: <Section>",
work: "Write <proj>/outlines/<Section>.md against the plan's Document Structure entry, pinning a Source Plan source to every beat, then expand it into <proj>/drafts/<Section>.md carrying the claims the Claim → Section Map assigns this section and citing only bibliography keys its outline pinned. DRAFT FRONTMATTER CONTRACT — the draft OPENS with YAML frontmatter carrying `implements: [CLAIM-NN, ...]`, exactly the claim set this section's Claim → Section Map row assigns it, and `plan_hash: <the writing plan hash (scripts/lib/plan_hash.py)>`. writing_gate_probe.py enforces both (implementsMismatch / claimIdsMissing) and fails the section otherwise.",
writablePaths: ["<proj>/outlines/<Section>.md", "<proj>/drafts/<Section>.md"],
acceptance: "writing_section_index.py exits 0 for the project, writing_gate_probe.py exits 0 for this section's draft, and writing_prose_gate.py exits 0 for the project.",
refs: ["${CLAUDE_PLUGIN_ROOT}/skills/writing/references/writing-checks.md",
"${CLAUDE_PLUGIN_ROOT}/skills/writing/rules/writing-outline-canonicality.md",
"${CLAUDE_PLUGIN_ROOT}/skills/writing/rules/claim-id-traceability.md",
"${CLAUDE_PLUGIN_ROOT}/skills/writing/rules/writing-topic-sentence-craft.md",
"${CLAUDE_PLUGIN_ROOT}/skills/writing-general/SKILL.md",
// plus ONE of these, only when the plan's Domain: says so:
// "${CLAUDE_PLUGIN_ROOT}/skills/writing-legal/SKILL.md" (Domain: legal)
// "${CLAUDE_PLUGIN_ROOT}/skills/writing-econ/SKILL.md" (Domain: econ)
] },
// ... one T-row per remaining row of ## Section Outputs. No second row for the draft.
],
// The writing gate. GRAMMAR once for the project; CITE+CLAIM once per section (one probe settles
// both); PROSE-HARD once for the project. The flags are the usage line in scripts/check.sh's header.
// ONE entry point. The cite-claim leg was one entry PER SECTION, written out by the
// plan — the purest form of what P10 refuses, since a plan that forgets a row drops
// that section's citation gate and nothing reports a check it never knew about.
// check.sh discovers the sections from drafts/ instead, so the set cannot disagree
// with what is on disk, and no sections at all is a refusal rather than a pass. It also runs
// `bin/workflow-check writing[/legal|/econ] --constraints-only` (the register from --style): every
// constraint under checks/writing/, so the set is the directory, never a list here.
mechanicalChecks: [
{ name: "writing",
cmd: `bash ${CLAUDE_PLUGIN_ROOT}/skills/writing/scripts/check.sh --project ${proj} --bib "${proj}/${bib}" --plan "${planPath}" --plan-hash ${planHash} --style ${domain}` },
],
// Jev scores the calibrated prose rules the layout holds for the workflow: checks/writing/rules
// (signposting, stacked hedges, vague attribution), and for a register its own rules ON TOP of them,
// never instead. p >= 0.85 lands in rulesThatFailed and blocks, lower ones reach the lens ranked.
// The workflow follows `domain`: legal -> `writing/legal`, econ -> `writing/econ`, general -> `writing/general`
// (the same set check.sh's constraints leg runs).
ruleChecks: { name: "jev-writing-rules", cmd: `bun ${CLAUDE_PLUGIN_ROOT}/skills/work/scripts/rule-check.ts --project-dir ${projectDir} --plan ${planPath} --workflow writing/${domain}` },
// One lens after verification and mechanical checks; its checklist covers all five dimensions.
//
// It does NOT pin Explore. Explore is a built-in agent with a predefined prompt no preloaded skill
// reaches, so a register-dependent judgement dispatched there is graded from memory.
// writing-reviewer preloads all three register skills and is read-only by tools allowlist AND by
// tests/agent-contract.test.mjs — the same structural property Explore is pinned for, in an agent
// that actually knows the rules.
// Both texts live in ${CLAUDE_PLUGIN_ROOT}/skills/writing/presets.json, expanded at dispatch; an `extra` string on either carries plan-specific additions. The lens `refs` repeat the preset's so wc-probe P7 can resolve them; tests/agent-contract.test.mjs holds the two equal.
lens: { preset: "writing",
refs: ["${CLAUDE_PLUGIN_ROOT}/skills/writing/references/writing-checks.md",
"${CLAUDE_PLUGIN_ROOT}/skills/writing/rules/cite-fidelity-no-handtyped.md",
"${CLAUDE_PLUGIN_ROOT}/skills/writing/rules/cite-fidelity-source-inventory.md",
"${CLAUDE_PLUGIN_ROOT}/skills/writing/rules/cite-fidelity-section-gate.md",
"${CLAUDE_PLUGIN_ROOT}/skills/writing/rules/writing-citation-tense.md"] },
authorityExtra: { preset: "writing" },
// The plan's Domain: selects the register, so it selects the doer too — each of these three agents
// preloads exactly the register skill that Domain names. SUBSTITUTE ONE literal name when the plan
// is armed, exactly as `--style <domain>` above is substituted; the work skill takes a single string and
// never branches at runtime.
// Domain: general -> "writing" Domain: legal -> "writing-legal" Domain: econ -> "writing-econ"
implementerAgentType: "<writing|writing-legal|writing-econ>", // the doer's own prompt replaces Claude Code's software-engineering one, which frames an article as a codebase
verifierAgentType: "Explore",
}
implementerAgentType is a placeholder because work takes a single string: the value is written
into the block when the plan is armed, from the plan's Domain: field, and no runtime branch exists
to write it later. The default agent carries Claude Code's software-engineering system prompt and
the deliverable here is prose a human reads, so the implementer must be an agent whose body replaces
that prompt — and which agent is not a free choice, because writing, writing-legal and
writing-econ preload writing-general, writing-general+writing-legal and
writing-general+writing-econ respectively. A legal run drafted by writing is drafted without
the register the same plan hands the review lens, so the gate grades against rules the
drafter never saw. Domain: already selects the drafting refs, the --style of the prose gate and
the lens's register; the doer is the fourth thing it selects, not a fourth decision.
verifierAgentType pins Explore because it has no Edit and no Write: a judge that structurally
cannot modify the tree beats a prompt asking it not to. The lens buys the same property a different
way — writing-reviewer is read-only by tools allowlist — because Explore's prompt is predefined and
no preloaded register skill reaches it. The lens returns schema-validated JSON through StructuredOutput, and the runner writes lens.json.
work's Phase 5 unchanged, over the plan's ## Review Surfaces. A clean technical verification is
evidence for that conversation, not human acceptance.
When the user reviews the draft away from the terminal, the review surface is a Claude Doc made with the
Claude Docs connector, and the professor comments there. A Python CLI cannot reach the doc: the agent records
an export through the connector and doc-marks maps it. Once the user says the review is in, per tab: list
tabs with read(ref={"object":"project","id":<doc id>}); query(object="utterance", container={"kind":"project","id":<doc id>}, payload={"under":{"object":"node","id":<tab body node id>}})
gives the rows; for every thread root (a create row whose payload.value.parent.object is "node") call
read(ref={"object":"utterance","id":<root id>}, container=...) and keep its .anchor. Write
{"tool": "claude-docs", "doc": <doc URL or id>, "tab": <tab name>, "rows": [the query rows, as returned], "anchors": {<root id>: <the read anchor, as returned>}},
rows and anchors verbatim, one export per tab. Save doc-marks --claude-docs EXPORT.json to
<doc> review <YYYYMMDD><letter>.json, a new file per round. review-ledger ledger <every round's file, oldest first> gives each thread the id <file stem>#<utterance id>; the fixes go through this workflow with one
outcome per id, and review-ledger verify --outcomes <file> refuses a missing one. A resolved thread still
comes through, marked resolved; replies ride on their thread; a resolve row is never a mark.
The Word file comes from the genre's builder, never a bare pandoc. Genre expert (a served
expert report: page-1 caption, numbered paragraphs, Bluebook short forms):
uv run python3 ${CLAUDE_PLUGIN_ROOT}/skills/expert-report-docx/scripts/build_docx.py <proj> --pdf.
Domain legal: the law-review-docx skill.
| Situation | Wrong move | Right move |
|---|---|---|
| Getting CLARIFY answers into the bench | ask the user to retype the interview, or seed an up-front source pile | write_db them as intent and srcmeta.bibliography (plus the inputs, if any) — the user never re-enters what they already told you |
| Outline not yet at level 2 | dispatch the librarian for "background" | sources follow the argument: fetch per node once it exists |
| A librarian run | writes its own new .bib | append to the one srcmeta.bibliography; the compile resolves keys against that file alone |
writing_bench_compile.py exits 1 | hand-edit the bench JSON to flip nodes to accepted | that forges the user's acceptance — report the named nodes and wait for them to accept in the bench |
| A drafter needing a beat the outline lacks | add it to outlines/<Section>.md | the outline is the user's work — stop and raise it; a drafting row's writablePaths is drafts/ only in bench mode |
| Returning to the bench later in the run | publish a second bench artifact | republish the URL recorded in .planning/ACTIVE_WORKFLOW.md — a second artifact is a second, divergent outline |
| A coauthor who should see the bench | send them the URL | a db artifact is organization-internal; on a personal account a second signed-in account gets "Page not found" (verified) — export the compiled plan instead |
| Needing a source | cite what you remember | recall is not a source — dispatch librarian and make it leave a real artifact under references/ |
| The plan's location | copy work's plan into .planning/ | set plansDirectory to ./.planning so work's plan already IS the parsed one; a copy drifts from what the user approved |
| Naming the plan file | PLAN.md | the parser rejects that basename as legacy — use the slug plan mode wrote |
| Building the task table | an outline row and a draft row per section | one row per section: outline and draft are the same row's work, and splitting them doubles the fan-out this port exists to collapse |
| A section named only in prose | expect the gate to find it | a runner cannot open what it was never told about — add its row to ## Section Outputs before approval |
writing_section_index.py exits 2 | read it as a content failure | that is a usage exit: the check did not run, and an unrun check is never a pass |
| Wiring the prose gate | prose-audit.py straight into mechanicalChecks | it ends in sys.exit(worst) and would block on advisory puffery — writing_prose_gate.py is the only sanctioned path |
| Running the prose gate | add --with lxml --with pyyaml to the gate's own command | the wrapper already runs the engine under them; the gate's command line is the one quoted in references/writing-checks.md, byte for byte |
COVER/FIDELITY/TRANSITION/COUNTER | report them as PASS | that presents a judgement as a computation — MODEL-EVALUATED with the evidence read |
| A judgement that depends on the register | dispatch a built-in agent (Explore, Plan, general-purpose) | their prompts are predefined and no preloaded skill reaches them, so the register is graded from memory — dispatch a custom agent whose body you control, like writing-reviewer |
| Sections that could be drafted in parallel | fan out drafters | IMPLEMENT is sequential by design — one row per section, one shared tree, one gate |
| Project state | write a SPEC.md, STATE.md or NOTES.md | competing state makes progress ambiguous — the approved plan is the authority and work hashes it |
Something work does not obviously do | write a writing/workflow.js | ask which work parameter is missing — tasks[] + mechanicalChecks is what turned the per-section fan-out into rows and the runners into the gate |
assets/bench.html (opens in a new tab)fixtures/README.md (opens in a new tab)fixtures/clean/drafts/Conclusion (Draft).md (opens in a new tab)fixtures/clean/drafts/Introduction (Draft).md (opens in a new tab)fixtures/clean/drafts/Part I. The Gap (Draft).md (opens in a new tab)fixtures/clean/drafts/Part II. The Repair (Draft).md (opens in a new tab)fixtures/clean/outlines/Conclusion.md (opens in a new tab)fixtures/clean/outlines/Introduction.md (opens in a new tab)fixtures/clean/outlines/Part I. The Gap.md (opens in a new tab)fixtures/clean/outlines/Part II. The Repair.md (opens in a new tab)fixtures/clean/references/sources.bib (opens in a new tab)presets.json (opens in a new tab)references/economical-writing-full.md (opens in a new tab)references/elements-of-style.md (opens in a new tab)references/formatting.md (opens in a new tab)references/volokh-distilled.md (opens in a new tab)references/writing-checks.md (opens in a new tab)rules/cite-fidelity-bibkey-in-nlm.md (opens in a new tab)rules/cite-fidelity-nlm-grounding.md (opens in a new tab)rules/cite-fidelity-no-bundled.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Claude Code refuses to install this plugin
As a github or url source: Failed to clone repository: fatal: clone of '[email protected]:edwinhu/bmll-skill.git' into submodule path 'skills/bmll' failed
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
86 skills in this plugin
/afkUse when the user says '/afk', 'afk', 'going to bed', 'I'm going to sleep', 'work autonomously', 'work on this overnight', 'don't ask me questions', 'while I'm away', or 'do whatever you think is best'. NOT for questions about overnight returns, rates or anything financial; NOT for asking how the mode works./ai-anti-patternsALWAYS load before finalizing ANY written prose, and whenever text is suspected of being machine-written - "does this sound like AI", "make this sound human", "clean up the AI-isms", "did a bot write this", "check this draft before I send it", "review this for AI tells", "this reads like ChatGPT", "review this for mannered prose", "is this too writerly", "is this student paper AI-generated", or before handing back any draft, memo, email, or article you wrote. Use proactively even if the user never mentions AI writing./Other plugins' skills for the same job