agentleFS
theoklitosBam7theoklitosBam7/skills/plan-visualizer/SKILL.md

plan-visualizer

Skill1 starsChanged 5 months agoMITView on GitHub

Creates rich, self-contained HTML plan files with visual diagrams, flows, and interactive elements. Output goes to ~/.agent/plans/ with a timestamped filename. Use whenever producing a plan, architecture proposal, task breakdown, or implementation roadmap — especially when the plan involves multiple steps, components, sequences, or decision trees that benefit from visual representation. Triggers on: "create a plan", "plan this out", "design this", "break this down", "write a plan for", "map out", "outline the approach", "document the architecture".

The file

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 3 are distinctive, and 7 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

    Very specific

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

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

    Use a short, kebab-case slug that describes the plan (e.g., auth-refactor, api-design, onboarding-flow).

    line 22
  2. Very specific:

    Use the template at assets/plan-template.html as the starting point (copy it, then fill in content).

    line 30
  3. Very specific:

    Read assets/plan-template.html to understand the structure and available components.

    line 34
  4. Very specific:

    Keep sections that apply; delete sections that don't (including their <!-- comment --> block).

    line 37
  5. Distinctive:

    Every plan must include at least:

    line 73
  6. Very specific:

    Every task item has a <input type="checkbox" class="task-checkbox">.

    line 133
  7. Distinctive:

    Change Log: Update when the plan is revised.

    line 188
  8. Distinctive:

    Use this decision tree to pick which sections to include:

    line 192
  9. Very specific:

    Do NOT omit any mermaid related HTML/CSS/JS blocks that are present in the template.

    line 218
  10. Very specific:

    Always output the plan under ~/.agent/plans directory in HTML format.

    line 219

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “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

Plan Visualizer

Produce a rich, self-contained HTML plan file and save it to ~/.agent/plans/.

Output

Location: ~/.agent/plans/<descriptive-slug>-YYYYMMDD-HHMMSS.html

  • Use a short, kebab-case slug that describes the plan (e.g., auth-refactor, api-design, onboarding-flow).
  • Append a timestamp: -20260514-143022.
  • Open ~/.agent/plans/ to confirm it exists; create it if not.

File Requirements

  • Self-contained: one .html file, no build step, works when opened directly in a browser.
  • No local dependencies: everything either inline or loaded from a CDN (CDN URLs are fine — the browser handles them).
  • Use the template at assets/plan-template.html as the starting point (copy it, then fill in content).

Template Usage

  1. Read assets/plan-template.html to understand the structure and available components.
  2. Copy it to the target output path.
  3. Replace every {{PLACEHOLDER}} with real content.
  4. Keep sections that apply; delete sections that don't (including their <!-- comment --> block).

Design System

