Reads the manuscript and notebooks to generate a structured abstract. Use when writing or updating the abstract.
Read the manuscript and generate a structured abstract.
$ARGUMENTS — optional target word count (default: 150 words)Parse the target word count from arguments (default 150 if not specified).
Read index.qmd in full:
Read the registered notebooks to extract key quantitative findings:
Draft a structured abstract with these components:
Verify the word count is within ±10% of the target. Adjust if needed.
Present the draft to the user for review.
On approval, update the abstract: field in the YAML front matter of index.qmd:
abstract: |
<drafted abstract text>
index.qmd has only [FILL:] placeholders in the body sections, inform the user that the manuscript needs more content before an abstract can be generated.[FILL:] placeholder), show it and ask whether to replace or refine it.