Compare commits

..
2 Commits
Author SHA1 Message Date
OthmanAdi bedf1a291a docs: bump version to v2.26.2 for YAML frontmatter fix 2026-03-20 16:37:15 +01:00
OthmanAdi 3ff59de625 fix: replace --- with === in hook commands to prevent YAML frontmatter breakage
The literal '---' inside the UserPromptSubmit hook command was parsed as
a YAML document separator, corrupting the skill description and causing
PreToolUse:Write hook errors. Changed to '=== recent progress ===' in
all 11 affected files.
2026-03-20 16:34:30 +01:00
12 changed files with 14 additions and 13 deletions
@@ -7,7 +7,7 @@ hooks:
UserPromptSubmit:
- hooks:
- type: command
command: "if [ -f task_plan.md ]; then echo '[planning-with-files] ACTIVE PLAN — current state:'; head -50 task_plan.md; echo ''; echo '--- recent progress ---'; tail -20 progress.md 2>/dev/null; echo ''; echo '[planning-with-files] Read findings.md for research context. Continue from the current phase.'; fi"
command: "if [ -f task_plan.md ]; then echo '[planning-with-files] ACTIVE PLAN — current state:'; head -50 task_plan.md; echo ''; echo '=== recent progress ==='; tail -20 progress.md 2>/dev/null; echo ''; echo '[planning-with-files] Read findings.md for research context. Continue from the current phase.'; fi"
PreToolUse:
- matcher: "Write|Edit|Bash|Read|Glob|Grep"
hooks:
+1 -1
View File
@@ -7,7 +7,7 @@ hooks:
UserPromptSubmit:
- hooks:
- type: command
command: "if [ -f task_plan.md ]; then echo '[planning-with-files] ACTIVE PLAN — current state:'; head -50 task_plan.md; echo ''; echo '--- recent progress ---'; tail -20 progress.md 2>/dev/null; echo ''; echo '[planning-with-files] Read findings.md for research context. Continue from the current phase.'; fi"
command: "if [ -f task_plan.md ]; then echo '[planning-with-files] ACTIVE PLAN — current state:'; head -50 task_plan.md; echo ''; echo '=== recent progress ==='; tail -20 progress.md 2>/dev/null; echo ''; echo '[planning-with-files] Read findings.md for research context. Continue from the current phase.'; fi"
PreToolUse:
- matcher: "Write|Edit|Bash|Read|Glob|Grep"
hooks:
+1 -1
View File
@@ -6,7 +6,7 @@ if (Test-Path "task_plan.md") {
Write-Output "[planning-with-files] ACTIVE PLAN — current state:"
Get-Content "task_plan.md" -TotalCount 50 -Encoding UTF8
Write-Output ""
Write-Output "--- recent progress ---"
Write-Output "=== recent progress ==="
if (Test-Path "progress.md") {
Get-Content "progress.md" -Tail 20 -Encoding UTF8
}
+1 -1
View File
@@ -7,7 +7,7 @@ if [ -f task_plan.md ]; then
echo "[planning-with-files] ACTIVE PLAN — current state:"
head -50 task_plan.md
echo ""
echo "--- recent progress ---"
echo "=== recent progress ==="
tail -20 progress.md 2>/dev/null
echo ""
echo "[planning-with-files] Read findings.md for research context. Continue from the current phase."
+1 -1
View File
@@ -7,7 +7,7 @@ hooks:
UserPromptSubmit:
- hooks:
- type: command
command: "if [ -f task_plan.md ]; then echo '[planning-with-files] ACTIVE PLAN — current state:'; head -50 task_plan.md; echo ''; echo '--- recent progress ---'; tail -20 progress.md 2>/dev/null; echo ''; echo '[planning-with-files] Read findings.md for research context. Continue from the current phase.'; fi"
command: "if [ -f task_plan.md ]; then echo '[planning-with-files] ACTIVE PLAN — current state:'; head -50 task_plan.md; echo ''; echo '=== recent progress ==='; tail -20 progress.md 2>/dev/null; echo ''; echo '[planning-with-files] Read findings.md for research context. Continue from the current phase.'; fi"
PreToolUse:
- matcher: "Write|Edit|Bash|Read|Glob|Grep"
hooks:
+1 -1
View File
@@ -7,7 +7,7 @@ hooks:
UserPromptSubmit:
- hooks:
- type: command
command: "if [ -f task_plan.md ]; then echo '[planning-with-files] ACTIVE PLAN — current state:'; head -50 task_plan.md; echo ''; echo '--- recent progress ---'; tail -20 progress.md 2>/dev/null; echo ''; echo '[planning-with-files] Read findings.md for research context. Continue from the current phase.'; fi"
command: "if [ -f task_plan.md ]; then echo '[planning-with-files] ACTIVE PLAN — current state:'; head -50 task_plan.md; echo ''; echo '=== recent progress ==='; tail -20 progress.md 2>/dev/null; echo ''; echo '[planning-with-files] Read findings.md for research context. Continue from the current phase.'; fi"
PreToolUse:
- matcher: "Write|Edit|Bash|Read|Glob|Grep"
hooks:
+1 -1
View File
@@ -2,7 +2,7 @@
"UserPromptSubmit": [
{
"type": "command",
"command": "if [ -f task_plan.md ]; then echo '[planning-with-files] ACTIVE PLAN — current state:'; head -50 task_plan.md; echo ''; echo '--- recent progress ---'; tail -20 progress.md 2>/dev/null; echo ''; echo '[planning-with-files] Read findings.md for research context. Continue from the current phase.'; fi",
"command": "if [ -f task_plan.md ]; then echo '[planning-with-files] ACTIVE PLAN — current state:'; head -50 task_plan.md; echo ''; echo '=== recent progress ==='; tail -20 progress.md 2>/dev/null; echo ''; echo '[planning-with-files] Read findings.md for research context. Continue from the current phase.'; fi",
"timeout": 5000,
"description": "Inject plan context on every user message for session recovery after /clear"
}
@@ -7,7 +7,7 @@ hooks:
UserPromptSubmit:
- hooks:
- type: command
command: "if [ -f task_plan.md ]; then echo '[planning-with-files] ACTIVE PLAN — current state:'; head -50 task_plan.md; echo ''; echo '--- recent progress ---'; tail -20 progress.md 2>/dev/null; echo ''; echo '[planning-with-files] Read findings.md for research context. Continue from the current phase.'; fi"
command: "if [ -f task_plan.md ]; then echo '[planning-with-files] ACTIVE PLAN — current state:'; head -50 task_plan.md; echo ''; echo '=== recent progress ==='; tail -20 progress.md 2>/dev/null; echo ''; echo '[planning-with-files] Read findings.md for research context. Continue from the current phase.'; fi"
PreToolUse:
- matcher: "Write|Edit|Bash|Read|Glob|Grep"
hooks:
@@ -7,7 +7,7 @@ hooks:
UserPromptSubmit:
- hooks:
- type: command
command: "if [ -f task_plan.md ]; then echo '[planning-with-files] ACTIVE PLAN — current state:'; head -50 task_plan.md; echo ''; echo '--- recent progress ---'; tail -20 progress.md 2>/dev/null; echo ''; echo '[planning-with-files] Read findings.md for research context. Continue from the current phase.'; fi"
command: "if [ -f task_plan.md ]; then echo '[planning-with-files] ACTIVE PLAN — current state:'; head -50 task_plan.md; echo ''; echo '=== recent progress ==='; tail -20 progress.md 2>/dev/null; echo ''; echo '[planning-with-files] Read findings.md for research context. Continue from the current phase.'; fi"
PreToolUse:
- matcher: "Write|Edit|Bash|Read|Glob|Grep"
hooks:
+3 -2
View File
@@ -42,10 +42,11 @@ See the full list of everyone who made this project better in [CONTRIBUTORS.md](
<details>
<summary><strong>📦 Releases & Session Recovery</strong></summary>
### Current Version: v2.26.1
### Current Version: v2.26.2
| Version | Highlights |
|---------|------------|
| **v2.26.2** | Fix: `---` in hook commands broke YAML frontmatter parsing — hooks now register correctly |
| **v2.26.1** | Fix: session catchup after `/clear` — path sanitization on Windows + content injection (thanks @tony-stark-eth!) |
| **v2.26.0** | IDE audit: Factory hooks, Copilot errorOccurred hook, Gemini hooks, bug fixes |
| **v2.18.2** | Mastra Code hooks fix (hooks.json + docs accuracy) |
@@ -150,7 +151,7 @@ A Claude Code plugin that transforms your workflow to use persistent markdown fi
[![GitHub Copilot](https://img.shields.io/badge/GitHub%20Copilot-Hooks-000000)](https://docs.github.com/en/copilot/reference/hooks-configuration)
[![Mastra Code](https://img.shields.io/badge/Mastra%20Code-Skills-00BCD4)](https://code.mastra.ai)
[![BoxLite](https://img.shields.io/badge/BoxLite-Sandbox-6C3483)](https://boxlite.ai)
[![Version](https://img.shields.io/badge/version-2.26.1-brightgreen)](https://github.com/OthmanAdi/planning-with-files/releases)
[![Version](https://img.shields.io/badge/version-2.26.2-brightgreen)](https://github.com/OthmanAdi/planning-with-files/releases)
[![SkillCheck Validated](https://img.shields.io/badge/SkillCheck-Validated-4c1)](https://getskillcheck.com)
## Quick Install
+1 -1
View File
@@ -7,7 +7,7 @@ hooks:
UserPromptSubmit:
- hooks:
- type: command
command: "if [ -f task_plan.md ]; then echo '[planning-with-files] ACTIVE PLAN — current state:'; head -50 task_plan.md; echo ''; echo '--- recent progress ---'; tail -20 progress.md 2>/dev/null; echo ''; echo '[planning-with-files] Read findings.md for research context. Continue from the current phase.'; fi"
command: "if [ -f task_plan.md ]; then echo '[planning-with-files] ACTIVE PLAN — current state:'; head -50 task_plan.md; echo ''; echo '=== recent progress ==='; tail -20 progress.md 2>/dev/null; echo ''; echo '[planning-with-files] Read findings.md for research context. Continue from the current phase.'; fi"
PreToolUse:
- matcher: "Write|Edit|Bash|Read|Glob|Grep"
hooks:
+1 -1
View File
@@ -105,7 +105,7 @@ FINDINGS
# --- Test 1: Hook injects plan content (not just advisory) ---
echo "Test 1: UserPromptSubmit hook injects plan content"
cd "$TESTDIR"
OUTPUT=$(bash -c 'if [ -f task_plan.md ]; then echo "[planning-with-files] ACTIVE PLAN — current state:"; head -50 task_plan.md; echo ""; echo "--- recent progress ---"; tail -20 progress.md 2>/dev/null; echo ""; echo "[planning-with-files] Read findings.md for research context. Continue from the current phase."; fi' 2>/dev/null)
OUTPUT=$(bash -c 'if [ -f task_plan.md ]; then echo "[planning-with-files] ACTIVE PLAN — current state:"; head -50 task_plan.md; echo ""; echo "=== recent progress ==="; tail -20 progress.md 2>/dev/null; echo ""; echo "[planning-with-files] Read findings.md for research context. Continue from the current phase."; fi' 2>/dev/null)
if echo "$OUTPUT" | grep -q "Build a REST API"; then
echo " PASS: Hook output contains the goal"