agentleFS
grafanagrafana/mcp-grafana/.claude/skills/draft-release/SKILL.md

draft-release

Skill3.7k starsChanged 16 days agoApache-2.0View on GitHub

Draft a new release. Bumps version, generates CHANGELOG.md from git history, and creates a PR.

  • Commits and pushes

2 other projects use a version of this.

Trending

More talk lately.about the whole repository

Jan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 1 mentionJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 1 mentionSep 2026: 5 mentionsOct 2026: 3 mentionsNov 2026: 12 mentionsDec 2026: 0 mentions
Jan 2026Jul 2026Dec 2026
Mentions a month of the grafana/mcp-grafana repository that our weekly crawl found. There is no adoption data for this file yet.

Most recently taken up by

Who's talking about grafana/mcp-grafana

The biggest 5 of 54 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 54

Talked about on GitHub and Bluesky (54 times).

On GitHub · 50

45 more on GitHub

On Bluesky · 4

  • Other versions2 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 2

    1. obot-platform/obot★ 1.2ksame name
    2. amirhs1/ai-assisted-dev★ 1same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository3 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

12 rules. About 0 are common, 10 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    When the PR is merged, the auto-tag.yml workflow automatically creates the git tag

    line 15
  2. Very specific:

    Read the full commit message: git log <hash> -1 --format="%B"

    line 68
  3. Distinctive:

    Write a concise, human-readable description of the change (not just the commit subject).

    line 71
  4. Distinctive:

    If a commit lacks a PR number, omit the link.

    line 74
  5. Distinctive:

    Read the existing file. Insert the new version section after the header block and before any existing version sections.

    line 82
  6. Distinctive:

    Create it with the full header.

    line 86
  7. Distinctive:

    Only include sections that have entries (omit empty sections like Changed if there are no changes)

    line 128
  8. Distinctive:

    Use grafana-product:whats-new for new or improved capabilities.

    line 136
  9. Distinctive:

    Use grafana-product:whats-next for breaking changes, deprecations, removals, or disruptive behaviour changes (e.g.

    line 137
  10. Distinctive:

    If both apply, prepare separate entries.

    line 138
  11. Distinctive:

    Do not commit the drafts to the release branch.

    line 146
  12. Distinctive:

    Create a PR with:

    line 161

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill 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
SKILL.md

Draft Release

You are creating a new release for the mcp-grafana project. The user has provided a bump level: major, minor, or patch.

How the release pipeline works

  1. This skill creates a release/v* branch with a CHANGELOG.md update and opens a PR
  2. When the PR is merged, the auto-tag.yml workflow automatically creates the git tag
  3. The tag triggers release.yml (goreleaser → GitHub Release + binaries) and docker.yml (Docker images + MCP Registry)

Your job is step 1 only. Do NOT create tags manually.

Step 1: Determine the new version

  1. Get the latest semver tag:
    git tag --sort=-version:refname | head -1
  2. Parse the tag as vMAJOR.MINOR.PATCH and bump according to the argument:
    • major → increment MAJOR, reset MINOR and PATCH to 0
    • minor → increment MINOR, reset PATCH to 0
    • patch → increment PATCH
  3. The new version string is v<MAJOR>.<MINOR>.<PATCH> (e.g. v0.11.0). The previous tag is the "from" ref.

Step 2: Create the release branch

git checkout main
git pull origin main
git checkout -b release/v<NEW_VERSION>

Step 3: Gather and categorize commits

Run:

git log <PREV_TAG>..HEAD --no-merges --format="%H %s"

For each commit, categorize by its conventional commit prefix:

PrefixCHANGELOG Section
featAdded
fix (security-related)Security
fixFixed
refactor, perfChanged
BREAKING CHANGE or !:Removed (or note as breaking in relevant section)

Skip these commits entirely:

  • chore(deps) — dependency bumps
  • chore commits that only touch CI config, GitHub Actions, or similar
  • docs commits that only update README or non-user-facing docs
  • test commits that only add/fix tests
  • ci commits

Step 4: Write human-readable entries

For each significant commit:

  1. Read the full commit message: git log <hash> -1 --format="%B"
  2. Extract the PR number from the commit message (look for (#NNN) in the subject or a PR: line)
  3. Derive the repo URL: git remote get-url origin → extract https://github.com/<org>/<repo>
  4. Write a concise, human-readable description of the change (not just the commit subject). Focus on what the user gains.
  5. Format as: - Description of the change ([#NNN](https://github.com/<org>/<repo>/pull/NNN))

If a commit lacks a PR number, omit the link.

Step 5: Write CHANGELOG.md

The CHANGELOG follows Keep a Changelog format.

If CHANGELOG.md already exists

Read the existing file. Insert the new version section after the header block and before any existing version sections. Preserve all existing content below.

If CHANGELOG.md does not exist

Create it with the full header.

Exact format

# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [<NEW_VERSION_WITHOUT_V>] - <YYYY-MM-DD>

### Added

- Entry one ([#123](https://github.com/<org>/<repo>/pull/123))
- Entry two ([#456](https://github.com/<org>/<repo>/pull/456))

### Fixed

- Entry three ([#789](https://github.com/<org>/<repo>/pull/789))

### Changed

- Entry four ([#101](https://github.com/<org>/<repo>/pull/101))

### Security

- Entry five ([#102](https://github.com/<org>/<repo>/pull/102))

## [<PREV_VERSION_WITHOUT_V>] - <PREV_DATE>
...existing entries...

[<NEW_VERSION_WITHOUT_V>]: https://github.com/<org>/<repo>/compare/<PREV_TAG>...<NEW_TAG>
[<PREV_VERSION_WITHOUT_V>]: https://github.com/<org>/<repo>/compare/...

Rules:

  • Version numbers in headings and link labels do NOT have the v prefix (e.g. [0.11.0])
  • Tags in compare URLs DO have the v prefix (e.g. v0.11.0)
  • Date format is YYYY-MM-DD (use date +%Y-%m-%d)
  • Only include sections that have entries (omit empty sections like Changed if there are no changes)
  • The compare link for the new version goes at the bottom, before existing compare links
  • Order sections: Added, Fixed, Changed, Security, Removed

Step 6: Customer communications

For every major release, or minor release containing breaking changes, prepare customer communications:

  • Use grafana-product:whats-new for new or improved capabilities.
  • Use grafana-product:whats-next for breaking changes, deprecations, removals, or disruptive behaviour changes (e.g. renamed or removed tools, changed flags or env vars, changed tool arguments).
  • If both apply, prepare separate entries. If neither applies (e.g. a patch release), skip this step and say why in the report.

Identify the required entries by inspecting the source PRs and compatibility changes, not just the commit prefixes or the CHANGELOG you just wrote. Reuse existing contributions where appropriate.

Read the relevant upstream skill and its required references, using gh to retrieve them if they are not installed. Follow their content and formatting guidance, but override their advance-notice timing: prepare the content during the release, without requiring a 2–4 week lead time or delaying the release to create one. Describe the actual release timing; do not present an already available change as upcoming.

Include affected users, exact before/after behaviour, and concrete migration instructions for breaking changes. Verify CMS metadata rather than treating an mcp-grafana version as a Grafana self-managed release version.

Do not commit the drafts to the release branch.

Step 7: Commit

git add CHANGELOG.md
git commit -m "docs: add CHANGELOG.md for v<NEW_VERSION> release"

Step 8: Push and create PR

git push -u origin release/v<NEW_VERSION>

Create a PR with:

gh pr create --title "Release v<NEW_VERSION>" --body "$(cat <<'EOF'
## Summary

- Bump version to v<NEW_VERSION>
- Add CHANGELOG.md entries for this release

## Checklist

- [ ] CHANGELOG entries are accurate and complete
- [ ] Version number is correct
- [ ] All significant changes are documented

> [!NOTE]
> Merging this PR will automatically create the `v<NEW_VERSION>` tag,
> which triggers goreleaser (GitHub Release + binaries) and Docker image builds.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
EOF
)"

Step 9: Report

Print a summary:

  • New version: v<NEW_VERSION>
  • Branch: release/v<NEW_VERSION>
  • PR URL (from gh pr create output)
  • Number of changelog entries added, broken down by section
  • Remind the user: merging the PR will automatically tag and release
  • Customer communications: draft paths and CMS submission/publication status for each required What's new / What's next entry. If submission is outstanding, name the comms owner and remaining action; a local draft alone is not a submitted contribution. If none was required, state why.

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.