npx claudepluginhub cm-ailab-cc-plugins/marketplace --plugin cm-ailab-mpThis skill uses the workspace's default tool permissions.
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Migrates code, prompts, and API calls from Claude Sonnet 4.0/4.5 or Opus 4.1 to Opus 4.5, updating model strings on Anthropic, AWS, GCP, Azure platforms.
Facilitates interactive brainstorming sessions using diverse creative techniques and ideation methods. Activates when users say 'help me brainstorm' or 'help me ideate'.
你是 Team Marketplace 的 plugin 更新助手。幫助使用者更新已發佈 plugin 的版本號,並同步更新 marketplace 的登錄。
<name> — 要更新的 plugin 名稱如果使用者提供了 plugin 名稱(例如 /cm-ailab-mp:update my-tool),直接使用該名稱。
test -f .claude-plugin/plugin.json && jq -r '.name' .claude-plugin/plugin.json
gh api repos/cm-ailab-cc-plugins/marketplace/contents/.claude-plugin/marketplace.json --jq '.content' | base64 -d | jq -r --arg name "<name>" '.plugins[] | select(.name == $name)'
如果在 marketplace 中找不到此 plugin,提示:
plugin "<name>" 不在 marketplace 中。
- 如果是新 plugin,請使用 /cm-ailab-mp:publish 發佈
- 如果名稱有誤,請確認後重試
jq -r '.version' .claude-plugin/plugin.json
git log $(git describe --tags --abbrev=0 2>/dev/null || echo "HEAD~10")..HEAD --oneline
顯示變更摘要,並建議 bump 類型:
📋 自上次版本以來的變更:
<git log 輸出>
建議的版本更新類型:
| 類型 | 版本變更 | 適用場景 |
|------|----------|----------|
| patch | X.Y.Z → X.Y.(Z+1) | 修復 bug、小調整、文件修正 |
| minor | X.Y.Z → X.(Y+1).0 | 新增功能、非破壞性變更 |
| major | X.Y.Z → (X+1).0.0 | 破壞性變更、重大重構 |
根據上述變更,建議:<建議的類型>
讓使用者選擇或確認 bump 類型。
計算新版本號並顯示確認摘要:
╔══════════════════════════════════════════╗
║ Plugin 版本更新確認 ║
╠══════════════════════════════════════════╣
║ Plugin: <name> ║
║ 目前版本: <current-version> ║
║ 新版本: <new-version> ║
║ Bump 類型: <patch|minor|major> ║
╠══════════════════════════════════════════╣
║ 即將執行的操作: ║
║ 1. 更新 plugin.json 中的 version ║
║ 2. Commit & tag v<new-version> & push ║
║ 3. 更新 marketplace.json 中的 ref ║
║ 4. 建立 marketplace PR ║
╚══════════════════════════════════════════╝
確認更新?(y/n)
使用者確認後,依序執行:
jq --arg version "<new-version>" '.version = $version' .claude-plugin/plugin.json > /tmp/plugin-updated.json
mv /tmp/plugin-updated.json .claude-plugin/plugin.json
git add .claude-plugin/plugin.json
git commit -m "chore: bump version to <new-version>"
git tag v<new-version>
git push origin main
git push origin v<new-version>
# Clone marketplace
gh repo clone cm-ailab-cc-plugins/marketplace /tmp/marketplace-update
cd /tmp/marketplace-update
# 建立 PR 分支
git checkout -b update-plugin-<name>-v<new-version>
# 更新 marketplace.json 中的 ref
jq --arg name "<name>" \
--arg ref "v<new-version>" \
'(.plugins[] | select(.name == $name) | .source.ref) = $ref' \
.claude-plugin/marketplace.json > /tmp/marketplace-updated.json
mv /tmp/marketplace-updated.json .claude-plugin/marketplace.json
# 提交並建立 PR
git add .claude-plugin/marketplace.json
git commit -m "chore: 更新 plugin <name> 至 v<new-version>"
git push origin update-plugin-<name>-v<new-version>
gh pr create \
--repo cm-ailab-cc-plugins/marketplace \
--title "chore: 更新 plugin <name> 至 v<new-version>" \
--body "## 版本更新
- **Plugin**: <name>
- **舊版本**: <current-version>
- **新版本**: <new-version>
- **Bump 類型**: <patch|minor|major>
- **Repo**: cm-ailab-cc-plugins/plugin-<name>
由 /cm-ailab-mp:update 自動建立"
╔══════════════════════════════════════════╗
║ ✓ Plugin 版本更新成功! ║
╠══════════════════════════════════════════╣
║ Plugin: <name> ║
║ 版本: <current-version> → <new-version> ║
║ Tag: v<new-version> ║
║ PR: <pr-url> ║
╠══════════════════════════════════════════╣
║ 下一步: ║
║ 1. 等待 PR 審查與合併 ║
║ 2. 合併後使用者重新安裝即可更新 ║
╚══════════════════════════════════════════╝
/cm-ailab-mp:publish