Closure

Closure is a skill for Claude Code from Nagiliant/Genesis-Legacy-V2. It costs 26 tokens per session (763 once invoked), scanned A, original, Apache-2.0.

A Git release step that pushes a branch and opens a pull request, which is a request for someone to review and merge code.

In plain words
What is it for?
Use it to close a completed workflow by checking its state, applying an accurate commit-label convention, pushing the branch, and creating the appropriate pull request.
Why use it?
It keeps Git operations in one controlled step and prevents the workflow from merging changes without human approval.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the genesis-spec-kit plugin — 23 skills shipped together

Good fit Use it to close a completed workflow by checking its state, applying an accurate commit-label convention, pushing the branch, and creating the appropriate pull request.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nagiliant/genesis-legacy-v2/genesis-closure
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 Nagiliant/Genesis-Legacy-V2 --skill genesis-closure
Clone the repo
git clone --depth 1 https://github.com/Nagiliant/Genesis-Legacy-V2

Made for: Claude Code.

Or install genesis-spec-kit, the plugin that ships this one along with the rest of its 23 skills.

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 Closure

README.md
[![agentmods](https://agentmods.dev/badge/skills/nagiliant/genesis-legacy-v2/genesis-closure/github.svg)](https://agentmods.dev/skills/nagiliant/genesis-legacy-v2/genesis-closure)
Your own site
<a href="https://agentmods.dev/skills/nagiliant/genesis-legacy-v2/genesis-closure"><img src="https://agentmods.dev/badge/skills/nagiliant/genesis-legacy-v2/genesis-closure/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 Closure

Your own site · 80×15
<a href="https://agentmods.dev/skills/nagiliant/genesis-legacy-v2/genesis-closure"><img src="https://agentmods.dev/badge/skills/nagiliant/genesis-legacy-v2/genesis-closure.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 763 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.00026 $0.00763
Opus 5 $0.00013 $0.00381
Sonnet 5 $0.00005 $0.00153
Haiku 4.5 $0.00003 $0.00076

Measured 11d ago against content hash 1cb69323f188, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

Closure 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 11d 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.

skills/genesis-closure/SKILL.md · 53 lines

How it starts

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

Closure — Git

Closure is the only step that performs git operations. It exists precisely because Accept must do no git. Closure does three things: push the branch, compose a PR description, and open the PR. It never auto-merges — the human merges when ready. Branch cleanup is a separate, optional, post-merge step.

Commit message discipline

Every pipeline commit carries a subject prefix that matches what the diff actually touches:

  • Spec-only (no source code) — brainstorm: / design: / specify: / micro: / northstar: / accept:
  • Code-touchingimplement:
  • Both (e.g. an amendment editing spec + code) — the prefix matching the dominant change.

The prefix must not lie about the diff. A spec-only prefix on a commit that also changed source code is a labeling mismatch — fix it with git commit --amend or a rebase, never force past it. You can enforce this with an optional git pre-commit hook (see docs/extending.md), but the discipline stands on its own.

Context detection

Read project-state.md (active feature, mode) and approvals/master.json to detect which closure this is:

  • Group closure (mid-feature): no review record yet. PR targets the feature branch. Title: {feature} G{N} — {group title}.
  • Feature closure (end of feature): a review record exists. PR targets main. Title: {feature-name}.

Process

  1. Pre-flight. Verify you are on the feature branch ({NNN}-{feature-name}) and that there are commits to push.
  2. Push: git push -u origin {branch-name} (skip with a note if already up to date).
  3. Compose the PR body from the micro specs and commit history:
    • Group PR: group title · micro specs implemented (id + one-line summary) · requirements covered (FR/AC from spec frontmatter) · audit results (A1–A5 clean / N findings fixed) · git diff --stat.
    • Feature PR: feature name · 2–3 sentence summary · per-group breakdown · total requirements coverage · audit summary · stats (N specs, N audit cycles, N commits).
  4. Create the PR: gh pr create --title "{title}" --body "{body}" --base {target} — base is the feature branch for group closure, main for feature closure. Never auto-merge.
  5. Report the PR URL, title, base, and changed-file count.
  6. Optional cleanup (--cleanup, post-merge only): verify the PR is merged (refuse if not), then git checkout main && git pull, git branch -d {branch}, git push origin --delete {branch}. Idempotent.

Read the full file on GitHub · 53 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. 11d ago First seen · 53 lines · 26 tokens per session scan A 1cb69323f188

Subscribe to this mod's changes

Closure is a skill published in the GitHub repository Nagiliant/Genesis-Legacy-V2 (2 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 26 tokens to every session and 763 once invoked, about $0.0001 per session on Opus 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-31.

Related

Other skills, from other repositories

release-archivist

Close out a spec-superflow change with verification, summary, and archive readiness. Invoke when implementation is complete, verification is underway, or the user asks for a final wrap-up.

MageByte-Zero/spec-superflow · 42 tokens

memstack-development-changelog-generator

Use when the user says 'generate changelog', 'update changelog', 'what changed', 'release notes', 'write changelog', or needs a formatted CHANGELOG.md from git commit history. Do NOT use for diary entries, git log viewing, or commit message writing.

cwinvestments/memstack · 63 tokens

ship

Use when code is ready to ship — creates PRs, merges, deploys, and verifies. Handles the full PR-to-production pipeline. Triggers on /ship.

garagon/nanostack · 36 tokens

release-readiness

Use after review/qa/security/license-audit/privacy-check to compose a release decision before /ship. Returns OK only when all required upstream evidence is present and clean. Triggers on /release-readiness.

garagon/nanostack · 45 tokens

ijfw-ship

Use when the user says 'ship it', 'ship this', 'release', 'publish', 'launch', 'deploy', 'go live', 'wrap this up', 'time to ship', or invokes '/ijfw-ship'. Domain-aware release — software (test → tag → push → publish), book (final edit → format → KDP / agent / Substack), campaign (review → schedule → launch →…

FerroxLabs/ijfw · 139 tokens

ijfw-preflight

Run the IJFW preflight pipeline (11 gates, fail-fast). Trigger: 'ijfw preflight', 'run preflight', 'check before ship', 'preflight gates', 'validate before release'.

FerroxLabs/ijfw · 47 tokens