agentleFS
u00dxk2u00dxk2/cursor-kooi-env-docs/.cursor/rules/environment-maintenance.mdc

cursor-kooi-env-docs / rules

Cursor rule1 starsChanged 4 months agoMITView on GitHub

Instructions for keeping project environment documentation current

  • 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 4,183 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 repository2 other files it gives its agents.

The file

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

7 rules. About 0 are common, 6 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Keep .cursor/rules/project-environment.mdc accurate and up-to-date so AI assistants have current context about the development environment.

    line 10
  2. Distinctive:

    Check the "Last Updated" date in the loaded content

    line 18
  3. Distinctive:

    Update immediately when you discover:

    line 22
  4. Distinctive:

    When updating the Maintenance Log:

    line 50
  5. Distinctive:

    When updating the timestamp:

    line 55
  6. Distinctive:

    When offering to review (if stale):

    line 63
  7. Distinctive:

    Medium: - Check at start of session, update when relevant, but don't interrupt critical work.

    line 75

≈ “Common” is an estimate: at least 1 in 5 of the 6,668 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
environment-maintenance.mdc
---
title: Environment Documentation Maintenance
description: Instructions for keeping project environment documentation current
---

# Environment Documentation Maintenance Rule

## Purpose

Keep `.cursor/rules/project-environment.mdc` accurate and up-to-date so AI assistants have current context about the development environment.

**Note:** The environment documentation is now a `.mdc` rule file with `alwaysApply: true`, which means it's automatically loaded at session start. This ensures every agent has immediate access to project context.

## When to Check

**At Every Session Start (automatic):**
- Environment documentation is loaded automatically via `alwaysApply: true`
- Check the "Last Updated" date in the loaded content
- Offer to review and update if stale (>7 days = review, >14 days = urgent)

**During Development (update in real-time):**
- Update **immediately** when you discover:
  - New shell/command syntax issues
  - Changed directory paths  
  - New dependencies or services
  - Updated development workflows
  - Environment quirks or gotchas
  - Package manager changes
  - Build/test command changes

**Key principle:** Documentation should always reflect the current state of the project.

## How to Update

1. **Read the current document** to understand existing content
2. **Identify changes** needed based on:
   - Recent package.json changes
   - New environment variables
   - Modified git workflow
   - Discovered issues during the session
3. **Update the document** with:
   - New "Last Updated" date (current date)
   - New "Next Review" date (+7 days)
   - Entry in the Maintenance Log table
   - Any substantive changes needed
4. **Commit the changes** with a descriptive message

## Update Format

When updating the Maintenance Log:
```markdown
| 2025-10-04 | Added Redis configuration notes | AI Assistant |
```

When updating the timestamp:
```markdown
> **Last Updated:** 2025-10-04  
> **Next Review:** 2025-10-11
```

## Offer Format

When offering to review (if stale):
> "I noticed the project environment documentation hasn't been updated in X days. Would you like me to review and update `.cursor/rules/project-environment.mdc` to ensure it's current?"

## What NOT to Do

- ❌ Don't update the doc for trivial changes (typos in code, minor bug fixes)
- ❌ Don't nag every single session if user declines
- ❌ Don't make assumptions - ask for confirmation on major changes
- ✅ DO update proactively when you discover environment mismatches

## Priority

**Medium** - Check at start of session, update when relevant, but don't interrupt critical work.

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.