agentleFS
waynesuttonwaynesutton/opensync/.cursor/rules/changelog.mdc

opensync / rules

Cursor rule410 starsChanged 10 months agoMITView on GitHub

Changelog management for GitHub Releases automation

The file

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

12 rules. About 0 are common, 8 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    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:

    Use these standard headers under each version:

    line 28
  2. Very specific:

    Always keep an [Unreleased] section at the top for work in progress:

    line 41
  3. Distinctive:

    When ready to release:

    line 55
  4. Distinctive:

    Create a new version section with today's date

    line 57
  5. Very specific:

    Keep [Unreleased] section (can be empty)

    line 59
  6. Distinctive:

    Commit and push to main

    line 60
  7. Very specific:

    Add entries under [Unreleased] as you work

    line 108
  8. Distinctive:

    Use bullet points with clear, concise descriptions

    line 110
  9. Distinctive:

    No need to add dates until creating a release

    line 111
  10. Distinctive:

    When creating a release version, use this commit format:

    line 116
  11. Distinctive:

    When you push changelog.md changes to main:

    line 126
  12. Very specific:

    Important: Only versioned sections trigger releases.

    line 135

≈ “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
changelog.mdc
---
description: Changelog management for GitHub Releases automation
globs: changelog.md
alwaysApply: false
---

# Changelog Management for GitHub Releases

This project uses a GitHub Action that automatically creates GitHub Releases from changelog.md. Follow this format exactly.

## Format Requirements

The changelog MUST follow [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) format with these rules:

### Version Header Format

```
## [X.X.X] - YYYY-MM-DD
```

- Version number in brackets: `[1.0.0]`
- Date in ISO format: `2025-01-20`
- Hyphen between version and date
- The GitHub Action parses this exact pattern to create releases

### Section Headers

Use these standard headers under each version:

```
### Added
### Changed
### Fixed
### Removed
### Deprecated
### Security
```

### Unreleased Section

Always keep an `[Unreleased]` section at the top for work in progress:

```markdown
## [Unreleased]

### Added
- New feature being developed

## [1.0.0] - 2025-01-20
...
```

## How to Create a Release

When ready to release:

1. Create a new version section with today's date
2. Move items from `[Unreleased]` to the new version
3. Keep `[Unreleased]` section (can be empty)
4. Commit and push to main

### Before Release

```markdown
## [Unreleased]

### Added
- New feature X
- New feature Y

### Fixed
- Bug fix Z

## [0.1.0] - 2025-01-17
...
```

### After Release

```markdown
## [Unreleased]

## [1.0.0] - 2025-01-20

### Added
- New feature X
- New feature Y

### Fixed
- Bug fix Z

## [0.1.0] - 2025-01-17
...
```

## Version Number Guidelines

Use semantic versioning:

| Change Type | Version Bump | Example |
|-------------|--------------|---------|
| Breaking changes | Major | 1.0.0 -> 2.0.0 |
| New features (backwards compatible) | Minor | 1.0.0 -> 1.1.0 |
| Bug fixes only | Patch | 1.0.0 -> 1.0.1 |

## When Adding Changelog Entries

- Add entries under `[Unreleased]` as you work
- Group by category (Added, Changed, Fixed, etc.)
- Use bullet points with clear, concise descriptions
- No need to add dates until creating a release
- Include issue/PR references when relevant: `(fixes #123)`

## Commit Message for Releases

When creating a release version, use this commit format:

```
release: v1.0.0
```

This helps identify release commits in git history.

## What Happens on Push

When you push changelog.md changes to main:

1. GitHub Action detects the change
2. Parses the latest `## [X.X.X] - YYYY-MM-DD` version
3. Extracts content between that version and the next `##`
4. Creates a GitHub Release with tag `vX.X.X`
5. Creates a GitHub Discussion in the Changelog category
6. Skips both if that release already exists

**Important:** Only versioned sections trigger releases. `[Unreleased]` content is ignored until moved to a version.

## Example Entry

```markdown
## [1.2.0] - 2025-01-21

### Added
- Real-time Platform Stats leaderboard on Login page
- Discord and Support icons in footer (fixes #5)

### Fixed
- Provider display showing "unknown" for OAuth sessions (fixes #2)
- Auth session persistence on page refresh (fixes #1)

### Changed
- Removed user email from dropdown menus for cleaner UX
```

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.