lade: Skill for Claude Code

.cursor/skills/finalize/SKILL.md

finalize is a skill for Claude Code, Cursor from zifeo/lade. It costs 49 tokens per session (1,082 once invoked), scanned A, original, MPL-2.0.

A merge-request finishing workflow that updates a branch from the main branch, runs separate checks, applies needed fixes, and performs a final cleanup pass. A merge request is a proposal to combine one branch's changes into another.

In plain words
What is it for?
Use it when a pull request or merge request is ready for final review, including checks for bugs, specification mismatches, reuse, and oversized files.
Why use it?
It provides an ordered way to prepare a change for merging instead of reviewing an outdated branch or mixing all checks together. It stops when conflicts or missing requirements need attention.

Skill for Claude CodeCursor

Written for Claude Code and Cursor: disable-model-invocation in frontmatter, but also installed under .cursor/. Also seen: mentions subagents.

This is zifeo/lade's own configuration. It tells Claude Code and Cursor how to work on lade itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything lade configures →

View source ↗ zifeo/lade
Reuse

Borrowing it

Nothing to install: this file belongs to zifeo/lade. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/zifeo/lade/main/.cursor/skills/finalize/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/zifeo/lade

Made for: Claude Code, Cursor.

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 finalize

README.md
[![agentmods](https://agentmods.dev/badge/skills/zifeo/lade/finalize/github.svg)](https://agentmods.dev/skills/zifeo/lade/finalize)
Your own site
<a href="https://agentmods.dev/skills/zifeo/lade/finalize"><img src="https://agentmods.dev/badge/skills/zifeo/lade/finalize/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 finalize

Your own site · 80×15
<a href="https://agentmods.dev/skills/zifeo/lade/finalize"><img src="https://agentmods.dev/badge/skills/zifeo/lade/finalize.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,082 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.
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.00049 $0.01082
Opus 5.5 $0.00020 $0.00433
Sonnet 5.5 $0.00010 $0.00216
Haiku 4.5 $0.00005 $0.00108

Measured 29d ago against content hash f2cd55d93856, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

finalize 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 29d 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.

.cursor/skills/finalize/SKILL.md · 130 lines

How it starts

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

Finalize

A pageant, not a swarm. Reviewers are read-only. The parent waits, edits, then launches the next seat. One pass.

When

User says /finalize, finalize, close the MR, or ready to merge. Do not run this on a drive-by question.

0. Sit on main first

Fetch origin/main. Rebase this branch onto it (or merge main if rebase is refused). If the rebase conflicts, stop and ask. Do not launch reviewers on a stale base.

Then pin what will be reviewed. Commits ahead of origin/main and uncommitted edits both count. A dirty tree is the review subject. Do not commit it to make a range. Stop only when both are empty.

git fetch origin main
git merge-base origin/main HEAD
git diff --stat "$(git merge-base origin/main HEAD)"
git diff --stat HEAD

Build a Spec: block for the specs child, in this order:

  1. Specs the user stated in this conversation
  2. The PR body / issue, if this is an MR
  3. A file the user named as the spec

If none of those exist, still launch specs. It must ask. Do not drop the seat.

The child scope uses Diff: branch changes when the commit range is non-empty, and Diff: uncommitted changes when the work is only in the tree. When both exist, name both.

Full Repository Path: <abs>
Diff: <branch changes | uncommitted changes | both>
Base Branch: main
Range: <merge-base>...<HEAD>
Worktree: <clean | dirty, include HEAD>
Spec:
<quoted lines, or "none, ask">

Custom agent names may be missing on the Task tool. Default path: generalPurpose children. Paste .cursor/agents/<name>.md as the preamble, then the scope block.

1. Parallel: bugs, simplify, specs

Launch these three together. Wait for all three. Do not launch refactor here.

Subagent Job Writes
bugs Concrete failures no
simplify Smaller form, same behavior no
specs Diff vs a cited spec. Asks if no reference no

If specs returns Ask:, answer from this conversation or ask the user. Then relaunch only specs once with the answer. Do not invent product.

Read the full file on GitHub · 130 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. 29d ago Changed · +6 lines f2cd55d93856
  2. 1mo ago Changed 933631e111ba
  3. 1mo ago First seen · 124 lines · 49 tokens per session scan A 3df91c3d4d7e

Subscribe to this mod's changes

finalize is a skill published in the GitHub repository zifeo/lade (136 stars, last pushed today), licensed MPL-2.0. It adds 49 tokens to every session and 1,082 once invoked, about $0.0002 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-09-21.

Related

Other skills, from other repositories