Agent-agnostic context preservation workflow for Claude Code, Codex, OpenCode, and other AI coding agents.
This project provides a set of AI agent skills that enable persistent context across different AI coding agents. Never lose your work context again when switching between sessions or agents.
- Agent-Agnostic: Works with Claude Code, Codex, OpenCode, and any agent supporting the skill system
- Three-Layer Memory System:
- Auto Memory (agent built-in)
- Work Logs (
docs/memory/YYYY-MM-DD.md) - Status Snapshot (
docs/progress.md)
- Four Core Workflows:
init-workflow: Initialize context workflow in a new projectrecap-context: Restore project context at session startcheckpoint-progress: Archive current progresspostmortem-review: Post-incident review and lessons learned
Install directly from GitHub using the skills CLI:
npx skills add alexcdever/persistent-context-skillsInstall to specific agents:
npx skills add alexcdever/persistent-context-skills -a opencode -a claude-codeInstall globally (available across all projects):
npx skills add alexcdever/persistent-context-skills -g# Clone the repository
git clone https://github.com/alexcdever/persistent-context-skills.git
# Install skills
./install.shOr manually copy skills to your agent's skill directory:
# For OpenCode/Codex
cp -r skills/* ~/.agents/skills/persistent-context/
# For Claude Code
cp -r skills/* ~/.claude/skills/persistent-context/# List available skills
/skills
# Use specific skill
/skill init-workflow
/skill recap-context
/skill checkpoint-progress
/skill postmortem-reviewYou can also use natural language:
- "init-project" - Initialize workflow
- "recap" - Restore context
- "checkpoint" - Save progress
- "postmortem" - Review incident
persistent-context-skills/
├── README.md
├── LICENSE
├── install.sh
└── skills/
├── init-workflow/
│ ├── SKILL.md
│ └── templates/
├── recap-context/
│ └── SKILL.md
├── checkpoint-progress/
│ └── SKILL.md
└── postmortem-review/
└── SKILL.md
- Initialize: Run
init-workflowto set up the directory structure - Work: Code as usual
- Checkpoint: Run
checkpoint-progressbefore ending session - Resume: Run
recap-contextat next session start
This workflow is inspired by 卢灿伟同学的 Claude Code 工作流.
MIT