agentleFS
addit-digitaladdit-digital/addit-harness/skills/save-plan/SKILL.md

save-plan

Skill4 starsChanged 2 months agoMITView on GitHub

Use when the user wants to save, export, or persist a plan (or any diagram-rich design doc shown in the CLI) to a markdown file so it can be opened and viewed with rendered mermaid diagrams. The terminal can't render mermaid; this writes the plan to docs/work/<slug>/plans/ (or a temp scratch file) for viewing in an IDE preview or on GitHub.

4 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions4 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 4

    1. AGMO-Inc/agmo-everywhere★ 4same name
    2. CSPulse/customer-success-skills★ 2same name
    3. mir-am/skills-agents-ai-coding★ 2same name
    4. ktrz/skills★ 1same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository9 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Resolve the slug: Use the given title (kebab-case it).

    line 55
  2. Very specific:

    Default: ensure docs/work/<slug>/plans/ exists (create it, and docs/work/README.md with an index if missing).

    line 62
  3. Distinctive:

    Don't commit or push unless the user asks.

    line 78

“Common” is measured: kept by at least 6 in 10 of the 4 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

Save plan — persist a plan to a viewable markdown file

The Claude Code CLI shows a ```mermaid block as raw code, never a rendered diagram, and a plan presented in the CLI isn't saved anywhere convenient to open. This skill writes the plan to a markdown file so it can be opened with rendered mermaid — in an IDE preview (VS Code, Ctrl/Cmd+Shift+V) or on GitHub (renders mermaid natively).

What to save

The current plan under discussion — typically the approved plan-mode plan (the harness plan file) or the most recent plan/design doc written in this session. Save it as-is when within its tier ceiling in references/doc-protocol.md; if over, trim to the plan template first and say what you cut. Keep mermaid blocks intact. If no plan exists yet, say so and stop — don't invent one.

Where it goes — artifact routing

This skill is for implementation plans (phased steps, to-do lists, acceptance criteria). Docs are grouped by unit of work, not by type: one folder per feature, bug fix, improvement, or enhancement at docs/work/<slug>/, holding everything produced for it in per-type subfolders. The broader taxonomy:

ArtifactSubfolderProduced by
Implementation planplans/This skill (default)
Architecture design / solution doc (no to-do list)solutions/@backend-architect, @frontend-architect directly
Architecture review reportarchitecture-reports/@architect-reviewer directly
QA/regression verification reportqa-reports/@qa-engineer directly
Per-change legal analysislegal/@saas-legal-advisor directly

Layout, slug and collision: plugin conventions win — see rules/engineering-loop.md "Doc taxonomy".

For a pure architecture design, review report, or QA report, skip this skill — the relevant agent writes directly to the correct subfolder inside docs/work/<slug>/, following the same naming convention (create the folder + a docs/work/README.md index row if missing).

Choosing permanent vs temporary

  • Permanent (default): docs/work/<YYYY-MM-DD>-<kebab-title>/plans/plan.md (or docs/work/<ticket-id>-<kebab-title>/plans/plan.md if the project uses an issue tracker), tracked in git. Best for design docs worth keeping and for remote sessions (push → view on GitHub).
  • Temporary (--temp): a scratch file under .plans/ (gitignored) for quick local viewing without committing. Mainly useful in local CLI sessions — in a remote/container session a temp file isn't on your machine, so prefer permanent
    • push there.

Procedure

  1. Resolve the slug. Use the given title (kebab-case it); otherwise derive a short slug from the plan's heading. Prefix with the issue-tracker ID if the plan is tied to a ticket, else $(date +%F)-. Then check ls -d docs/work/<slug>: if it exists and this session did not create or receive that slug, append -2, -3… until absent. Never overwrite another work item's plan.
  2. Pick the path.
    • Default: ensure docs/work/<slug>/plans/ exists (create it, and docs/work/README.md with an index if missing). Target docs/work/<slug>/plans/plan.md — the file is always named plan.md; the slug lives in the folder name, not the filename, so everything produced for this work item sits together.
    • --temp: ensure .plans/ exists and is in .gitignore (add the line if missing); target .plans/<slug>.md. If not in a repo, fall back to the system temp dir.
  3. Write the plan content to the file as prepared above (mermaid intact). Don't strip or "fix" diagrams.
  4. Update the index (permanent only): add a row to docs/work/README.md — row per doc-protocol.md "Index row"; update in place.
  5. Report the absolute path and how to view it rendered:
    • Local: "open in VS Code (or any markdown preview that renders mermaid) and toggle preview (Ctrl/Cmd+Shift+V)."
    • Remote/container session: "this file is in the container — commit & push, then view on GitHub (renders mermaid), or pull it locally." Don't commit or push unless the user asks.

Notes

  • Quality of rendering depends on valid mermaid syntax — keep node labels simple and quote labels containing special characters.
  • This skill only persists and locates the file; it does not render images itself (no mermaid-cli/Chromium dependency). Rendering happens in the IDE/GitHub.

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.