agentleFS
gofixpointgofixpoint/amika/.agents/skills/create-sdk-release-commit/SKILL.md

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.

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
  1. Very specific:

    Create a release commit based on the version change in sdk/typescript/package.json.

    line 8
  2. Very specific:

    Run git diff sdk/typescript/package.json (include both staged and unstaged changes).

    line 16
  3. Very specific:

    If there is no version change in the diff, error out: "No version change found in sdk/typescript/package.json".

    line 22
  4. Distinctive:

    If neither works, report the issue and ask the user how to proceed.

    line 31
  5. Very specific:

    Run git log --oneline <boundary>..HEAD to get the commit log since the boundary.

    line 35
  6. Very specific:

    Prefer the PR-style commit messages (the ones ending with (#NNN)) as they are the squash-merged versions.

    line 39
  7. Distinctive:

    Only after the user approves the commit message:

    line 58
  8. Distinctive:

    Create the commit with the approved message.

    line 61
  9. Very specific:

    Do NOT include a Co-Authored-By line in the commit message.

    line 63

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  1. Run git diff sdk/typescript/package.json (include both staged and unstaged changes).
  2. Parse the diff to find the old and new version values. Look for lines like:
    -  "version": "0.9.3",
    +  "version": "0.10.0",
  3. If there is no version change in the diff, error out: "No version change found in sdk/typescript/package.json".
  4. Record OLD_VERSION (the removed value) and NEW_VERSION (the added value).

Step 2: Find the changelog boundary

Find the "from" boundary for the changelog using this priority order:

  1. Try git fetch --tags --quiet to pull remote tags, then check if sdk-typescript@v${OLD_VERSION} now exists locally. If it does, use it as the boundary.
  2. If the tag still isn't available, search the git log for the previous version bump commit: git log --oneline --all -- sdk/typescript/package.json and 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 on main and gives the correct ancestry. Use that commit SHA as the boundary.
  3. If neither works, report the issue and ask the user how to proceed.

Step 3: Generate changelog

  1. Run git log --oneline <boundary>..HEAD to 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.
  2. Filter out merge commits and release-tooling commits (e.g., commits that only bump version numbers). Keep substantive changes.
  3. Group the commits into categories if natural groupings emerge, but do not force categorization for a small number of commits. Use your judgment.
  4. 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.

Step 4: Review commit message

  1. 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>
  1. Present the full draft commit message to the user using AskUserQuestion and 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:

  1. Stage sdk/typescript/package.json: git add sdk/typescript/package.json
  2. 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.

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.