document-and-clear

Writes progress to docs/plans/progress-[task-name].md before clearing the session.

Updated Feb 11, 2026
One-click install
npx skills add https://github.com/V1vek98/claude-code-template --skill document-and-clear
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: document-and-clear
Source: https://github.com/V1vek98/claude-code-template/tree/main/.claude/skills/doc-and-clear
Command: npx skills add https://github.com/V1vek98/claude-code-template --skill document-and-clear

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Save progress and context to a file before clearing the session to avoid losing work.

Core Features & Use Cases

  • Safely capture current state to a persistent document
  • Facilitate task switching without losing context
  • Reopen or resume sessions from progress files

Quick Start

Before clearing or switching tasks, save your current progress to docs/plans/progress-[task-name].md and then proceed with a new session.

Frequently Asked Questions about document-and-clear

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

FAQPage Schema
How do I save context and progress before clearing a session?

Saving progress before clearing a session involves writing your current workflow state to docs/plans/progress-[task-name].md. This persistent document captures your context, allowing you to resume the task later with minimal disruption.

What is the best way to switch tasks without losing context in my workflow?

The best way to switch tasks without losing context is to save your current state to docs/plans/progress-[task-name].md before clearing the session. This ensures your workflow state is preserved for later resumption.

Does saving progress to a markdown file work with the /clear workflow?

Yes, saving progress to a markdown file is fully compatible with the /clear workflow to reset the session. It captures your current state to a persistent document before the context window is cleared, allowing safe task switching.

When do I need to write a progress document for session management?

You need to write a progress document for session management whenever your context window is full or when switching tasks. This prevents losing work by preserving your current workflow state in docs/plans/.

Do I need deterministic file I/O to save session progress?

Yes, you need deterministic file I/O to write progress documents to the docs/plans directory. This ensures your workflow state is reliably saved to progress-[task-name].md before you clear the session.