.cursorrules Cursor ruleA

.cursorrules from lxsssssss/pdf-translate is a Cursor rule: instructions the Cursor agent follows in that repo.

Install it, pinned
mdr add lxsssssss/pdf-translate/.cursorrules@git:20261023.053c18a

Pins git:20261023.053c18a in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 14 of 14 checks passed
Kind
Cursor rule
Repository
lxsssssss/pdf-translate
Path
.cursorrules
Versions recorded
2
Latest version
git:20261023.053c18a, committed Oct 23, 2026
First version recorded
Sep 15, 2026
Size
1,314 bytes
Repository stars
91
License
MIT

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

# Cursor Rules for PDF-Translate Skill
# High-fidelity vector PDF translation, layout preservation, and automated audit.

# Rule 1: Layout & Height Preservation (unified convention, same as SKILL.md)
- Probe the source first (PyMuPDF `page.rect`, `get_image_rects`, `get_drawings`); never guess sizes.
- Use `@page { size: <source width> <source height>; margin: 0; }`.
- Wrap each page in a `.page` container with exactly the source width/height, page margins in `padding`, and `overflow: hidden`.
- Never combine `@page` margins with a fixed `.page` height; never let flex/table heights expand across pages.

# Rule 2: Zero Hallucination Pipeline
- Always extract clause hierarchy trees and numerical metrics into a structured schema before filling templates.
- Never summarize, merge, or omit statutory sub-clauses (e.g. 2.1.1~2.1.8).
- Never fabricate non-existent numbers, dates, or workflow steps.

# Rule 3: Automated Verification
- After generating HTML, run `python scripts/render_pdf.py input.html output.pdf --strict-overflow` (exit 2 = overflow).
- Always audit using `python scripts/audit_pdf.py --src original.pdf --tgt output.pdf --compare-png compare_png/`.
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add lxsssssss/pdf-translate/.cursorrules@sha256:1767fb528fd2d3db

The line at the top of this page pins the label git:20261023.053c18a, 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_iw67vjvt45nbgo5e.svg)](https://markdownregistry.com/a/art_iw67vjvt45nbgo5e)

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

Versions

The registry has recorded 2 versions of this file, between Sep 15, 2026 and Oct 23, 2026, about one every 38 days.

versioncommittedcommitsizeaudit
git:20261023.053c18a latest2026-10-23 053c18a 1,314 BA view · diff
git:20260915.1667a722026-09-15 1667a72 1,026 BA view

Audit of the latest version

A  14 of 14 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Size between 200 bytes and 200 KB (1314 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

lxsssssss/pdf-translate · 91 stars · license MIT · pushed 2026-10-23 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_iw67vjvt45nbgo5e
GET https://markdownregistry.com/api/v1/resolve?ref=lxsssssss/pdf-translate/.cursorrules
GET https://markdownregistry.com/api/v1/blob/1767fb528fd2d3dba78345374acd5ac6dbadf612d1237666829d1693a32495d5

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: Cursor rules vs AGENTS.md · which agent file does what.

More from lxsssssss/pdf-translate

pdf-translate SKILL.md skill
lxsssssss/pdf-translate · SKILL.md · Use when translating PDF documents between languages while strictly preserving original layout, formatting, typography…
v2.4.0 · audit A · 91 stars

Every file in lxsssssss/pdf-translate

Other files named .cursorrules

.cursorrules Cursor rule
agno-agi/agno · .cursorrules
git:20260613.5cf1ed7 · audit A · 43,090 stars
.cursorrules Cursor rule
marker-inc-korea/autorag · test/fixtures/sample-project/.cursorrules
git:20261008.cd94128 · audit A · 5,373 stars
.cursorrules Cursor rule
wondelai/skills · .cursorrules
git:20260701.14a4958 · audit A · 2,640 stars
.cursorrules Cursor rule
mex-memory/mex · .mex/.tool-configs/.cursorrules · Always-loaded project anchor. Read this first. Contains project identity, non-negotiables, commands, and pointer to…
git:20260917.1d4bff8 · audit A · 1,794 stars
.cursorrules Cursor rule
mex-memory/mex · templates/.tool-configs/.cursorrules · Always-loaded project anchor. Read this first. Contains project identity, non-negotiables, commands, and pointer to…
git:20260917.1d4bff8 · audit A · 1,794 stars
.cursorrules Cursor rule
huytieu/cog-second-brain · .cursorrules
git:20261002.8be6ee9 · audit A · 1,350 stars
.cursorrules Cursor rule
borghei/claude-skills · .cursorrules
git:20261023.4fa0452 · audit A · 1,075 stars
.cursorrules Cursor rule
bitjaru/styleseed · engine/.cursorrules
git:20261013.4f9ae44 · audit A · 1,002 stars

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