agentleFS
tovrleaftovrleaf/openkata/.agents/skills/openkata-ryu-release/SKILL.md

openkata-ryu-release

Skill1 starsChanged 5 months agoMITView on GitHub

Releases distributable artifacts (skills, rules, profiles) with proper versioning, changelog, git tags, and optional tessl registry publish.

  • Commits and pushes

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. About 0 are common, 8 are distinctive, and 7 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

    Very specific

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

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

    NEVER read the version from CHANGELOG.md or SKILL.md to determine the current version.

    line 26
  2. Distinctive:

    When in doubt, ask the user.

    line 44
  3. Distinctive:

    If no diff, abort — nothing to release.

    line 53
  4. Distinctive:

    Run the badge update script to sync counts:

    line 55
  5. Distinctive:

    If README.md changed, stage it for the release commit.

    line 59
  6. Very specific:

    Update CHANGELOG.md — add a version section after [Unreleased] with today's date and what changed.

    line 61
  7. Distinctive:

    Ask the user: "Release to tessl registry as well?

    line 85
  8. Very specific:

    If the tile doesn't exist yet, run tessl skill import first, then tessl tile publish.

    line 90
  9. Very specific:

    Update frontmatter name: field.

    line 111
  10. Very specific:

    Add redirect in artifactRedirects map in handlers.go:

    line 135
  11. Distinctive:

    NEVER determine current version from CHANGELOG.md — it may contain unreleased or untagged entries

    line 142
  12. Distinctive:

    NEVER skip the diff check — releasing unchanged artifacts creates noise

    line 144
  13. Distinctive:

    NEVER use git tag on a commit other than HEAD

    line 146
  14. Very specific:

    MUST push the tag separately from the commit if the IAM trust policy doesn't allow tag-triggered workflows (use gh workflow run …

    line 147
  15. Very specific:

    NEVER manually edit .tessl-plugin/plugin.json version — tessl manages it via tessl tile publish --bump.

    line 151

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

openkata-ryu-release

Release a distributable artifact following Semantic Versioning. The git tag is the single source of truth for the current published version.

Trigger

Activate when the user says "release", "bump", "version", "tag", or "publish" an artifact.

Determine Current Version

git tag -l '<type>/<name>/v*' | sort -V | tail -1

NEVER read the version from CHANGELOG.md or SKILL.md to determine the current version. Those files may be ahead of (or behind) the actual tagged release.

Determine Next Version

Follow Semantic Versioning:

  • PATCH (x.y.Z): documentation additions, typo fixes, non-functional changes (added RATIONALE.md, reformatted ACKNOWLEDGMENTS.md, fixed examples)
  • MINOR (x.Y.0): new features, new steps, new references, behavioral changes that don't break existing usage
  • MAJOR (X.0.0): breaking changes to the skill's interface (renamed triggers, removed steps, changed output format that downstream consumers rely on)

When in doubt, ask the user.

Release Steps

  1. Confirm the artifact has uncommitted changes vs its latest tag:
    git diff <latest-tag>..HEAD -- <type>/<name>/
    If no diff, abort — nothing to release.
  2. Run the badge update script to sync counts:
    ./scripts/update-readme-badges.sh
    If README.md changed, stage it for the release commit.
  3. Update CHANGELOG.md — add a version section after [Unreleased] with today's date and what changed.
  4. Bump version in the frontmatter of the main doc (SKILL.md, RULE.md, or <name>.md).
  5. Commit:
    release(<type>): <name> vX.Y.Z
    
    Assisted-by: <agent>:<model>
  6. Tag:
    git tag <type>/<name>/vX.Y.Z
  7. Push (only with user confirmation):
    git push origin main
    git push origin <type>/<name>/vX.Y.Z
  8. Ask the user: "Release to tessl registry as well? (y/n)" If yes:
    cd <type>/<name> && tessl tile publish --bump patch
    If the tile doesn't exist yet, run tessl skill import first, then tessl tile publish.

Validation

  • Tag version must match SKILL.md frontmatter version
  • Tag version must match latest CHANGELOG.md section
  • Tag must point to the release commit (not an earlier commit)
  • CHANGELOG entry must not be empty

Renaming an Artifact

Renaming starts versioning from v1.0.0 under the new name. Old git tags are preserved — old S3 artifacts are deleted.

  1. Rename the directory:
    git mv <type>/<old-name> <type>/<new-name>
  2. Update frontmatter name: field.
  3. Reset CHANGELOG.md to a fresh v1.0.0 entry. Mention the old name:
    ## [1.0.0] - YYYY-MM-DD
    
    ### Changed
    
    - Renamed from <old-name>
  4. Commit, tag, push:
    git commit -m 'refactor(<type>): rename <old-name> to <new-name>'
    git tag <type>/<new-name>/v1.0.0
  5. Publish new name, delete old S3 prefix:
    gh workflow run publish.yaml -f tag=<type>/<new-name>/v1.0.0
    aws s3 rm s3://openkata-artifacts/<type>/<old-name>/ --recursive
  6. Add redirect in artifactRedirects map in handlers.go:
    "<old-name>": "<new-name>",

Common Failures

  • NEVER determine current version from CHANGELOG.md — it may contain unreleased or untagged entries
  • NEVER skip the diff check — releasing unchanged artifacts creates noise
  • NEVER use git tag on a commit other than HEAD
  • MUST push the tag separately from the commit if the IAM trust policy doesn't allow tag-triggered workflows (use gh workflow run publish.yaml -f tag=... as workaround)
  • NEVER manually edit .tessl-plugin/plugin.json version — tessl manages it via tessl tile publish --bump. A difference between SKILL.md version and plugin.json version is expected (ADR 0006).

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.