Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add clearsmog/claude-skills --skill compilegit clone --depth 1 https://github.com/clearsmog/claude-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/clearsmog/claude-skills/compile)<a href="https://agentmods.dev/skills/clearsmog/claude-skills/compile"><img src="https://agentmods.dev/badge/skills/clearsmog/claude-skills/compile/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/clearsmog/claude-skills/compile"><img src="https://agentmods.dev/badge/skills/clearsmog/claude-skills/compile.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00027 | $0.00478 |
| Opus 5 | $0.00014 | $0.00239 |
| Sonnet 5 | $0.00005 | $0.00096 |
| Haiku 4.5 | $0.00003 | $0.00048 |
Grade A, and why
compile scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
Compile Document
Detect file format and run the appropriate build command.
Format Detection
Determine file type from extension:
.typ→ Typst document.qmd→ Quarto slides.py→ Python script
Note: For
.tex(LaTeX/Beamer), configure compilation at project level with project-specific TEXINPUTS and bibtex paths.
Compilation Commands
For .typ files (Typst):
typst compile [--root ..] FILENAME.typ
- Use
--rootif the file imports packages from a parent directory - Check exit code for compilation errors
- Typst compilation is single-pass (no multi-pass needed)
For .qmd files (Quarto):
quarto render FILENAME.qmd
- Or use project-specific deploy script if available
For .py files (Python):
uv run FILENAME.py
- Check exit code
- Verify output files were created (if applicable)
Post-Compilation Checks
-
Check for warnings:
.typ: Check stderr for warnings.qmd: Check for render warnings.py: Check for tracebacks or warnings
-
Verify output exists and has non-zero file size
-
Visual spot-check (
.typfiles only):- Render sample pages to PNG:
typst compile FILE.typ /tmp/preview-{0p}.png - For documents (>3 pages): render pages 1, middle, and last
- For presentations: render all slides
- Use
Readtool on PNGs to visually inspect for overflow, blank pages, missing figures - See
typst/references/visual-verification.mdfor full checklist
- Render sample pages to PNG:
-
Report results:
- Compilation success/failure
- Warning count
- Output file path and size
- Visual check: PASS / issues noted
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 9d ago First seen · 72 lines · 27 tokens per session scan A 71e06de82b15
compile is a skill published in the GitHub repository clearsmog/claude-skills (2 stars, last pushed 6mo ago), licensed MIT. It adds 27 tokens to every session and 478 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
replicate-runner
Use when run AI models on Replicate cloud API. Deploy image generation, video creation, audio processing, and custom models without managing infrastructure. Use when working with replicate runner.
decision-heuristics
A set of heuristics for making difficult personal decisions such as changing jobs, buying a home, moving, forming a partnership, or getting married. It is intended for major choices, not everyday decisions.
wealth-structure
A framework for thinking about wealth through ownership, responsibility, leverage, and avoiding risks that could end your progress.
acceptance
A personal decision framework for difficult situations, built around three choices: change the situation, accept it, or leave it.
happiness-skill
A Chinese-language guide to happiness based on reducing unmet wants, focusing on the present, and treating happiness as a trainable skill.
monkey-mind-meditation
A meditation and reflection guide for a busy or anxious mind. It treats recurring thoughts as something to observe and examine, while noting that acute serious mental-health problems need professional care.