Agent skill
memory
Dual-track memory system combining file-based state (.ai_state/) with Memory MCP for cross-session persistence. Handles session lifecycle, context restoration, and state synchronization.
Install this agent skill to your Project
npx add-skill https://github.com/WenJunDuan/Rlues/tree/main/vibeCoding/old version/codex/config-agent_v7.8-codex/.codex/skills/memory
SKILL.md
Memory Skill
Dual-Track System
Track 1: File-Based (.ai_state/)
Purpose: Project-specific state
Persistence: Git-versioned
Contents:
- requirements/
- designs/
- experience/
- checkpoints/
- meta/
Track 2: Memory MCP
Purpose: Cross-session memory
Persistence: MCP storage
Contents:
- User preferences
- Long-term patterns
- Project summaries
Session Lifecycle
Session Start
Actions:
1. Load .ai_state/meta/session.lock
2. Query Memory MCP for context
3. Restore last active task
4. Load relevant experience
Session End
Actions:
1. Save current state to .ai_state/
2. Update Memory MCP with key insights
3. Release session.lock
4. Trigger continuous-learning if needed
Pre-Compact
Actions:
1. Save state to pre-compact-state.yaml
2. Store key context in Memory MCP
3. Generate session summary
Memory MCP Integration
Store:
- Key decisions made
- User preferences
- Project context summary
Retrieve:
- Previous session context
- User interaction patterns
- Long-term project knowledge
Commands
/vibe-status # View current state
/vibe-resume # Restore from memory
/vibe-pause # Save and pause
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-teams
Path D 并行编排 — 子代理分工 + Agent Teams 协作。需要 CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1
tdd
Path 分级 TDD 策略
context7
E 阶段按需拉取库文档 — 用 ctx7 获取准确 API 信息
knowledge
跨会话经验管理 — 在 .ai_state 内沉淀和复用项目经验
code-quality
Rev 阶段 Plugin 编排顺序
verification
V 阶段 Path 分级验证清单
Didn't find tool you were looking for?