agentleFS
TairitsuaTairitsua/Monica/.agents/skills/planning-with-files/SKILL.md

planning-with-files

Skill13 starsChanged 7 months agoMITView on GitHub

Maintain concise, opt-in task memory in a numbered `.pending/NNN-description/` folder. Use only when the user explicitly invokes `$planning-with-files`, asks for planning or working-memory files on disk, or asks to resume an existing `.pending` task. Do not trigger solely because work is complex, multi-step, long-running, or delegated.

53 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use react-useeffect, context-management and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • jarrodwattsSkill

    react-useeffect

    React useEffect best practices from official docs. Use when writing/reviewing useEffect, useState for derived values, data fetching, or state synchronization. Teaches when NOT to use Effect and better alternatives.

    Also in 3 projects that use this

  • martingarramonSkill

    context-management

    Also in 3 projects that use this

  • WorldFlowAISkill

    strategic-compact

    Suggests manual context compaction at logical intervals to preserve context through task phases rather than arbitrary auto-compaction.

    Also in 3 projects that use this

  • KKodiacSkill

    obsidian-bases

    Create and edit Obsidian Bases (.base files) with views, filters, formulas, and summaries. Use when working with .base files, creating database-like views of notes, or when the user mentions Bases, table views, card views, filters, or formulas in Obsidian.

    Also in 4 projects that use this

  • ZanderRussSkill

    obsidian-markdown

    Create and edit Obsidian Flavored Markdown with wikilinks, embeds, callouts, properties, and other Obsidian-specific syntax. Use when working with .md files in Obsidian, or when the user mentions wikilinks, callouts, frontmatter, tags, embeds, or Obsidian notes.

    Also in 4 projects that use this

  • JetBrainsSkill

    webapp-testing

    Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

    Also in 8 projects that use this

The file

We split this skill into the rules it gives an agent

10 rules. 0 are common, 6 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 51 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Start this workflow only after the user explicitly chooses file-based planning.

    line 12
  2. Distinctive:

    Do not let another skill or task complexity silently enable it.

    line 13
  3. Very specific:

    Keep planning artifacts local to the task.

    line 14
  4. Very specific:

    Add --with-findings when the task needs durable research, evidence, URLs, or artifact paths.

    line 29
  5. Distinctive:

    Use the task folder identified by the user.

    line 35
  6. Very specific:

    Read task_plan.md and any optional planning files that exist.

    line 36
  7. Very specific:

    Do not duplicate the same status, decision, or error across files.

    line 47
  8. Distinctive:

    Update persistent memory when one of these occurs:

    line 51
  9. Distinctive:

    Do not update after every tool call, every two reads, or every transient error.

    line 59
  10. Distinctive:

    When work completes, set the overall status and every completed phase consistently, clear the next action, record final verification, and …

    line 61

“Common” is measured: kept by at least 6 in 10 of the 51 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Planning with Files

Persist only the task context that must survive a pause, handoff, or separate session. Use native runtime planning for ordinary work.

Activation boundary

  • Start this workflow only after the user explicitly chooses file-based planning.
  • Do not let another skill or task complexity silently enable it.
  • Keep planning artifacts local to the task; do not treat .pending/ as permanent project documentation.

Start a new task

Resolve <skill-dir> to the directory containing this SKILL.md, then run the cross-platform initializer from the project root:

python <skill-dir>/scripts/init_task.py "short task description" \
  --base-dir "<project-root>" \
  --goal "Concrete end state" \
  --phase "Understand the current state" \
  --phase "Implement the change" \
  --phase "Verify and deliver"

Add --with-findings when the task needs durable research, evidence, URLs, or artifact paths.

The initializer always creates task_plan.md in a new .pending/NNN-description/ folder. It never reuses an older task folder and never reads runtime transcripts. Tailor the generated phases and next action before implementation.

Resume an existing task

  1. Use the task folder identified by the user. If no folder is named and exactly one clearly matches, use it; otherwise list the candidates and request a choice.
  2. Read task_plan.md and any optional planning files that exist.
  3. Inspect the real workspace with git status --short and the relevant diff or artifacts.
  4. Reconcile stale planning state before continuing. The workspace and verified external state override old notes.

Keep one source of truth

FileUseUpdate
task_plan.mdGoal, phases, current state, material decisions, blockers, next action, handoff snapshotRequired; update at durable checkpoints
findings.mdResearch findings, source links, visual observations, and artifact pathsOptional; update when evidence would otherwise be lost

Do not duplicate the same status, decision, or error across files. Keep phase status, decisions, verification, and the next action authoritative in task_plan.md.

Update discipline

Update persistent memory when one of these occurs:

  • a phase starts or finishes;
  • scope or a material technical decision changes;
  • a blocker or failure changes the approach;
  • durable browser, document, or research evidence would otherwise be lost;
  • work pauses, transfers to another agent or session, or completes.

Do not update after every tool call, every two reads, or every transient error. Do not re-read a file immediately after writing it unless verification is necessary.

When work completes, set the overall status and every completed phase consistently, clear the next action, record final verification, and remove obsolete blockers. Before handoff, confirm that the planning state agrees with the actual workspace.

Storage boundary

.pending/ is disposable local working state and is commonly gitignored. Move durable requirements, architecture decisions, and team knowledge into tracked project documentation when they must survive clones or be reviewed with the code.

Resources

  • scripts/init_task.py creates a new numbered task folder and selected planning files.
  • templates/task_plan.md is the required concise plan template.
  • templates/findings.md is the optional research and evidence template.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.