context-save

Captures git state and conversation context into a timestamped markdown file for later session restore.

1|Updated Aug 17, 2026
One-click install
npx skills add https://github.com/NalinDalal/skillset --skill context-save-nalindalal
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: context-save
Source: https://github.com/NalinDalal/skillset/tree/main/skills/workflow/context-save
Command: npx skills add https://github.com/NalinDalal/skillset --skill context-save-nalindalal

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? When a coding session ends mid-task, all the decisions, progress, and next steps live only in the conversation. This Skill preserves that working context on disk so any future session can resume without re-explaining the task. ## Core Features & Use Cases - Git State Capture: Collects branch name, working tree status, diff stats, and recent commit log to snapshot the repository state. - Structured Context File: Writes a timestamped markdown file with frontmatter (status, branch, files modified) plus sections for summary, decisions made, remaining work, and notes. - Use Case: Before ending a session where you refactored an authentication module, run a context save so the next session knows which files changed, why the JWT approach was chosen, and that token refresh logic is still pending. ## Quick Start Ask the agent to save progress so the current work can be resumed later with context-restore.

Frequently Asked Questions about context-save

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

FAQPage Schema
How do I save my coding session progress to resume later?▼

Ask the agent to save progress or save state. It gathers git branch, status, diff stats, and recent commits, then writes a timestamped markdown context file summarizing the work, decisions, and remaining steps for later restore.

What information does a context save file contain?▼

The file includes frontmatter with status, branch, timestamp, and modified files, plus sections covering a summary of the work, decisions made with reasoning, remaining work in priority order, and notes on blockers or open questions.

Where are saved context files stored?▼

Context files are written to the .opencode/contexts directory with a timestamped filename like 20240115-143022-context.md. Files are append-only and never overwritten, so each save creates a new snapshot.

Does saving context modify my code or git history?▼

No. The skill only reads git state using commands like git status, git diff --stat, and git log, then writes a markdown file. It never edits source code, stages changes, or creates commits.

How do I restore a saved context in a new session?▼

Use the paired context-restore skill, which reads the saved markdown file from .opencode/contexts and reloads the summary, decisions, and remaining work so the session can continue from where it stopped.