.claude/skills/save-state/SKILL.md
Saves current working context to production/session-state/active.md to survive context compaction, /clear, or session restart. Run before any major context reset, when context usage exceeds 60%, or when ending a work session.
npx skillsauth add tranhieutt/software_development_department save-stateInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Dump the current working context into production/session-state/active.md as a structured checkpoint.
This file is automatically read by session-start.sh at the next session start and surfaced by pre-compact.sh before context compaction.
Before writing anything, collect the following from the current conversation and working state:
git diff --name-only && git diff --staged --name-only && git ls-files --others --exclude-standard to get the current working tree state.If $ARGUMENTS is provided, append it as an additional note in the "Notes" section.
Are there any lessons learned, coding patterns established, constraints added, or technical decisions made in this session that apply globally to the project?
If so, before writing active.md, extract them to the .claude/memory/ directory:
project_tech_decisions.md or feedback_rules.md), ensuring it has the required YAML frontmatter (name, description, type)..claude/memory/MEMORY.md with a pointer to that file if it's not already listed.production/session-state/active.mdOverwrite the file with this structure:
# Session State
> Saved: [ISO timestamp]
> Branch: [current git branch]
## Current Task
[One sentence describing what is being worked on]
<!-- STATUS -->
Epic: [epic name or leave blank]
Feature: [feature name or leave blank]
Task: [specific task or leave blank]
<!-- /STATUS -->
## Progress (This Session)
[Bulleted list of what was completed]
## Key Decisions Made
[Bulleted list — include the decision AND the rationale. These survive context loss.]
## Files Being Actively Worked On
[List of files currently modified or in progress]
## Open Questions / Blockers
[List of unresolved items. Mark with [BLOCKED] if waiting on someone.]
## Next Step
[The single most important next action to take when resuming]
## Notes
[$ARGUMENTS if provided, otherwise omit this section]
Print:
Session state saved to production/session-state/active.md
[If memory was extracted]: Durable memories extracted to .claude/memory/MEMORY.md
Resume with: read active.md first to recover full context.
/save-state/clear or starting a new unrelated taskpre-compact.sh warns about no active session stateThe
session-start.shhook automatically detects and previewsactive.mdat the start of each new session. Thepre-compact.shhook reads it before compaction to inject it into the summary.
testing
Generates high-fidelity architecture diagrams, sequence flows, and component maps for SDD projects. Use when finalizing a design phase, documenting system architecture, or visualizing agentic workflows. Default style: Style 6 (Claude Official).
data-ai
Provides vector database and semantic search patterns for Pinecone, Weaviate, Qdrant, Milvus, and pgvector in RAG and recommendation systems. Use when implementing vector search or when the user mentions vector database, semantic search, embeddings, or similarity search.
development
Updates docs/technical/CODEMAP.md by scanning the current codebase structure. Run after a significant feature merge, refactor, or when CODEMAP feels stale.
development
Unlocks the codebase after a release freeze or incident freeze period to resume normal development. Use when a freeze period ends or when the user mentions unfreezing or lifting the code freeze.