Raw capture β€” raw/planning-with-files.md


url: https://github.com/OthmanAdi/planning-with-files date_fetched: 2026-07-05 backfilled: true


πŸ“£

New in v3.0.0:opt-in autonomous and gated modes for long-running agent runs, with a completion gate that holds the agent until the plan is actually done. Existing setups change nothing.

Work like Manusβ€” the AI agent company Meta acquired for$2 billion.

planning-with-filesis a persistent file-based planning skill forAI coding agents. It keepstask_plan.md,findings.md, andprogress.mdon disk so the agent survivescontext loss,/clear, and crashes, with an opt-in completion gate that holds the agent until the plan is actually done. It installs across 60+ agents via the SKILL.md standard.

πŸ’¬ A Note from the Author

To everyone who starred, forked, and shared this skill β€” thank you. This project blew up in less than 24 hours, and the support from the community has been incredible.

If this skill helps you work smarter, that's all I wanted.

🌍 What the community shipped

Fork Author What They Built
devis @st01cs Interview-first workflow, /devis:intvand/devis:implcommands, guaranteed activation
multi-manus-planning @kmichels Multi-project support, SessionStart git sync
plan-cascade @Taoidle Multi-level task orchestration, parallel execution, multi-agent collaboration
agentfund-skill @RioTheGreat-ai Crowdfunding for AI agents with milestone-based escrow on Base
openclaw-github-repo-commander @wd041216-bit 7-stage GitHub repo audit, optimization, and cleanup workflow for OpenClaw
Project What It Is
lincolnwan/Planning-with-files-copilot-agent Entire Copilot agent repo built around the planning-with-files skill
cooragent/ClarityFinance AI finance agent framework β€” Planning-with-Files approach directly credited
oeftimie/vv-claude-harness Claude Code harness built on Manus-style persistent markdown planning
jessepwj/CCteam-creator Multi-agent team orchestration skill using file-based planning
Registry What It Is
buzhangsan/skill-manager Bilingual (EN/δΈ­ζ–‡) skill hub indexing 31,000+ Claude Code skills β€” planning-with-files installable one-click.

Built something? Open an issue to get listed!

🀝 Contributors

See the full list of everyone who made this project better in CONTRIBUTORS.md.

πŸ“¦ Releases & Session Recovery

