documentation-pages

documentation-pages is a cursor rule for Cursor from langfuse/langfuse-docs. It costs 1,151 tokens per session, scanned A, original, MIT.

A set of writing rules for creating Langfuse documentation pages, including metadata, introductions, prerequisites, and step-by-step instructions.

In plain words
What is it for?
Use it to write Langfuse help pages with YAML metadata, introductions, prerequisite information, and actionable instructions.
Why use it?
It provides a consistent page structure so documentation is easier to organize, categorize, and follow.

Cursor rule for Cursor

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

Good fit Use it to write Langfuse help pages with YAML metadata, introductions, prerequisite information, and actionable instructions.

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

README.md
[![agentmods](https://agentmods.dev/badge/rules/langfuse/langfuse-docs/documentation-pages/github.svg)](https://agentmods.dev/rules/langfuse/langfuse-docs/documentation-pages)
Your own site
<a href="https://agentmods.dev/rules/langfuse/langfuse-docs/documentation-pages"><img src="https://agentmods.dev/badge/rules/langfuse/langfuse-docs/documentation-pages/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 documentation-pages

Your own site · 80×15
<a href="https://agentmods.dev/rules/langfuse/langfuse-docs/documentation-pages"><img src="https://agentmods.dev/badge/rules/langfuse/langfuse-docs/documentation-pages.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,151 This file is loaded in full into every session.
When invoked 1,151 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.01151 $0.01151
Opus 5.5 $0.00460 $0.00460
Sonnet 5.5 $0.00230 $0.00230
Haiku 4.5 $0.00115 $0.00115

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

Security

Grade A, and why

documentation-pages 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 12d 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/documentation-pages.mdc · 79 lines

How it starts

The opening of the file, as written. The whole thing — 79 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Here's a continuation and elaboration of the guidelines for creating documentation pages for Langfuse, based on the existing documentation structure and content style observed across various files.

These guidelines do not apply to handbook pages.

Langfuse Documentation Creation Guide

General Structure

Each documentation page typically follows a structured format to ensure consistency and ease of understanding. Here’s a breakdown of the common elements:

  1. Metadata Block: At the top of each document, include YAML front matter that specifies metadata such as title, description, and category. This helps in SEO optimization and categorizing the content.

    ---
    title: Title of the Document
    description: A brief description of what the document covers.
    category: Category Name
    ---
    
  2. Introduction: Start with a brief introduction that outlines what the document will cover and why it’s important. This section sets the context for the readers.

  3. Requirements: Except in self-hosting guides (content/self-hosting/), don't add a separate prerequisites or "Before you begin" section. Put each requirement, such as a role, plan, or prior setup, in the step where the reader needs it, as an info callout at the end of that step. See "Get started pages" in AGENTS.md. Self-hosting guides may use a standalone Requirements or Prerequisites section when it lists unique setup facts the reader needs before starting, such as OS, hardware, tool versions, cluster resources, or licenses, and those facts are not restated as prose later on the page or on another user-facing page.

  4. Step-by-Step Instructions: Provide detailed, actionable steps for the users to follow. Use numbered lists for sequences that need to be followed in order.

  5. Code Snippets: Include code examples where necessary. Use syntax highlighting to improve readability. Ensure that any placeholders are clearly indicated.

    import langfuse
    
    # Replace 'your_api_key' with your actual API key
    langfuse.configure(api_key='your_api_key')
    
  6. Images and Diagrams: Use images and diagrams to explain concepts that are difficult to convey through text alone. Wrap images in a <Frame> component to maintain styling consistency. Diagrams must fit the page: scale them to the available width and switch to a stacked mobile layout when the scaled version would become unreadable. Never use horizontal "scroll to explore" for diagrams.

    <Frame className="my-10" fullWidth>
        ![Alt text for image](mdc:path/to/image.png)
    </Frame>
    
  7. Callouts: Use the <Callout> component. Use type="info" for side notes, requirements, defaults, and pointers. Reserve type="warning" for things that expose or lose data, cost money unexpectedly, or break a setup.

    <Callout type="info">This is a helpful note.</Callout>
    
  8. FAQs and Troubleshooting: Don't add an inline troubleshooting section. Write each problem as its own FAQ page in content/faq/all/ and link to it, for example with <FaqPreview>. Feature pages may end with a short ## FAQ section for optional deep-dive topics. See "Documentation pages" in AGENTS.md.

  9. Provider-specific guidance: Don't add this by default. Only write it when the reader needs something they cannot figure out from the product for a specific provider. If that guidance is short, put it at the bottom of the feature page; if it is long, use a linked FAQ page. Don't enumerate providers in the shared step-by-step guide. Push back on requests to add provider-specific setup that restates what the UI already shows.

  10. Further Resources: Provide links to related documents, external resources, or further reading to help users deepen their understanding.

Writing Style
  • Clarity and Conciseness: Use clear and concise language. Avoid jargon unless it is commonly understood in the context of the documentation.
  • Active Voice: Use active voice to make the content more engaging.
  • Second Person: Address the reader directly using second person ("you") to make the text more user-friendly.

Read the full file on GitHub · 79 lines

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. 12d ago Changed · +2 lines · +9 tokens per session 854c77141b7f
  2. 13d ago Changed · +2 lines · +168 tokens per session c93e8cc803f3
  3. 17d ago Changed · +102 tokens per session 1f22dd116449
  4. 18d ago Changed · +1 lines · +94 tokens per session 5e5432b1a2bf
  5. 25d ago Changed · +40 tokens per session 8eaf4ec1ed71
  6. 3mo ago First seen · 74 lines · 738 tokens per session scan A c8855d1a6cee

Subscribe to this mod's changes

documentation-pages is a cursor rule published in the GitHub repository langfuse/langfuse-docs (258 stars, last pushed yesterday), licensed MIT. It adds 1,151 tokens to every session, about $0.0046 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

documentation-pages compared with cursor rules from other repositories

documentation-pages next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
documentation-pageslangfuse/langfuse-docsCursor rule258yesterdayMITA1,151Cursor
js-sdk-genai-framework-instrumentationopenlit/openlitCursor rule3.1kyesterdayApache-2.0A0Cursor
coding-agents-conventionopenlit/openlitCursor rule3.1kyesterdayApache-2.0A0Cursor
coding-agents-hookopenlit/openlitCursor rule3.1kyesterdayApache-2.0A0Cursor
controller-designopenlit/openlitCursor rule3.1kyesterdayApache-2.0A0Cursor
pr-validationopenlit/openlitCursor rule3.1kyesterdayApache-2.0A80Cursor
frontendopenlit/openlitCursor rule3.1kyesterdayApache-2.0A0Cursor