space-planning-with-files
File-based plans on disk (task_plan.md, findings.md, progress.md) another CLI or agent can resume. Opt-in: on request or for long handoff-ready work.
от oll4com★ 30 звёзд на GitHub
Установить space-planning-with-files в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Planning with Files
Work like Manus: Use persistent markdown files as your "working memory on disk."
In Space
Read this section first; it decides where the files go.
Space repository and Space worktrees (
/opt/spaceapp*,/opt/spaceapp/var/worktrees/*, worktrees under/var/lib/spaceapp-user/agent-workspace/active/): never write the planning files or.planning/into the repository. They are untracked, sonpm run hygiene:preflightfails, and repo-local working files are forbidden. Keep them in the task's scratch directory and use absolute paths from then on:PLAN_DIR=/var/lib/spaceapp-user/agent-workspace/active/YYYYMMDD-HHMM-<task> # reuse it if it already exists mkdir -p "$PLAN_DIR" && (cd "$PLAN_DIR" && bash <skill-dir>/scripts/init-session.sh) sh <skill-dir>/scripts/check-complete.sh "$PLAN_DIR/task_plan.md"Other projects (a user's own repository): the upstream layout below applies (project root, or
.planning/<id>/for named plans).<skill-dir>is this installed skill:/opt/spaceapp/agent-skills/space-planning-with-fileson the Space host.Put the worktree path, branch,
PLAN_DIRand any merge-queue ticket at the top oftask_plan.md.Recovery after a CLI restart, a pane-host restart or a handoff: find the plan with
ls -t /var/lib/spaceapp-user/agent-workspace/active/*/task_plan.md | head, open the one for this task, and read all three files before acting. A handoff document (space-mattpocock-skills→handoff) namesPLAN_DIR.With Superpowers:
writing-plansproduces the implementation plan document.task_plan.mdis working memory: link that document and track progress, decisions and errors here instead of copying its steps.These files are not the operator's Space clipboard PLAN record. When the operator expects a designed plan, save that record too.
Never put secrets, tokens, cookies or
.envvalues in the files. Delete the scratch directory when the task is finished and nothing in it is still needed.
FIRST: Restore Project State
Before continuing, resolve the plan this task owns:
- In Space, read
task_plan.md,progress.mdandfindings.mdfromPLAN_DIR(see above). Elsewhere, usescripts/resolve-plan-dir.shwith the task'sPLAN_IDandPWF_PLAN_ROOT, and read the three files from that one selected directory. A roottask_plan.mdmust not override a selected.planning/<id>/plan. - If an explicit selector is rejected, or multiple named plans exist without
PLAN_ID, stop plan recovery and correct the pin. Do not fall back to another task. - Run
git diff --statto see code changes that may not yet be recorded in the planning files.
The Core Pattern
Context Window = RAM (volatile, limited)
Filesystem = Disk (persistent, unlimited)
→ Anything important gets written to disk.
File Purposes
| File | Purpose | When to Update |
|---|---|---|
task_plan.md |
Phases, progress, decisions | After each phase |
findings.md |
Research, discoveries | After ANY discovery |
progress.md |
Session log, test results | Throughout session |
Critical Rules
1. Create Plan First
Never start a complex task without task_plan.md. Non-negotiable.
2. The 2-Action Rule
"After every 2 view/browser/search operations, IMMEDIATELY save key findings to text files."
This prevents visual/multimodal information from being lost.
3. Read Before Decide
Before major decisions, read the plan file. This keeps goals in your attention window.
4. Update After Act
After completing any phase:
- Mark phase status:
in_progress→complete - Log any errors encountered
- Note files created/modified
Whenever a phase status changes, also refresh ## Next Step in task_plan.md so it names the single next action.
5. Log ALL Errors
Every error goes in the plan file. This builds knowledge and prevents repetition.
## Errors Encountered
| Error | Attempt | Resolution |
|-------|---------|------------|
| FileNotFoundError | 1 | Created default config |
| API timeout | 2 | Added retry logic |
6. Never Repeat Failures
if action_failed:
next_action != same_action
Track what you tried. Mutate the approach.
7. Continue After Completion
When all phases are done but the user requests additional work:
- Add new phases to
task_plan.md(e.g., Phase 6, Phase 7) - Log a new session entry in
progress.md - Continue the planning workflow as normal
The 3-Strike Error Protocol
ATTEMPT 1: Diagnose & Fix
→ Read error carefully
→ Identify root cause
→ Apply targeted fix
ATTEMPT 2: Alternative Approach
→ Same error? Try different method
→ Different tool? Different library?
→ NEVER repeat exact same failing action
ATTEMPT 3: Broader Rethink
→ Question assumptions
→ Search for solutions
→ Consider updating the plan
AFTER 3 FAILURES: Escalate to User
→ Explain what you tried
→ Share the specific erro
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- UPSTREAM.md
- examples.md
- reference.md
- scripts/check-complete.sh
- scripts/init-session.sh
- scripts/resolve-plan-dir.sh
- scripts/set-active-plan.sh
- templates/analytics_findings.md
- templates/analytics_task_plan.md
- templates/findings.md
- templates/progress.md
- templates/task_plan.md
FAQ
Что делает скилл space-planning-with-files?
File-based plans on disk (task_plan.md, findings.md, progress.md) another CLI or agent can resume. Opt-in: on request or for long handoff-ready work.
Как установить скилл space-planning-with-files?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл space-planning-with-files запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
AnthropicUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
xlsx
AnthropicUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
pptx
AnthropicUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…