close-session

Close active sessions with drift checks, snapshot updates, and branch-cycle alignment validation.

Updated Feb 14, 2026
One-click install
npx skills add https://github.com/leuzeus/aidn --skill close-session-leuzeus
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: close-session
Source: https://github.com/leuzeus/aidn/tree/main/tests/fixtures/repo-installed-core/.codex/skills/close-session
Command: npx skills add https://github.com/leuzeus/aidn --skill close-session-leuzeus

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Finalize sessions in a controlled manner, enforcing drift checks, updating snapshots, and validating branch-cycle alignment to support reliable resumption.

Core Features & Use Cases

  • Drift-detection and drift recovery during session close
  • Snapshot and context updates to reflect the final state
  • Branch-cycle alignment validation and decision recording for open cycles

Quick Start

Close the current session and run the drift check, snapshot update, and branch alignment validation to prepare for fast resume.

Frequently Asked Questions about close-session

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is session drift and how do I check for it before closing a workflow?

Session drift occurs when context diverges from the expected baseline. You check for drift during session close by running predefined validation steps that detect inconsistencies and enforce recovery actions to preserve long-term coherence.

How do I finalize a development session and update snapshots for a fast resume?

To finalize a session, execute the close workflow to validate consistency, update context snapshots to reflect the final state, and record decisions for open cycles, ensuring the environment is prepared for fast resumption.

What's the best way to validate branch-cycle alignment when ending a session?

Validating branch-cycle alignment involves running structured decision checks at session end to ensure branches and cycles match expected deterministic guardrails before updating the final context snapshot.

Does closing a session require any specific dependencies or components?

Closing a session requires no external dependencies or specific components. It operates independently using predefined steps and structured decisions to enforce deterministic guardrails and snapshot updates.

When should I run a drift check during cycle management?

You should run a drift check during the session end workflow across cycles and branches. It validates consistency, updates the context, and ensures branch-cycle alignment before preparing for resume.