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.
git clone --depth 1 https://github.com/langfuse/langfuse-docsWrote 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.
[](https://agentmods.dev/rules/langfuse/langfuse-docs/_general-rules)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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. Reusecomponents/ui/button.tsxfor primary and secondary actions.
Before committing or opening a PR
- Run
pnpm run formatif you edited any file Prettier formats (.js,.jsx,.mjs,.cjs,.ts,.tsx,.json,.css,.scss,.md,.mdx,.yaml/.yml,.html). CI runspnpm run format:checkand 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 inpublic/, lockfiles) are skipped, as are source notebooks (.ipynbincookbook/) since Prettier has no parser for them. If you only touched those, no format step is needed. - Each
.md/.mdxfile must have exactly one H1 (#) heading; CI'scheck_h1job 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_dotjob (pnpm run lint:middle-dot) rejects it.
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.
- 19d ago Changed · +1 lines · +56 tokens per session b5492d5f7dea
- 27d ago Changed · +1 lines · +35 tokens per session ac39d7921302
- 3mo ago First seen · 25 lines · 353 tokens per session scan A d1c9adddca94
_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.
_general-rules compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| _general-ruleslangfuse/langfuse-docs | Cursor rule | 258 | today | MIT | A | 444 | Cursor |
| js-sdk-genai-framework-instrumentationopenlit/openlit | Cursor rule | 3.1k | today | Apache-2.0 | A | 0 | Cursor |
| coding-agents-conventionopenlit/openlit | Cursor rule | 3.1k | today | Apache-2.0 | A | 0 | Cursor |
| coding-agents-hookopenlit/openlit | Cursor rule | 3.1k | today | Apache-2.0 | A | 0 | Cursor |
| controller-designopenlit/openlit | Cursor rule | 3.1k | today | Apache-2.0 | A | 0 | Cursor |
| pr-validationopenlit/openlit | Cursor rule | 3.1k | today | Apache-2.0 | A | 80 | Cursor |
| frontendopenlit/openlit | Cursor rule | 3.1k | today | Apache-2.0 | A | 0 | Cursor |