close

close is a skill for Claude Code, Codex from godshiba/genesis. It costs 85 tokens per session (917 once invoked), scanned A, original, MIT.

A session-closing procedure for GENESIS projects that records what changed, checks the project, and leaves clear information for the next session.

In plain words
What is it for?
It helps run final checks, record completed work and the next step, inspect repository state when applicable, and prepare a resumable handoff.
Why use it?
It prevents unfinished work and missing context from making the next session harder to resume safely.

Skill for Claude CodeCodex

Part of the genesis plugin — 10 skills, 3 agents shipped together

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.

agentmods
npx agentmods add skills/godshiba/genesis/close
Any agent
npx skills add godshiba/genesis --skill close
Clone the repo
git clone --depth 1 https://github.com/godshiba/genesis

Made for: Claude Code, Codex.

Or install genesis, the plugin that ships this one along with the rest of its 10 skills, 3 agents.

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 close

README.md
[![agentmods](https://agentmods.dev/badge/skills/godshiba/genesis/close.svg)](https://agentmods.dev/skills/godshiba/genesis/close)
Your own site
<a href="https://agentmods.dev/skills/godshiba/genesis/close"><img src="https://agentmods.dev/badge/skills/godshiba/genesis/close.svg" alt="Measured on agentmods" height="20"></a>
Per session 85 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 917 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00085 $0.00917
Opus 5 $0.00043 $0.00458
Sonnet 5 $0.00017 $0.00183
Haiku 4.5 $0.00009 $0.00092

Measured 3d ago against content hash d9bf625eda52, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

close 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 3d 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.

plugins/genesis/skills/close/SKILL.md · 73 lines

How it starts

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

/genesis:close — End the Session Cleanly

The exit ritual. A session that ends without this destroys context the next session will pay to rebuild. Requires docs/registry/ — if absent, just summarize the work normally and suggest /genesis:init for next time.

Git is detected, not assumed. If git rev-parse --is-inside-work-tree fails, this is not a repo: skip every commit, branch, and tree-settling step below, and omit repo state from the handoff — record what changed and the next step only. The handoff is file-based and works without git.

Steps

  1. Gate audit first. Run the /genesis:gate-check checks. If G2 (validation) is red: do not close over it. Either fix it now or register the failure as an ISS-NNN and say explicitly that the tree is red and why. Never leave a broken tree silently.

  2. Settle the tree (git repos only — skip entirely without a repo). Half-finished work is either completed, committed as a coherent WIP on a branch, or reverted — never left ambiguous. Ask the user which, if it is not obvious.

  3. Append the SESSION_LOG.md entry (newest on top):

    • What was completed, with file paths.
    • Repo state: branch, last commit hash, and the check command result. Omit branch/commit when there is no git repo; still record the check result.
    • The next concrete step — specific enough that a cold session can start from it without re-reading the whole repo ("implement X in file Y per ROADMAP phase N task M", not "continue").
    • Anything in progress that should be reviewed first.
    • Reference issues by ID only; bodies live in ISSUES.md.
  4. Sync the roadmap. Check off completed ROADMAP.md tasks and update the status table if a phase boundary was crossed.

  5. Clear the breadcrumb. If docs/registry/.session-snapshot.md exists (written automatically before a context compaction), delete it — a proper handoff supersedes the mechanical snapshot, and leaving it would mislead the next session into thinking work ended mid-task.

Read the full file on GitHub · 73 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. 3d ago First seen · 73 lines · 85 tokens per session scan A d9bf625eda52

Subscribe to this mod's changes

close is a skill published in the GitHub repository godshiba/genesis (2 stars, last pushed 2mo ago), licensed MIT. It adds 85 tokens to every session and 917 once invoked, about $0.0004 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.