agentleFS
permitiopermitio/permit-fastmcp/.cursor/rules/basic.mdc

permit-fastmcp / rules

Cursor rule17 starsChanged 17 months agoApache-2.0View on GitHub

  • Installs packages
  • 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,263 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 repositoryOne other file it gives its agents.

The file

Show its rules and text

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

18 rules. About 0 are common, 14 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈14

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Follow PEP8 for code style and formatting.

    line 9
  2. Distinctive:

    Use type hints and docstrings for all public functions and classes.

    line 10
  3. Distinctive:

    Prefer async/await for I/O-bound operations.

    line 11
  4. Distinctive:

    Use logging instead of print statements.

    line 12
  5. Distinctive:

    Keep functions small and focused.

    line 14
  6. Distinctive:

    Use environment variables or config files for secrets and settings.

    line 15
  7. Distinctive:

    Write tests for new features and bug fixes.

    line 16
  8. Distinctive:

    When a soild fix - apply it without asking

    line 19
  9. Very specific:

    Use uv for installing, updating, and publishing packages:

    line 22
  10. Very specific:

    Add a dependency: uv pip install <package>

    line 24
  11. Very specific:

    Keep requirements.txt, pyproject.toml, and uv.lock in sync.

    line 27
  12. Very specific:

    Update llms.txt with any new usage patterns, configuration, or developer instructions.

    line 30
  13. Distinctive:

    Update README.md to reflect new features, configuration options, or breaking changes.

    line 31
  14. Distinctive:

    Add or update inline comments for complex logic.

    line 32
  15. Distinctive:

    Ensure all public APIs are documented.

    line 33
  16. Distinctive:

    Use descriptive commit messages.

    line 36
  17. Distinctive:

    Remove unused code and files.

    line 37
  18. Distinctive:

    Keep the codebase clean and organized.

    line 38

≈ “Common” is an estimate: at least 1 in 5 of the 7,111 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
basic.mdc
---
description: 
globs: 
alwaysApply: false
---
# CursorRules for permit-fastmcp

# Python Best Practices
- Follow PEP8 for code style and formatting.
- Use type hints and docstrings for all public functions and classes.
- Prefer async/await for I/O-bound operations.
- Use logging instead of print statements.
- Handle exceptions gracefully and provide helpful error messages.
- Keep functions small and focused; prefer composition over inheritance.
- Use environment variables or config files for secrets and settings.
- Write tests for new features and bug fixes.

# Attitude 
When a soild fix - apply it without asking

# Dependency Management & Publishing
- Use `uv` for installing, updating, and publishing packages:
  - Install dependencies: `uv pip install -r requirements.txt`
  - Add a dependency: `uv pip install <package>`
  - Update lockfile: `uv pip compile`
  - Publish: `uv publish`
- Keep `requirements.txt`, `pyproject.toml`, and `uv.lock` in sync.

# Documentation & Project Hygiene
- Update `llms.txt` with any new usage patterns, configuration, or developer instructions.
- Update `README.md` to reflect new features, configuration options, or breaking changes.
- Add or update inline comments for complex logic.
- Ensure all public APIs are documented.

# General
- Use descriptive commit messages.
- Remove unused code and files.
- Keep the codebase clean and organized. 

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.