docs

docs is a cursor rule for Cursor from supermemoryai/supermemory. It costs 314 tokens per session, scanned A, original, MIT.

Rules for writing the project's documentation in MDX, a Markdown format that also supports interactive components and code examples.

In plain words
What is it for?
Use them when creating or editing documentation files that need the project's required frontmatter and components.
Why use it?
They keep documentation pages consistent in metadata, layout, warnings, expandable sections, and examples.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use them when creating or editing documentation files that need the project's required frontmatter and components.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/supermemoryai/supermemory/docs
About the project

Supermemory is a memory and context engine for AI applications that stores, updates, and retrieves information from conversations and other sources. It helps AI systems retain user facts, build profiles, search knowledge, and supply relevant context.

supermemoryai/supermemory · 31,239 stars · on GitHub · supermemory.ai

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/supermemoryai/supermemory

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 docs

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

Your own site · 80×15
<a href="https://agentmods.dev/rules/supermemoryai/supermemory/docs"><img src="https://agentmods.dev/badge/rules/supermemoryai/supermemory/docs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 314 This file is loaded in full into every session.
When invoked 314 The same file — it is already loaded in full.
Security scan A 1 finding. 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.00314 $0.00314
Opus 5.5 $0.00126 $0.00126
Sonnet 5.5 $0.00063 $0.00063
Haiku 4.5 $0.00031 $0.00031

Measured 1mo ago against content hash 81ed1a255662, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

docs scanned grade A with 1 finding 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 1mo 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl https://api.supermemory.ai/v3/endpoint \
apps/docs/.cursor/rules/docs.mdc · 85 lines

What it actually says

Documentation MDX Format

All documentation files use MDX format with a specific structure:

Frontmatter

Every documentation file must begin with frontmatter:

---
title: "Page Title"
description: "Brief description of the page content"
icon: "icon-name"  # Optional, uses Lucide icons
sidebarTitle: "Optional Sidebar Title"  # Optional
---

Example: @features/query-rewriting.mdx

Components

Use the following components to enhance documentation:

Accordion

For collapsible sections:

<Accordion title="Section Title" defaultOpen icon="sparkles">
  Content goes here...
</Accordion>

Example: @creation/supported-types.mdx

Notes and Warnings

For important information:

<Note>
  Important information goes here.
</Note>

<Warning>
  Critical warning goes here.
</Warning>

Example: @creation/adding-memories.mdx

Code Examples

For multi-language code examples:

<CodeGroup>

```bash cURL
curl https://api.supermemory.ai/v3/endpoint \
  --header 'Authorization: Bearer SUPERMEMORY_API_KEY'
await client.method({
  parameter: "value"
})
client.method(
  parameter="value"
)

Example: @essentials/authentication.mdx

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. 1mo ago First seen · 85 lines · 314 tokens per session scan A 81ed1a255662

Subscribe to this mod's changes

docs is a cursor rule published in the GitHub repository supermemoryai/supermemory (31,239 stars, last pushed today), licensed MIT. It adds 314 tokens to every session, about $0.0013 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.