将当前分支合并到 test 分支、push 远端,然后切回原分支。Use when the user says merge to test, push to test, 合并到 test, 同步到 test, /merge-to-test, merge-push-test, 推到 test, or wants one-command deploy to test branch.
Ships in cxc-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
一键工作流:当前分支 → merge 到 test → push → 切回原分支。
用户输入以下任一即可执行本 skill(无需额外确认,除非 pre-flight 失败):
/merge-to-test合并到 testmerge push test同步到 test| 项 | 默认值 |
|---|---|
| 目标分支 | test |
| 远程 | origin |
| 源分支 | 执行前 git branch --show-current |
用户若指定其他目标分支(如 staging),替换 test 即可,其余流程相同。
并行执行:
git branch --show-current
git status --short
git fetch origin
中止并告知用户(不要继续 merge)若:
git status 非 clean)test 分支若源分支有未 push 的 commit,默认先 git push origin HEAD 再 merge,避免 test 合不到最新代码。
优先运行脚本(可重复、可回滚)。{baseDir} = 本 SKILL.md 所在目录:
bash {baseDir}/scripts/merge-to-test.sh
指定目标分支:
bash {baseDir}/scripts/merge-to-test.sh staging
按顺序执行,全程记住源分支名 SOURCE:
SOURCE=$(git branch --show-current)
git fetch origin
git checkout test
git pull origin test
git merge "$SOURCE" --no-edit
git push origin test
git checkout "$SOURCE"
若 merge 冲突:
git merge --abort
git checkout "$SOURCE"
然后向用户报告冲突文件列表,不要 force push,不要留用户在 test 上的半成品 merge。
用简短中文总结:
git log test -1 --oneline)git branch --show-current)git push --force 到 testgit config 修改--no-verify 除非用户明确要求What SKILL.md sets; muted values are Claude Code's defaults
/cxc-skills:merge-to-testfrom cxc-skills
npx claudepluginhub chenxiaochun/cxc-skills --plugin cxc-skills29 skills in this plugin
/baoyu-article-illustratorAnalyzes article structure, identifies positions requiring visual aids, generates illustrations with Type × Style × Palette three-dimension approach. Use when user asks to "illustrate article", "add images", "generate images for article", or "为文章配图"./baoyu-comicKnowledge comic creator supporting multiple art styles and tones. Creates original educational comics with detailed panel layouts and batch-capable image generation. Use when user asks to create "知识漫画", "教育漫画", "biography comic", "tutorial comic", or "Logicomix-style comic"./baoyu-compress-imageCompresses images to WebP (default) or PNG with automatic tool selection. Use when user asks to "compress image", "optimize image", "convert to webp", or reduce image file size.