agentleFS
Ackee-BlockchainAckee-Blockchain/trident/.cursor/rules/docs.mdc

trident / rules

Cursor rule405 starsChanged 12 months agoMITView on GitHub

markdown Parameters: markdown Parameters: - program - Description - accounts - Account information markdown Available options: Required fields: The following steps:

We split this docs.mdc into the rules it gives an agent

11 rules. About 0 are common, 4 are distinctive, and 7 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When user shares content for review:

    line 10
  2. Distinctive:

    When user requests updates based on examples:

    line 19
  3. Very specific:

    Use clear, descriptive titles with # (H1)

    line 28
  4. Very specific:

    Use hierarchical headings (##, ###) to organize content

    line 29
  5. Very specific:

    Use triple backticks with language specification: `rust, bash, ``toml

    line 31
  6. Very specific:

    Use admonitions for important information: !!!

    line 32
  7. Distinctive:

    Test examples before including them

    line 45
  8. Very specific:

    Use lowercase with hyphens: getting-started.md

    line 48
  9. Very specific:

    Use index.md for section landing pages

    line 49
  10. Very specific:

    MANDATORY: Every list preceded by a colon (:) MUST have an empty line between the colon and the first list item.

    line 54
  11. Distinctive:

    List Formatting: Ensure empty lines after colons before lists

    line 95

≈ “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
docs.mdc
---
globs: documentation/docs/**
alwaysApply: false
---
# Documentation Rules

## Workflow Types

### Review Workflow
When user shares content for review:

1. **Analyze** the provided content thoroughly
2. **Make changes directly** in the target files with clear explanations
3. **User can apply or revert** changes using Cursor's diff interface
4. **Explain the changes made** and reasoning behind each modification
5. **Allow selective approval** - user can accept some changes and reject others

### Update Workflow  
When user requests updates based on examples:

1. **Study the provided example** to understand patterns and structure
2. **Identify target pages** that need updates or creation
3. **Ensure consistency** across all related documentation
4. **Update existing pages** or create new ones as specified
5. **Maintain uniform formatting** and style throughout

## Essential Formatting
- Use clear, descriptive titles with `#` (H1)
- Use hierarchical headings (`##`, `###`) to organize content
- **Always include an empty line after a colon (`:`) when followed by a list** - Required for proper MkDocs rendering
- Use triple backticks with language specification: ```rust, ```bash, ```toml
- Use admonitions for important information: `!!! warning "Title"`, `!!! note "Title"`

## Writing Style
- Professional, technical tone without condescension
- Clear, concise explanations
- Concrete examples with expected output
- Minimal, focused examples - no bloat
- Fewer emojis for professional tone

## Code Examples
- Complete and runnable
- Include comments for key concepts
- Show both input and expected output when relevant
- Test examples before including them

## File Organization
- Use lowercase with hyphens: `getting-started.md`
- Use `index.md` for section landing pages
- Group related files in subdirectories

## Critical List Formatting Rule

**MANDATORY**: Every list preceded by a colon (`:`) MUST have an empty line between the colon and the first list item.

**Correct** (empty line after colon):
```markdown
**Parameters:**

- `program` - Description
- `accounts` - Account information
- `data` - Instruction data
```

**Incorrect** (no empty line):
```markdown
**Parameters:**
- `program` - Description
- `accounts` - Account information
```

**Examples of patterns requiring empty lines:**

```markdown
Available options:

- Option A
- Option B

Required fields:

- Field 1
- Field 2

The following steps:

1. Step one
2. Step two
```

## Review Process
When reviewing documentation:

1. **Grammar and Spelling**: Fix all errors immediately
2. **List Formatting**: Ensure empty lines after colons before lists
3. **Structure and Clarity**: Improve organization and readability  
4. **Consistency**: Maintain uniform style across related pages
5. **Authorization**: For review workflow, propose changes and wait for approval
6. **Implementation**: For update workflow, implement changes directly while ensuring consistency

Download now (ZIP)

  • 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.

Does it work?

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

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

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.