Version Highlights
v3.2.0 Repository health audit: session-catchup.py was non-functional on Windows, plus the "0/0 phases" false status (closes #191, addresses #103, closes #188).session-catchup.py, the mechanism behind "resume after/clear," never sanitized Windows-style paths correctly and had no explicit encoding on three reads, so it silently did nothing on Windows with no error.inject-plan.sh's containment guard also silently dropped plan injection and tamper detection under 8.3 short-name or/tmp-aliased paths. Both fixed. Separately,check-complete.sh/.ps1and three IDE-specific Stop hooks reported a false "0/0 phases complete" for anytask_plan.mdwithout### Phaseheadings (#191, reported by @mixian939); fixed everywhere the pattern appeared, canonical scripts included. The--template analyticsflag (v2.29.0) was silently falling back to default templates in every installed skill package; the analytics templates now actually ship whereinit-session.shreads them. Merged PR #187 (@Stephen-abc: Windows test-encoding fixes, stale install-path docs) and PR #192 (@igorcosta: Autohand Code setup docs). AddedSECURITY.mdand enabled private vulnerability reporting (@AvitalAviv). CorrectedAGENTS.md's contributor-PR-merge guidance, which told agents to squash-merge in a way that reassigns authorship. Suite at 186 passed, 5 skipped, 0 failed.
v3.1.3 Hotfix: SKILL.md frontmatter was invalid YAML in v3.1.2.The v3.1.2 description refresh added a colon, and the English SKILL.md keepdescriptionunquoted, so YAML rejected the frontmatter ("mapping values are not allowed here"), which could break skill loading and the model-triggering description. v3.1.3 quotes the description (matching the already-quoted translated variants; the parsed value is identical) across the canonical file and the seven English IDE variants, and addstests/test_skill_frontmatter_valid.pyto validate every SKILL.md frontmatter as YAML. Suite at 184 passed.
v3.1.2 Session-catchup command works outside the plugin runtime, (PR #186 by @shunfeng8421 closes #185, reported by @xwang118). The documented Restore Context command used.hermesparity, refreshed skill description${CLAUDE_PLUGIN_ROOT}, which the plugin runtime sets only inside hook execution, so a skill-only install (npx skills add, Codex, Cursor) running it in a shell got an empty variable and a broken/scripts/...path. NowSKILL_DIR="${CLAUDE_PLUGIN_ROOT:-$HOME/.claude/skills/planning-with-files}"on the canonical file,.codebuddy, and the five language variants; the.hermesvariant got the same fallback for$HERMES_HOME. The eight English SKILL.md descriptions were refreshed to lead with planning for AI coding agents and context-loss survival, with theUse whentrigger and translated variants unchanged. Documentation only; suite at 180 passed.
v3.1.1 Codex verification command checks the canonical (PR #184 by @Fat-Jan). Thehooksfeature flagdocs/codex.mdverify block rancodex features list | rg '^codex_hooks\s', but Codex moved its canonical feature key fromcodex_hookstohooksin 0.129.0 (openai/codex#20522). The alias still resolves in config, yetcodex features listprints onlyhooks, so the old pattern matched nothing on current Codex and routed correctly configured users to the upgrade path. The command now greps^(hooks|codex_hooks)\sand the troubleshooting sentence covers both names, matching thehooks = trueguidance carried in the file since v2.39.0. Documentation only; suite at 180 passed.
v3.1.0 Codex Stop hook no longer blocks on an incomplete plan, native Codex PreCompact parity, Pi extension test suite, and accurate SHA-cache docs(PR #180 by @2023Anita closes #178, PR #181 by @GongYuanCaiJi, PR #175 and PR #174 by @mvanhorn close #163 and #164). The.codexStop adapter dropped the{"decision":"block"}path that pushed Codex agents to auto-continue unfinished phases; it now emits an advisory progress-sync reminder only, matching the v3 principle that an incomplete plan alone never blocks a stop. The native.codex/hooks.jsonroute gained the PreCompact hook (pre-compact.sh) it was missing relative to the canonical SKILL.md, dormant on runtimes that never fire the event. The Pi extension gained a TypeScript integration suite covering all eight lifecycle handlers, the four runtime modes, and the attestation gate.docs/perf-notes.mddocuments the attestation SHA cache, corrected to the v3$XDG_CACHE_HOME/pwf-shalocation. Suite at 180 passed.
v3.0.0 Autonomous and gated modes for long-running agentic runs, structured run ledger, opt-in completion gate(no breaking changes: with no mode marker the hooks produce byte-identical v2.43 output).init-session --autonomousdrops the per-tool-call plan re-injection for strong models and keeps the turn-start injection;--gatedadds a deliberate Stop-hook completion gate that blocks only when five conditions hold (gated mode, anin_progressphase,stop_hook_activefalse, block count under the cap, ledger progressed since the last block), so an incomplete plan alone never traps a session. New append-only JSONL run ledger (ledger-append,ledger-summary,phase-status, sh + ps1) replaces the rawprogress.mdtail in v3 modes with a fixed-shape summary. Attestation is default-on in v3 modes and unattested plan bodies are refused at injection. Per-session nonce delimiters, SHA cache moved to$XDG_CACHE_HOME/pwf-sha, realpath containment in the plan-dir resolver. Hook scalars replaced by thin dispatchers (inject-plan.sh,gate-stop.sh) shipped in bothscripts/locations. Newtemplates/task_plan_autonomous.mdwithDependsOn/Owner/AcceptanceCheckfields, v2-to-v3 migration guide inMIGRATION.md, host capability tiers documented (hard block, follow-up inject, notify only). Suite at 178 passed plus location-parity and gate/ledger/init-mode/containment tests.
v2.43.0 CONTRIBUTING.md + OpenCode docs fix + (PR #171 by @Skulli485, issue #172 by @luyanfeng, issues #159/#160/#161): first.continue/.gemini/.kirovariant sync to parityCONTRIBUTING.mdat repo root, auto-surfaced by GitHub in the PR creation flow.docs/opencode.mdQuick Install switched from git clone to npx skills add after the manual-install block was found referencing a doubled path (planning-with-files/planning-with-files/SKILL.md). Three historically lagging IDE SKILL.md variants brought to v2.43.0 parity:.continuefrom v2.34.0 (9 versions behind),.geminifrom v2.34.0 (9 versions behind),.kirofrom v2.32.0-kiro (11 versions behind), preserving IDE-specific frontmatter, hook shapes, and Kiro Agent Skill layout.
v2.42.0 POSIX (PR #169 and PR #170 by @carterusedulm2-maker):init-session.shportability + plugin-vs-skill install transparency + Topic Handoff docsinit-session.shand its 7 mirrors swap the[[ ]]bashism for POSIX[ ]sotests/test_init_session_slug.pyruns cleanly underdash(Ubuntu) when the test invokes the script viashrather than thebashshebang. Canonical SKILL.md gains an install-scope clarification:/plugin installships thecommands/folder with/plan-goaland/plan-loop, butnpx skills add(and ClawHub) do not. A manual fallback procedure for both wrappers is documented inline so skill-only sessions can produce the same effect by invoking Claude Code's native/goaland/loopprimitives directly.docs/quickstart.mdanddocs/workflow.mdadd an optional Topic Handoff Pattern for very long-running operational topics (handoffs/<topic>.mdalongsideprogress.md).
v2.41.0 Windows exec-bit test skip + attestation-locking docs(PR #167 by @gauravvojha, Issue #166; PR #168 by @CleanDev-Fix, Issue #165):test_script_permissions.pynow skips on Windows with a class-levelpytest.mark.skipif(sys.platform == "win32")since NTFS does not store POSIX executable bits; the 2 pre-existing Windows exec-bit failures (present since v2.34.1) are resolved. New dedicateddocs/attestation-locking.mdpage documents theattest-plan.shwrite path, the atomic temp-rename guarantee, the optionalflockadvisory lock, and the recommended slug-mode workflow for parallel sessions.
v2.40.1 Pi adapter SKILL.md sync gap + npm scope correction(PR #158 by @TomXPRIME): the.piSKILL.md lagged the canonical Claude Code copy after v2.39.0; v2.40.1 backports Rule 7 (Continue After Completion), the Security Boundary section, the expanded Scripts section coveringset-active-plan.sh/resolve-plan-dir.sh/attest-plan.shplus the parallel task workflow, and the "Write web content to task_plan.md" anti-pattern row. The Pi npm package is renamed from the unscopedpi-planning-with-filesto@tomxprime/planning-with-files, matching the package author's namespace; install docs updated accordingly. Author, repository, license, and bugs URLs preserved.
v2.40.0 Slug-mode resolution fixes + perf cache + KV-cache hygiene + Pi false-positive fix(9 items from the v2.40 R&D experiment): hook resolution order inverted so slug-mode wins over legacy root,.active_plantarget dir + content validated against a safe-identifier regex,check-complete.shhonors$PLAN_IDand.active_plan, Pi extensionisDangerousBashCommandswapped to a word-boundary regex array so benigngit push origin <branch>no longer fires the warning, mtime-keyed SHA-256 cache cuts attestation-hook latency on Windows Git Bash,progress.mdtail timestamps normalized for KV-cache prefix stability,resolve-plan-dir.shmtime resolution made portable across GNU/BSD/macOS/Alpine/Git Bash with python+perl fallbacks,attest-plan.shuses atomic temp-rename with optionalflockto close the concurrent-writer race. 130 pass / 2 pre-existing Windows exec-bit fails, +20 new tests.
v2.39.0 Pi Coding Agent full hook parity extension + Codex hooks flag fix(PR #157 by @TomXPRIME, Issue #154 by @DLI1996): the.piadapter ships a bundled TypeScript extension mapping eight Pi lifecycle events to the same behavior the skill provides on Claude Code, with a four-mode system (auto/parity/cache-safe/notify) that auto-detects DeepSeek and keeps the KV-cache prefix stable. Pi runtime reads the same.attestationfile the canonical v2.37attest-plan.shwrites, so attesting once locks the plan across both runtimes. Four slash commands (/plan-status,/plan-attest,/plan-goal,/plan-loop) mirror their Claude Code counterparts. Separately,docs/codex.mdswaps fromcodex_hooks = truetohooks = trueto match the current OpenAI canonical key, with an alias note so users on older configs are not pushed to migrate.
v2.38.1 Description field garbled in Claude Code skill picker(surfaced via Discussion #153 by @bmyury): hook commands embedded'---BEGIN PLAN DATA---'plan-injection delimiters; Claude Code's skill-discovery loader split frontmatter on the first---and read the truncated value as the description. Swapped to===BEGIN PLAN DATA===/===END PLAN DATA===across canonical SKILL.md, all five language variants, the.codebuddy/.codex/.cursoradapter mirrors, andclawhub-upload. Hook execution and tamper attestation never affected; only the displayed metadata.
v2.38.0 Claude Code turn-loop integration + OpenCode SQLite fix: new PreCompact hook fires on/compactand autoCompact, surfaces a reminder to flush progress before compaction completes and prints the active Plan-SHA256 when attested. New/plan-goalslash command composes with Claude Code's/goal(v2.1.139, May 12 2026): derives a termination condition from the active plan. New/plan-loopcomposes with/loop(v2.1.72+): default 10-minute tick re-reads planning files and runs check-complete. Newtemplates/loop.mdfor the bare/loopplanning-aware default. Session-catchup rewritten for OpenCode's SQLite migration. Codex gets aPermissionRequestadapter that surfaces plan context at permission prompts.
v2.37.0 Hash attestation + parity bumper(closes #150, #151):/plan-attestlockstask_plan.mdwith a SHA-256; hooks block injection on tamper.scripts/bump-version.py+ parity test kill the "missed one variant" regression class behind v2.34.1, v2.36.0, v2.36.2, and v2.36.3. (thanks @oaabahussain!)
v2.36.3 Parallel planning scripts now ship in the skill:resolve-plan-dir.shandset-active-plan.shwere missing from the installed skill in v2.36.0; now in canonical + all IDE mirrors + SKILL.md docs updated
v2.36.2 Canonical script sync(PR #149):skills/planning-with-files/scripts/init-session.shwas missing slug mode from v2.36.0; now synced with IDE mirrors + regression test. (thanks @voidborne-d!)
v2.36.1 Security hardening: Stop hook cache search removed, ExecutionPolicy Bypass changed to RemoteSigned, prompt injection delimiters added. (Gen Agent Trust Hub FAIL resolved)
v2.36.0 Parallel plan isolation + Codex session isolation(closes #146, #148):init-session.shslug mode,set-active-plan.sh,resolve-plan-dir.sh, all Codex hooks route through resolver, session attachment gating.Hermes docs(closes #147): integration notes added todocs/hermes.md. 34 new tests. (thanks @githubYiheng, @09ashishkapoor, @shawnli1874!)
v2.35.1 Shebang portability fix: changed/bin/bashto/usr/bin/env bashin hook scripts, fixing compatibility on NixOS and other systems where bash is not at/bin/bash. (thanks @Emin017!)
v2.35.0 Hermes adapter + NLPM audit hardening: Hermes platform 17 support (thanks @bailob!), NLPM audit fixed Python PATH resolution, session-catchup injection cap, Pi PowerShell syntax (thanks @xiaolai!)
v2.34.1 Stop hook Windows portability fix(closes #133):export SD=failed in Windows Git Bash hook context; fallback path was wrong for plugin cache structure. Fixed across all 13 SKILL.md variants. (thanks @nazeshinjite!)
v2.34.0 Codex hooks fully restored(closes #132):.codex/hooks.json+ lifecycle scripts back β€” SessionStart, UserPromptSubmit, PreToolUse, PostToolUse, Stop. Tessl CI for SKILL.md quality reviews. Exec bit fix. 4 missing contributors added. (thanks @Leon-Algo, @popey!)
v2.33.0 Multi-language expansion: Arabic, German, and Spanish skill variants added (thanks to community contributors!)
v2.32.0 Codex session catchup rewrite (thanks @ebrevdo!), Loaditout A-grade security badge, Stop hook Git Bash fix
v2.31.0 Codex hooks.json integration with full lifecycle hooks (thanks @Leon-Algo!)
v2.30.1 Fix: Codex script executable bits restored (thanks @Leon-Algo!)
v2.30.0 CLAUDE_SKILL_DIRvariable, IDE configs moved to per-IDE branches, plugin.json bumped from 2.23.0
v2.29.0 Analytics workflow template: --template analyticsflag for data exploration sessions (thanks @mvanhorn!)
v2.28.0 Traditional Chinese (zh-TW) skill variant (thanks @waynelee2048!)
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)
v2.18.1 Copilot garbled characters complete fix
v2.18.0 BoxLite sandbox runtime integration
v2.17.0 Mastra Code support + all IDE SKILL.md spec fixes
v2.16.1 Copilot garbled characters fix: PS1 UTF-8 encoding + bash ensure_ascii (thanks @Hexiaopi!)
v2.16.0 GitHub Copilot hooks support (thanks @lincolnwan!)
v2.27.0 Kiro Agent Skill layout (thanks @EListenX!)
v2.15.1 Session catchup false-positive fix (thanks @gydx6!)
v2.15.0 /plan:statuscommand, OpenCode compatibility fix
v2.14.0 Pi Agent support, OpenClaw docs update, Codex path fix
v2.11.0 /plancommand for easier autocomplete
v2.10.0 Kiro steering files support
v2.7.0 Gemini CLI support
v2.2.0 Session recovery, Windows PowerShell, OS-aware hooks

Parallel plan isolation (

.planning/YYYY-MM-DD-slug/directories) and Codex session isolation shipped in v2.36.0. Theexperimental/isolated-planningbranch was the earlier prototype; master is now the canonical location.

When your context fills up and you run /clear, this skill automatically recovers your previous session.

How it works:

Pro tip: Disable auto-compact to maximize context before clearing:

{ "autoCompact": false }πŸ› οΈ Supported IDEs (18+ Platforms)

These IDEs have dedicated hook configurations that automatically re-read your plan before tool use, remind you to update progress, and verify completion before stopping:

IDE Installation Guide Integration
Claude Code Installation Plugin + SKILL.md + Hooks
Cursor Cursor Setup Skills + hooks.json
GitHub Copilot Copilot Setup Hooks (incl. errorOccurred)
Mastra Code Mastra Setup Skills + Hooks
Gemini CLI Gemini Setup Skills + Hooks
Kiro Kiro Setup Agent Skills
Codex Codex Setup Skills + Hooks
Hermes Agent Hermes Setup Skill + Project Plugin
CodeBuddy CodeBuddy Setup Skills + Hooks
FactoryAI Droid Factory Setup Skills + Hooks
OpenCode OpenCode Setup Skills + Custom session storage

These IDEs implement the Agent Skills open specification. Install with npx skills add β€” the installer places the skill in each IDE's discovery path automatically:

IDE Installation Guide Skill Discovery Path
Continue Continue Setup .continue/skills/+ .prompt files
Pi Agent Pi Agent Setup .pi/skills/(npm package)
OpenClaw OpenClaw Setup .openclaw/skills/(docs)
Autohand Code Autohand Code Setup ~/.autohand/skills/or.autohand/skills/
Antigravity Antigravity Setup .agent/skills/(docs)
Kilocode Kilocode Setup .kilocode/skills/(docs)
AdaL CLI (Sylph AI) AdaL Setup .adal/skills/(docs)

Note:If your IDE uses the legacy Rules system instead of Skills, see thelegacy-rules-supportbranch.

🧱 Sandbox Runtimes (1 Platform)

Runtime Status Guide Notes
BoxLite βœ… Documented BoxLite Setup Run Claude Code + planning-with-files inside hardware-isolated micro-VMs

Note:BoxLite is a sandbox runtime, not an IDE. Skills load via ClaudeBox β€” BoxLite’s official Claude Code integration layer.

A Claude Code plugin that transforms your workflow to use persistent markdown files for planning, progress tracking, and knowledge storage β€” the exact pattern that made Manus worth billions.

npx skills add OthmanAdi/planning-with-files --skill planning-with-files -g🌐 Available in 5 other languages

πŸ‡ΈπŸ‡¦ Ψ§Ω„ΨΉΨ±Ψ¨ΩŠΨ© / Arabic

npx skills add OthmanAdi/planning-with-files --skill planning-with-files-ar -gπŸ‡©πŸ‡ͺ Deutsch / German

npx skills add OthmanAdi/planning-with-files --skill planning-with-files-de -gπŸ‡ͺπŸ‡Έ EspaΓ±ol / Spanish

npx skills add OthmanAdi/planning-with-files --skill planning-with-files-es -gπŸ‡¨πŸ‡³ δΈ­ζ–‡η‰ˆ / Chinese (Simplified)

npx skills add OthmanAdi/planning-with-files --skill planning-with-files-zh -gπŸ‡ΉπŸ‡Ό ζ­£ι«”δΈ­ζ–‡η‰ˆ / Chinese (Traditional)

npx skills add OthmanAdi/planning-with-files --skill planning-with-files-zht -gWorks with Claude Code, Cursor, Codex, Gemini CLI, Autohand Code, and 40+ agents supporting the Agent Skills spec.

πŸ”§ Claude Code Plugin (Advanced Features)

For Claude Code-specific features like /plan autocomplete commands:

/plugin marketplace add OthmanAdi/planning-with-files
/plugin install planning-with-files@planning-with-files

That's it! Now use one of these commands in Claude Code:

Command Autocomplete Description
/planning-with-files:plan Type /plan Start planning session (v2.11.0+)
/planning-with-files:status Type /plan:status Show planning progress at a glance (v2.15.0+)
/planning-with-files:start Type /planning Original start command

Alternative: If you want /planning-with-files (without prefix), copy skills to your local folder:

macOS/Linux:

cp -r ~/.claude/plugins/cache/planning-with-files/planning-with-files/*/skills/planning-with-files ~/.claude/skills/Windows (PowerShell):

Copy-Item -Recurse -Path "$env:USERPROFILE\.claude\plugins\cache\planning-with-files\planning-with-files\*\skills\planning-with-files" -Destination "$env:USERPROFILE\.claude\skills\"See docs/installation.md for all installation methods.

On December 29, 2025, Meta acquired Manus for $2 billion. In just 8 months, Manus went from launch to $100M+ revenue. Their secret? Context engineering.

"Markdown is my 'working memory' on disk. Since I process information iteratively and my active context has limits, Markdown files serve as scratch pads for notes, checkpoints for progress, building blocks for final deliverables." β€” Manus AI

Claude Code (and most AI agents) suffer from:

For every complex task, create THREE files:

task_plan.md      β†’ Track phases and progress
findings.md       β†’ Store research and findings
progress.md       β†’ Session log and test results
Context Window = RAM (volatile, limited)
Filesystem = Disk (persistent, unlimited)
β†’ Anything important gets written to disk.
Principle Implementation
Filesystem as memory Store in files, not context
Attention manipulation Re-read plan before decisions (hooks)
Error persistence Log failures in plan file
Goal tracking Checkboxes show progress
Completion verification Stop hook checks all phases

Once installed, the AI agent will:

Invoke with:

See docs/quickstart.md for the full 5-step guide.

Methodology note:the 96.7% figure comes from the v2.21.0 evaluation run onclaude-sonnet-4-6(2026-03-06). It measures file-pattern fidelity (does the agent create and maintain the 3-file structure), not goal-drift over long autonomous runs. Newer models and the autonomous-mode work are not yet covered by this number. Full methodology, dataset, and assertion list: docs/evals.md.

Formally evaluated using Anthropic's skill-creator framework (v2.22.0), model claude-sonnet-4-6, 2026-03-06. 10 parallel subagents, 5 task types, 30 objectively verifiable assertions, 3 blind A/B comparisons.

Test with_skill without_skill
Pass rate (30 assertions) 96.7%(29/30) 6.7% (2/30)
3-file pattern followed 5/5 evals 0/5 evals
Blind A/B wins 3/3 (100%) 0/3
Avg rubric score 10.0/10 6.8/10

Full methodology and results Β· Technical write-up

Use this pattern for:

Skip for:

planning-with-files/
β”œβ”€β”€ commands/                # Plugin commands
β”‚   β”œβ”€β”€ plan.md              # /planning-with-files:plan command (v2.11.0+)
β”‚   β”œβ”€β”€ plan-ar.md           # Arabic /plan command (v2.33.0+)
β”‚   β”œβ”€β”€ plan-de.md           # German /plan command (v2.33.0+)
β”‚   β”œβ”€β”€ plan-es.md           # Spanish /plan command (v2.33.0+)
β”‚   └── start.md             # /planning-with-files:start command
β”œβ”€β”€ templates/               # Root-level templates (for CLAUDE_PLUGIN_ROOT)
β”œβ”€β”€ scripts/                 # Root-level scripts (for CLAUDE_PLUGIN_ROOT)
β”œβ”€β”€ docs/                    # Documentation
β”‚   β”œβ”€β”€ installation.md
β”‚   β”œβ”€β”€ quickstart.md
β”‚   β”œβ”€β”€ workflow.md
β”‚   β”œβ”€β”€ troubleshooting.md
β”‚   β”œβ”€β”€ gemini.md            # Gemini CLI setup
β”‚   β”œβ”€β”€ cursor.md
β”‚   β”œβ”€β”€ windows.md
β”‚   β”œβ”€β”€ kilocode.md
β”‚   β”œβ”€β”€ codex.md
β”‚   β”œβ”€β”€ opencode.md
β”‚   β”œβ”€β”€ mastra.md             # Mastra Code setup
β”‚   └── boxlite.md            # BoxLite sandbox setup
β”œβ”€β”€ examples/                # Integration examples
β”‚   └── boxlite/             # BoxLite quickstart
β”‚       β”œβ”€β”€ README.md
β”‚       └── quickstart.py
β”œβ”€β”€ planning-with-files/     # Plugin skill folder
β”‚   β”œβ”€β”€ SKILL.md
β”‚   β”œβ”€β”€ templates/
β”‚   └── scripts/
β”œβ”€β”€ skills/                  # Skill variants
β”‚   β”œβ”€β”€ planning-with-files/     # English (default)
β”‚   β”‚   β”œβ”€β”€ SKILL.md
β”‚   β”‚   β”œβ”€β”€ examples.md
β”‚   β”‚   β”œβ”€β”€ reference.md
β”‚   β”‚   β”œβ”€β”€ templates/
β”‚   β”‚   └── scripts/
β”‚   β”‚       β”œβ”€β”€ init-session.sh
β”‚   β”‚       β”œβ”€β”€ check-complete.sh
β”‚   β”‚       β”œβ”€β”€ init-session.ps1   # Windows PowerShell
β”‚   β”‚       └── check-complete.ps1 # Windows PowerShell
β”‚   β”œβ”€β”€ planning-with-files-ar/   # Arabic (v2.33.0+)
β”‚   β”‚   β”œβ”€β”€ SKILL.md
β”‚   β”‚   β”œβ”€β”€ templates/
β”‚   β”‚   └── scripts/
β”‚   β”œβ”€β”€ planning-with-files-de/   # German (v2.33.0+)
β”‚   β”‚   β”œβ”€β”€ SKILL.md
β”‚   β”‚   β”œβ”€β”€ templates/
β”‚   β”‚   └── scripts/
β”‚   β”œβ”€β”€ planning-with-files-es/   # Spanish (v2.33.0+)
β”‚   β”‚   β”œβ”€β”€ SKILL.md
β”‚   β”‚   β”œβ”€β”€ templates/
β”‚   β”‚   └── scripts/
β”‚   β”œβ”€β”€ planning-with-files-zh/   # Chinese Simplified (v2.25.0+)
β”‚   └── planning-with-files-zht/  # Chinese Traditional (v2.28.0+)
β”œβ”€β”€ .gemini/                 # Gemini CLI skills + hooks
β”‚   β”œβ”€β”€ settings.json        # Hook configuration (v2.26.0)
β”‚   β”œβ”€β”€ hooks/               # Hook scripts (SessionStart, BeforeTool, AfterTool, BeforeModel, SessionEnd)
β”‚   └── skills/
β”‚       └── planning-with-files/
β”œβ”€β”€ .codex/                  # Codex CLI skills + hooks
β”‚   └── skills/
β”œβ”€β”€ .opencode/               # OpenCode skills (custom session storage)
β”‚   └── skills/
β”œβ”€β”€ .claude-plugin/          # Plugin manifest
β”œβ”€β”€ .cursor/                 # Cursor skills + hooks
β”‚   β”œβ”€β”€ hooks.json           # Hook configuration
β”‚   β”œβ”€β”€ hooks/               # Hook scripts (bash + PowerShell)
β”‚   └── skills/
β”œβ”€β”€ .codebuddy/              # CodeBuddy skills + hooks
β”‚   └── skills/
β”œβ”€β”€ .factory/                # FactoryAI Droid skills + hooks (v2.26.0)
β”‚   └── skills/
β”œβ”€β”€ .pi/                     # Pi Agent skills (npm package)
β”‚   └── skills/
β”‚       └── planning-with-files/
β”œβ”€β”€ .continue/               # Continue.dev skills + prompt files
β”‚   β”œβ”€β”€ prompts/             # .prompt file for slash commands
β”‚   └── skills/
β”œβ”€β”€ .github/                 # GitHub Copilot hooks (incl. errorOccurred)
β”‚   └── hooks/
β”‚       β”œβ”€β”€ planning-with-files.json  # Hook configuration
β”‚       └── scripts/         # Hook scripts (bash + PowerShell)
β”œβ”€β”€ .mastracode/             # Mastra Code skills + hooks
β”‚   └── skills/
β”œβ”€β”€ .kiro/                   # Kiro Agent Skills (v2.27.0+)
β”‚   └── skills/
β”œβ”€β”€ CHANGELOG.md
β”œβ”€β”€ CITATION.cff
β”œβ”€β”€ LICENSE
└── README.md

The plan lives on disk in task_plan.md, findings.md, and progress.md, not only in the context window. At the start of each turn the UserPromptSubmit hook re-injects the active plan, and after a /clear or a new session the skill re-reads the files from disk (session recovery), so the agent recovers its goals and progress automatically.

Agent memory tools (vector stores, knowledge graphs) help an agent recall facts from past sessions. planning-with-files manages active execution state: the phases, status, dependencies, and completion check for the task the agent is working on right now. The problem it solves is planning continuity, not retrieval, and the two are complementary.

Context rot is the drift that sets in as the context window fills and earlier instructions get crowded out. Because the plan is re-injected at the start of each turn from disk, the goals and phase status stay in the model's attention window as the conversation grows. This is an implementation of what Anthropic calls structured note-taking: write durable state to files outside the window, then read it back in when needed.

Claude Code, OpenAI Codex CLI, Cursor, GitHub Copilot, Kiro, OpenCode, Continue, Pi, CodeBuddy, Factory, Mastra, and 60+ others via the SKILL.md open standard. Installation is one command; see Quick Install above.

All platform setup guides and documentation are in the docs/ folder.

Contributions welcome! Please:

MIT License β€” feel free to use, modify, and distribute.

Author: Ahmad Othman Ammar Adi