-
Read the prompt — if arguments were passed with the slash command (e.g. /update-skill add the new retry logic to my groq skill), treat them as the user's description of what to update and proceed to step 1. If no arguments were given, ask: "Which skill or knowledge do you want to update, and what should change?" and wait for the answer before continuing.
-
Pull latest:
gh repo clone phucbm/skills /tmp/phucbm-skills 2>/dev/null || git -C /tmp/phucbm-skills pull
-
Surface related files — scan skills/ and knowledge/ for anything related to the topic. List all candidates and flag shared knowledge files:
"Files that may need updating:
skills/groq/SKILL.md (trigger description)
knowledge/groq/streaming-integration.md (actual content — also referenced by skills/X)
Should I update both, or just the knowledge file?"
-
Show a diff for each file that will change:
FILE: knowledge/groq/streaming-integration.md
CURRENT: <existing section>
PROPOSED: <updated section>
REASON: <why>
-
Wait for user confirmation before applying anything.
-
Apply edits, bump patch version in .claude-plugin/plugin.json, commit and push:
git -C /tmp/phucbm-skills add .
git -C /tmp/phucbm-skills commit -m "knowledge: update <topic>"
git -C /tmp/phucbm-skills push
-
Confirm the push URL to the user.