Verification, drift detection, and snapshot logic for executing-plans
View on GitHubben-mad-jlp/claude-mermaid-collab
mermaid-collab
skills/executing-plans-review/SKILL.md
January 25, 2026
Select agents to install to:
npx add-skill https://github.com/ben-mad-jlp/claude-mermaid-collab/blob/main/skills/executing-plans-review/SKILL.md -a claude-code --skill executing-plans-reviewInstallation paths:
.claude/skills/executing-plans-review/# Verification and Review Phase Details
This document contains detailed verification, drift detection, and snapshot logic for the executing-plans skill.
## Snapshot Saving
Save context snapshots to enable recovery after compaction events. This preserves the executing-plans skill's state and progress across context compaction.
### When to Save
Call `saveSnapshot()` at these critical points:
- After each wave of tasks completes
- After full test suite passes (post-wave verification)
- After each individual task completes (per-task verification)
- Before asking for user feedback
- At major milestones (all tasks complete)
### Save Function
```javascript
FUNCTION saveSnapshot():
session = current session name
// Read current state via MCP
Tool: mcp__plugin_mermaid-collab_mermaid__get_session_state
Args: { "project": "<cwd>", "session": session }
Returns: state = { "phase": "...", "completedTasks": [...], "pendingTasks": [...], ... }
// Save snapshot via MCP
Tool: mcp__plugin_mermaid-collab_mermaid__save_snapshot
Args: {
"project": "<cwd>",
"session": session,
"activeSkill": "executing-plans",
"currentStep": "implementation",
"inProgressItem": null,
"pendingQuestion": null,
"recentContext": [
{
"type": "progress",
"content": "Completed tasks: {state.completedTasks}. Pending: {state.pendingTasks}. Last wave: {wave number}"
}
]
}
// Note: version and timestamp are automatically added
// Update collab state to mark snapshot exists
Tool: mcp__plugin_mermaid-collab_mermaid__update_session_state
Args: {
"project": "<cwd>",
"session": session,
"hasSnapshot": true,
"lastSnapshot": "<current-ISO-timestamp>"
}
```
### Save Points with Examples
**After wave completes with test suite passing:**
```
[Wave N tasks all complete]
-> Run full test suite: npm run test:ci
-> If tests FAIL: Stop, report failure (don't save)
-> If tests PASS:
- saveSnapshot()
- Update task