
land-pr
Land lossless-claw pull requests safely; use when asked whether a PR is ready, whether CI passes, to merge or land a PR, or to perform maintainer closeout after review.
- Installs
- 47
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/martian-engineering/lossless-claw --skill land-pr- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads land-pr automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
Lossless PR Landing
Use this skill when landing a lossless-claw pull request or answering whether it is ready to merge.
Workflow
-
Read repository instructions first.
- Follow
AGENTS.md, especially data-preservation, changeset, compatibility, and command-reporting rules. - If a deterministic merge wrapper exists for this repo, prefer it. Otherwise use the manual fallback below.
- Follow
-
Identify and pin the PR head.
- Fetch the real PR metadata:
gh pr view <PR> --json number,title,state,isDraft,baseRefName,headRefName,headRefOid,mergeable,mergeStateStatus,reviewDecision,statusCheckRollup,author,files,closingIssuesReferences,url - Treat
headRefOidas the merge pin. Re-read it immediately before merge.
- Fetch the real PR metadata:
-
Verify readiness.
- PR must be open, non-draft, mergeable, and clean.
- All required/current checks must be complete and successful on the pinned head:
gh pr checks <PR> --json name,state,bucket,workflow,link,startedAt,completedAt - If checks are pending, failing, missing, or tied to a different head SHA, do not merge.
- If the PR changes package-visible behavior, user-facing behavior, docs-visible behavior, compatibility metadata, config surface, or release behavior, answer the changeset question before merge.
- Do not expect external contributors to add Changesets metadata. Maintainers own it.
-
Run or confirm final review.
- Prefer the repo's actual PR base:
head=$(gh pr view <PR> --json headRefOid --jq .headRefOid) base=$(gh pr view <PR> --json baseRefName --jq .baseRefName) gh pr checkout <PR> test "$(git rev-parse HEAD)" = "$head" /Users/phaedrus/Projects/prompts/skills/autoreview/scripts/autoreview --mode branch --base "origin/$base" - Run branch review only from a checkout whose
HEADexactly matches the pinned PRheadRefOid. - Verify every accepted finding against the code before acting on it.
- Do not merge with unresolved actionable findings.
- Prefer the repo's actual PR base:
-
Search open issues before merge closeout.
- Inspect explicit closing references:
gh pr view <PR> --json closingIssuesReferences --jq '.closingIssuesReferences' - Search open issues for likely duplicates or covered reports using the PR title, key error strings, feature names, changed behavior, and issue numbers mentioned in commits/body:
gh issue list --state open --limit 50 --search "<keyword terms> repo:Martian-Engineering/lossless-claw" - Read candidate issues before deciding they are covered:
gh issue view <ISSUE> --json number,title,state,body,url,labels,comments - If an issue is clearly fixed by the PR and not auto-closed by GitHub, close it after merge with a concise comment linking the merged PR.
- If unsure, leave a comment on the issue noting the PR may help and ask for confirmation instead of closing.
- Inspect explicit closing references:
-
Merge deterministically.
- Preferred wrapper, if present:
scripts/pr-merge verify <PR> scripts/pr-merge run <PR> - Manual fallback:
head=$(gh pr view <PR> --json headRefOid --jq .headRefOid) title=$(gh pr view <PR> --json title --jq .title) gh pr merge <PR> --squash --match-head-commit "$head" --subject "$title" - Never use
--autofor this workflow. - Do not merge if the head SHA changed between verification and merge.
- Preferred wrapper, if present:
-
Post-merge verification and maintainer follow-through.
- Confirm the PR is
MERGEDand capture the merge commit:gh pr view <PR> --json state,mergeCommit,mergedAt,mergedBy,url - Leave a brief thank-you comment for external contributors after merge:
gh pr comment <PR> --body "Thanks for the contribution, @<login>. This is landed now." - Close any verified covered issues that remain open, with a comment linking the PR and merge.
- If a required changeset was not included before merge, immediately create a small follow-up PR that adds only the missing
.changeset/*.md.
- Confirm the PR is
-
Final report.
- State whether the PR was ready and whether it was merged.
- Include PR number/title, pinned head SHA, check summary, review command/result, merge command, merge commit SHA, contributor thank-you comment URL, issue-search outcome, closed/commented issues, and changeset outcome.
- Include the commands run and their results in a code block, per
AGENTS.md.
Do Not
- Do not delete, purge, truncate, or otherwise discard persisted user data as part of landing.
- Do not bypass failing or pending required checks.
- Do not merge without head-SHA pinning.
- Do not assume no related issues exist just because the PR body lacks
Fixes #.... - Do not close ambiguous issues. Comment or report uncertainty instead.
FAQ
What does the land-pr skill do?
Land lossless-claw pull requests safely; use when asked whether a PR is ready, whether CI passes, to merge or land a PR, or to perform maintainer closeout after review.
How do I install land-pr?
Run npx skills add https://github.com/martian-engineering/lossless-claw --skill land-pr in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/land-pr/ (personal) or .claude/skills/land-pr/ (project).
Which AI agents can use land-pr?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is land-pr safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains land-pr?
It is published by martian-engineering in martian-engineering/lossless-claw. It has 47 recorded installs.
More from martian-engineering/lossless-claw
lossless-claw
martian-engineering/lossless-claw
Configure, diagnose, and use lossless-claw effectively in OpenClaw, with emphasis on key settings, summary health, and recall-tool usage.
Popular code quality & workflow skills
grill-me
mattpocock/skills
A relentless interview to sharpen a plan or design.
improve-codebase-architecture
mattpocock/skills
Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.
handoff
mattpocock/skills
Compact the current conversation into a handoff document for another agent to pick up.
domain-modeling
mattpocock/skills
Build and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing a GLOSSARY.md, or recording or editing an ADR.
codebase-design
mattpocock/skills
Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary.
diagnosing-bugs
mattpocock/skills
Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something broken/throwing/failing/slow.