land
БесплатноБез исполняемых скриптовНе проверенFull land pipeline: /review + fix + /improve + fix + /merge in one command. Use when ready to land a branch end-to-end.
от 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
- Review — run
/reviewto get findings - Address review — fix blocking issues and warnings
- Improve — analyze session for learnings and fix gaps (inline, not via
/improve) - Address improvements — apply approved improvements
- Merge — run
/mergeto 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):
- Stage the relevant changes:
git addthe modified/new files - Craft a concise commit message summarizing the changes
- 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:
git stash push -u -m "land phase 0"to set the work asidegit pull --ff-onlyto advance to origin/mastergit stash popand resolve any conflicts (the pull may have moved code under your edits)make test(or project equivalent) to confirm the resolved tree is sane- 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
Установить 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), без исполняемых скриптов.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub