create-sdk-release-commit
Skill301 starsChanged 11 days agoApache-2.0View on GitHub
Create a release commit for a TypeScript SDK version bump. Reads the version change in sdk/typescript/package.json, generates a changelog from git history since the previous sdk-typescript@v* tag or version bump commit, and creates a commit.
In this repository11 other files it gives its agents.
- AGENTS.mdAGENTS.md
- js/AGENTS.mdAGENTS.md
- sandbox-image/AGENTS.mdAGENTS.md
- amika-annotationsSkill
- amika-cliSkill
- create-cli-release-commitSkill
- distill-sessionSkill
- make-stacked-prsSkill
- naive-reader-reviewSkill
- new-specSkill
- release-commit-sandbox-imageSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 3 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Create a release commit based on the version change in sdk/typescript/package.json.
- Very specific: line 16
Run git diff sdk/typescript/package.json (include both staged and unstaged changes).
- Very specific: line 22
If there is no version change in the diff, error out: "No version change found in sdk/typescript/package.json".
- Distinctive: line 31
If neither works, report the issue and ask the user how to proceed.
- Very specific: line 35
Run git log --oneline <boundary>..HEAD to get the commit log since the boundary.
- Very specific: line 39
Prefer the PR-style commit messages (the ones ending with (#NNN)) as they are the squash-merged versions.
- Distinctive: line 58
Only after the user approves the commit message:
- Distinctive: line 61
Create the commit with the approved message.
- Very specific: line 63
Do NOT include a Co-Authored-By line in the commit message.
≈ “Common” is an estimate: at least 1 in 5 of the 364,980 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
Create SDK Release Commit
Create a release commit based on the version change in sdk/typescript/package.json. This skill extracts the old and new versions, generates a changelog from git history, and creates a well-formatted commit.
Tags do not need to exist locally — they are created by CI after the PR merges to main.
Procedure
Step 1: Extract old and new versions
- Run
git diff sdk/typescript/package.json(include both staged and unstaged changes). - Parse the diff to find the old and new
versionvalues. Look for lines like:- "version": "0.9.3", + "version": "0.10.0", - If there is no
versionchange in the diff, error out: "No version change found in sdk/typescript/package.json". - Record
OLD_VERSION(the removed value) andNEW_VERSION(the added value).
Step 2: Find the changelog boundary
Find the "from" boundary for the changelog using this priority order:
- Try
git fetch --tags --quietto pull remote tags, then check ifsdk-typescript@v${OLD_VERSION}now exists locally. If it does, use it as the boundary. - If the tag still isn't available, search the git log for the previous version bump commit:
git log --oneline --all -- sdk/typescript/package.jsonand find the commit that set the version to${OLD_VERSION}(e.g. a commit message like "Bump TypeScript SDK version to 0.9.3" or "Release TypeScript SDK 0.9.3"). Prefer the PR squash-merge form (message ending with(#NNN)) over pre-merge feature branch commits, since the squash-merge is the one onmainand gives the correct ancestry. Use that commit SHA as the boundary. - If neither works, report the issue and ask the user how to proceed.
Step 3: Generate changelog
- Run
git log --oneline <boundary>..HEADto get the commit log since the boundary. Optionally scope to-- sdk/typescript/to reduce noise if there are many unrelated commits, but include any SDK-relevant changes from across the repo. - Filter out merge commits and release-tooling commits (e.g., commits that only bump version numbers). Keep substantive changes.
- Group the commits into categories if natural groupings emerge, but do not force categorization for a small number of commits. Use your judgment.
- Format each entry as a markdown list item:
- <concise description> (<short SHA>)- Prefer the PR-style commit messages (the ones ending with
(#NNN)) as they are the squash-merged versions. If both a squash-merge commit and its constituent commits appear in the log, prefer the squash-merge commit and omit the constituents.
- Prefer the PR-style commit messages (the ones ending with
Step 4: Review commit message
- Draft the commit message using this format:
Bump TypeScript SDK version to ${NEW_VERSION}
Release sdk-typescript@v${NEW_VERSION}.
Changes since sdk-typescript@v${OLD_VERSION}:
<changelog entries from step 3>- Present the full draft commit message to the user using
AskUserQuestionand ask them to review it. The user may request edits — apply any changes they ask for and re-present if needed.
Step 5: Create commit
Only after the user approves the commit message:
- Stage
sdk/typescript/package.json:git add sdk/typescript/package.json - Create the commit with the approved message.
Do NOT include a Co-Authored-By line in the commit message.
Step 6: Confirm
Display the created commit (hash + full message) so the user can verify.
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.

