Skip to content

Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows

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

Maximilian Roos761c2934830b
diff --git a/.claude/skills/release/SKILL.md b/.claude/skills/release/SKILL.md
index a7ca4631a..91cc4ff57 100644
--- a/.claude/skills/release/SKILL.md
+++ b/.claude/skills/release/SKILL.md
@@ -19,13 +19,7 @@ metadata:
```bash
cargo release X.Y.Z -p worktrunk -x --no-publish --no-push --no-tag --no-verify --no-confirm && cargo check
```
- 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.
-
- 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:
- ```bash
- cargo test --test integration test_docs_are_in_sync || cargo test --test integration test_docs_are_in_sync
- ```
- 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.
+ This bumps `Cargo.toml` and `Cargo.lock`, then auto-commits. We'll reset this commit in step 9 to fold in the CHANGELOG.
8. **Update CHANGELOG**: Add `## X.Y.Z` section at top with changes (see MANDATORY verification below)
9. **Commit**: Reset the auto-commit from step 7, stage everything, and create the final release commit:
```bash
diff --git a/Cargo.toml b/Cargo.toml
index ae0fbf101..9ed2ce558 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -19,10 +19,6 @@ default-run = "wt"
# Allow releases from any branch (GitHub Actions uses detached HEAD)
allow-branch = ["*"]
consolidate-commits = true
-pre-release-replacements = [
- # Update skill version in frontmatter
- { file = "skills/worktrunk/SKILL.md", search = "version: [0-9.]+", replace = "version: {{version}}" },
-]
[package.metadata.cargo-udeps.ignore]
# Used only on Windows (#[cfg(windows)] in src/shell_exec.rs)
diff --git a/docs/static/.well-known/agent-skills/index.json b/docs/static/.well-known/agent-skills/index.json
index f01fc469d..cb0358473 100644
--- a/docs/static/.well-known/agent-skills/index.json
+++ b/docs/static/.well-known/agent-skills/index.json
@@ -6,7 +6,7 @@
"type": "skill-md",
"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.",
"url": "./worktrunk/SKILL.md",
- "digest": "sha256:78d31acba4f9cfc78e3b7129bf640ae6b52dd20163273645db65d1174c1bee23"
+ "digest": "sha256:50f164a054e60d7f9bac2fc57f700693118ece6ae29482a11b50cd69733fda90"
}
]
}
diff --git a/skills/worktrunk/SKILL.md b/skills/worktrunk/SKILL.md
index c674f4b0f..55fc0f66c 100644
--- a/skills/worktrunk/SKILL.md
+++ b/skills/worktrunk/SKILL.md
@@ -1,9 +1,8 @@
---
name: worktrunk
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.
-version: 0.49.0
license: MIT OR Apache-2.0
-compatibility: Requires worktrunk CLI (https://worktrunk.dev)
+compatibility: Requires the `wt` CLI (https://worktrunk.dev)
---
# Worktrunk
diff --git a/skills/wt-switch-create/SKILL.md b/skills/wt-switch-create/SKILL.md
index c31b934ce..b3d3aacb5 100644
--- a/skills/wt-switch-create/SKILL.md
+++ b/skills/wt-switch-create/SKILL.md
@@ -2,6 +2,8 @@
name: wt-switch-create
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.
argument-hint: "<branch-name> [task...]"
+license: MIT OR Apache-2.0
+compatibility: Requires the `wt` CLI (https://worktrunk.dev) and this plugin's WorktreeCreate hook
---
Arguments: `$ARGUMENTS`. The **first whitespace-delimited token** is the branch