session-wrap

session-wrap is a skill for Claude Code, Codex from rockyflux/yq-workflow. It costs 64 tokens per session (820 once invoked), scanned A, original, MIT.

A session-closing aid for recording what was completed, what remains open, what was learned, and what to do next during a coding task.

In plain words
What is it for?
Use it to summarize coding work, review the repository’s current state, capture follow-up actions, and decide what changes may be ready to commit.
Why use it?
It prevents important context from being lost when work stops. It also helps another person, or your future self, resume the work without reconstructing the whole session.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

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/rockyflux/yq-workflow/session-wrap
Any agent
npx skills add rockyflux/yq-workflow --skill session-wrap
Clone the repo
git clone --depth 1 https://github.com/rockyflux/yq-workflow

Made for: Claude Code, Codex.

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 session-wrap

README.md
[![agentmods](https://agentmods.dev/badge/skills/rockyflux/yq-workflow/session-wrap.svg)](https://agentmods.dev/skills/rockyflux/yq-workflow/session-wrap)
Your own site
<a href="https://agentmods.dev/skills/rockyflux/yq-workflow/session-wrap"><img src="https://agentmods.dev/badge/skills/rockyflux/yq-workflow/session-wrap.svg" alt="Measured on agentmods" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 820 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.1 $0.00064 $0.00820
Opus 5 $0.00032 $0.00410
Sonnet 5 $0.00013 $0.00164
Haiku 4.5 $0.00006 $0.00082

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

Security

Grade A, and why

session-wrap 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 5d 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.

templates/base-skills/session-wrap/SKILL.md · 128 lines

How it starts

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

Session Wrap Skill

Overview

Use this skill to close out the current coding session in a way that is easy to resume later. Focus on what was actually finished, what is still open, what was learned, and what should happen next.

Core Rules

  • Scope is the current session unless the user explicitly asks for a broader range.
  • Prioritize outcomes, decisions, learnings, and follow-up actions over process chatter.
  • Do not output a chronological 流水账.
  • Do not claim work is completed unless there is evidence in the session, git status, or validation output.
  • If the user asks to write files, commit, or update docs, summarize first and then confirm the action.

Workflow

Step 1: Confirm scope

Default to the current session. If the user already gave a clear wrap-up request, do not ask extra questions.

Clarify only when needed:

  • current session only or also include earlier sessions
  • whether to include commit advice
  • whether to produce a handoff note or just a chat summary

Step 2: Inspect the working tree

Collect the minimum evidence needed to summarize the session accurately.

Recommended commands:

git status --short
git diff --stat
git log --oneline -n 10

If the repository state is not available, say so explicitly and continue with the session evidence you do have.

Step 3: Summarize completed work

Summarize by workstream instead of by timestamp.

Preferred structure:

  • 本次完成
  • 关键决策
  • 涉及文件 / 模块
  • 已做验证

If there were no meaningful code changes, say that clearly instead of inventing成果.

Step 4: Extract learnings and open items

Capture the parts that matter for the next session:

  • new findings
  • mistakes avoided or lessons learned
  • known risks
  • unfinished tasks
  • blockers or dependencies

Keep this section concise and operational.

Step 5: Offer next actions and commit guidance

When relevant, finish with:

  • suggested next steps
  • whether a commit is appropriate now
  • a possible commit message direction
  • whether additional verification is still needed

Read the full file on GitHub · 128 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 5d ago First seen · 128 lines · 64 tokens per session scan A b79eb56f0fcd

Subscribe to this mod's changes

session-wrap is a skill published in the GitHub repository rockyflux/yq-workflow (2 stars, last pushed 3mo ago), licensed MIT. It adds 64 tokens to every session and 820 once invoked, about $0.0003 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.