agentleFS
OpenRaiserOpenRaiser/PaperFit/.cursor/rules/paperfit.mdc

PaperFit / rules

Cursor rule338 starsChanged 36 days agoMITView on GitHub

PaperFit project rule for LaTeX visual typesetting optimization

The file

Show its rules and text

We split this paperfit.mdc into the rules it gives an agent

14 rules. About 0 are common, 7 are distinctive, and 7 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

    Very specific

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

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

    Use PaperFit when working on a LaTeX paper that needs visual typesetting optimization.

    line 10
  2. Very specific:

    Treat PaperFit as a natural-language agent system, not a CLI-first workflow.

    line 15
  3. Very specific:

    Use the paperfit CLI, runtime, and scripts as the internal execution layer.

    line 21
  4. Very specific:

    Prefer paperfit runtime --state data/state.json run-round main.tex --template <TEMPLATE> --target-pages <N> for the main closed loop.

    line 22
  5. Very specific:

    Use paperfit render and paperfit run scripts/...

    line 23
  6. Very specific:

    Do not require the user to manually type internal PaperFit commands in the normal product path.

    line 24
  7. Distinctive:

    Prefer self-recovery in recoverable failures.

    line 26
  8. Distinctive:

    Keep user-facing explanations centered on results, visual defects, repair strategy, and residual risks.

    line 27
  9. Very specific:

    Do not use \resizebox or \scalebox as brute-force table shrinking.

    line 31
  10. Distinctive:

    Prefer full-width or full-column table layouts that preserve readability and alignment.

    line 32
  11. Distinctive:

    Do not change the template font packages or the visual font appearance of body text and tables during repair.

    line 33
  12. Distinctive:

    Treat visual results as the primary acceptance signal.

    line 35
  13. Distinctive:

    Keep semantic edits minimal and do not alter academic claims, results, or citations.

    line 36
  14. Distinctive:

    Do not silently delete figures, tables, captions, or labels to improve layout.

    line 37

≈ “Common” is an estimate: at least 1 in 5 of the 6,668 Cursor rule 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
paperfit.mdc
---
description: PaperFit project rule for LaTeX visual typesetting optimization
globs:
  - "**/*.tex"
alwaysApply: false
---

# PaperFit Rule

Use PaperFit when working on a LaTeX paper that needs visual typesetting optimization.

## Product Rules

- Work from the paper project root.
- Treat PaperFit as a natural-language agent system, not a CLI-first workflow.
- Users should describe goals directly, such as layout analysis, full repair, template migration, page-budget adjustment, or visual-only inspection.
- Automatically infer the closest PaperFit workflow from the user's request before asking them for low-level PaperFit command syntax.

## Execution Rules

- Use the `paperfit` CLI, runtime, and scripts as the internal execution layer.
- Prefer `paperfit runtime --state data/state.json run-round main.tex --template <TEMPLATE> --target-pages <N>` for the main closed loop.
- Use `paperfit render` and `paperfit run scripts/...` only for targeted debugging, staged execution, or recovery.
- Do not require the user to manually type internal PaperFit commands in the normal product path.
- During long PaperFit runs, report progress proactively instead of staying silent.
- Prefer self-recovery in recoverable failures; only ask the user to act when environment, permission, or ambiguity issues block execution.
- Keep user-facing explanations centered on results, visual defects, repair strategy, and residual risks.

## Layout Rules

- Do not use `\resizebox` or `\scalebox` as brute-force table shrinking.
- Prefer full-width or full-column table layouts that preserve readability and alignment.
- Do not change the template font packages or the visual font appearance of body text and tables during repair.
- Confirm fixes against rendered page images, not source-only inspection.
- Treat visual results as the primary acceptance signal; logs and source are supporting evidence.
- Keep semantic edits minimal and do not alter academic claims, results, or citations.
- Do not silently delete figures, tables, captions, or labels to improve layout.

## Installed Assets

- Global PaperFit skills live under `~/.cursor/skills/paperfit/`.
- This rule file is project-local and should live at `.cursor/rules/paperfit.mdc` inside the paper repository.

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.