Skip to content

Add the Plannotator diagram authoring skill - #37

Draft
backnotprop wants to merge 9 commits into
mainfrom
codex/diagram-authoring-skill
Draft

backnotprop wants to merge 9 commits into
mainfrom
codex/diagram-authoring-skill

Conversation

@backnotprop

@backnotprop backnotprop commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Adds /diagram to the skill collection, Claude plugin, Codex skill directory, catalog, and installation guides. An agent writes editable .diagram.json with stable part IDs, grounds references in the project and renders a standalone SVG. The existing html-diagram skill continues to handle self-contained HTML.

The authoring body mirrors Plannotator's bundled skill. Plannotator's bundled CLI can create the source and render it. A standalone consumer uses the npm executable from @plannotator/diagrams. Reviewers can install the candidate tarball in a scratch project. Hold this draft until the renderer release is available to intended users.

Verified:

  • skills.sh listed diagram and html-diagram, then installed only diagram into an empty Codex project. Portable frontmatter and the repository's Claude/Codex/skills.sh manifests passed validation.
  • A fresh agent received only this skill, a small parcel-dispatch program and the locally installed 0.1.0 renderer tarball. It produced both dispatch branches, attached the decision to source lines 2–3, and rendered an SVG. Rendering the returned JSON again gave byte-identical SVG and zero layout diagnostics.
  • The site's production build passed.
  • A fresh agent tested the revised skill using a supplied npm tarball offline and one real CLI source file. It delivered a diagram with nine checked source references and a matching SVG. A separate revision retained all 11 selectable part IDs after a pinned rename.
  • The image recipe embeds a local PNG or JPEG as an individually reviewable section. Re-running it updates the same section. A standalone trial embedded both formats and the host returned separate pinned comments for each screenshot.

Authoring from the reader’s question

The instructions start by identifying the reader and the visual relationship they need to understand. The skill lists the three placement modes, shapes, sections, images, references and routing controls. A complete example is no longer part of the skill.

Two fresh agents received the same skill and the packaged renderer. Each received its own brief and source material, with no layout directions. One made a north-up welcome-desk map. The other chose two parallel timelines and linked its claims to the JavaScript player. Both chose free placement, used it differently, and produced editable files with zero layout diagnostics. Exporting each file again produced a byte-identical SVG. The source links resolved and running the sample player confirmed the notes shown in the timeline.

Both authors independently asked how to see measured panel sizes during placement. The final skill adds a command for printing panel bounds. It returned all six panels in the map and all five in the playback comparison.

The current revision also removes the list of diagram types and the subject suggestions under each layout. A fresh author received only this skill, the npm tarball and invented conservation notes. The drawing distinguished a tested mechanical fit, matching diameters without a test, and two loose labels. All three references matched the notes and re-rendering produced an identical SVG with zero layout problems.

@vercel

vercel Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
effective-html Ready Ready Preview Nov 24, 2026 3:44am UTC

This branch was successfully deployed

1 active deployment
Preview — 03c03f6d Deployed Nov 24, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant