agentleFS
clonable-edenclonable-eden/cekernel/.claude/skills/release-cekernel/SKILL.md

release-cekernel

Skill17 starsChanged 8 months agoMITView on GitHub

Analyze git log, recommend a version bump, and create a release PR with structured release notes

  • Commits and pushes

The file

We split this skill into the rules it gives an agent

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

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If a version is provided, skip the analysis and use it directly.

    line 18
  2. Distinctive:

    If the user provided a version argument, show the analysis but use the specified version instead.

    line 74
  3. Distinctive:

    Wait for user confirmation before proceeding.

    line 76
  4. Distinctive:

    After the user confirms both the version and the release notes:

    line 136
  5. Very specific:

    Use jq to update the version field:

    line 146

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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

/release-cekernel

Analyzes the git log since the last release tag, recommends a semantic version bump level, generates structured release notes, and creates a release PR directly.

Usage

/release-cekernel
/release-cekernel 1.4.0

If a version is provided, skip the analysis and use it directly. Otherwise, analyze commits and recommend a version.

Workflow

Step 1: Determine Current Version and Last Tag

PREV_TAG=$(git tag -l 'cekernel-v*' --sort=-v:refname | head -1)
CURRENT_VERSION=$(jq -r '.version' .claude-plugin/plugin.json)
echo "Current version: ${CURRENT_VERSION}"
echo "Last tag: ${PREV_TAG}"

Step 2: Analyze Commits Since Last Tag

git log "${PREV_TAG}..HEAD" --oneline --no-merges

Classify each commit by its conventional commit prefix:

PrefixCategoryBump
feat:New Featuresminor
fix:Bug Fixespatch
docs:Documentationpatch
test:Testspatch
refactor:Refactoringpatch
Breaking changesBreakingmajor

The highest-level bump wins:

  • Any breaking change → major
  • Any feat: → minor
  • Otherwise → patch

Step 3: Recommend Version

Calculate the recommended version from the current version and the determined bump level. Present to the user:

## Release Analysis

Last tag: cekernel-v1.3.0
Commits since last tag: N

### Changes
- feat: 2 commits (minor bump)
- fix: 3 commits
- docs: 1 commit

### Recommended bump: minor
### Proposed version: 1.4.0

Proceed? (y/n)

If the user provided a version argument, show the analysis but use the specified version instead.

Wait for user confirmation before proceeding.

Step 4: Generate Release Notes

Generate RELEASE_NOTES.md following the cekernel-v1.2.0 format.

4a: Gather PR list

# Get merged PRs between last tag and HEAD
git log "${PREV_TAG}..HEAD" --merges --oneline

Also use the GitHub API to get PR details:

gh pr list --state merged --base main --search "merged:>=$(git log -1 --format=%ci ${PREV_TAG} | cut -d' ' -f1)" --json number,title,author --limit 100

4b: Build release notes

Generate the following sections from the commit and PR analysis.

IMPORTANT: The first line MUST be # cekernel-v${VERSION} (hyphen between cekernel and v, matching the tag name exactly). The workflow plugin-release-tag.yml uses this heading for extraction — a mismatch (e.g. space instead of hyphen) causes an empty release body.

# cekernel-v${VERSION}

## Highlights
- Summary of the most important changes in this release (3-8 bullet points)
- Focus on user-facing impact, not implementation details
- Bold key terms for scannability

## New Features
- feat: commit descriptions (one bullet per feature)

## Bug Fixes
- fix: commit descriptions (one bullet per fix)

## Documentation
- docs: commit descriptions (one bullet per doc change)

## What's Changed
* PR title by @author in PR-URL (one line per merged PR)

**Full Changelog**: https://github.com/clonable-eden/cekernel/compare/${PREV_TAG}...cekernel-v${VERSION}

Rules:

  • Highlights is written by Claude based on understanding of the changes. Summarize themes, not individual commits.
  • New Features / Bug Fixes / Documentation are derived from conventional commit prefixes. refactor: and test: commits go under a Other Changes section if present.
  • What's Changed lists all merged PRs with author attribution and links (same format as GitHub's --generate-notes).
  • Full Changelog is the compare URL between the previous tag and the new tag.

4c: Present for review

Show the generated release notes to the user and wait for confirmation. The user may request edits before proceeding.

Step 5: Create Release Branch and PR

After the user confirms both the version and the release notes:

5a: Create release branch

git checkout -b "release/cekernel-v${VERSION}"

5b: Update plugin.json version

Use jq to update the version field:

jq --arg v "${VERSION}" '.version = $v' .claude-plugin/plugin.json > tmp.json
mv tmp.json .claude-plugin/plugin.json

5c: Write RELEASE_NOTES.md

Overwrite RELEASE_NOTES.md at the repository root with the confirmed release notes for this version only. Past releases are preserved in GitHub Releases and do not need to be kept in this file.

5d: Commit and push

git add .claude-plugin/plugin.json RELEASE_NOTES.md
git commit -m "release: cekernel v${VERSION}"
git push -u origin "release/cekernel-v${VERSION}"

5e: Create PR

gh pr create \
  --title "release: cekernel v${VERSION}" \
  --body "$(cat <<EOF
Version bump for cekernel plugin.

- Updates \`.claude-plugin/plugin.json\` version to \`${VERSION}\`
- Adds \`RELEASE_NOTES.md\` for structured release notes
- On merge, \`plugin-release-tag.yml\` will automatically create tag \`cekernel-v${VERSION}\` and GitHub Release

EOF
)"

Step 6: Report Result

## Release PR Created

- **PR**: #<number>
- **Branch**: release/cekernel-v<VERSION>
- **Version**: <VERSION>

### Next Steps
1. Review the PR and merge it
2. On merge, `plugin-release-tag.yml` will automatically create tag `cekernel-v<VERSION>` and GitHub Release with the contents of RELEASE_NOTES.md

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.