qa
Adversarial Quality Audit Workflow
Iterative critic/fixer loop for any supported document format.
Format Detection
Determine file type from extension:
.tex→ Beamer LaTeX slides.qmd→ Quarto RevealJS slides (compare vs.texbenchmark if it exists).typ→ Typst document (audit against quality standards)
Workflow
Phase 0: Pre-flight → Phase 1: Critic audit → Phase 2: Fixer → Phase 3: Re-audit → Loop until APPROVED (max 5 rounds)
Hard Gates (Non-Negotiable, Universal)
| Gate | .tex | .qmd | .typ |
|---|---|---|---|
| Overflow | No overfull hbox > 10pt | No content cut off | No content exceeds page |
| Content Quality | No undefined citations | Interactive >= static plots | All imports resolve |
| Typography | Consistent formatting | Notation fidelity | Font consistency |
Phase 0: Pre-flight
For .qmd files:
- Locate Beamer (.tex/.pdf) and Quarto (.qmd/.html) files
- Check freshness (re-render if QMD newer than HTML)
- Verify TikZ SVGs if applicable
For .typ files:
- Locate the file, check it compiles
- Detect document type (slides, CV, guide, essay, report)
For .tex files:
- Locate the file, verify it compiles
- Check for auxiliary files (.aux, .bbl)
Phase 1: Initial Audit
Launch the quality-critic agent to audit the document. Report saved to quality_reports/[FILENAME]_qa_critic_round1.md.
Phase 2: Fix Cycle
If not APPROVED, launch quality-fixer agent to apply fixes (Critical → Major → Minor), re-compile, and verify.
Phase 3: Re-Audit
Re-launch critic to verify fixes. Loop back to Phase 2 if needed.
Iteration Limits
Max 5 fix rounds. After that, escalate to user with remaining issues.
Final Report
Save to quality_reports/[FILENAME]_qa_final.md with:
- Hard gate status
- Iteration summary (rounds, issues fixed per round)
- Remaining issues (if any)
- Final verdict
Quality Gates
See typst/references/quality-gates.md for score rubric, commit thresholds, and severity definitions.
More from clearsmog/claude-skills
typst
Syntax guide and ecosystem reference for writing Typst (.typ) files. Use this skill when writing, editing, or debugging Typst documents. Covers core syntax, common errors, packages, and best practices.
11image-search
Search the web for images (photos, logos, graphics) and download them with Typst embedding code. Use when the user needs real-world images, company logos, or existing graphics for documents.
3compile
Compile any supported file type. Detects format (.typ, .qmd, .py) and runs appropriate build command.
2learn
|
2deploy
Render and deploy documents to output directory for hosting. Supports Quarto slides and Typst PDFs.
2mindmap
Generate mind map images using mind-elixir. Produces PNG or SVG files from plaintext input. Use when the user needs a mind map, concept map, or topic overview diagram.
2