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
In this repository10 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- atSkill
- cronSkill
- dispatchSkill
- orchctlSkill
- orchestrateSkill
- postmortemSkill
- probeSkill
- setupSkill
- unix-architectSkill
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
- Distinctive: line 18
If a version is provided, skip the analysis and use it directly.
- Distinctive: line 74
If the user provided a version argument, show the analysis but use the specified version instead.
- Distinctive: line 76
Wait for user confirmation before proceeding.
- Distinctive: line 136
After the user confirms both the version and the release notes:
- Very specific: line 146
Use jq to update the version field:
≈ “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.
Files
/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.0If 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-mergesClassify each commit by its conventional commit prefix:
| Prefix | Category | Bump |
feat: | New Features | minor |
fix: | Bug Fixes | patch |
docs: | Documentation | patch |
test: | Tests | patch |
refactor: | Refactoring | patch |
| Breaking changes | Breaking | major |
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 --onelineAlso 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 1004b: 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:andtest: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.json5c: 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.mdDoes 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.

