Skip to content

Commit 761c293

Browse files
max-sixtyclaude
andauthored
chore(plugin): drop off-spec version key, align skill frontmatter (#2747)
Tidies the plugin skills' YAML frontmatter against the [Agent Skills](https://agentskills.io/specification) 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. --------- Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 92f5079 commit 761c293

5 files changed

Lines changed: 5 additions & 14 deletions

File tree

.claude/skills/release/SKILL.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,7 @@ metadata:
1919
```bash
2020
cargo release X.Y.Z -p worktrunk -x --no-publish --no-push --no-tag --no-verify --no-confirm && cargo check
2121
```
22-
This bumps `Cargo.toml`, `Cargo.lock`, and applies `pre-release-replacements` (e.g., `SKILL.md`'s `version:` line), then auto-commits. We'll reset this commit in step 9 to fold in the CHANGELOG.
23-
24-
Then sync the SHA-256 digest of `SKILL.md` in `docs/static/.well-known/agent-skills/index.json``cargo-release` doesn't know that file derives from `SKILL.md`, so it stays stale until the docs-sync test rewrites it:
25-
```bash
26-
cargo test --test integration test_docs_are_in_sync || cargo test --test integration test_docs_are_in_sync
27-
```
28-
The first run rewrites the digest and exits non-zero; the second confirms sync. The regenerated `index.json` is then picked up by `git add -A` in step 9.
22+
This bumps `Cargo.toml` and `Cargo.lock`, then auto-commits. We'll reset this commit in step 9 to fold in the CHANGELOG.
2923
8. **Update CHANGELOG**: Add `## X.Y.Z` section at top with changes (see MANDATORY verification below)
3024
9. **Commit**: Reset the auto-commit from step 7, stage everything, and create the final release commit:
3125
```bash

Cargo.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@ default-run = "wt"
1919
# Allow releases from any branch (GitHub Actions uses detached HEAD)
2020
allow-branch = ["*"]
2121
consolidate-commits = true
22-
pre-release-replacements = [
23-
# Update skill version in frontmatter
24-
{ file = "skills/worktrunk/SKILL.md", search = "version: [0-9.]+", replace = "version: {{version}}" },
25-
]
2622

2723
[package.metadata.cargo-udeps.ignore]
2824
# Used only on Windows (#[cfg(windows)] in src/shell_exec.rs)

docs/static/.well-known/agent-skills/index.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

skills/worktrunk/SKILL.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
---
22
name: worktrunk
33
description: Guidance for Worktrunk (the `wt` CLI) — git worktree management, hooks, and config. Load when editing .config/wt.toml or ~/.config/worktrunk/config.toml; adding, modifying, or debugging hooks (post-merge, post-start, pre-commit, pre-merge, post-switch, etc.); configuring commit message generation or command aliases; or troubleshooting wt behavior. Also answers general worktrunk/wt questions.
4-
version: 0.49.0
54
license: MIT OR Apache-2.0
6-
compatibility: Requires worktrunk CLI (https://worktrunk.dev)
5+
compatibility: Requires the `wt` CLI (https://worktrunk.dev)
76
---
87

98
# Worktrunk

skills/wt-switch-create/SKILL.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
name: wt-switch-create
33
description: Create a new worktrunk worktree and switch this session's working directory into it. Use when launching a session that should work in its own worktree (e.g. `/wt-switch-create my-branch <task>`), or mid-session to move work into a fresh branch.
44
argument-hint: "<branch-name> [task...]"
5+
license: MIT OR Apache-2.0
6+
compatibility: Requires the `wt` CLI (https://worktrunk.dev) and this plugin's WorktreeCreate hook
57
---
68

79
Arguments: `$ARGUMENTS`. The **first whitespace-delimited token** is the branch

0 commit comments

Comments
 (0)