Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

land

БесплатноБез исполняемых скриптовНе проверен

Full land pipeline: /review + fix + /improve + fix + /merge in one command. Use when ready to land a branch end-to-end.

drnот drn★ 23 звезды на GitHub

Об этом скилле

Land Pipeline

Run the full review-fix-improve-fix-merge pipeline to land the current branch.

Arguments

  • $ARGUMENTS - Optional: flags to customize the pipeline (e.g., "skip-improve" to skip the improve phase)

Context

  • Current branch: !git branch --show-current
  • Base ref: !git branch -r 2>/dev/null | grep -oE 'origin/(main|master)' | head -1
  • Git status: !git status --short
  • Changes vs main: !git diff --stat origin/main...HEAD 2>/dev/null | head -50
  • Changes vs master: !git diff --stat origin/master...HEAD 2>/dev/null | head -50

Overview

You orchestrate a 6-phase pipeline to take the current branch from "done coding" to "merged into master." Each phase must complete before advancing to the next.

Phases: 0. Commit — commit any uncommitted changes so downstream phases see them

  1. Review — run /review to get findings
  2. Address review — fix blocking issues and warnings
  3. Improve — analyze session for learnings and fix gaps (inline, not via /improve)
  4. Address improvements — apply approved improvements
  5. Merge — run /merge to land the branch 5b. Switch worktree to default branch — hygiene step so follow-up work starts from the new tip

If any phase has nothing to do (no findings, no improvements), skip it and move on.

Continue Protocol

All phases must execute in a single unbroken sequence. After any sub-skill returns (/review, /merge) or any inline analysis completes, immediately proceed to the next phase. Never treat a sub-skill return or analysis report as the end of your task. The pipeline is only complete after Phase 5b finishes or an abort condition is hit.


Phase 0: Commit Uncommitted Changes

First, git fetch origin <default-branch> (the branch found in "Base ref" above). The BEHIND/diverged detection below reads local knowledge of origin/master (git status, git log HEAD..origin/master) — if that ref hasn't been fetched recently, a remote that has moved on looks identical to "up to date," and the gap surfaces later as confusing failures (e.g. lint-pr/pre-pr failing on files this branch never touched, because --new-from-rev=origin/master diffed against a stale local ref) instead of being caught here where it's cheap to fix. This is a plain fetch, not a merge/rebase — it only updates remote-tracking refs, so it's always safe to run even mid-pipeline.

Before running review, ensure all changes are committed. The review phase uses git diff origin/master...HEAD which only sees committed changes — uncommitted work would be invisible to the reviewer.

Check git status --short. If there are staged or unstaged changes to tracked files (or untracked files that are clearly part of the work):

  1. Stage the relevant changes: git add the modified/new files
  2. Craft a concise commit message summarizing the changes
  3. Commit

This applies whether or not the branch already has commits ahead of master. If there are no existing commits ahead of master but the working tree has uncommitted work, this phase produces the first commit — do not abort. The "no changes on branch" abort only fires when both the commit history AND the working tree are empty (checked after this phase runs).

If there are uncommitted changes AND existing commits ahead of master, commit the uncommitted changes as a separate commit to preserve the existing commit history.

If the branch is BEHIND origin/master (check git status output for "Your branch is behind 'origin/master' by N commits"), fast-forward first or the review will diff against a stale base. With uncommitted changes that overlap incoming files:

  1. git stash push -u -m "land phase 0" to set the work aside
  2. git pull --ff-only to advance to origin/master
  3. git stash pop and resolve any conflicts (the pull may have moved code under your edits)
  4. make test (or project equivalent) to confirm the resolved tree is sane
  5. Stage + commit as one feature commit

If pull --ff-only fails because the branch has diverged (commits ahead AND behind), check whether the divergence is the post-squash-merge pattern: the branch has commits that were already squash-merged into master in a previous /land. Detect this by comparing git log --oneline origin/master..HEAD against the most recent merge commit on master — if the local commit subjects match content that's already squash-landed, the resolution is to git reset --hard origin/master && git cherry-pick <new-commits> to drop the already-applied originals and keep only the new work. The local commits aren't lost (they remain on the remote feature branch), and a plain git rebase origin/master will conflict because the squashed master commit doesn't apply cleanly to the unmodified branch base. Confirm the reset+cherry-pick plan with the user before running it (it's destructive on local refs even though nothing is actually lost). For non-squash-merge divergence (true forking history), still stop and ask — do

Полный SKILL.md на GitHub

Установить land в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл land?

Full land pipeline: /review + fix + /improve + fix + /merge in one command. Use when ready to land a branch end-to-end.

Как установить скилл land?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл land запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить land с