agentleFS
JustineDevsJustineDevs/Collection/.cursor/rules/rules.mdc

Collection / rules

Cursor rule1 starsChanged 9 months agoMITView on GitHub

Clean Code Implementation and Project Management Best Practices

The file

Show its rules and text

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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈13

    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:

    Use descriptive, intention-revealing names for variables, functions, classes, etc.

    line 13
  2. Distinctive:

    Avoid vague or misleading names to improve readability and maintainability.

    line 14
  3. Distinctive:

    Write code that clearly expresses intent to minimize comments.

    line 16
  4. Distinctive:

    Use modern language features like async/await for better async operations management.

    line 20
  5. Distinctive:

    Use code linting and formatting tools (ESLint, Prettier) automatically.

    line 21
  6. Distinctive:

    Write unit tests to ensure correctness and ease future refactoring.

    line 22
  7. Distinctive:

    Avoid duplications by abstracting repeated logic into reusable functions/classes.

    line 23
  8. Distinctive:

    Avoid Emoji on UI and Codebase

    line 26
  9. Distinctive:

    Always Professional UI Layout Positioning, Font, Spacing, and more releants

    line 27
  10. Distinctive:

    Use project management tools for task, version, and documentation tracking.

    line 33
  11. Distinctive:

    Use code reviews with multiple reviewers and integrate automated checks.

    line 36
  12. Distinctive:

    Use effective communication tools (Slack, Teams) for streamlined interactions.

    line 40
  13. Distinctive:

    Keep audit trails with reasons and author for changes and enforce access controls.

    line 42

≈ “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
rules.mdc
---
description: Clean Code Implementation and Project Management Best Practices
globs:
  - "**/*.ts"
  - "**/*.js"
  - "**/*.tsx"
  - "**/*.jsx"
alwaysApply: true
---

# Clean Code Implementation Techniques

- Use descriptive, intention-revealing names for variables, functions, classes, etc.
- Avoid vague or misleading names to improve readability and maintainability.
- Each function or module should have one clear purpose, following Single Responsibility Principle (SRP).
- Write code that clearly expresses intent to minimize comments; comment "why", not "what".
- Replace magic numbers or strings with named constants for clarity.
- Organize code into layers or modules (routes, controllers, services, models).
- Implement centralized and consistent error handling.
- Use modern language features like async/await for better async operations management.
- Use code linting and formatting tools (ESLint, Prettier) automatically.
- Write unit tests to ensure correctness and ease future refactoring.
- Avoid duplications by abstracting repeated logic into reusable functions/classes.
- Enforce coding standards using linters and pre-commit hooks.
- Regularly refactor code for simplicity and reduced technical debt.
- Avoid Emoji on UI and Codebase
- Always Professional UI Layout Positioning, Font, Spacing, and more releants

# Project Management and Collaboration

- Define clear project scope, objectives, deliverables, deadlines, and constraints.
- Assign clear roles and responsibilities for team members.
- Use project management tools for task, version, and documentation tracking.
- Practice regular communication, standups, reviews, and retrospectives.
- Design APIs/modules to be idempotent and implement caching/memoization.
- Use code reviews with multiple reviewers and integrate automated checks.
- Employ branching strategies like GitFlow and commit with descriptive messages.
- Maintain detailed project documentation, including API docs and architecture decisions.
- Automate repetitive tasks such as builds, deployments, and code quality checks.
- Use effective communication tools (Slack, Teams) for streamlined interactions.
- Share reusable code snippets consistently.
- Keep audit trails with reasons and author for changes and enforce access controls.
- Adapt conflict resolution styles and encourage collaborative problem-solving.

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.