Repository navigation
chore(plugin): drop off-spec version key, align skill frontmatter - #2747
Conversation
`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
left a comment
There was a problem hiding this comment.
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]>
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-levelversion: 0.49.0key. The spec only definesname,description,license,compatibility,metadata,allowed-toolsat the top level (version, if kept, belongs undermetadata), and Claude Code's own field set doesn't includeversioneither. Also drop the[package.metadata.release].pre-release-replacementsentry inCargo.tomlthat existed solely to bump that line on release.skills/wt-switch-create/SKILL.md: addlicenseandcompatibilityso both plugin skills carry the same spec-valid metadata..claude/skills/release/SKILL.md: step 7 no longer appliespre-release-replacements, andindex.json'sSKILL.mddigest no longer goes stale on release (cargo releasedoesn't touchSKILL.mdanymore) — drop the parenthetical and the now-no-op digest-resync sub-step.compatibilitylines now say "thewtCLI" rather than "worktrunk CLI".docs/static/.well-known/agent-skills/index.jsondigest regenerated bytest_docs_are_in_sync.Follow-up to #2737 / #2745. No
.rschanges.