Can you can you update the megaplan skill to say a single megaplan can cover as much as…
- User
Can you can you update the megaplan skill to say a single megaplan can cover as much
as 2 weeks work Assistant
I'll add a note about scope at the top of the Triage section.
Assistant
Updated
~/.claude/skills/megaplan/SKILL.md— added a line in the Triage section noting that a single megaplan can cover up to 2 weeks of work, so large efforts shouldn't be reflexively split.- User
update it on our system please? Do we have a command to update it if it doesn't match what we have? Does it happen automatically/
Assistant
Found the source of truth. Let me update it there too and check the setup command.
Assistant
Now let me look at the setup command to understand how installation works.
Assistant
Both files are already in sync, but let me verify by running
megaplan setup --force— that's the command to propagate source edits to the installed location.Assistant
Done — propagated across all three agents (Claude, Codex, Cursor).
How skill updates work:
- Source of truth:
megaplan/data/instructions.md(+claude_subagent_appendix.md/codex_subagent_appendix.mdfor per-agent appendices) inside the megaplan project. - Installed copies:
~/.claude/skills/megaplan/SKILL.md,~/.codex/skills/megaplan/SKILL.md,~/.cursor/rules/megaplan.mdc. - Update command:
megaplan setup --force— rebuilds all installed skill files from the bundled source. Without--force, existing files are left alone. - Automatic? No. There's no watcher or auto-sync. You have to re-run
megaplan setup --forceafter editing source files (which is why the appendix files explicitly remind you to do that).
I edited both the installed
SKILL.mdand the sourceinstructions.md, then ranmegaplan setup --forceto overwrite all three installed copies from source — so Claude, Codex, and Cursor all now carry the "up to 2 weeks of work" line.- Source of truth:
- User
But is there any way to do it naturally whenever it isn't refreshed when we run megaplan?
Assistant
Yes — straightforward to add. Here are the options, cleanest first:
1. Auto-sync on every CLI invocation (recommended) Add one line near the top of
main()inmegaplan/cli.pythat callshandle_setup_global(force=False)silently. Cost is near-zero:_install_owned_filealready hashes content and no-ops when installed matches bundled (cli.py:665-671). Drift → automatically rewritten on nextmegaplancall of any kind.2. Auto-sync only on
initSame idea, but only when starting a new plan. Less aggressive, but drift persists until youinitagain — which for long-running plans could mean weeks.3. Version-stamp the installed file Embed a content hash in the SKILL.md header; only re-install when hash mismatches. More code, negligible perf gain over option 1 since option 1 is already a cheap string compare.
4. Claude Code hook (external) A hook in that runs when the megaplan skill is invoked. Works only for Claude, not Codex/Cursor — so worse than doing it in the CLI itself.
- User
yes please
Assistant
Now let me verify it works. First, simulate drift by writing junk to the installed SKILL.md, then run a benign command and confirm it gets rewritten.
Assistant
Test passed — the drifted 1-line file was silently rewritten to the full 432-line bundled content after running
megaplan list, with no output noise from the sync.Let me run the tests to make sure nothing regressed.
Assistant
Pre-existing env issue (pyenv 3.8 vs megaplan's 3.11 requirement) — not related to my change. Let me use the project's venv directly.
Assistant
All 656 tests pass. Let me also verify the sync actually works on a clean run and doesn't pollute output for the
config showpath (which the skill itself calls during startup).Assistant
Clean output, exit 0. The change is in
megaplan/cli.py:1091-1099:- New
_auto_sync_installed_skills()helper: iterates_GLOBAL_TARGETS, calls_install_owned_file(..., force=False)per agent directory that exists. Catches all exceptions silently — auto-sync must never break a megaplan command. - Called in
main()for every command exceptsetupitself (skipping avoids double-work / potential output conflict). - Reuses the existing content-equality short-circuit in
_install_owned_file, so when nothing has changed it's just three small file reads and a hash compare.
Net result: edit
megaplan/data/instructions.md(or the appendix files) → next invocation of anymegaplansubcommand silently rewrites~/.claude,~/.codex, and~/.cursorskill files. No moremegaplan setup --forcestep to remember.- New
- User
All done?
Assistant
Yes — all done.
Summary of changes:
megaplan/data/instructions.md: added "up to 2 weeks of work" line to the Triage section.megaplan/cli.py: added_auto_sync_installed_skills()helper + call inmain()so installedSKILL.mdfiles across Claude, Codex, and Cursor auto-refresh on every megaplan invocation (exceptsetupitself).- Ran
megaplan setup --forceonce to propagate the "2 weeks" edit immediately. - Verified: 656 tests pass, drift test confirms auto-sync rewrites a corrupted SKILL.md on the next command, no output pollution.
From now on, editing
instructions.mdis the only step — the installed skill files sync themselves.