From dstoic
Automates version bumps, metadata updates, and skill/command counts for Claude agent-skills plugins when adding/removing/updating skills/commands or preparing releases.
How this skill is triggered — by the user, by Claude, or both
Slash command
/dstoic:edit-pluginsonnetThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Resolve → Detect → Version → Update → Review
Resolve → Detect → Version → Update → Review
CRITICAL: After EVERY AskUserQuestion call, check if answers are empty/blank. Known Claude Code bug: outside Plan Mode, AskUserQuestion silently returns empty answers without showing UI.
If answers are empty: DO NOT proceed with assumptions. Instead:
Determine PLUGIN_DIR (relative to repo root, e.g. dstoic, biz, gtd):
$ARGUMENTS: If first arg matches a dir with .claude-plugin/plugin.json → use it.claude-plugin/plugin.json → derive plugin name from parent dir.claude-plugin/plugin.json)Read current version from ${PLUGIN_DIR}/.claude-plugin/plugin.json.
${CLAUDE_PLUGIN_ROOT}/skills/edit-plugin/scripts/detect-changes.sh <repo-root> <plugin-dir>
If no changes detected, ask user what to include.
Auto-detect from changes:
minor: new skill/command added, breaking changespatch: updates, bug fixes, doc changesUser override via $ARGUMENTS (e.g., biz minor "Add ux-strategize").
${CLAUDE_PLUGIN_ROOT}/skills/edit-plugin/scripts/bump-version.sh <current-version> <patch|minor>
Atomic — never partially update. Two tiers:
Required: ${PLUGIN_DIR}/.claude-plugin/plugin.json — always update.
Discovered: Grep repo root for old version string. Filter results:
${PLUGIN_DIR}/ + repo-root metadata files referencing this plugin.git/, this skill's SKILL.md, this skill's reference.mdmarketplace.json: Only update plugins[name=${PLUGIN_DIR}].version entry. Update metadata.version only if this plugin is the primary (currently dstoic).Present discovered file list to user before updating. Use Edit tool: old version → new version.
See reference.md for version patterns.
Skip this step if no adds/removes in detected changes.
Grep repo for count patterns (N skills, N commands, N hooks) in files referencing ${PLUGIN_DIR}. Update only matching files. See reference.md for count patterns.
Show summary: version change, changes list, files updated. WAIT for user confirmation before git ops.
$ARGUMENTS, default /home/mat/dev/agent-skills/reference.md for version/count patterns and cache sync remindernpx claudepluginhub digital-stoic-org/agent-skills --plugin dstoicAutomates publishing of Claude Code plugins and Agent Skills: version bumping, changelog updates, git workflow. Activates on 'publish plugin' or 'release plugin' requests.
Upgrades Claude Code plugins by aligning skills, hooks, and patterns with latest capabilities and best practices. Use after updates, for modernization, or on user request.
Automates semantic version bumps across plugin.json, marketplace.extended.json, and marketplace.json in Claude Code plugins. Triggers on mentions of version bump, update version, or release for consistency.