Skip to content

chore(plugin): drop off-spec version key, align skill frontmatter - #2747

Merged
max-sixty merged 2 commits into
mainfrom
skill-frontmatter-tidy
May 12, 2026
Merged

max-sixty merged 2 commits into
mainfrom
skill-frontmatter-tidy

Conversation

@max-sixty

@max-sixty max-sixty commented May 12, 2026 •

Copy link
Copy Markdown
Owner

Tidies the plugin skills' YAML frontmatter against the Agent Skills spec, and cleans up a release-skill step the change makes stale.

  • skills/worktrunk/SKILL.md: drop the top-level version: 0.49.0 key. The spec only defines name, description, license, compatibility, metadata, allowed-tools at the top level (version, if kept, belongs under metadata), and Claude Code's own field set doesn't include version either. Also drop the [package.metadata.release].pre-release-replacements entry in Cargo.toml that existed solely to bump that line on release.
  • skills/wt-switch-create/SKILL.md: add license and compatibility so both plugin skills carry the same spec-valid metadata.
  • .claude/skills/release/SKILL.md: step 7 no longer applies pre-release-replacements, and index.json's SKILL.md digest no longer goes stale on release (cargo release doesn't touch SKILL.md anymore) — drop the parenthetical and the now-no-op digest-resync sub-step.
  • Both compatibility lines now say "the wt CLI" rather than "worktrunk CLI".
  • docs/static/.well-known/agent-skills/index.json digest regenerated by test_docs_are_in_sync.

Follow-up to #2737 / #2745. No .rs changes.

`version` isn't an Agent Skills standard frontmatter key — the spec only
defines `name`, `description`, `license`, `compatibility`, `metadata`, and
`allowed-tools` (it nests version under `metadata`), and Claude Code's own
field set doesn't include it either. Drop it from `skills/worktrunk/SKILL.md`
along with the now-dead `pre-release-replacements` entry in `Cargo.toml` that
existed only to bump that line each release.

Add `license` and `compatibility` to `skills/wt-switch-create/SKILL.md` so
both plugin skills carry the same spec-valid metadata, and reword both
`compatibility` lines to say "the `wt` CLI" rather than "worktrunk CLI".

`docs/static/.well-known/agent-skills/index.json` digest regenerated by
`test_docs_are_in_sync`.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>

@worktrunk-bot worktrunk-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spec check confirms the claim: agentskills.io/specification lists only name, description, license, compatibility, metadata, allowed-tools at the top level and explicitly nests version under metadata in its example. Digest in index.json matches sha256sum of the new SKILL.md.

One stale reference outside the diff: .claude/skills/release/SKILL.md:22 still describes step 7 as "applies pre-release-replacements (e.g., SKILL.md's version: line)". With this PR there are no pre-release-replacements defined, so the parenthetical and the rationale for that step's mention are now misleading. Happy to push a follow-up commit dropping the parenthetical (and rewording around the now-no-op pre-release-replacements) if you'd like — flagging here rather than silently bundling.

This branch removes `[package.metadata.release].pre-release-replacements`
from `Cargo.toml` (it only existed to bump `SKILL.md`'s `version:` line,
which is also removed here), so `cargo release` no longer rewrites
`SKILL.md`. The release skill's step 7 still claimed it applies
`pre-release-replacements` and that `index.json`'s `SKILL.md` digest goes
stale as a result — neither is true anymore. Drop the parenthetical and the
follow-up digest-resync sub-step.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit 761c293 into main May 12, 2026
34 checks passed
@max-sixty
max-sixty deleted the skill-frontmatter-tidy branch May 12, 2026 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants