docs

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

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/supermemoryai/supermemory/docs
Clone the repo
git clone --depth 1 https://github.com/supermemoryai/supermemory

Made for: Cursor.

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. 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.00314 $0.00314
Opus 5 $0.00157 $0.00157
Sonnet 5 $0.00063 $0.00063
Haiku 4.5 $0.00031 $0.00031

Measured yesterday against content hash 81ed1a255662, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 yesterday.

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. yesterday 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 (29,137 stars, last pushed 3d ago), licensed MIT. It adds 314 tokens to every session, about $0.0016 per session on Opus 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.