metamask-docs / rules
Cursor rule865 starsChanged 16 days agoApache-2.0View on GitHub
Editorial voice and tone rules aligned with the Microsoft Writing Style Guide and Consensys documentation standards.
- Reads credentials
We split this editorial-voice.mdc into the rules it gives an agent
20 rules. About 0 are common, 18 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈18
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 9
Follow the Microsoft Writing Style Guide and the Consensys documentation style guide.
- Distinctive: line 15
Use active voice and present tense.
- Distinctive: line 16
Write in second person. Address the reader as "you."
- Distinctive: line 17
Use contractions naturally ("it's," "don't").
- Distinctive: line 25
Use short, simple sentences.
- Distinctive: line 27
Write for developers who want to accomplish a task or learn a skill, not for marketing purposes.
- Distinctive: line 32
Start sentences with a verb when possible.
- Distinctive: line 33
Use the Oxford (serial) comma in lists of three or more items (for example, "Android, iOS, and Windows").
- Distinctive: line 35
Do not start sentences with "So," "Basically," or "Actually."
- Distinctive: line 40
Keep items short enough that the reader can see two or three at a glance.
- Distinctive: line 47
Do not use em dashes (—) to set off extra information.
- Distinctive: line 48
Use only one space after periods, question marks, and colons.
- Distinctive: line 49
Use sentence case for all headings and titles.
- Distinctive: line 50
Do not end headings, subheadings, or UI titles with periods.
- Distinctive: line 51
Use backticks for inline code, file names, and URLs referenced in prose.
- Very specific: line 60
Write code samples that are readable, can be copied and pasted, and work as expected.
- Very specific: line 62
Use angle-bracket placeholders for user-supplied values (for example, <YOUR_API_KEY>).
- Distinctive: line 66
No marketing language, superlatives, or promotional tone ("best-in-class," "powerful," "seamless").
- Distinctive: line 67
No slang, figures of speech, or culturally specific idioms.
- Distinctive: line 69
No jargon without definition.
≈ “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.
Files
---
description: Editorial voice and tone rules aligned with the Microsoft Writing Style Guide and Consensys documentation standards.
globs: **/*.md,**/*.mdx
alwaysApply: false
---
# Editorial voice
Follow the [Microsoft Writing Style Guide](https://learn.microsoft.com/en-us/style-guide/welcome/)
and the [Consensys documentation style guide](https://docs-template.consensys.net/contribute/style-guide).
The rules below are the most actionable subset for AI-assisted editing.
## Voice and tone
- Use active voice and present tense.
- Write in second person. Address the reader as "you."
- Use contractions naturally ("it's," "don't"). Be informal but not sloppy.
- Refer to the reader's application as "your dapp" (not "the dapp" or "your application").
- Refer to the reader as "you" (not "the developer," "the user," or "users").
- Dapp developers (our readers) in turn have users. It's ok to use "users" in that context.
## Clarity
- Get to the point in the first sentence of every section. Does it answer "what," "why," and "when"?
- Use short, simple sentences. Remove nonessential or redundant words.
- Break up three or more paragraphs with subheadings, lists, tables, code samples, or admonitions.
- Write for developers who want to accomplish a task or learn a skill, not for marketing purposes.
## Sentence construction
- Lead with what's most important. Front-load keywords for scanning.
- Start sentences with a verb when possible. Edit out "you can" and "there is/are" phrasing.
- Use the Oxford (serial) comma in lists of three or more items (for example, "Android, iOS, and
Windows").
- Do not start sentences with "So," "Basically," or "Actually."
## Lists
- Include at least two items but, if possible, no more than seven.
- Keep items short enough that the reader can see two or three at a glance. A couple of short
paragraphs per item is acceptable, but don't exceed that length often.
- Make all items consistent in structure (for example, each item is a noun or a phrase that starts
with a verb).
## Punctuation and formatting
- Do not use em dashes (—) to set off extra information. Use commas, parentheses, semicolons, or rephrase the sentence.
- Use only one space after periods, question marks, and colons.
- Use sentence case for all headings and titles. Never use title case.
- Do not end headings, subheadings, or UI titles with periods.
- Use backticks for inline code, file names, and URLs referenced in prose.
- In general, do not use bold to emphasize words in a paragraph. Use bold sparingly:
- For UI element names (buttons, menu items, field labels).
- For emphasis in exceptional cases such as critical security warnings when an admonition is not enough.
## Developer content
- List prerequisites before the first step. Suggest good practices (for example, "secure private
keys," "protect RPC endpoints in production").
- Write code samples that are readable, can be copied and pasted, and work as expected. Do not
include shell prompts (for example, `user@host $`) in code blocks.
- Use angle-bracket placeholders for user-supplied values (for example, `<YOUR_API_KEY>`).
## What to avoid
- No marketing language, superlatives, or promotional tone ("best-in-class," "powerful," "seamless").
- No slang, figures of speech, or culturally specific idioms.
- No run-on sentences.
- No jargon without definition. If a term must be used, define it on first use or link to a
glossary entry.
Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.
Of the Cursor rule files we read, the 3,978 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository15 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .cursor/rules/content-types.mdcCursor rule
- .cursor/rules/contributor-workflow.mdcCursor rule
- .cursor/rules/markdown-formatting.mdcCursor rule
- .cursor/rules/product-agent-wallet.mdcCursor rule
- .cursor/rules/product-embedded-wallets.mdcCursor rule
- .cursor/rules/product-infura.mdcCursor rule
- .cursor/rules/product-metamask-connect.mdcCursor rule
- .cursor/rules/product-smart-accounts-kit.mdcCursor rule
- .cursor/rules/product-snaps.mdcCursor rule
- .cursor/rules/terminology.mdcCursor rule
- .cursor/rules/vercel-redirects.mdcCursor rule
- static/llms.txtllms.txt
- author-pageSkill
- style-reviewSkill
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.

