sentry-go / rules
Cursor rule1.1k starsChanged 17 months agoMITView on GitHub
When creating or updating changelogs for the Sentry Go SDK, follow these rules: Before creating a changelog entry, collect all changes since the last release tag: Always base changelog entries on the complete set of commits since the last release tag to ensure no changes are missed. Use semantic versioning (e.g., 0.34.0) with this format: Include sections in this exact order (only include sections that have content): markdown ## 0.34.1 The Sentry SDK team is happy to announce the immediate…
Trending
Quiet since May.thin dataabout the whole repository
Who's talking about getsentry/sentry-go
- evalphobia/logrus_sentry“Support sentry-go?”GitHub · Jun 14, 2019 · 26 reactions
- prymitive/karma“Error: assignment to entry in nil map”GitHub · Jul 23, 2021 · 11 reactions
- getsentry/raven-go“New SDK sentry-go”GitHub · Mar 20, 2019 · 11 reactions
- superfly/flyctl“fly deploy hangs ~5-10% of the time with v0.1.52”GitHub · Jul 8, 2023 · 5 reactions
- rabesss/impartus-cli“chore(deps): consolidate dependabot updates”GitHub · May 6, 2026 · 4 reactions
The biggest 5 of 9 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 9
Talked about on GitHub (9 times).
On GitHub · 9
- Jun 14, 2019Support sentry-go? — evalphobia/logrus_sentry26 reactions · 7 comments
- Jul 23, 2021Error: assignment to entry in nil map — prymitive/karma11 reactions · 2 comments
- Mar 20, 2019New SDK sentry-go — getsentry/raven-go11 reactions
- Jul 8, 2023fly deploy hangs ~5-10% of the time with v0.1.52 — superfly/flyctlsays it tested it5 reactions · 9 comments
- May 6, 2026chore(deps): consolidate dependabot updates — rabesss/impartus-cli4 reactions · 4 comments
4 more on GitHub
- Apr 22, 2026report: v1.12.0 fails to compile against sentry-go v0.46.0 (event.Extra removed) — cockroachdb/errors4 reactions · 2 comments
- Feb 26, 2025Review — classic-terra/core3 reactions · 2 comments
- Jul 23, 2024feat: User Feedback widget/form — getsentry/sentry-cocoa3 reactions · 5 comments
- Nov 20, 2023Tracing: W3C Trace Context Support — getsentry/team-sdks3 reactions · 9 comments
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 1,533 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.
The file
We split this changelog.mdc into the rules it gives an agent
10 rules. About 0 are common, 7 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 7
When creating or updating changelogs for the Sentry Go SDK, follow these rules:
- Distinctive: line 11
Before creating a changelog entry, collect all changes since the last release tag:
- Very specific: line 29
Check if it's a merge commit from a PR: git show --stat <commit_hash>
- Distinctive: line 46
Always base changelog entries on the complete set of commits since the last release tag to ensure no changes are missed.
- Very specific: line 50
Use semantic versioning (e.g., 0.34.0) with this format:
- Very specific: line 71
Always use format: (#NUMBER)
- Distinctive: line 75
Use Go syntax highlighting: ````go
- Distinctive: line 80
Start with action verbs (Add, Fix, Remove, Update, etc.)
- Distinctive: line 83
Keep concise but informative
- Distinctive: line 88
Always provide migration examples with Before: and After: code blocks
≈ “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.
Files
--- globs: CHANGELOG.md alwaysApply: false --- # Changelog Creation Guidelines When creating or updating changelogs for the Sentry Go SDK, follow these rules: ## Gathering Changes Before creating a changelog entry, collect all changes since the last release tag: ### Find the Latest Release Tag ```bash git tag --sort=-version:refname | grep -E '^v?[0-9]+\.[0-9]+\.[0-9]+$' | head -1 ``` ### Get Commits Since Last Release ```bash # Get commit hashes and messages since last tag git log --oneline $(git describe --tags --abbrev=0)..HEAD # Get detailed commit information git log --pretty=format:"%h %s (%an)" $(git describe --tags --abbrev=0)..HEAD ``` ### Analyze Changes For each commit since the last release: 1. Check if it's a merge commit from a PR: `git show --stat <commit_hash>` 2. For PR commits, fetch the PR details to understand the full context 3. Categorize changes as Breaking Changes, Features, Deprecations, Bug Fixes, or Misc 4. Identify any commits that should be excluded (internal refactoring, test-only changes, etc.) ### Example Workflow ```bash # Check current branch and recent commits git log --oneline --since="2024-01-01" | head -10 # Get PR information for specific commits git show <commit_hash> --stat # Look at file changes to understand scope git diff --name-only <last_tag>..HEAD ``` Always base changelog entries on the complete set of commits since the last release tag to ensure no changes are missed. ## Version Structure Use semantic versioning (e.g., `0.34.0`) with this format: ```markdown ## [VERSION] The Sentry SDK team is happy to announce the immediate availability of Sentry Go SDK v[VERSION]. ``` ## Section Order Include sections in this exact order (only include sections that have content): 1. **Breaking Changes** - Changes requiring code modifications 2. **Deprecations** - Features marked for future removal 3. **Features** - New functionality and enhancements 4. **Bug Fixes** - Fixes for existing functionality 5. **Misc** - Other changes ## Formatting Rules ### Pull Request Links - Always use format: `([#NUMBER](https://github.com/getsentry/sentry-go/pull/NUMBER))` - For issues: `([#NUMBER](https://github.com/getsentry/sentry-go/issues/NUMBER))` ### Code Examples - Use Go syntax highlighting: ````go - For breaking changes, show both before and after examples - Include relevant context, not just the changed line ### Descriptions - Start with action verbs (Add, Fix, Remove, Update, etc.) - Be specific about what changed - Include component/module names when relevant - Keep concise but informative ## Section Guidelines ### Breaking Changes - Always provide migration examples with **Before:** and **After:** code blocks - Explain rationale for the change - Include timeline for removal if deprecating ### Features - Focus on user-facing functionality - Include code examples for complex features - Link to documentation when relevant ### Bug Fixes - Clearly describe what was fixed - Include component names (e.g., "Fix race condition in `Scope.GetSpan()` method") - Reference the specific issue if applicable ### Deprecations - Include migration guidance - Specify removal timeline - Provide alternative solutions ## Content Guidelines ### Include: - All user-facing changes - Breaking changes with migration guidance - New features and enhancements - Important bug fixes - Performance improvements - Security fixes - Deprecation notices ### Exclude: - Internal refactoring (unless affects performance) - Test-only changes - Documentation-only changes (unless significant) - Build system changes - CI/CD changes ## Example Structure ```markdown ## 0.34.1 The Sentry SDK team is happy to announce the immediate availability of Sentry Go SDK v0.34.1. ### Features - Allow flush to be used multiple times without issues, particularly for the batch logger ([#1051](https://github.com/getsentry/sentry-go/pull/1051)) ### Bug Fixes - Fix race condition in `Scope.GetSpan()` method by adding proper mutex locking ([#1044](https://github.com/getsentry/sentry-go/pull/1044)) - Guard transport on `Close()` to prevent panic when called multiple times ([#1044](https://github.com/getsentry/sentry-go/pull/1044)) ``` ## Quality Checklist Before publishing: - [ ] Version number follows semantic versioning - [ ] All sections in correct order - [ ] All PR/issue links working - [ ] Code examples tested and accurate - [ ] Breaking changes include migration guidance - [ ] Descriptions clear and specific - [ ] Grammar and spelling correct - [ ] No internal-only changes included ## Notes Section For significant releases, add a notes section: ```markdown _NOTE:_ Additional context, warnings, or important information about this release. ``` Use for: - Go version compatibility changes - Important upgrade considerations - Significant behavioral changes - Performance characteristics - Known limitations
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
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.

