Awesome-Agent-Skills-for-Empirical-Research typst-paper
Typst academic paper assistant for existing `.typ` paper projects in English or Chinese. Use this skill whenever the user wants to compile, audit, or improve a Typst paper, including format checks, bibliography validation for BibTeX or Hayagriva, grammar/sentence/logic review, expression polishing, translation, title optimization, pseudocode review, algorithm block cleanup, de-AI editing, experiment-section review, table structure validation, three-line table generation, abstract structure diagnosis, or journal adaptation. Trigger even when the user only mentions one Typst file, one bibliography issue, one pseudocode block, one section rewrite, "three-line table", "check abstract", or "reformat for another journal". Also trigger when the user mentions ".typ files", "typst compile error", "typst export", "typst bibliography", `algorithm-figure`, `lovelace`, or `algorithmic` even without saying the word "Typst" explicitly.
git clone https://github.com/brycewang-stanford/Awesome-Agent-Skills-for-Empirical-Research
T=$(mktemp -d) && git clone --depth=1 https://github.com/brycewang-stanford/Awesome-Agent-Skills-for-Empirical-Research "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/35-bahayonghang-academic-writing-skills/skills/typst-paper" ~/.claude/skills/brycewang-stanford-awesome-agent-skills-for-empirical-research-typst-paper && rm -rf "$T"
skills/35-bahayonghang-academic-writing-skills/skills/typst-paper/SKILL.mdTypst Academic Paper Assistant
Use this skill for targeted work on an existing Typst paper project. Route requests to the smallest useful module and keep outputs compatible with Typst source review.
Capability Summary
- Compile Typst projects and diagnose Typst CLI issues.
- Audit format, bibliography, grammar, sentence length, argument logic, expression quality, and AI traces.
- Review IEEE-like pseudocode blocks for
,algorithmic
,algorithm-figure
, caption handling, and comment length.lovelace - Support both BibTeX and Hayagriva bibliography files.
- Improve titles, translation, and experiment-section clarity for Typst papers.
Triggering
Use this skill when the user has an existing
.typ paper project and wants help with:
- Typst compilation or export issues
- format or venue compliance
- bibliography validation for BibTeX or Hayagriva
- grammar, sentence, logic, or expression review
- translation or bilingual polishing
- title optimization
- pseudocode and algorithm-block review
- de-AI editing
- experiment-section review
Do Not Use
Do not use this skill for:
- LaTeX-first conference or thesis projects
- DOCX/PDF-only editing without Typst source
- thesis template detection or GB/T 7714 thesis workflows
- from-scratch paper planning or literature research
- multi-perspective review, scoring, or submission gate decisions (use
)paper-audit - standalone pseudocode drafting without a paper context
Module Router
| Module | Use when | Primary command | Read next |
|---|---|---|---|
| Typst build, export, font, or watch issues | | |
| Venue/layout review for a Typst paper | | |
| BibTeX or Hayagriva validation | | |
| Grammar cleanup on Typst prose | | |
| Long or dense sentence diagnostics | | |
| Argument flow, introduction funnel, cross-section closure, and abstract/conclusion alignment review | | |
| Tone and expression polishing | | |
| Chinese/English academic translation in Typst context | | |
| Generate, compare, or optimize Typst paper titles | | |
| Review / / output for IEEE-like safety, captions, and comment length | | |
| Reduce English or Chinese AI-writing traces while preserving Typst syntax | | |
| Inspect experiment-section clarity, discussion layering, and reporting quality | | |
| Table structure validation, three-line table generation | | |
| Abstract five-element structure diagnosis and word count validation | | |
| Journal adaptation: reformat paper for a different venue | (LLM-driven workflow) | references/modules/ADAPT.md |
Required Inputs
or the Typst entry file.main.typ- Optional
for targeted analysis.--section SECTION - Optional bibliography path when the request targets references.
- Optional venue context when the user cares about IEEE, ACM, Springer, or similar expectations.
If arguments are missing, ask only for the Typst entry file and the target module.
Output Contract
- Return findings in Typst diff-comment style whenever possible:
// MODULE (Line N) [Severity] [Priority]: Issue ... - Report the exact command used and the exit code when a script fails.
- Preserve
,@cite
, math blocks, and Typst macros unless the user explicitly asks for source edits.<label>
Workflow
- Parse
and select the active module.$ARGUMENTS - Read only the reference file needed for that module.
- Run the module script with
.uv run python ... - Return Typst-ready comments and next actions.
- For bibliography requests, decide BibTeX vs Hayagriva first, then run
.bibliography
Safety Boundaries
- Never invent citations, labels, or experimental claims.
- Never rewrite Typst references, labels, or math content by default.
- Keep compile diagnostics separate from prose rewrites so the user can validate each step.
Reference Map
: Typst syntax reminders and pitfalls.references/TYPST_SYNTAX.md
: paper-writing style baseline.references/STYLE_GUIDE.md
: citation verification workflow.references/CITATION_VERIFICATION.md
: module-specific Typst commands and choices.references/modules/
: IEEE-like defaults for Typst pseudocode.references/modules/PSEUDOCODE.md
Read only the file that matches the active module.
Example Requests
- “Compile this Typst paper and tell me why the export works locally but fails in CI.”
- “Check bibliography, title, and abstract wording in my
submission.”main.typ - “Review this
block for IEEE-like caption, line-number, and comment issues.”algorithm-figure - “Review the methods section for sentence length and logic, but keep Typst labels intact.”
See
examples/ for full request-to-command walkthroughs.