adr-workflow
Scaffold, accept, index, and link Architectural Decision Records (ADRs). Use when the user says "write an ADR", "record this decision", "resolve [deferred…
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",
$ npx -y skills add ramboz/jig --skill slice-land --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/slice-landContext 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",
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).
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:
test suite green, deviation log section present, DoD checkboxes all ticked.
(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.
python3 "${CLAUDE_PLUGIN_ROOT}/skills/slice-land/land.py" prepare \
<path-to-spec.md> <slice-fragment> [--mode {direct,pr}]headings. Same lenient match as `workflow.py transition`.
push the branch to `origin/main`, then fast-forward local `main` to `origin/main` when a clean canonical `main` worktree exists.
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.
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]them. Use this for a final sanity check before committing.
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):
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]file for inspection, but do NOT push or open the PR.
`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.
since the feature branch is checked out here).
claims local `main` was updated before `origin/main` moves.
**Safety guards** (checked before any subprocess mutation):
(for `prepare`) or was merged successfully (for `execute`).
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.
Scaffold, accept, index, and link Architectural Decision Records (ADRs). Use when the user says "write an ADR", "record this decision", "resolve [deferred…
Cross-artifact consistency report for jig specs — a non-destructive six-category audit at CRITICAL/HIGH/MEDIUM/LOW severity, covering duplication, ambiguity,…
Team baseline for architecture, design-doc, and RFC review — produces summary, strengths, concerns, and open questions. Auto-triggers when you say review this…
Drive the teeth-gated lifecycle for reported defects: diagnose root cause, prove it, and prevent regression through REPORTED → DIAGNOSING → ROOT_CAUSED →…
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…
Run a static-analysis pass on a project — detect the ecosystem (Python or Node), drive its linter (ruff / eslint, plus advisory pyright/complexity/ prettier…