Plan Canvas

VérifiéSûr

Ouvre les plans et artefacts HTML dans un navigateur local pour permettre une revue visuelle, des annotations et une approbation ou des demandes de modification via une boucle CLI.

Spar Skills Guide Bot
DeveloppementIntermédiaire
29/08/2026
Claude CodeCodexCursorCopilot
#plan-review#human-in-the-loop#browser-canvas#feedback-loop#cli-json

Recommandé pour

Synthèse automatique

Ouvre un plan ou un artefact HTML local dans un canvas du navigateur où l'humain annote des éléments précis, discute et rend un verdict Approuver / Demander des modifications, pendant que l'agent attend le retour en JSON via une commande CLI bloquante.

Points forts

  • Remplace un « oui, continue » tapé par un verdict explicite (Approve plan / Request changes) lié au point de confirmation de /plan
  • Les annotations sont ancrées à un élément (sélecteur, balise, extrait), ce qui évite les retours vagues du type « change ça »
  • Boucle CLI + JSON sans dépendance, agnostique du modèle et du harnais, avec un serveur loopback partagé (127.0.0.1:4517) indexé par chemin d'artefact
  • File d'attente persistante : les retours ne sont pas perdus si l'écoute est interrompue, avec `pending` et un hook stop comme filets de sécurité

Limites

  • Ne sert que des fichiers d'artefacts locaux : pas de revue de diff de code, pas d'application web à exécuter, pas d'URL distante
  • Si aucun `await` n'est réellement en attente, les messages de l'humain semblent n'avoir aucun effet — il faut le lancer en tâche de fond quand le harnais le permet
  • Suppose que le binaire `ecc-plan-canvas` (paquet ecc-universal) est sur le PATH, ou une invocation via CLAUDE_PLUGIN_ROOT
Quand l'utiliser

À utiliser quand vous venez d'écrire un fichier de plan ou un artefact visuel local et qu'il faut une validation humaine précise, ou quand l'utilisateur veut pointer du doigt ce qu'il faut modifier.

Quand l'éviter

À éviter pour une revue de code sur diff, pour tester une application web en cours d'exécution ou pour commenter une URL distante.

Analyse de sécurité

Sûr
Score qualité92/100

The skill instructs running a local CLI that starts a loopback-only server (127.0.0.1:4517) and opens local artifact files in a browser for review. No destructive commands, exfiltration, obfuscation, or disabling of safety features are present. The only execution risk is minimal local process and browser interaction, which is within normal agent operation.

Aucun point d'attention détecté

Comment cette analyse est faite

Exemples

Approve a freshly written plan
I just wrote .claude/plans/feature.plan.md — open it in the plan canvas so I can review and approve it before you start implementing.
Point-at review of a comparison report
/plan-canvas on ./reports/vendor-comparison.html — I want to annotate the sections that need changing instead of typing what to fix.
Collect targeted feedback on a design doc
Open docs/architecture.md in the canvas, wait for my annotations, then apply the changes I anchored to specific headings and show me the revised version.

name: plan-canvas description: Open plans and HTML artifacts in a local browser canvas where the human annotates elements, chats, and approves or requests changes without leaving the page. Use when presenting a plan for review, or when feedback like "move this, change that" is easier pointed at than typed. metadata: version: "1.0.0" origin: ECC

Plan Canvas

Review loop for plans and visual artifacts: you write the artifact, the human reviews it in the browser — annotating the exact element they mean, chatting, and delivering an Approve plan / Request changes verdict — while you block on a single CLI call that returns their feedback as JSON.

Inspired by lavish-axi; rebuilt ECC-native around the /plan confirmation gate, with zero dependencies.

