session-end

Save current project state to PROJECT_STATE.md before ending a session.

Updated Apr 19, 2026
One-click install
npx skills add https://github.com/YurainSoon/research-director --skill session-end-yurainsoon
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: session-end
Source: https://github.com/YurainSoon/research-director/tree/main/.claude/skills/session-end
Command: npx skills add https://github.com/YurainSoon/research-director --skill session-end-yurainsoon

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Persist current project state before ending a session or running /clear to ensure the next session can resume without ambiguity. This is essential when multiple steps or datasets exist.

Core Features & Use Cases

  • Saves the entire project state to PROJECT_STATE.md, overwriting on each run to guarantee a single canonical source of truth.
  • Triggers before any /clear or context reset, preventing data loss and enabling seamless resumption.
  • Applicable in long-running research sessions, multi-agent coordination, and iterative experiments where state continuity is critical.

Quick Start

Save the current project state to PROJECT_STATE.md before ending the session.

Frequently Asked Questions about session-end

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

FAQPage Schema
How do I save project state before ending a session or running /clear?

To save project state before ending a session, this skill captures all current work details and overwrites them into a single canonical PROJECT_STATE.md file, ensuring a clear resume point and preventing data loss across context resets.

What is the best way to persist workflow state for long-running research sessions?

The best way to persist workflow state is by overwriting a canonical PROJECT_STATE.md file, which guarantees a single source of truth for iterative experiments and long-running research sessions without ambiguity.

Why does state persistence overwrite the save file instead of appending to it?

State persistence overwrites the save file to prevent ambiguity in subsequent sessions. Appending multiple entries would create conflicting or duplicated records, so overwriting guarantees a single canonical source of truth for project state.

Can I use session management for multi-agent coordination?

Yes, you can use this session management approach for multi-agent coordination. It preserves work state across sessions, which is critical when multiple agents need state continuity to resume iterative tasks without losing context.

When do I need to save project state to a markdown file?

You need to save project state to a markdown file whenever you end a session or run a /clear context reset. This ensures the next session can resume without ambiguity, especially when multiple steps or datasets exist.