session-autosave

Automate session persistence during refactoring with checkpoint registry updates.

Updated Feb 11, 2026
One-click install
npx skills add https://github.com/amijadoamijado/sd003 --skill session-autosave
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: session-autosave
Source: https://github.com/amijadoamijado/sd003/tree/main/.gemini/skills/session-autosave
Command: npx skills add https://github.com/amijadoamijado/sd003 --skill session-autosave

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automatically persists session state during refactoring to prevent loss of work and enable quick recovery from interruptions.

Core Features & Use Cases

  • Triggered autosave on refactor-related events: batch completion, test pass, quality gate pass, or checkpoint creation.
  • Checkpoint registry integration: updates and records checkpoints alongside session data for traceability.
  • Context-aware coordination: aligns with context-autonomy and rollback guards to ensure safe, automatic saves.

Quick Start

Start a refactor and rely on the autosave mechanism to persist your session when a checkpoint is created.

Frequently Asked Questions about session-autosave

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

FAQPage Schema
How do I auto-save session state during code refactoring to prevent work loss?

Auto-save session state during refactoring by triggering automatic persistence on batch completion, test passes, or checkpoint creation, ensuring your session state is saved accordingly. This prevents work loss and enables quick recovery from interruptions.

What is a checkpoint registry and how does it work with session autosave?

A checkpoint registry updates and records checkpoints alongside session data for traceability. When autosave triggers, it implements /sessionwrite calls and updates the checkpoint registry, coordinating with a .sessions directory and checkpoint metadata.

When should I use automated session persistence in a refactoring workflow?

Use automated session persistence in refactoring workflows that generate batches, require tests or lint/type checks to pass, or create checkpoints. It ensures the session state is saved accordingly when these specific refactor-related events occur.

Can I integrate session autosave with rollback guards and context autonomy?

Yes, session autosave aligns with context-autonomy and rollback guards to ensure safe, automatic saves. This context-aware coordination guarantees that session persistence only happens when it is safe to do so during refactoring.

Does session autosave require a specific directory structure to function?

Session autosave coordinates with a .sessions directory and checkpoint metadata as part of its integration. You need to ensure this directory structure is available so the /sessionwrite calls can properly persist the session state.

What is the best way to recover a refactoring session after an interruption?

The best way to recover a refactoring session is relying on the autosave mechanism, which persists your session when a checkpoint is created. The checkpoint registry and .sessions directory metadata provide the traceability needed for quick recovery.