The template uses a clean, modern design language:

  • Typography: Inter (via Google Fonts CDN) for body, bold tight-tracking for headings. No emoji in section headings.
  • Color: Indigo accent (#4f46e5 light / #818cf8 dark). Semantic colors for badges and callouts.
  • Cards: Liquid-glass effect with backdrop-filter: blur(12px) and subtle inner highlight.
  • Animations: CSS fadeUp keyframe on all content blocks; pulsing dot in sidebar; smooth hover transitions on cards and tasks.
  • Scroll progress: Gradient progress bar pinned to the top of the viewport.
  • Dark mode: Toggles via button in the header; theme icon swaps between moon and sun SVG.
  • Mobile: Sidebar collapses behind a hamburger button; overlay dismisses on tap; sections stack vertically.
  • Print: Sidebar, progress bar, and action buttons are hidden; layout collapses to single column.

Visual Components to Pick From

NeedComponent
Architecture / module relationshipsMermaid flowchart or graph
API / system interactionsMermaid sequenceDiagram
State machine or lifecycleMermaid stateDiagram-v2
Data model / schemaMermaid erDiagram
Timeline / phasesMermaid gantt + Phase Timeline HTML
Ordered stepsNumbered task cards (HTML) with checkboxes
Decision logicMermaid flowchart with diamonds
File/folder structure<pre><code> tree block
Risk or priority matrixHTML table with color badges
Decisions tableTwo-column table with badge-highlighted choices
Stat summary3-card stat grid
Collapsible detail<details>/<summary> (styled with chevron)

Mermaid.js is loaded from CDN in the template. Write diagram code between <pre class="mermaid"> tags.

Content Sections

Every plan must include at least:

#SectionPlaceholder(s)Required?
1Overview{{TITLE}}, {{DATE}}, {{AUTHOR}}, {{STATUS}}, {{SUMMARY}}, {{GOAL}}Yes
2Architecture{{ARCHITECTURE_DESCRIPTION}}Yes (or delete)
3Implementation Steps{{STEP_N_TITLE}}, {{STEP_N_DESC}}, {{STEP_N_EST}}Yes
4Risks & Open Questions{{OPEN_QUESTION_N}}, {{RISK_N}}, {{ASSUMPTION_N}}Yes

Recommended sections (include when relevant):

#SectionPlaceholder(s)When to include
5Context{{CONTEXT}}Background on what led to this plan
6Non-Goals{{NON_GOAL_N}}, {{NON_GOAL_N_DESC}}Explicitly scope out what is NOT in plan
7Dependencies{{DEP_N}}, {{DEP_N_DESC}}Prerequisites that must exist before work
8Interaction FlowMermaid sequenceDiagramAPI calls, user journeys, event flows
9Timeline{{PHASE_N_TITLE}}, {{PHASE_N_DESC}}, optional GanttPhased delivery, milestone tracking
10Data ModelMermaid erDiagramNew or changed database schema
11Decisions & Tradeoffs{{DECISION_N}}, {{CHOSEN_N}}, {{ALTERNATIVES_N}}, {{RATIONALE_N}}Document ADRs inline
12Testing Strategy{{TEST_N_TITLE}}, {{TEST_N_DESC}}, {{TEST_N_TYPE}}How each phase will be verified
13Rollback & Migration{{ROLLBACK_PLAN}}, {{MIGRATION_NOTES}}Destructive changes, data migration
14File Structure{{FILE_TREE}}New directories, file tree
15API Contract{{REQUEST_EXAMPLE}}, {{RESPONSE_EXAMPLE}}New or changed endpoints
16Change Log{{CHANGELOG_DATE_N}}, {{CHANGELOG_ENTRY_N}}Plan revisions over time

Stat Cards

The Overview section includes a 3-card stat grid. Pick meaningful summary metrics:

  • Files changed, estimated hours, services impacted
  • API endpoints, database tables, new dependencies
  • Team members, review cycles, risk score

Badges

ClassColorUsage
badge-successGreenDone, ready, approved
badge-warningAmberPending, medium priority
badge-dangerRedRisk, high priority, blocked
badge-infoBlueEstimate, type tag
badge-accentIndigoStatus, in progress
badge-neutralGrayTodo, untagged

Callouts

ClassBorderBackgroundUsage
callout-infoBlueLight blueInformational notes
callout-warningAmberLight amberOpen questions, caution
callout-dangerRedLight redRisks, blockers
callout-successGreenLight greenAssumptions, confirmed items

Phase Timeline

Horizontal phase bar with class="phase active" for the current phase. The active phase gets an accent-colored bottom border and tinted background.

Task Checkboxes

Every task item has a <input type="checkbox" class="task-checkbox">. Clicking it dims the task and strikes through the title. Useful for tracking progress in the HTML file itself.

Mermaid Quick Reference

flowchart TD
    A[Start] --> B{Decision?}
    B -->|Yes| C[Do X]
    B -->|No| D[Do Y]
    C --> E[End]
    D --> E
sequenceDiagram
    Client->>API: POST /login
    API->>DB: SELECT user
    DB-->>API: user row
    API-->>Client: 200 JWT
stateDiagram-v2
    [*] --> Idle
    Idle --> Processing: trigger
    Processing --> Done: success
    Processing --> Error: failure
    Done --> [*]
erDiagram
    USER { string id PK; string email; }
    ORDER { string id PK; string user_id FK; }
    USER ||--o{ ORDER : places
gantt
    title Project Timeline
    dateFormat  YYYY-MM-DD
    section Phase 1
    Task A   :active, a1, 2026-05-14, 7d
    Task B   :        a2, after a1,   5d

Writing Good Plans

  • Title: Action-oriented, specific. "Refactor auth to JWT" not "Auth changes".
  • Summary: One paragraph. Problem + approach + expected outcome.
  • Goal: Single sentence starting with "Enable...", "Reduce...", "Allow...".
  • Steps: Ordered, actionable, each with a clear success criterion.
  • Risks: Name the risk + mitigation, not just the risk.
  • Decisions: Record what was chosen, what was rejected, and why. Future readers need the "why".
  • Non-Goals: Explicitly out-of-scope items prevent scope creep and misaligned expectations.
  • Change Log: Update when the plan is revised. Date + what changed + why.

Section Selection Guide

Use this decision tree to pick which sections to include:

Is this a refactoring or migration?
  ├── Yes → Include: Rollback & Migration, Testing Strategy
  └── No  → Skip those sections

Does this plan touch the database?
  ├── Yes → Include: Data Model, Migration notes
  └── No  → Skip

Is there a new or changed API?
  ├── Yes → Include: API Contract, Interaction Flow
  └── No  → Skip

Is this a multi-phase effort?
  ├── Yes → Include: Timeline (phases + Gantt)
  └── No  → Skip

Is the plan scope ambiguous?
  ├── Yes → Include: Non-Goals, Context
  └── No  → Optional

Common Pitfalls

  • Do NOT omit any mermaid related HTML/CSS/JS blocks that are present in the template; we do NOT want broken diagrams
  • Always output the plan under ~/.agent/plans directory in HTML format; no build step, no dependencies beyond a browser. Append a timestamp to filename (-yyymmdd-hhmmss).

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.