cursorrules

cursorrules is a cursor rule for Cursor from fuwenhao12/academic-ref-inserter. It costs 408 tokens per session, scanned A, original, MIT.

A set of project rules for inserting, reformatting, reordering, linking, and checking academic references in Microsoft Word documents.

In plain words
What is it for?
Use it to analyze or fix citations in a .docx research paper, change their format, reorder them, add links, and validate the result.
Why use it?
It removes repetitive citation editing and helps keep references consistent with styles such as IEEE, APA 7, or China’s GB/T 7714 standard.

Cursor rule for Cursor

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/fuwenhao12/academic-ref-inserter/cursorrules
Clone the repo
git clone --depth 1 https://github.com/fuwenhao12/academic-ref-inserter

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cursorrules

README.md
[![agentmods](https://agentmods.dev/badge/rules/fuwenhao12/academic-ref-inserter/cursorrules.svg)](https://agentmods.dev/rules/fuwenhao12/academic-ref-inserter/cursorrules)
Your own site
<a href="https://agentmods.dev/rules/fuwenhao12/academic-ref-inserter/cursorrules"><img src="https://agentmods.dev/badge/rules/fuwenhao12/academic-ref-inserter/cursorrules.svg" alt="Measured on agentmods" height="20"></a>
Per session 408 This file is loaded in full into every session.
When invoked 408 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00408 $0.00408
Opus 5 $0.00204 $0.00204
Sonnet 5 $0.00082 $0.00082
Haiku 4.5 $0.00041 $0.00041

Measured 3d ago against content hash e4dba4ceff0b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

cursorrules scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursorrules · 47 lines

What it actually says

Academic Ref Inserter — Cursor Project Rules

This project provides tools for inserting, formatting, and cross-referencing academic citations in Word (.docx) documents.

Core CLI

# Full pipeline (analyze -> reformat -> reorder -> hyperlink -> validate)
python scripts/insert_refs.py fix --input paper.docx --format gbt7714 --json

# Individual steps (all support --json for machine-readable output)
python scripts/insert_refs.py analyze   --input paper.docx --json
python scripts/insert_refs.py reformat  --input paper.docx --format ieee
python scripts/insert_refs.py reorder   --input paper.docx
python scripts/insert_refs.py hyperlink --input paper.docx
python scripts/insert_refs.py validate  --input paper.docx --format gbt7714

Supported Formats

Flag Style Region Ordering
gbt7714 GB/T 7714-2015 China Sequential [1][2]
ieee IEEE International (CS/Eng) Sequential [1][2]
apa7 APA 7th International (Social Sci) Alphabetical

Key Files

  • scripts/insert_refs.py — Main CLI (primary entry point)
  • scripts/formats/ — Citation format implementations
  • scripts/utils/docx_utils.py — Word document manipulation
  • .trae/skills/academic-ref-inserter/SKILL.md — Full documentation

Workflow for AI Agents

  1. Always run analyze --json first to understand the document state
  2. Choose format based on user's target journal
  3. Run fix --format <name> for the full pipeline
  4. Validate with validate --json
  5. Provide summary to user

Installation

pip install python-docx
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 47 lines · 408 tokens per session scan A e4dba4ceff0b

Subscribe to this mod's changes

cursorrules is a cursor rule published in the GitHub repository fuwenhao12/academic-ref-inserter (55 stars, last pushed 3mo ago), licensed MIT. It adds 408 tokens to every session, about $0.0020 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.