cerrar-sesion

cerrar-sesion is a command for Claude Code from doncheli/don-cheli-sdd. It costs 21 tokens per session (670 once invoked), scanned A, original, Apache-2.0.

A session-closing checklist that reviews code changes, runs quality checks, records lessons, and prepares context for the next work session.

In plain words
What is it for?
Use it to audit modified files, check linting, type checking, and tests, capture learnings, and write a handoff summary.
Why use it?
It reduces the risk of losing track of unfinished work, failed checks, temporary files, or important decisions when ending a session.

Command for Claude Code

Written for Claude Code: installed under .claude/.

Part of the don-cheli-sdd plugin — 28 skills, 115 commands, 1 agent shipped together

Good fit Use it to audit modified files, check linting, type checking, and tests, capture learnings, and write a handoff summary.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/doncheli/don-cheli-sdd/cerrar-sesion
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.

Clone the repo
git clone --depth 1 https://github.com/doncheli/don-cheli-sdd

Made for: Claude Code.

Or install don-cheli-sdd, the plugin that ships this one along with the rest of its 28 skills, 115 commands, 1 agent.

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 cerrar-sesion

README.md
[![agentmods](https://agentmods.dev/badge/commands/doncheli/don-cheli-sdd/cerrar-sesion/github.svg)](https://agentmods.dev/commands/doncheli/don-cheli-sdd/cerrar-sesion)
Your own site
<a href="https://agentmods.dev/commands/doncheli/don-cheli-sdd/cerrar-sesion"><img src="https://agentmods.dev/badge/commands/doncheli/don-cheli-sdd/cerrar-sesion/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 cerrar-sesion

Your own site · 80×15
<a href="https://agentmods.dev/commands/doncheli/don-cheli-sdd/cerrar-sesion"><img src="https://agentmods.dev/badge/commands/doncheli/don-cheli-sdd/cerrar-sesion.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 670 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.00021 $0.00670
Opus 5 $0.00010 $0.00335
Sonnet 5 $0.00004 $0.00134
Haiku 4.5 $0.00002 $0.00067

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

Security

Grade A, and why

cerrar-sesion 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 8d 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.

scripts/.claude/commands/dc/cerrar-sesion.md · 89 lines

How it starts

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

/dc:cerrar-sesion

Objetivo

Ritual de fin de sesión que audita cambios, ejecuta checks de calidad, captura aprendizajes y produce un resumen para la próxima sesión. Evita el anti-patrón de cerrar el editor sin guardar contexto.

Adaptado de wrap-up de Pro-Workflow (rohitg00/pro-workflow).

Uso

/dc:cerrar-sesion

Checklist (obligatorio — no saltar pasos)

1. 📋 Auditoría de Cambios

  • ¿Qué archivos se modificaron?
  • ¿Hay cambios sin commit?
  • ¿Quedaron TODOs en el código?
  • ¿Hay archivos temporales que limpiar?

2. ✅ Check de Calidad

  • Ejecutar lint
  • Ejecutar typecheck
  • Ejecutar tests
  • ¿Todo pasa? ¿Hay warnings?

3. 🧠 Captura de Aprendizajes

  • ¿Qué errores se cometieron?
  • ¿Qué patrones funcionaron bien?
  • Formatear como: [APRENDER] Categoría: Regla

4. 🔮 Contexto para Próxima Sesión

  • ¿Cuál es la siguiente tarea lógica?
  • ¿Hay bloqueantes?
  • ¿Qué contexto preservar?

5. 📝 Resumen

  • Un párrafo: qué se logró, estado actual, qué sigue

Output

# Cierre de Sesión — 2026-03-21 16:45

## Auditoría
- Archivos modificados: 8
- Commits: 3
- Sin commit: 2 archivos (src/auth.ts, tests/auth.test.ts)
- TODOs encontrados: 1 (src/auth.ts:45 — "TODO: handle refresh token")

## Calidad
- Lint: ✅ sin errors | ⚠️ 2 warnings
- TypeCheck: ✅ pasa
- Tests: ✅ 47/47
- Coverage: 87%

## Aprendizajes
- [APRENDER] Testing: Siempre mockear el servicio de email en tests de auth
- [APRENDER] Git: Hacer commits más pequeños — 3 archivos max

## Próxima Sesión
- Tarea: Implementar refresh token (TODO en auth.ts:45)
- Bloqueante: Ninguno
- Contexto: Branch feature/oauth, PR #23 abierto

## Resumen
Se completó el login con Google OAuth: 3 endpoints nuevos, 12 tests,
integración con NextAuth v5. Falta el refresh token (TODO en auth.ts:45).
PR #23 listo para review excepto por el refresh token.

---
🛑 ¿Cambios sin commit? Stash o commit antes de cerrar.
✅ ¿Listo para cerrar sesión?

Si Tests Fallan

⚠️ NO cerrar sesión con tests fallando. Opciones:

  1. Corregir antes de cerrar
  2. Documentar el fallo en el handoff
  3. Crear issue para el próximo que lo agarre

Read the full file on GitHub · 89 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. 8d ago First seen · 89 lines · 21 tokens per session scan A d8a9f62c53c2

Subscribe to this mod's changes

cerrar-sesion is a command published in the GitHub repository doncheli/don-cheli-sdd (57 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 21 tokens to every session and 670 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-09-03.