Catalogue / simpleflow
simpleflow
MITSignedBuild a flow diagram as one standalone HTML page: one vertical main path, optional side channels, and a fixed toolbar with nine themes, light/dark switching and a print view already wired up. Built for repeatability: the template carries every repeated decision, so the agent writes only the cards an…--- name: simpleflow description: "Build a flow diagram as one standalone HTML page: one vertical main path, optional side channels, and a fixed toolbar with nine themes, light/dark switching and a print view already wired up. Built for repeatability: the template carries every repeated decision, so the agent writes only the cards and captions in one pass, and output stays consistent and short. Use when asked for a process flow, request path, pipeline, decision flow, state or lifecycle flow, or to restyle an existing flow diagram to this style. It also builds an index page that lists several diagrams and documents, with small inline SVG glyphs and the same toolbar." license: MIT ---
simpleflow diagram
One self-contained .html page per topic, or one page with several diagrams. Start from template.html: the layout, the themes, the mode switch and the print view are already in it. A folder of finished pages and documents can open on index.html, a second template with link cards and a document table.
Page types
- Diagram page: copy
template.html; the workflow below applies. - Index page: copy
index.html; manual section 14 applies. It lists the diagram pages and documents of one folder in sections by subject: one link card each with a small inline glyph and its name, no description, and a document table per group. The mode and both theme names travel in every local page link. - Embedded page: one finished page can sit inside another HTML page as one iframe placed before the host's closing
</main>. It keeps its own toolbar and theme, sits in the same folder or below, and takes a height from manual section 14. No second copy.
Goals
- The same result every run. Copy the template, the theme table and the scripts; the grid, the toolbar and one of nine fixed themes do not change.
- A small written part. Write only the page copy and the diagram cards; the template is copied, not rebuilt.
- One pass. No colour or layout decisions, no second draft.
Do not choose colors or restyle controls; the page follows whichever theme the reader picks.
The full contract lives in style-manual.md. demo.html is the same template with one filled diagram.
Writing rules
The page copy follows the project's writing rules: the subtitle, the group names, the entry names, the document rows and a footer where one is used. They hold for this skill, its manual, the README and the changelog.
- Plain professional English: dry, product focused, without owner or user references and without decisions and dates scattered through the text. A header names its subject.
- Short: no big prose, no long explanations, no filler and no bloat.
- State what a thing does as a whole. "The layout, the toolbar, five dark and four light themes" is a spec dump; name the whole instead, and keep inventories in lists and tables.
- Labels name the subject in plain nouns, such as speed, testing or diagram size; no taglines such as "Fast and Cheap".
- A sentence needs a subject and a verb. A bare chain such as "run, evaluate, compare, edit, repeat" is a fragment; write the steps into a sentence.
- No drama, slogans, "X, not Y" contrasts, punchline fragments, superlatives or sales comparisons.
- Never insert a manual line break inside a sentence or a paragraph; text wraps by itself in every viewer. Break only between paragraphs, and in a file wrap only when a line exceeds 500 characters.
- ASCII only, 0x20 to 0x7E plus newline and tab. No em or en dashes, curly quotes, arrows, bullets, box characters or emojis; a dash is a plain hyphen and a quote is straight.
Workflow
- Read
style-manual.mdbefore writing; it carries every number and rule the page needs. Copytemplate.htmlto<topic>-flow.htmlin the workspace root unless the user or project rules name another folder. Copy the template as it is. Replace the title and subtitle, then insert diagram sections at the marked space.demo.htmlis an optional filled example. - Keep the page template as it is: head script, token block, toolbar, toolbar script and print rules. Change only the page copy and the diagram bodies.
- Fill the copy in two edits. The first replaces the title, h1 and p.sub; the second inserts every diagram section at the marked space in order, head with h2 pill, p.note and svg. Use the diagram body in manual section 10. The space below the diagrams is free for material that does not fit in cards; the width is the page column. Do not edit one section at a time and do not rewrite the whole page, because edits keep the template byte for byte; a further edit is only for a defect found in the read.
- Keep the grid in manual section 5: main column, pitch, card heights, tag, side boxes, split row and merge.
- Fill text within the manual section 6 budgets, written three characters under each limit.
- Mark one focus card and zero to two accent connectors per diagram. Solid for the main path, dashed for side channels, dotted for returns.
- Check the written part by reading it once, by eye, against the manual section 12 checklist; manual section 11 holds the check rules. On a page that already holds a diagram, read only the new section. A defect found in the read gets one repair edit; a defect that survives it is named in the reply to the user. Open the page once when it is done; if it is already open, let the user refresh.
- After the user has viewed the page, ask whether the diagram file can be deleted. Do not delete it unasked.
Themes and modes
- One theme covers the page and every diagram on it. Sections carry no class, no token block and no color of their own.
- The reader picks the theme: five dark names and four light names in the two menus, each mode remembering its own choice.
- The mode switch chooses light or dark and starts from the OS preference. Print is a separate toggle with fixed values.
- A link between pages carries the mode and both theme names, never the six values. Each page resolves the names through its own table, so pages from different projects can share the choice while each keeps its own palette. A user change rewrites the current history entry, so Back and a reload keep the pick.
- Brightness and saturation sliders adjust the applied palette in seven steps; they never change the saved pick and print ignores them.
- Never hardcode a fill or stroke outside the template's classes and
var(--...)tokens.
Hard rules
- ASCII only. Straight quotes, hyphen for dash, no arrows, bullets or other Unicode.
- One
h1, one.suband one emptyfooterthat draws the closing rule. Footer text is optional. - Inline scripts are limited to the head mode script and the toolbar script. No external JavaScript, CSS, fonts, images or icon sets. Must open from
file://. - Toolbar: fixed, 24 px high, page background fill, no divider. Back button with a thin left arrow and lowercase
go backat the left end, disabled until the tab has an earlier page; the other controls right aligned: print toggle labelledprint friendly, mode switch, thedark themeandlight thememenus, and the brightness and saturation sliders. Native controls, keyboard operable, labeled. - Colors only through
var(--...). Tokens live on:root; the print override comes last. - Marker ids unique per page, prefixed by section. Pair each line class with the matching arrowhead.
- Open a finished page once for the user. No screenshots, no PDFs, no theme-by-theme renders; the template is checked in the repository, not on every page.
Files
style-manual.md: file contract, theme rules, type scale, grid, card anatomy, connectors, branch and loop patterns, diagram body, validation, checklist, toolbar rules, index pages and embeds.template.html: page template to copy; theme table, toolbar, print rules and one marked space for the diagram, no diagram content.index.html: index template to copy; grid of link cards with inline glyphs, documents table, same toolbar. Fill the marked copy spaces.demo.html: filled reference page with the toolbar, one card payment diagram and the print theme.
Limits
More than seven main rows: split into two sections. Text that does not fit the budgets: cut it or split the step. Do not invent fills, sizes or spacing outside the manual. An index lists pages; it is not a dashboard and carries no counts or status.
| File | Size | SHA-256 |
|---|---|---|
| SKILL.md | 8.4 kB | 51f76139a0d5 |
| SKILVAULT_SOURCE.json | 1.5 kB | 783a0de3132a |
| THIRD_PARTY_NOTICES.md | 1.1 kB | 6b3d8ca9fa87 |
| demo.html | 31.6 kB | ffe148090e3e |
| index.html | 30.9 kB | 4987e940e84b |
| style-manual.md | 26.0 kB | fb9dfd8ac80d |
| template.html | 27.3 kB | a8e4dc37a0b6 |
Published verbatim from the pinned commit. Nothing is rewritten.
| Version | Pinned commit | Signed | |
|---|---|---|---|
| 0.1.0 Current | e6e3dc696c20 | 28 Nov 2026 |
Locking a skill to one version needs Pro.