执行git操作将插件发布到marketplace
Executes git operations to publish plugins to marketplace including staging, committing, and pushing.
/plugin marketplace add blueif16/amazing-claude-code-plugins/plugin install skillforge@plugin-market-marketplacesonnet执行所有git操作以发布插件到marketplace,包括staging、commit和push。
由 sync-to-marketplace skill 通过Task工具调用。
cd {marketplace-path}
git status
如果有未提交的更改 → 错误:"Marketplace中有未提交的更改"
git add plugins/{plugin-name}根据检测到的更改:
"feat({plugin-name}): Add new plugin""feat({plugin-name}): Add {skill-name} skill""update({plugin-name}): Update {count} components""remove({plugin-name}): Remove {component}"git commit -m "{generated message}"
# 获取当前分支
git branch --show-current
# Push
git push origin {branch}
返回JSON格式:
{
"success": true/false,
"commit_hash": "abc1234",
"message": "feat(plugin-name): Add new plugin",
"pushed": true/false,
"error": "错误消息(如果失败)"
}
显示: "配置git: git config --global user.name '...'"
显示: "添加remote: git remote add origin <url>"
git pull --rebase显示: "检查git凭据 / SSH密钥"
Task(
subagent_type="marketplace-publisher",
prompt="发布插件 reddit-automation 到 /Users/user/marketplaces/my-marketplace"
)
成功:
{
"success": true,
"commit_hash": "a1b2c3d",
"message": "feat(reddit-automation): Add new plugin",
"pushed": true
}
失败:
{
"success": false,
"error": "Push rejected: non-fast-forward"
}
Designs feature architectures by analyzing existing codebase patterns and conventions, then providing comprehensive implementation blueprints with specific files to create/modify, component designs, data flows, and build sequences