agentleFS
MetaMaskMetaMask/metamask-docs/.cursor/rules/product-snaps.mdc

metamask-docs / rules

Cursor rule865 starsChanged 16 days agoApache-2.0View on GitHub

Product-specific guidance for Snaps documentation, including naming, content areas, and generated-content constraints.

We split this product-snaps.mdc into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not use lowercase "snaps" or "snap" in prose (only in code identifiers or file paths).

    line 13

≈ “Common” is an estimate: at least 1 in 5 of the 6,350 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
product-snaps.mdc
---
description: Product-specific guidance for Snaps documentation, including naming, content areas, and generated-content constraints.
globs: snaps/**/*.md,snaps/**/*.mdx
alwaysApply: false
---

# Snaps

## Naming

- **Snaps** (capital S) refers to the platform or ecosystem.
- **a Snap** (capital S, singular) refers to an individual extension.
- Do not use lowercase "snaps" or "snap" in prose (only in code identifiers or file paths).

## Content areas

Snaps uses a content structure that differs slightly from other products:

| Folder          | Type                  | Description                                   |
|-----------------|-----------------------|-----------------------------------------------|
| `learn/`        | Explanation           | Conceptual content, best practices, tutorials |
| `how-to/`       | How-to                | Procedural step-by-step guides                |
| `features/`     | Feature reference     | Feature-centric documentation                 |
| `reference/`    | API reference         | Snaps API and Keyring API methods             |
| `get-started/`  | Onboarding            | First-time setup and onboarding               |

## Generated reference pages

Reference pages under `snaps/reference/snaps-api/` are **generated** from a JSON schema by the
`plugin-snaps-docs.ts` build plugin. Do not edit these files directly. To update their content,
edit the source schema or the plugin in `src/plugins/plugin-snaps-docs.ts`.

## Experimental features

The `flaskOnly` admonition keyword is available in Snaps docs for features that require MetaMask
Flask. Use it like any other admonition:

```markdown
:::flaskOnly
This feature is experimental and only available in MetaMask Flask.
:::
```

## Sidebar

The sidebar configuration is in [snaps-sidebar.js](snaps-sidebar.js).

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

Reviews can't be read right now.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.