Skip to content
Back to skills

Merge

ASecurity

Finishes work: fast linters on changed files, new duplicated code judged, merge into develop, push, delete branch and worktree, update the repo's plugin. No CI. Use at end of work or when asked to merge.

  • 4 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 7, 2026
developmentpythongovuegit

Works with

  • claude code

Security analysis

A100/100

Scanned November 13, 2026

npx -y skills add antoine-tena/ion-repo --skill merge --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Merge?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Merge
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/antoine-tena-merge-a028491e/badge)](https://www.skillsdirectory.com/skills/antoine-tena-merge-a028491e)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: merge
description: Finishes work: fast linters on changed files, new duplicated code judged, merge into develop, push, delete branch and worktree, update the repo's plugin. No CI. Use at end of work or when asked to merge.
argument-hint: "[branch]"
---

Branch: `$ARGUMENTS`, else current. Integration branch: per project `CLAUDE.md`, else `develop` if it exists, else `origin`'s default. Direct merge, no PR or approval ([NO-COMMIT-ON-MAIN]); an open PR turns "Merged" at step 4's push. Talk in the user's language.

1. `git status --porcelain` must be empty, else stop and say so. Run `/repo:review <branch>`: pushed commits are public for good. Its tidying happens before merge; what it leaves to the user: tell them, wait for their decision.
   Fast linters in the branch's worktree, only on changed files (`git diff --name-only --diff-filter=d <integration>...<branch>`): `ruff check` and `ruff format --check` on Python, `eslint` on JS/TS/Vue, the like for other languages (ion-repo: `uv run ruff check <files>`, `uv run ruff format --check <files>`). No type checker, test, `ion repo check` or `ion repo ci`: the release runs them. No such file: run nothing. Failure: fix on the branch, never merge red.
   Then `ion repo clones` in the worktree: the duplicated code the branch brought, `copy ← original`, found without Claude (jscpd). Judge each line, the original read first: reuse it (call it instead of the copy), adapt it to serve both, or keep the copy (the two will diverge, a test's or data's repetition). A reuse or an adaptation is a commit on the branch, linters run again on what it touched; a kept copy is named in the debrief with why. Never blocks the merge.
2. If moved into the worktree (`EnterWorktree`), leave it now with `ExitWorktree` (`action: "keep"`): an isolated session refuses to merge from the main tree. Then `git pull --ff-only origin <integration>`, then `git merge --no-ff <branch> -m "Merge branch '<branch>' into <integration>"`, from the main tree if on the integration branch, else `git -C` on a worktree that is. Never switch the main tree's branch under another session.
3. Conflict: stop, show files, propose a resolution.
4. `git push origin <integration>`.
5. Delete worktree and branches now, only if both hold, else delete nothing and say which failed and why:
   - `git fetch -q origin`, then `git merge-base --is-ancestor <branch> origin/<integration>` succeeds;
   - `git -C <wt> status --porcelain` empty.
   Then `git worktree remove .claude/worktrees/<name>` (never `--force`), `git branch -d <branch>` (never `-D`), and if on GitHub (`git ls-remote --heads origin <branch>`) `git push origin --delete <branch>`.
6. Repo ships a plugin (`.claude-plugin/marketplace.json` at root; ion-repo and every family tool): update the installed copy, else a just-merged skill stays `Unknown command` in new sessions. For each `<plugin>` listed, under catalog `name` `<market>` (`<tool>@<tool>` for a family tool):
   - `claude plugin list --json`: entries with `id` `<plugin>@<market>`. None: not installed, do nothing.
   - Once, after step 4's push (a GitHub marketplace reclones): `claude plugin marketplace update <market>`.
   - `claude plugin update <plugin>@<market> --scope <scope>` for each scope found, only those: `user` from anywhere; `project`, `local` from the main tree if the entry's `projectPath` is this repo (`cd <projectPath> && …`). Another repo's `projectPath`: leave it.
   - Tell the user to restart Claude Code: plugins load at launch.
   Local-folder plugin (`readFromFolder`, ion-repo here): same commands, harmless if version unchanged.
7. No CI: it runs only on the release branch (`/repo:release`). Report in the `repo` plugin's `debrief` format (`output-styles/debrief.md`). Suggest `/clear` under its **◆ Blocked**, in one line, only after a long session or before an unrelated subject; otherwise say nothing of it.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.