prepare-to-land

prepare-to-land is a skill for Claude Code from dcosson/h2. It costs 73 tokens per session (3,628 once invoked), scanned A, original, MIT.

A final cleanup workflow for a long-running branch before merging it into the main shared code line. It removes leftover work records, review documents, tracking comments, and unrelated changes.

In plain words
What is it for?
Use it after implementation is complete to close work items, remove obsolete review files and comments, and undo accidental changes outside the task.
Why use it?
Long-running branches can accumulate files and edits that make the final change harder to review and more disruptive to the rest of the project.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md; positional $N argument.

Good fit Use it after implementation is complete to close work items, remove obsolete review files and comments, and undo accidental changes outside the task.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dcosson/h2/prepare-to-land
View source ↗ dcosson/h2
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add dcosson/h2 --skill prepare-to-land
Clone the repo
git clone --depth 1 https://github.com/dcosson/h2

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for prepare-to-land

README.md
[![agentmods](https://agentmods.dev/badge/skills/dcosson/h2/prepare-to-land/github.svg)](https://agentmods.dev/skills/dcosson/h2/prepare-to-land)
Your own site
<a href="https://agentmods.dev/skills/dcosson/h2/prepare-to-land"><img src="https://agentmods.dev/badge/skills/dcosson/h2/prepare-to-land/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for prepare-to-land

Your own site · 80×15
<a href="https://agentmods.dev/skills/dcosson/h2/prepare-to-land"><img src="https://agentmods.dev/badge/skills/dcosson/h2/prepare-to-land.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 73 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,628 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00073 $0.03628
Opus 5.5 $0.00029 $0.01451
Sonnet 5.5 $0.00015 $0.00726
Haiku 4.5 $0.00007 $0.00363

Measured 1mo ago against content hash 843543ca6a30, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

prepare-to-land scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

internal/config/templates/styles/opinionated/skills/prepare-to-land/SKILL.md · 248 lines

How it starts

The opening of the file, as written. The whole thing — 248 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Prepare to Land

A long-running work branch — especially one driven by multi-agent work — accumulates artifacts that shouldn't survive into main: closed-but-unfiled beads, accumulated -review.md files, comments tagging which bead/review introduced each line, accidental refactors of test infra/CI/build that weren't the assigned task, expanded sets of make targets where there used to be one. Each of these on its own is small. Together they make the diff to main larger, noisier, and disruptive to other users of the repo.

This skill is the trunk-landing hygiene pass. It does NOT touch the implementation — it cleans up the artifacts and accidental scope that grew around the implementation. Run it after the work is functionally complete and before opening the PR to main.

Scope: specific to the final land into the trunk (main or equivalent). NOT for ordinary feature-to-feature merges that happen along the way (e.g., merging a sub-branch back into the integration branch mid-project). Use it once, at the end, when the work is about to enter shared trunk and become visible to everyone using the repo.

This skill complements plan-work-completion-signoff (which verifies the plan matches the code). prepare-to-land verifies the branch matches the intended scope — the diff doesn't carry artifacts and accidental refactors that other users of the repo shouldn't have to absorb.

Inputs

  • $0: Work branch name (e.g., feature/agent-runtime-v2). Default: current branch.
  • $1: Main branch to compare against (e.g., main). Default: main.

Critical Rules

  1. Don't change behavior. This skill only deletes/reverts/rewords. If a code change looks like it might be load-bearing, leave it. The bias is conservative — when in doubt, keep.
  2. Don't touch the merge target. All edits happen on the work branch. main is untouched.
  3. Surface scope creep, don't silently undo it. When you find a cross-cutting refactor that wasn't part of the task, propose reverting it AND surface it in the report so the team can decide whether to keep, split out, or drop. Don't unilaterally undo significant changes.
  4. Run gates before AND after. Confirm make test / make lint / make typecheck (or the project's equivalents) pass at the start, do the cleanup, confirm they still pass at the end. If any gate breaks, stop and report.

Read the full file on GitHub · 248 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 248 lines · 73 tokens per session scan A 843543ca6a30

Subscribe to this mod's changes

prepare-to-land is a skill published in the GitHub repository dcosson/h2 (163 stars, last pushed yesterday), licensed MIT. It adds 73 tokens to every session and 3,628 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.