What's Fixed
The --- literal inside the UserPromptSubmit hook command was being interpreted as a YAML document separator, breaking the entire skill:
- Skill description corrupted — showed hook command fragments instead of the actual description
- Hooks failed to register — caused
PreToolUse:Write hook erroron every tool call - Session recovery after
/cleardid not work — because the hook never fired correctly
The bug
# BEFORE (broken) — the '---' breaks YAML parsing:
command: "...echo '--- recent progress ---'; tail -20 progress.md..."
# AFTER (fixed) — safe separator:
command: "...echo '=== recent progress ==='; tail -20 progress.md..."How to update
npx skills add OthmanAdi/planning-with-files --skill planning-with-files -gFixed across all 11 affected files (canonical + 6 IDE SKILL.md copies + Mastra hooks.json + Cursor hook scripts + test).
If you installed v2.26.1 and session recovery still didn't work, this is why. Update to v2.26.2.