willoscar/front-matter-writer
| Write the survey's front matter files (Abstract, Introduction, Related Work, Discussion, Conclusion) in paper voice, with high citation density and a single evidence-policy paragraph.
npx skills add https://github.com/WILLOSCAR/research-units-pipeline-skills --skill front-matter-writer
Purpose: produce the paper-level shell while preserving the current output contract and approval gate.
Always read:
references/overview.mdRead by task:
references/abstract_archetypes.md for sections/abstract.mdreferences/context_projection.md when adjusting how chapter briefs are projected into Introduction / Related Work contextreferences/introduction_jobs.md for Introduction body filesreferences/related_work_positioning.md for Related Work body filesreferences/discussion_conclusion_patterns.md for sections/discussion.md and sections/conclusion.mdreferences/forbidden_stems.md before revising any reader-facing prosereferences/examples_good.md and references/examples_bad.md for calibration onlyMachine-readable assets:
assets/front_matter_context.schema.jsonassets/front_matter_context_schema.json (compatibility alias for checklist-aligned naming)assets/front_matter_contract.jsonassets/front_matter_templates.jsonassets/front_matter_context_projection.jsonRequired:
DECISIONS.md with Approve C2outline/outline.ymloutline/mapping.tsvcitations/ref.bibOptional but useful:
GOAL.mdqueries.mdpapers/retrieval_report.mdpapers/core_set.csvoutline/coverage_report.mdoutline/writer_context_packs.jsonlKeep the current output contract:
sections/abstract.mdsections/S<sec_id>.md for front-matter H2 bodiessections/discussion.mdsections/conclusion.mdoutput/FRONT_MATTER_REPORT.mdoutput/FRONT_MATTER_CONTEXT.json, including the base template bank, anyselected domain overlay, and their repository-relative SHA-256 hashes
Current mode is reference-first with script compatibility:
references/assets/front_matter_contract.jsonassets/front_matter_templates.jsonscripts/run.py still owns approval checks, metadata parsing, deterministic hook selection, file emission, and context-sidecar writingThat means:
SKILL.mdUse scripts/run.py as a deterministic helper for:
assets/front_matter_contract.json + assets/front_matter_templates.jsonDo not treat the script as the main place for long-form writing guidance.
Keep these stable:
sections/abstract.md starts with ## Abstract or ## 摘要sections/S<sec_id>.md files are body-onlysections/discussion.md includes ## Discussionsections/conclusion.md includes ## Conclusionuv run python .codex/skills/front-matter-writer/scripts/run.py --workspace <workspace>references/forbidden_stems.md and references/examples_bad.md.references/related_work_positioning.md.SKILL.md again.When running this skill in compatibility mode, scripts/run.py currently reads these inputs directly:
DECISIONS.md for Approve C2outline/outline.yml to resolve Introduction / Related Work section idsoutline/mapping.tsv for front-matter citation placement contextcitations/ref.bib for citation-key scopeGOAL.md, queries.md, papers/retrieval_report.md, papers/core_set.csv, outline/coverage_report.md, and outline/writer_context_packs.jsonl as optional context sourcesuv run python .codex/skills/front-matter-writer/scripts/run.py --workspace <workspace>--workspace <dir>--unit-id <id>--inputs <path1;path2>--outputs <path1;path2>--checkpoint <C*>uv run python .codex/skills/front-matter-writer/scripts/run.py --workspace <workspace>DECISIONS.md lacks Approve C2, the script will write a checkpoint block and exit.citations/ref.bib or outline/outline.yml is missing, restore those inputs before rerunning.Take willoscar/front-matter-writer from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.