DSH Plugins Marketplace

DSH Plugins

Plugins

/

Tools & Capabilities

/

dsh-latex-guard

F

dsh-latex-guard

Manifest valid

LaTeX and BibTeX guardrails for DeepSeek Harness: compile checks with automatic xelatex/lualatex detection, BibTeX entry deduplication and field filling from Crossref, and \cite key audits against the

hasBundlePatch

dsh-latex-guard

npm version npm downloads GitHub stars license

LaTeX compile check and BibTeX lint/fill/audit tools for DeepSeek Harness and any agent.

Features

  • check — compile a LaTeX project with latexmk and return a structured report of errors, warnings and undefined citations
  • bib-lint — dedupe entry keys, check required fields per entry type, canonicalize formatting
  • bib-fill — fill missing entry fields from Crossref by DOI or title (never overwrites existing values)
  • cite-audit — compare citation keys in .tex files against a .bib file: cited-but-missing and never-cited entries. Recognized commands: \cite, \citep, \citet, \parencite, \textcite, and the biblatex commands \autocite, \footcite, \fullcite, \nocite (a \nocite key counts as cited).

All commands return human-readable output by default and structured JSON with --json. Exit codes: 0 success, 1 business error, 2 usage error. A check that compiles but reports status: "failed" also exits 1; a skipped check (latexmk unavailable) exits 0, since graceful degradation is not an error.

Usage

1. As a dsh plugin

dsh plugin add dsh-latex-guard

Registers four agent tools: latex_check, bib_lint, bib_fill, cite_audit.

2. As a standalone CLI

npx dsh-latex-guard check <dir> <entry.tex> [--engine <name>] [--json]
npx dsh-latex-guard bib-lint <file.bib> [--write]
npx dsh-latex-guard bib-fill <file.bib> [--write]
npx dsh-latex-guard cite-audit <file.bib> <tex...>

--write modifies the bib in place — confirm before using it. As a safety net, both write paths refuse to write when the bib cannot be fully parsed (e.g. an entry missing its closing brace), instead of silently dropping the unparseable tail.

check --engine <name> selects the latexmk engine: auto (default), pdflatex, xelatex or lualatex. In auto mode the engine is detected from the entry tex (and a local \documentclass file): a % !TeX program = ... magic comment, \RequireXeTeX, xeCJK or {ctex select xelatex, \RequireLuaTeX selects lualatex, otherwise pdflatex. The report's engine field records the engine actually used; when a compile fails without any parseable error line, the report also carries a logTail with the last lines of the latexmk log.

Known limitations

  • cite-audit counts \cite keys inside commented-out (% ...) lines as real citations.
  • A passed check report may still carry citation warnings emitted by latexmk's intermediate passes; only the final pass reflects the true citation state.

3. As an agent skill

The skill/SKILL.md bundled in this package teaches any SKILL.md-compatible agent how to drive the CLI.

latexmk dependency

check requires a TeX installation providing latexmk on PATH (e.g. TeX Live or MiKTeX). When latexmk is not found, check degrades gracefully: it returns a report with skipped: true instead of failing, so the other three commands (pure BibTeX/text processing, no TeX needed) remain fully usable.

bib-fill is the only command that needs network access (Crossref API, 10s timeout, one retry).

License

MIT

Compatibility

DSH 0.2.2-alpha.2: failedDSH 0.1.6-alpha.2: failedDSH 0.1.7-alpha.2: failed

Versions

Latest versionPublishedSize
0.1.0——
0.1.1——
0.1.2——
0.1.3——

Comments

Loading…

Similar plugins

dsh-research-writing

by Flan246

Research writing bundle for DeepSeek Harness: literature search/citation + LaTeX/BibTeX guard in one install.

Manifest valid

★ 0

MIT

Sep 9, 2026

dsh plugin --profile web add dsh-research-writing

by helibeiqi

Read-only Excel analysis toolkit for dsh (DeepSeek Harness). Streaming xlsx reader (yauzl + sax), describe / filter / pivot tools, big-file safe.

Tools & CapabilitiesManifest valid

★ 0

MIT

TypeScript

Aug 28, 2026

dsh plugin --profile web add @helibeiqi/dsh-excel-kit

by STARDUSTLC666

Citation tools for agents: exact DOI lookup, Crossref bibliographic search, GB/T 7714 / APA / MLA / Chicago formatting, BibTeX generation, bounded-concurrency DOI validation and health self-check.

Tools & CapabilitiesDevelopment & InfrastructureManifest valid

★ 5

↓ 984/wk

MIT

JavaScript

Oct 29, 2026

dsh plugin --profile web add dsh-cite

by LKRCharon

Native literature search, bibliographic verification, BibTeX, and session snapshots for DeepSeek Harness — powered by Field Current.

Manifest valid

★ 0

AGPL-3.0

TypeScript

Aug 14, 2026

dsh plugin --profile web add dsh-research-library

by zhangjiabo522

DeepSeek Harness 文档工具插件:read/create/edit PDF/DOCX/XLSX/PPTX/CSV/Markdown(read_document、create_document、edit_document)

Manifest valid

★ 0

MIT

TypeScript

Aug 15, 2026

dsh plugin --profile web add @deepseek-ai/dsh-tool-doc

by Yu-tao-Li

DeepSeek Harness 参考文献真实性检查器 (dsh-reference-checker) — refcheck_check 工具:逐条核对论文文献(PDF/BibTeX/tex/文本)于 Crossref / OpenAlex / arXiv,给出 found/partial/not_found/error 判定与按输入样式的更正版引用 | Reference verificatio

Tools & CapabilitiesManifest valid

★ 4

↓ 466/wk

MIT

JavaScript

Aug 19, 2026

dsh plugin --profile web add dsh-reference-checker