docs/troubleshooting.md
Common issues and their solutions.
Issue: After updating to a new version, /planning-with-files fails with "template files not found in cache" or similar errors.
Why this happens: Claude Code caches plugin files, and the cache may not refresh properly after an update.
Solutions:
/plugin uninstall planning-with-files@planning-with-files
/plugin marketplace add OthmanAdi/planning-with-files
/plugin install planning-with-files@planning-with-files
Use claude plugin list and claude plugin details to inspect the installed version and components. Claude Code manages installed files under ~/.claude/plugins/cache/; do not edit the cached copy in place.
Restart Claude Code completely after reinstalling.
Note: This was fixed in v2.1.2 by adding templates at the repo root level.
Issue: When using /planning-with-files, the files (task_plan.md, findings.md, progress.md) are created in the skill installation directory instead of your project.
Why this happens: When the skill runs as a subagent, it may not inherit your terminal's current working directory.
Solutions:
/planning-with-files - I'm working in /path/to/my-project/, create all files there
I'm working on the project at /path/to/my-project/
Then run /planning-with-files.
# Project Context
All planning files (task_plan.md, findings.md, progress.md)
should be created in this directory.
Help me plan this task using the planning-with-files approach.
Create task_plan.md, findings.md, and progress.md here.
Note: This was fixed in v2.0.1. The skill instructions now explicitly specify that planning files should be created in your project directory, not the skill installation folder.
Issue: Planning files seem to disappear or aren't found when resuming work.
Solution: Make sure the files are in your project root, not in a temporary location.
Check with:
ls -la task_plan.md findings.md progress.md
If files are missing, they may have been created in:
~/.claude/skills/planning-with-files/)Issue: The PreToolUse hook (which reads task_plan.md before actions) doesn't seem to run.
Solution:
Use the current stable Claude Code release:
claude --version
Full lifecycle support is tested against current stable Claude Code. This project does not claim an older minimum without a compatibility receipt.
Verify the installation route:
claude plugin list
For a standalone skill install:
ls ~/.claude/skills/planning-with-files/
Check that an active plan exists:
The hooks resolve .planning/.active_plan first and fall back to legacy task_plan.md. If no plan exists, they stay silent by design.
Inspect hook ownership:
Plugin installs register hooks/hooks.json at startup. Standalone skill hooks register only after /planning-with-files is invoked for that session. Use /hooks and Claude debug logs to confirm that only the intended route is active.
Check for configuration errors: Run Claude Code with debug mode:
claude --debug
Look for skill loading errors.
Issue: No planning-with-files message appears when starting Claude Code.
Solution:
SessionStart is a plugin-route feature; standalone skill installs do not register it./hooks and the debug log to confirm the plugin descriptor was trusted and loaded from the installed cache.Issue: The reminder message after Write/Edit doesn't appear.
Solution:
/hooks, or invoke the standalone skill first.Issue: Claude doesn't automatically use the planning pattern for complex tasks.
Solution:
Manually invoke:
/planning-with-files
Trigger words: The skill auto-activates based on its description. Try phrases like:
Be explicit:
This is a complex task that will require >5 tool calls.
Please use the planning-with-files pattern.
Issue: Claude won't stop because the Stop hook says phases aren't complete.
Solution:
Check task_plan.md: All phases should have **Status:** complete
Manual override: If you need to stop anyway:
Override the completion check - I want to stop now.
Fix the status: Update incomplete phases to complete if they're actually done.
Issue: Skill won't load due to YAML errors.
Solution:
--- with no blank lines before itCommon mistakes:
# WRONG - tabs
hooks:
PreToolUse:
# CORRECT - spaces
hooks:
PreToolUse:
See docs/windows.md for Windows-specific troubleshooting.
See docs/cursor.md for Cursor IDE troubleshooting.
Open an issue at github.com/OthmanAdi/planning-with-files/issues with:
claude --version)