_general-rules

_general-rules is a cursor rule for Cursor from langfuse/langfuse-docs. It costs 444 tokens per session, scanned A, original, MIT.

A set of project rules for developing and documenting the Langfuse website, a documentation site. It covers where content and app code live, frontend styling, formatting, and checks before commits or pull requests.

In plain words
What is it for?
It is for editing Langfuse documentation, blog posts, guides, and frontend code built with Fumadocs, Next.js App Router, Tailwind CSS, and MDX.
Why use it?
It gives contributors clear conventions to follow and helps prevent formatting or documentation-structure failures in continuous integration checks.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc). Also seen: installed under .agents/ (shared by several agents).

Good fit It is for editing Langfuse documentation, blog posts, guides, and frontend code built with Fumadocs, Next.js App Router, Tailwind CSS, and MDX.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/langfuse/langfuse-docs/_general-rules
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.

Clone the repo
git clone --depth 1 https://github.com/langfuse/langfuse-docs

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 _general-rules

README.md
[![agentmods](https://agentmods.dev/badge/rules/langfuse/langfuse-docs/_general-rules/github.svg)](https://agentmods.dev/rules/langfuse/langfuse-docs/_general-rules)
Your own site
<a href="https://agentmods.dev/rules/langfuse/langfuse-docs/_general-rules"><img src="https://agentmods.dev/badge/rules/langfuse/langfuse-docs/_general-rules/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for _general-rules

Your own site · 80×15
<a href="https://agentmods.dev/rules/langfuse/langfuse-docs/_general-rules"><img src="https://agentmods.dev/badge/rules/langfuse/langfuse-docs/_general-rules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 444 This file is loaded in full into every session.
When invoked 444 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00444 $0.00444
Opus 5.5 $0.00178 $0.00178
Sonnet 5.5 $0.00089 $0.00089
Haiku 4.5 $0.00044 $0.00044

Measured 19d ago against content hash b5492d5f7dea, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

_general-rules 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 19d 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.

.agents/cursor/rules/_general-rules.mdc · 27 lines

What it actually says

General rules

  • This is the documentation for the Langfuse website.
  • We use Fumadocs (App Router). Docs: https://www.fumadocs.dev/docs
  • Content lives in the /content folder, organized by section (docs, blog, changelog, guides, etc.).
  • App routes are in the /app folder.
  • Reusable markdown components are in the /components-mdx folder.
  • The devserver is running on http://localhost:3333.

Frontend

  • When using tailwindcss, never use explicit colors, always use the default semantic color tokens.
  • Button and link labels are sentence case. Do not force them into all caps with uppercase. Reuse components/ui/button.tsx for primary and secondary actions.

Before committing or opening a PR

  • Run pnpm run format if you edited any file Prettier formats (.js, .jsx, .mjs, .cjs, .ts, .tsx, .json, .css, .scss, .md, .mdx, .yaml/.yml, .html). CI runs pnpm run format:check and fails on a single unformatted file — this is the format check that most often fails on the first try.
  • Files in .prettierignore (content/guides/cookbook/**, content/workshop/**, generated assets in public/, lockfiles) are skipped, as are source notebooks (.ipynb in cookbook/) since Prettier has no parser for them. If you only touched those, no format step is needed.
  • Each .md/.mdx file must have exactly one H1 (# ) heading; CI's check_h1 job rejects multiples.
  • Never use the middle dot (U+00B7) as a separator in copy, UI strings, or code. Use a comma, a colon, or parentheses instead. CI's check_middle_dot job (pnpm run lint:middle-dot) rejects it.
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. 19d ago Changed · +1 lines · +56 tokens per session b5492d5f7dea
  2. 27d ago Changed · +1 lines · +35 tokens per session ac39d7921302
  3. 3mo ago First seen · 25 lines · 353 tokens per session scan A d1c9adddca94

Subscribe to this mod's changes

_general-rules is a cursor rule published in the GitHub repository langfuse/langfuse-docs (258 stars, last pushed today), licensed MIT. It adds 444 tokens to every session, about $0.0018 per session on Opus 5.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.

Related

_general-rules compared with cursor rules from other repositories

_general-rules next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
_general-ruleslangfuse/langfuse-docsCursor rule258todayMITA444Cursor
js-sdk-genai-framework-instrumentationopenlit/openlitCursor rule3.1ktodayApache-2.0A0Cursor
coding-agents-conventionopenlit/openlitCursor rule3.1ktodayApache-2.0A0Cursor
coding-agents-hookopenlit/openlitCursor rule3.1ktodayApache-2.0A0Cursor
controller-designopenlit/openlitCursor rule3.1ktodayApache-2.0A0Cursor
pr-validationopenlit/openlitCursor rule3.1ktodayApache-2.0A80Cursor
frontendopenlit/openlitCursor rule3.1ktodayApache-2.0A0Cursor