When to Use

  • You just wrote a plan artifact (.claude/plans/*.plan.md from /plan) and need the CONFIRM/approve decision — the canvas verdict replaces a typed "yes/proceed".
  • The user should point at what to change: reviewing designs, comparisons, reports, or any local .md / .html artifact.
  • The user asks for /plan-canvas, a visual review, or "open it in the browser".

Do NOT use for: code review of diffs (/code-review), running web apps, or remote URLs. The canvas serves local artifact files only.

How It Works

Invoke the CLI as ecc-plan-canvas — the bin shipped by the ecc-universal package (on PATH after a global/plugin install; node "$CLAUDE_PLUGIN_ROOT/scripts/plan-canvas.js" also works for plugin installs). Run it from the project you are reviewing in; it works from any working directory. It manages a detached loopback server (127.0.0.1:4517) shared by all sessions, keyed by artifact path — no session ids to track.

The workflow is a plain CLI-plus-JSON loop, so it is model- and harness-agnostic: any agent that can run a shell command and read stdout drives it the same way (Claude Code, Codex, Cursor, Gemini, OpenCode, Copilot). Trigger it however your harness surfaces skills — e.g. /plan-canvas in Claude Code, $plan-canvas in Codex — or just run the ecc-plan-canvas commands directly.

# 1. Open the artifact in the user's browser (returns immediately)
ecc-plan-canvas open .claude/plans/feature.plan.md

# 2. Block until the human responds. Leave running; re-run if interrupted:
#    queued feedback is never lost.
ecc-plan-canvas await .claude/plans/feature.plan.md

Stay listening, or the human talks to an empty chair

Feedback only reaches you while an await is actually parked on the session. If your turn ends with nothing listening, the message sits in the queue and, from the human's side of the glass, sending appears to do nothing at all.

So run await as a background task when your harness supports one (in Claude Code, a Bash call with run_in_background: true). It exits the moment feedback arrives and the harness hands you the JSON, which keeps the loop alive across turns instead of dying with the foreground call. A foreground await works too, but only until the harness time-limits it.

Two backstops exist, and neither is an excuse to skip the above:

  • ecc-plan-canvas pending lists feedback queued with no listener. Check it whenever you are unsure whether you missed something.
  • The stop:plan-canvas-pending hook blocks your turn from ending while canvas feedback is undelivered, and hands you the messages. If you are reading feedback from that hook, you stopped listening too early.

await prints JSON when the human acts:

{
  "status": "feedback",
  "items": [
    { "kind": "annotation", "text": "Split this into two phases",
      "anchor": { "selector": "h2:nth-of-type(3)", "tag": "h2", "snippet": "Phase 2: Migration" } },
    { "kind": "verdict", "verdict": "request-changes" }
  ]
}
  • kind: "chat" — freeform message; answer in the canvas, not the terminal.
  • kind: "annotation" — feedback anchored to an element (anchor.selector, anchor.snippet show what they pointed at; anchor.textRange.text when they highlighted a passage).
  • kind: "verdict" — approve means the plan is CONFIRMED: stop polling, end the session, and start implementing. request-changes means revise the artifact (the canvas live-reloads it) and keep the loop going.

3. Always respond in the canvas, then keep listening. One command does both:

ecc-plan-canvas await <file> --reply "Split Phase 2 as requested. Take a look."

Every human message gets a reply in the canvas, even a one-liner like "On it, rewriting the risk table now." Silence in the chat panel is indistinguishable from a broken canvas, which is exactly the failure this loop exists to prevent. Answer there, not only in the terminal.

While you work, keep the chat honest with the activity indicator:

# animated "agent is thinking..." bubble; refresh it during long work
ecc-plan-canvas typing <file> --state thinking
# switch to "agent is typing..." just before a reply lands
ecc-plan-canvas typing <file> --state typing

await sets thinking for you the moment it hands you a batch, and --reply clears it. Both states self-expire, so a crashed agent decays to an honest "queued" instead of leaving the human watching dots forever. Refresh thinking if a revision takes more than a minute.

4. End when review concludes: ecc-plan-canvas end <file>.

Diagrams (Mermaid)

When part of the plan is a flow, architecture, sequence, state machine, ER model, or dependency graph, author it as a fenced ```mermaid block instead of ASCII art or a wall of prose — the canvas renders it as a themed diagram the human can point at. Reach for it when a picture reads faster than a paragraph; skip it for simple lists or tables.

```mermaid
flowchart LR
  A[Market resolves] --> B{Watchers?}
  B -->|yes| C[Enqueue jobs] --> D[Fan-out worker]
```

Diagrams render in the ECC dark theme with the accent palette. Mermaid loads in the browser from a pinned CDN; if that is unavailable (offline), the block degrades to showing its source, so the review is never blocked. Point a local mirror at ECC_PLAN_CANVAS_MERMAID_URL for air-gapped use.

Rules

  • Markdown artifacts render in ECC's plan template (including Mermaid blocks); .html artifacts render as-is with the annotation layer injected. For HTML authoring guidance use the frontend-design-direction and artifact-design skills.
  • Edit the artifact file to revise — the canvas live-reloads on save. Never re-run open to refresh.
  • {"status": "ended", "endedBy": "user"} (or sessionEnded: true on a feedback batch) means the user closed the review: stop polling, deliver remaining updates in chat, and do not reopen. A plain open on that session is refused; pass --reopen only when the user asks to resume.
  • Sibling assets (images, CSS) must sit next to the artifact and be referenced by relative path.
  • The server is loopback-only and exits after 30 idle minutes (ECC_PLAN_CANVAS_IDLE_MS); stop shuts it down explicitly. State lives in ~/.claude/plan-canvas/ (ECC_PLAN_CANVAS_STATE_DIR).

Examples

Plan approval flow — /plan writes .claude/plans/notifications.plan.md and must WAIT for confirmation:

ecc-plan-canvas open .claude/plans/notifications.plan.md
ecc-plan-canvas await .claude/plans/notifications.plan.md
# → {"status":"feedback","items":[{"kind":"verdict","verdict":"approve"}]}
ecc-plan-canvas end .claude/plans/notifications.plan.md
# plan is confirmed — begin implementation

Revision loop — feedback arrives, you edit the file, reply, keep listening:

# await returned annotations → edit the .plan.md (canvas live-reloads)
ecc-plan-canvas await <file> --reply "Reworked the risk table."
# → blocks again until the next response

Anti-Patterns

  • Polling with --timeout-ms in a loop. It exists for tests. Leave the plain await running instead.
  • Ending your turn with no await listening while the review is still open. That is the one failure the human experiences as "I sent a message and nothing happened".
  • Reading the feedback but answering only in the terminal. The human is looking at the canvas.
  • Reopening after a user-initiated end "just to show" something.
  • Pasting the whole plan into chat and opening a canvas — pick the canvas and keep the terminal summary to one line.
  • Parsing the canvas chat from state files — everything you need arrives via await.

Du fichier au premier essai

Le téléchargement contient exactement le contenu affiché sur cette fiche. Cette copie peut différer de la dernière version du dépôt source.

Consulter la source et ses fichiers annexes

Ce téléchargement contient uniquement SKILL.md. Les scripts, références, modèles et dépendances éventuels ne sont pas inclus. Récupérez les fichiers nécessaires depuis la source en conservant leur arborescence avant de poursuivre.

1. Télécharger le fichier

Télécharger SKILL.md

Depuis la racine d’un projet de test, enregistrez le fichier sous .skill-downloads/plan-canvas-mte1llj8/SKILL.md, ou utilisez la commande suivante. Ce dossier sert à examiner la skill avant son installation.

Commande pour macOS/Linux ou WSL : un shell POSIX et curl sont nécessaires. Sous Windows sans WSL, utilisez le bouton de téléchargement et créez le dossier manuellement.

mkdir -p '.skill-downloads/plan-canvas-mte1llj8' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/plan-canvas-mte1llj8/download' --output '.skill-downloads/plan-canvas-mte1llj8/SKILL.md.part' && mv '.skill-downloads/plan-canvas-mte1llj8/SKILL.md.part' '.skill-downloads/plan-canvas-mte1llj8/SKILL.md'

2. Vérifier les prérequis

Lisez SKILL.md avant de l’utiliser. Si le fichier cite des scripts ou services externes, examinez-les et préparez les accès nécessaires dans votre environnement de test.

Aucune section de prérequis reconnue dans ce fichier. Cela ne signifie pas qu’il est autonome : les bibliothèques, outils et accès peuvent être cités ailleurs dans le contenu ou dans le dépôt source.

Les plateformes de la fiche sont des indications du catalogue. Les chemins ci-dessous suivent la documentation des outils ; ils ne prouvent pas que cette skill y a été exécutée. Aucune version minimale de ces outils n’est attestée pour cette fiche.

3. Charger la skill

Après vérification, copiez le dossier complet dans le projet avec l’une des commandes ci-dessous, puis ouvrez une nouvelle session de l’outil. La commande s’arrête si un dossier du même nom existe déjà : comparez les fichiers avant de le remplacer.

Claude Code
test -f '.skill-downloads/plan-canvas-mte1llj8/SKILL.md' && test -s '.skill-downloads/plan-canvas-mte1llj8/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/plan-canvas' && cp -R '.skill-downloads/plan-canvas-mte1llj8' '.claude/skills/plan-canvas'

Cursor
test -f '.skill-downloads/plan-canvas-mte1llj8/SKILL.md' && test -s '.skill-downloads/plan-canvas-mte1llj8/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/plan-canvas' && cp -R '.skill-downloads/plan-canvas-mte1llj8' '.cursor/skills/plan-canvas'

Codex
test -f '.skill-downloads/plan-canvas-mte1llj8/SKILL.md' && test -s '.skill-downloads/plan-canvas-mte1llj8/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/plan-canvas' && cp -R '.skill-downloads/plan-canvas-mte1llj8' '.agents/skills/plan-canvas'

OpenSkills

OpenSkills doit déjà être installé. La procédure locale install/read est contrôlée avec OpenSkills 1.5.0, qui exige Node.js ≥ 20.6.0. Aucun slug du catalogue n’est résolu automatiquement.

Installation officielle d’OpenSkills
openskills install './.skill-downloads/plan-canvas-mte1llj8'

openskills read 'plan-canvas-mte1llj8'

La lecture doit afficher le contenu du fichier installé et son dossier de base. Elle ne lance ni la skill ni ses dépendances.

Pour un agent qui lit AGENTS.md, synchronisez ensuite l’index. Cette commande modifie AGENTS.md : relisez le diff avant de l’utiliser.

openskills sync

Mode manuel ou autre outil : joignez SKILL.md à une conversation, ou ouvrez-le dans un agent capable de lire les fichiers. Ajoutez les ressources annexes nécessaires. Il n’existe pas de dossier universel reconnu par tous les outils.

4. Faire un premier essai

Utilisez une entrée courte et fictive : un endpoint d’API, un petit document ou un brief d’interface. Dans une nouvelle conversation, joignez le fichier ou donnez son chemin à l’agent, puis adaptez cette demande :

Lis .skill-downloads/plan-canvas-mte1llj8/SKILL.md et applique ses instructions à cet exemple : [décrire une entrée de test]. Indique les fichiers, dépendances ou accès qui manquent. Produis le résultat demandé par la skill sans inventer de données ni exécuter de script non examiné.

Résultat attendu : une sortie correspondant aux instructions de la skill, ou une liste précise des prérequis manquants. Une simple confirmation de lecture ne valide pas le premier usage. Si une ressource externe est indisponible, ce parcours reste à tester.

Skills similaires