Skip to content
Development
Skill

/slice-land

Verify a finished slice is actually ready to land (tests green, DoD ticked, deviation log present, STATUS=DONE) and emit a deterministic landing checklist for either direct merge-to-main or PR-shaped integration. Use when the user says "land this slice", "merge back to main",

From plugin
jig
620 skills3 agents5 hooks
Install
$ npx -y skills add ramboz/jig --skill slice-land --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/slice-land

Context preview

The summary Claude sees to decide when to auto-load this skill.

Verify a finished slice is actually ready to land (tests green, DoD ticked, deviation log present, STATUS=DONE) and emit a deterministic landing checklist for either direct merge-to-main or PR-shaped integration. Use when the user says "land this slice", "merge back to main",

SKILL.md

slice-land.SKILL.md
name: slice-land
description: >
  Verify a finished slice is actually ready to land (tests green, DoD ticked,
  deviation log present, STATUS=DONE) and emit a deterministic landing
  checklist for either direct merge-to-main or PR-shaped integration. Use
  when the user says "land this slice", "merge back to main", "ready to
  ship", "create a PR for this slice", "close out the slice", or "slice is
  done — what now". Use `prepare` to emit a readiness report; use
  `execute --mode direct` to also run the merge sequence; use
  `execute --mode pr` to push the branch and open the PR.
user-invocable: true

> Spec 007 created this skill from scratch. The deterministic readiness > checks + report generation live in `land.py`; this SKILL.md drives the > judgment layer (when to invoke, how to interpret blockers, what mode to > pick).

What this skill does

Closes the worktree-drift gap: every slice in jig today commits to a worktree branch and stays there until a human remembers to merge. The skill provides a deterministic landing path:

  • **Verify** the slice is actually done — STATUS=DONE in spec.md, full

test suite green, deviation log section present, DoD checkboxes all ticked.

  • **Emit** a structured markdown report with five readiness checks

(STATUS=DONE, tests green, deviation log present, DoD ticked, and the Class-A cross-ref backstop — spec 112: refuse when the slice/ADR is already integrated on `origin/main`, `JIG_CROSSREF_GATE=0` to bypass) and (in `--mode direct` or `--mode pr`) a Next-steps section of suggested git commands.

`prepare` is **non-destructive on git state**: it may read branch state and fetch `origin/main` to surface a branch-freshness warning, but it never switches branches, merges, pushes, or removes worktrees. `execute --mode direct` runs the destructive merge sequence by pushing the current branch to `origin/main`, then fast-forwards the canonical local `main` worktree to `origin/main` or reports why local sync was skipped (slice 007-02 + 081-01); `execute --mode pr` runs the destructive push + PR-open sequence (slice 007-03). `git worktree remove` and `gh pr merge` are never executed — both stay user-driven post-landing suggestions.

How to use

Run the readiness check

python3 "${CLAUDE_PLUGIN_ROOT}/skills/slice-land/land.py" prepare \
  <path-to-spec.md> <slice-fragment> [--mode {direct,pr}]
  • `spec.md` — path to the spec file (e.g. `docs/specs/007-slice-land/spec.md`).
  • `<slice-fragment>` — case-insensitive substring against `## Slice X — Y`

headings. Same lenient match as `workflow.py transition`.

  • `--mode` — optional. Without it, only the readiness check runs.
  • `direct` — for solo / merge-to-main projects. Suggested commands:

push the branch to `origin/main`, then fast-forward local `main` to `origin/main` when a clean canonical `main` worktree exists.

  • `pr` — for team / PR-shaped flows. Suggested commands: `git push -u

origin <branch> && gh pr create --body-file <path>`. A PR body is written to `/tmp/jig-slice-<NNN-NN>-pr-body.md` containing the slice's ACs and a deviation-log excerpt.

Run the merge sequence (execute --mode direct)

After `prepare` confirms the slice is ready, `execute --mode direct` runs the direct landing sequence:

python3 "${CLAUDE_PLUGIN_ROOT}/skills/slice-land/land.py" execute \
  --mode direct <path-to-spec.md> <slice-fragment> [--dry-run]
  • `--dry-run` — print the git commands that would run without executing

