agentleFS
MoeenNehzatiMoeenNehzati/famulus/skills/latex-workshop/SKILL.md

latex-workshop

Skill4 starsChanged 4 months agoMITView on GitHub

Use when compiling or troubleshooting a LaTeX document inside a VS Code project whose build is governed by LaTeX Workshop. Do not use for LaTeX compilation outside a VS Code project.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. About 0 are common, 10 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Do not assume that outputs belong beside the source file, that latexmk is the intended tool, or that _build is the correct outdir unless …

    line 19
  2. Distinctive:

    Check workspace-level config first:

    line 26
  3. Distinctive:

    Look for relevant LaTeX Workshop settings, especially:

    line 29
  4. Distinctive:

    If no workspace-level override exists, check user-level VS Code settings:

    line 33
  5. Very specific:

    If the outdir contains %DIR%, resolve it relative to the directory of the target .tex file.

    line 38
  6. Distinctive:

    Prefer the configured recipe/tool behavior when it is readable from settings.

    line 42
  7. Very specific:

    If no recipe/tool information is available, use the effective outdir setting and a conservative latexmk fallback.

    line 43
  8. Distinctive:

    If there is a repo script or Makefile that clearly matches the configured LaTeX Workshop workflow, it is fine to use that instead.

    line 45
  9. Distinctive:

    Read artifacts from the effective output location.

    line 58
  10. Distinctive:

    If an earlier compile was run in the wrong location, say so plainly and switch to the configured location for later runs.

    line 62
  11. Distinctive:

    If fallback behavior was used because LaTeX Workshop settings were incomplete, say exactly what was missing.

    line 68
  12. Distinctive:

    Treat user mentions of VS Code or LaTeX Workshop as a signal to inspect these settings before compiling.

    line 87
  13. Distinctive:

    Prefer matching LaTeX Workshop behavior over ad hoc shell habits.

    line 89

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md
<!-- BEGIN BLUEPRINT INTERFACES -->

Generated from blueprint.yaml. Do not edit this block by hand.

Used Interfaces: none

<!-- END BLUEPRINT INTERFACES -->

Skill: latex-workshop

Goal

Behave the way VS Code LaTeX Workshop is configured to behave for the target LaTeX document.

Do not assume that outputs belong beside the source file, that latexmk is the intended tool, or that _build is the correct outdir unless the effective LaTeX Workshop configuration implies that.

Workflow

  1. Resolve the effective LaTeX Workshop configuration.
  • Check workspace-level config first:
    • .vscode/settings.json
    • any *.code-workspace file in the repo
  • Look for relevant LaTeX Workshop settings, especially:
    • latex-workshop.latex.outDir
    • latex-workshop.latex.recipes
    • latex-workshop.latex.tools
  • If no workspace-level override exists, check user-level VS Code settings:
    • Linux: ~/.config/Code/User/settings.json
    • macOS: ~/Library/Application Support/Code/User/settings.json
    • Windows: %APPDATA%\\Code\\User\\settings.json
  • Workspace-level config overrides user-level config.
  • If the outdir contains %DIR%, resolve it relative to the directory of the target .tex file.
  1. Reconstruct the LaTeX Workshop build behavior.
  • Prefer the configured recipe/tool behavior when it is readable from settings.
  • If no recipe/tool information is available, use the effective outdir setting and a conservative latexmk fallback.
  • If there is a repo script or Makefile that clearly matches the configured LaTeX Workshop workflow, it is fine to use that instead.
  1. Compile with the effective behavior.
  • Typical fallback when an outdir is configured:
latexmk -pdf -outdir="<resolved-outdir>" -interaction=nonstopmode -halt-on-error "<file>.tex"
  • Typical fallback when no outdir is configured:
latexmk -pdf -interaction=nonstopmode -halt-on-error "<file>.tex"
  1. Read artifacts from the effective output location.
  • Inspect logs, PDFs, and bibliography artifacts in the resolved output directory, not next to the source file unless the effective config implies that.
  • If an earlier compile was run in the wrong location, say so plainly and switch to the configured location for later runs.
  1. Report the source of truth.
  • State whether the effective behavior came from workspace config, user config, or a fallback.
  • If fallback behavior was used because LaTeX Workshop settings were incomplete, say exactly what was missing.

Retrieval Commands

  • Workspace-level search:
rg -n 'latex-workshop\\.latex\\.(outDir|recipes|tools)' .vscode *.code-workspace
  • User-level search on Linux:
rg -n 'latex-workshop\\.latex\\.(outDir|recipes|tools)' ~/.config/Code/User/settings.json

Notes

  • There is usually no direct terminal command that means "invoke LaTeX Workshop itself." In practice, use the discovered LaTeX Workshop settings to reconstruct the intended build behavior.
  • Treat user mentions of VS Code or LaTeX Workshop as a signal to inspect these settings before compiling.
  • Prefer matching LaTeX Workshop behavior over ad hoc shell habits.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.