agentleFS
iSerteriSerter/laravel-claude-agents/.cursor/rules/conventional-commits.mdc

laravel-claude-agents / rules

Cursor rule48 starsChanged 9 months agoMITView on GitHub

Use Conventional Commits for all commit messages

The file

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

4 rules. About 0 are common, 4 are distinctive, and 0 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.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use Conventional Commits for every commit message.

    line 8
  2. Distinctive:

    Use imperative mood: "add feature" not "added feature" or "adds feature".

    line 54
  3. Distinctive:

    No period at the end of the subject line.

    line 55
  4. Distinctive:

    When suggesting or writing commits, always use this format.

    line 57

≈ “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
conventional-commits.mdc
---
description: Use Conventional Commits for all commit messages
alwaysApply: true
---

# Conventional Commits

Use [Conventional Commits](https://www.conventionalcommits.org/) for every commit message.

## Format

```
<type>[optional scope]: <description>

[optional body]

[optional footer]
```

- **First line**: type (required), optional scope in parentheses, colon and space, short description in imperative mood (lowercase, no period).
- **Body** (optional): wrap at 72 chars; explain what and why, not how.
- **Footer** (optional): e.g. `BREAKING CHANGE:`, `Refs #123`.

## Types

| Type       | Use for |
|-----------|---------|
| `feat`    | New feature (MINOR bump) |
| `fix`     | Bug fix (PATCH bump) |
| `docs`    | Documentation only |
| `style`   | Formatting, whitespace, no code change |
| `refactor`| Code change that is not a fix or feature |
| `perf`    | Performance improvement |
| `test`    | Adding or updating tests |
| `build`   | Build system, dependencies, tooling |
| `ci`      | CI configuration |
| `chore`   | Other changes (e.g. repo maintenance) |
| `revert`  | Revert a previous commit |

## Examples

```text
feat(api): add pagination to skills list
fix(auth): resolve token expiry race condition
docs: update README installation steps
chore(deps): bump composer dependencies
feat(parser)!: drop support for PHP 7.4

BREAKING CHANGE: PHP 8.0+ is now required.
```

## Rules

- Use imperative mood: "add feature" not "added feature" or "adds feature".
- No period at the end of the subject line.
- For breaking changes, use `!` after type/scope and/or a `BREAKING CHANGE:` footer.
- When suggesting or writing commits, always use this format.

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.