them. Use this for a final sanity check before committing.

  • Without `--dry-run` — runs `git push origin <branch>:main` from the

current worktree after the fast-forward guard passes, then fetches and fast-forwards the canonical local worktree checked out at `refs/heads/main` to `origin/main` when that worktree exists and is clean. The caller's feature/detached worktree is not switched to `main`. Stops and reports if the authoritative push fails. If the post-push local sync cannot run because `main` is missing, dirty, locked, diverged, or unavailable, the report says `local main sync skipped: <reason>` while preserving the successful authoritative push. Never runs `git worktree remove` (printed as a post-landing suggestion only).

**Safety guards** (checked before any git mutation):

  • Refuses if current branch is `main` or `master`.
  • Refuses if `main` has diverged (fast-forward not possible).

Open the PR (execute --mode pr)

For PR-shaped flows, `execute --mode pr` pushes the branch and opens the PR via the GitHub CLI:

python3 "${CLAUDE_PLUGIN_ROOT}/skills/slice-land/land.py" execute \
  --mode pr <path-to-spec.md> <slice-fragment> [--dry-run]
  • `--dry-run` — print the commands that would run, write the PR body

file for inspection, but do NOT push or open the PR.

  • Without `--dry-run` — runs `git push -u origin <branch>` followed by

`gh pr create --title "<title>" --body-file <body-path>`. Stops if push fails (gh is NOT called after push failure). Title shape is `feat(<scope>): <subject>`: scope comes from a single `skill:` frontmatter value or falls back to the spec directory slug, and subject drops the numeric slice prefix so the PR-title workflow accepts it.

  • Push runs from the **current worktree** (not the main worktree root,

since the feature branch is checked out here).

  • Never runs `gh pr merge` (printed as a post-landing suggestion only).
  • Local `main` sync is pending until the PR actually merges. PR mode never

claims local `main` was updated before `origin/main` moves.

**Safety guards** (checked before any subprocess mutation):

  • Refuses if current branch is `main` or `master`.
  • Refuses if `gh` CLI is not on PATH (install instructions printed).
  • Refuses if `origin` does not point at github.com (HTTPS or SSH form).

Exit codes

  • `0` — all five readiness checks pass; the slice is ready to land

(for `prepare`) or was merged successfully (for `execute`).

  • `1`
Read more
Ships withjig

A Claude Code and Codex plugin that scaffolds AI-native development practices into new projects. jig adds a repeatable spec, implementation, review, and memory workflow to AI-assisted software projects.

Get the whole plugin
Stats
6
Stars
0
Forks
Active
Maintenance
Python
Language
MIT
License
9d ago
Last commit
4mo ago
Created

Repo: ramboz/jig

Other skills on jig.

adr-workflow
Skill

adr-workflow

Scaffold, accept, index, and link Architectural Decision Records (ADRs). Use when the user says "write an ADR", "record this decision", "resolve [deferred…

@ramboz@rambozView Skill
analyze
Skill

analyze

Cross-artifact consistency report for jig specs — a non-destructive six-category audit at CRITICAL/HIGH/MEDIUM/LOW severity, covering duplication, ambiguity,…

@ramboz@rambozView Skill
arch-review
Skill

arch-review

Team baseline for architecture, design-doc, and RFC review — produces summary, strengths, concerns, and open questions. Auto-triggers when you say review this…

@ramboz@rambozView Skill
bug-fix
Skill

bug-fix

Drive the teeth-gated lifecycle for reported defects: diagnose root cause, prove it, and prevent regression through REPORTED → DIAGNOSING → ROOT_CAUSED →…

@ramboz@rambozView Skill
clarify
Skill

clarify

Lightweight spec clarification scan for jig projects — a six-category ambiguity audit that asks up to five prioritized questions and appends them to the spec's…

@ramboz@rambozView Skill
code-health
Skill

code-health

Run a static-analysis pass on a project — detect the ecosystem (Python or Node), drive its linter (ruff / eslint, plus advisory pyright/complexity/ prettier…

@ramboz@rambozView Skill