agentleFS
ivangrynenkoivangrynenko/cursorrules/.cursor/rules/readme-maintenance-standards.mdc

cursorrules / rules

Cursor rule88 starsChanged 13 months agoMITView on GitHub

Standards for maintaining README.md documentation

The file

We split this readme-maintenance-standards.mdc into the rules it gives an agent

5 rules. About 0 are common, 5 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    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:

    Documentation of Changes: Document new features, bug fixes, and changes in a changelog or dedicated section.

    line 45
  2. Distinctive:

    Version Information: Keep version numbers and release notes current, linking to the changelog if applicable.

    line 48
  3. Distinctive:

    Table of Contents: Ensure the table of contents reflects the current document structure, using auto-generated if possible.

    line 49
  4. Distinctive:

    Badges: Update badges for CI/CD status, test coverage, or dependencies to reflect current project health.

    line 50
  5. Distinctive:

    Accessibility: Write with accessibility in mind, using alt text for images and semantic markdown.

    line 51

≈ “Common” is an estimate: at least 1 in 5 of the 3,030 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
readme-maintenance-standards.mdc
---
description: Standards for maintaining README.md documentation
globs: README.md, *.md
alwaysApply: false
---
# Enhanced README Maintenance Standards

Ensures that README files are consistently maintained, up-to-date, and informative.

<rule>
name: enhanced_readme_maintenance_standards
description: Enforce standards for maintaining README documentation
filters:
  - type: file_extension
    pattern: "\\.md$"
  - type: file_name
    pattern: "^README\\.md$"

actions:
  - type: enforce
    conditions:
      - pattern: "## (Available Rules|Features|Components)"
        message: "Update the 'Available Rules/Features/Components' section whenever new elements are added."

      - pattern: "\\[`[^`]+`\\]\\([^)]+\\)"
        message: "Ensure all file references in the README are properly linked and point to existing files."

      - pattern: "## (Installation|Usage|Configuration)"
        message: "Keep setup, usage, and configuration sections current with the latest project changes."

      - pattern: "## (Contributing|License)"
        message: "Ensure contributing guidelines and license information are accurate and up-to-date."

      - pattern: "\\[Version\\s*(\\d+\\.)?(\\d+\\.)?\\d+\\]"
        message: "Update version information to reflect the current state of the project."

      - pattern: "## (Changelog|Changes|Updates)"
        message: "Maintain a changelog for significant updates, fixes, and features."

  - type: suggest
    message: |
      **README Maintenance Best Practices:**
      - **Rule Listings:** Automatically update or manually check if new rules or features are reflected in the README.
      - **Installation & Configuration:** Regularly review and update installation and configuration instructions to match the latest project state.
      - **Documentation of Changes:** Document new features, bug fixes, and changes in a changelog or dedicated section.
      - **Section Hierarchy:** Maintain a logical structure with clear headings for easy navigation.
      - **Examples:** Include or update examples for new or changed functionalities.
      - **Version Information:** Keep version numbers and release notes current, linking to the changelog if applicable.
      - **Table of Contents:** Ensure the table of contents reflects the current document structure, using auto-generated if possible.
      - **Badges:** Update badges for CI/CD status, test coverage, or dependencies to reflect current project health.
      - **Accessibility:** Write with accessibility in mind, using alt text for images and semantic markdown.

  - type: validate
    conditions:
      - pattern: "^# [^\\n]+\\n\\n## "
        message: "Ensure proper markdown heading hierarchy for readability."

      - pattern: "\\|[^|]+\\|[^|]+\\|\\n\\|\\s*-+\\s*\\|"
        message: "Use consistent table formatting throughout the document."

      - pattern: "\\[(.*?)\\]\\((?!http|\\/)[^\\)]+\\)"
        message: "All local links should point to existing files or sections within the project."

      - pattern: "\\[Version\\s*(\\d+\\.)?(\\d+\\.)?\\*\\d+\\]"
        message: "Check that version placeholders are updated to actual numbers before release."

metadata:
  priority: high
  version: 1.1
</rule>

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.

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.