Build and fix SKILL.md skillA

Build and fix from oleafly/oleafly is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add oleafly/oleafly/Build and fix@v1.1.0

Pins v1.1.0 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
oleafly/oleafly
Path
src-tauri/resources/skills/oleafly-latex-build/SKILL.md
Versions recorded
3
Latest version
v1.1.0, committed Oct 3, 2026
First version recorded
Sep 5, 2026
Size
8,749 bytes
Repository stars
258
License
AGPL-3.0

Drive Oleafly's compile, diagnose, fix loop until the document builds clean. Use when a compile fails, when the log shows undefined control sequence, missing package or file not found, missing $ inserted, runaway argument, undefined citation or reference, a font that will not load, overfull hbox warnings, a bibliography that will not resolve, a Typst error, or when the user says it will not compile, the PDF is stale, or asks why the build is different on another machine.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Build and fix

A compile failure is a lookup, not a puzzle. Read the first error, name its class, apply the smallest edit that fixes that class, compile again. Repeat until `compile` returns `success: true` with an empty `errors` list.

## 1. Know the engine before touching anything

`read_file` on `project.json`. The `engine` value decides almost everything below. In a Typst project, `typst.version` in the same file is the Typst version the project pins.

| `engine` | What runs | Notes |
|---|---|---|
| `xetex` | Bundled Tectonic sidecar, XeTeX engine | The default. Fetches packages from a pinned TeX Live bundle. `fontspec` works. |
| `latexmk` | The user's system TeX (MacTeX, TeX Live, MiKTeX, TinyTeX) | The underlying engine is pdfLaTeX unless a `% !TeX program =` line, or fontspec / polyglossia / unicode-math, forces XeLaTeX or LuaLaTeX. Shell escape is off unless the user granted it for this project on this machine. |
| `typst` | The Typst CLI, at the version the project pins or the default version from Settings | No SyncTeX and no isolated compile. `preview_figure` still renders a Typst figure on its own. Exports to LaTeX, Word, HTML, Markdown and plain text. |
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add oleafly/oleafly/Build and fix@sha256:047a7bfeb988805b

The line at the top of this page pins the label v1.1.0, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_lj23ewrp7kjlmdxy.svg)](https://markdownregistry.com/a/art_lj23ewrp7kjlmdxy)

2 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 3 versions of this file, between Sep 5, 2026 and Oct 3, 2026, about one every 14 days.

versioncommittedcommitsizeaudit
v1.1.0 latest2026-10-03 8b56b75 8,749 BA view · diff
v1.0.02026-09-13 d80450b 8,023 BA view · diff
v1.0.02026-09-05 77b0587 7,939 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (8749 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

oleafly/oleafly · 258 stars · license AGPL-3.0 · pushed 2026-10-19 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_lj23ewrp7kjlmdxy
GET https://markdownregistry.com/api/v1/resolve?ref=oleafly/oleafly/Build and fix
GET https://markdownregistry.com/api/v1/blob/047a7bfeb988805be932f98a80cbee850d38a2e18c297eec89c3aa5390a85308

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from oleafly/oleafly

citation-management SKILL.md skill
oleafly/oleafly · src-tauri/resources/skills/citation-management/SKILL.md · Comprehensive citation management for academic research. Search OpenAlex, PubMed, and Google Scholar for papers…
v2.1.1 · audit A · 258 stars
experimental-design SKILL.md skill
oleafly/oleafly · src-tauri/resources/skills/experimental-design/SKILL.md · Design experiments and studies BEFORE data is collected — choosing a design, randomizing, blocking, and laying out…
v1.2 · audit A · 258 stars
exploratory-data-analysis SKILL.md skill
oleafly/oleafly · src-tauri/resources/skills/exploratory-data-analysis/SKILL.md · Perform bounded, local exploratory analysis of explicitly supported scientific files. Use for redacted CSV/TSV/JSON…
v1.2 · audit A · 258 stars
hypothesis-generation SKILL.md skill
oleafly/oleafly · src-tauri/resources/skills/hypothesis-generation/SKILL.md · Formulate evidence-bounded scientific questions, candidate hypotheses, rival explanations, causal or associational…
v2.2 · audit A · 258 stars
Import refine SKILL.md skill
oleafly/oleafly · src-tauri/resources/skills/import-refine/SKILL.md · Turn a document Oleafly imported from Word, Markdown, or PDF into a project that compiles cleanly and reads like it was…
v1.1.0 · audit A · 258 stars
literature-review SKILL.md skill
oleafly/oleafly · src-tauri/resources/skills/literature-review/SKILL.md · Conduct comprehensive, systematic literature reviews using multiple academic databases (PubMed, arXiv, bioRxiv…
v1.8 · audit C · 258 stars
Data analysis SKILL.md skill
oleafly/oleafly · src-tauri/resources/skills/oleafly-data-analysis/SKILL.md · Take data files that live in the project through to numbers, figures, and tables in the manuscript. Picks the method…
v1.0.0 · audit A · 258 stars
Figure prep SKILL.md skill
oleafly/oleafly · src-tauri/resources/skills/oleafly-figure-prep/SKILL.md · Build and place publication-quality figures in an Oleafly manuscript. Use when the user wants a TikZ or pgfplots…
v1.1.0 · audit B · 258 stars
oleafly-literature-sweep SKILL.md skill
oleafly/oleafly · src-tauri/resources/skills/oleafly-literature-sweep/SKILL.md · Turn a research question into an annotated reading list with provenance. Use when the user asks to find papers, survey…
v1.0.0 · audit A · 258 stars
Manuscript scaffold SKILL.md skill
oleafly/oleafly · src-tauri/resources/skills/oleafly-manuscript-scaffold/SKILL.md · Build a venue-shaped manuscript skeleton inside the open Oleafly project. Use when the user wants to start a paper, set…
v1.0.0 · audit A · 258 stars
oleafly-pre-submission SKILL.md skill
oleafly/oleafly · src-tauri/resources/skills/oleafly-pre-submission/SKILL.md · Run a pre-flight pass over the project before uploading to arXiv or a venue, and write a pass or fail checklist. Use…
v1.1.0 · audit A · 258 stars
oleafly-related-work SKILL.md skill
oleafly/oleafly · src-tauri/resources/skills/oleafly-related-work/SKILL.md · Draft or revise a related-work, background, or prior-art section in which every citation key already exists in the…
v1.0.0 · audit A · 258 stars

Every file in oleafly/oleafly

Browse by kind, by grade A, or by owner.