Use when you want an agent to autonomously take a finished feature branch through review, self-fix, and merge into an integration branch (`dev`) without a human reading the PR — the agent runs an objective code review, fixes or refactors what it can, gates on a hard green light (tests pass AND no blocking findings), then does a clean rebase-merge and logs a one-line revert entry. Fires on "auto-integrate this branch", "review-fix-and-merge to dev", "run the autonomous merge loop", "自主整合這個分支", "跑自動 merge 迴圈". Manual-only (`disable-model-invocation`) because it merges code. It NEVER touches `main`/production (release stays manual). Not a PR-review reporter (that is `/code-review`) and not the full issue→PR delivery flow (that is `feature`).
Ships in dev. 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.
Autonomously integrate a finished feature branch into dev: objective review → self-fix/refactor → hard green-light
gate → clean rebase-merge → one-line revert log. The human confirms by outcome (the merge-log line), not by
reading the PR. Safety comes from guardrails plus full version control — never from trust.
Suggested model/effort: this is low-reversibility autonomous merging — run it at Opus 5 · high (escalate to
max if the fixes get architectural). See the model-advisor skill for the canonical rubric.
These are not negotiable. If you cannot satisfy one, STOP and hand back to the user — do not proceed "mostly."
main/production. Only dev or an explicit integration branch. Release is always a
separate manual step. If the resolved target is (or fast-forwards into) a protected/production branch → refuse.git revert <sha>.--force/--force-with-lease on dev, main, or any pushed branch.docs/merge-log.md before you report done. No log = not done.Run when the user invokes /auto-integrate on a finished feature branch. Target = the argument, else dev.
main/production or protected, refuse (invariant 1). Confirm the target exists./code-review at high effort over the diff target..HEAD.ui-visual-gate skill — ui_project: true in the repo's CLAUDE.md, or the
diff touches front-end files), the green light ALSO requires a visual comparison artifact (screenshot / preview URL
/ Figma frame link). Missing it → STOP and ask the user for one.docs/merge-log.md (create it if absent) using the format below, then report the
merge-log line as the outcome.When you stop, output: what you did so far, the exact blocker, and a concrete recommendation — so the user decides from your summary rather than re-deriving it.
Append to docs/merge-log.md (newest at top is fine; keep entries greppable):
## <date> <short-sha> <feature-branch> → <target>
- did: <one line — what shipped>
- review: <verdict — e.g. "no blocking; 2 nits fixed">
- visual: <UI projects only — screenshot path / preview URL / Figma frame link>
- revert: git revert <short-sha>
The repo-side half of the guardrails. Run once per repo to protect main (require PR, require status checks, require
linear history, block force-push + deletion):
"${CLAUDE_PLUGIN_ROOT}/skills/auto-integrate/scripts/protect-branches.sh" <owner>/<repo>
${CLAUDE_PLUGIN_ROOT} is set when this runs as an installed plugin (it points at the dev plugin dir). If you are
working inside the marketplace repo checkout instead, the path is plugins/dev/skills/auto-integrate/scripts/protect-branches.sh.
The script is idempotent (reads then PUTs; deletes nothing) and prints what it set. Review its --help before running
— it changes GitHub repository settings, so the user runs it deliberately; auto-integrate never runs it for them.
main just this once / it's a tiny change." → Invariant 1. Never.| Rationalization | Reality |
|---|---|
| "Review found only minor stuff, skip the re-review" | Fixes introduce findings. Re-review after every fix (step 1). |
| "Tests are slow, I manually checked the change" | Manual check ≠ green suite. Run tests (step 3). |
"Target dev doesn't exist, I'll use main" | Missing target = STOP and ask, never fall back to main. |
| "The conflict resolution is obvious" | Behavior-changing conflict resolution is a judgment call. Stop (invariant 6). |
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/dev:auto-integrate (optional) target integration branch — defaults to devfrom dev
npx claudepluginhub chienchuanw/chuan-skills --plugin dev7 skills in this plugin
/apply-coding-rulesStamp a managed coding-discipline rules block into a project's CLAUDE.md (or AGENTS.md / GEMINI.md) — the four rules: think before coding, simplicity first, surgical changes, goal-driven execution, plus a guard on irreversible/git-history actions. This skill is the single source of truth for those rules; running it writes or updates the rules between managed markers, idempotently, leaving the rest of the file untouched. Use when the user wants to add, update, sync, or propagate the shared coding rules / coding standards into a repository — "apply the coding rules", "add the four rules to this project's CLAUDE.md", "sync our coding standards here", "stamp the coding discipline block" — even if they don't name the skill./featureEnd-to-end feature delivery workflow that orchestrates issue creation, branch setup, strict TDD implementation, PR opening, review-feedback handling, and session archival. Use when the user wants to ship a feature from start to finish with one command — e.g. "/feature 42", "/feature add RSS feed", "build this end-to-end", "deliver issue 17", "take this from issue to merged PR". Bundles the plan → TDD → PR → review-fix → archive arc that would otherwise require invoking 5+ separate skills.
/handoff-promptCompanion to the `handoff` skill: after `/handoff` has written a handoff document, run this in the SAME (ending) session to emit a copy-paste English prompt the user pastes into a FRESH session so a new agent resumes the work seamlessly. Use when a session is wrapping up and the next session needs a clean bootstrap — ESPECIALLY right after a spec or plan is finalized/locked, when the context window is filling up or approaching its limit, or just before a `/clear` to continue the work elsewhere. Triggers: "give me the handoff prompt", "what do I paste into the new session", "產生接手 prompt", "handoff-prompt", "下一輪要貼什麼", "context 快滿了", "spec 定稿了幫我接棒", "要 /clear 了". Manual-only (`disable-model-invocation`). It does NOT write the handoff doc (that is `/handoff`) and does NOT launch a background agent (that is `claude-handoff`)./health-auditManually-triggered comprehensive codebase health audit covering security, architecture, documentation drift, dead code, and test coverage gaps. Produces a ranked markdown report, files prioritized GitHub issues, and proposes (but never autonomously opens) auto-fix PRs for trivial safe changes. Use when the user wants to audit, scan, review the health of, do a security check on, find dead code in, check doc drift in, or get a backlog of improvement issues for a repository — e.g. "/health-audit", "audit this repo", "do a full health check", "scan for issues to file", "check what's rotting in here". Scoped to a whole repository: not for ad-hoc bug hunts on a single file (use feature-dev:code-reviewer), and not for scoring an individual skill's quality (use skill-benchmark).
/model-advisorUse when you're about to start a task and want to pick the right Claude model and effort/thinking level for it, instead of defaulting one model + one effort to everything. Fires on "which model should I use", "what model and effort for this", "model advice", "model-advisor", "用哪個模型", "這個任務該用什麼模型/effort". Manual-only (`disable-model-invocation`). This is the CANONICAL model/effort rubric for the repo — `handoff-prompt` reuses the same table for its suggested-model line. Not a handoff tool (that is `handoff-prompt`); this just recommends a model + effort for the task in front of you./ui-visual-gateUse when starting or integrating work on a UI/visual project — anything that renders a screen, component, page, or layout a human looks at. Enforces a visual-first gate: for a UI project you confirm the look (a signed-off Figma frame or a throwaway preview page) BEFORE writing implementation code, and any UI change must carry a visual comparison (screenshot / preview URL / Figma frame) before it can merge. Fires when a project is flagged `ui_project: true` or the diff touches front-end files (.tsx/.jsx/.vue/.svelte/.css), and on "is the design signed off", "visual gate", "UI 專案要先確認畫面", "這個要附截圖對照嗎". Figma is the source of truth — this skill reuses the existing figma skills for design↔code sync rather than reimplementing them. The `auto-integrate` skill calls this as an extra green-light condition for UI projects.