Save conversation context before compaction (context.md, tasks.md)
Saves conversation state and decisions to context files before compaction or context switches.
/plugin marketplace add Shavakan/claude-marketplace/plugin install shavakan-commands@shavakanPreserve current conversation state and decisions before approaching token limit or natural break point.
$ARGUMENTS
Preserve conversation state before compaction or natural break points. Extract decisions made, document current progress, update context files for continuity.
Use when:
Extract from conversation:
Decisions made - What was decided and why, trade-offs considered, alternatives rejected, rationale for approach
Current progress - What's completed, partially done, blocked (and why)
Next steps - Immediate next actions, dependencies to resolve, open questions
Check if feature context already exists in features/[task-name]/ directory.
Gate: Present summary of extracted state to user.
Present options based on whether context files exist:
Save context state?
□ Update existing - Append to features/[task-name]/ files
□ Create new - Start fresh context directory
□ Review first - Show extracted state before saving
□ Cancel
If creating new, ask for task name (kebab-case format).
Gate: User must confirm approach and provide task name if needed.
If updating existing:
If creating new:
features/[task-name]/ directoryNote: plan.md not needed for context saves (only for feature-plan command).
Gate: All files updated or created successfully.
Summarize what was saved: location of files, key decisions captured, tasks marked complete, next steps documented for resuming work
# [Feature Name] - Context
**Last Updated:** [timestamp]
## Current State
[Where we are in implementation - 2-3 sentences]
## Recent Decisions
### [Decision Title]
**What:** What was decided
**Why:** Rationale and trade-offs
**When:** [timestamp]
**Impact:** What this affects
## Key Files
- `path/to/file.ts` - Purpose and current state
- `path/to/another.ts` - What was changed
## Next Steps
[When resuming work, start here - specific actionable items]
## Open Questions
- Question that needs resolution
- Blocker or dependency
# [Feature Name] - Tasks
**Last Updated:** [timestamp]
## Completed
- [x] Task that was finished
- [x] Another completed task
## In Progress
- [ ] Task currently being worked on (50% done)
## Blocked
- [ ] Task blocked by X dependency
## Todo
- [ ] Next task to do
- [ ] Subsequent task
/shavakan-commands:docs-feature-plan - Create comprehensive feature plan from scratch/shavakan-commands:docs-update - Update existing context files