vulcan page new
vulcan page new <spec.json> turns a JSON spec into one self-contained HTML page and writes it to .agents/local/prototypes/<name>.html (gitignored, inside the project). The page is for a reader who should understand in one look: a status or a handoff, how something flows or is built, options compared with a pick, a brainstorm, an explanation, a timeline, findings with charts, a decision record. It loads nothing from the network, uses no font file, icon font or image, and is never published; you open the file.
| Command | What it does |
|---|---|
vulcan page new <spec.json> | Renders the page; the name is the spec's file name |
vulcan page new <spec.json> --out <name> | Names the page (lowercase letters, digits, dashes) |
vulcan page schema | Prints the spec's JSON Schema; no project is needed |
What it checks
The command validates the spec (shape, limits, unique ids, every arrow, step and link pointing at a box, one box per cell, scores that match their criteria, chart values that match their labels), escapes every text, adds a policy that allows only the page's own style and script, and refuses a page over 150 KB (it warns over 80 KB; a typical page is 30 to 60 KB, most of it the page's own style). A last check reads the written markup itself and refuses a page that has a tag or an attribute that loads something, an inline style or handler, a link that is not https, or more than the one style and two scripts its policy names. It also checks the project colour: every text, mark and fill pair has to pass its contrast ratio in both themes, and a colour that fails is refused with the ratio it reached. The page is written whole: a failed render never replaces the last good page. It prints the path, the checks that ran, and that a browser check was not run here - looking at the page at 390 and 1280 px is the caller's job and is reported as done or not done.
The kinds
A page is one light column about 960 px wide (a part with a figure is up to 1120 px wide), in a fixed order: the head, a contents line with a count for each part, what you need to do, the decisions, the steps, then a flow, the written sections, an architecture, a compare view, a sequence, a lifecycle, a tree, a comparison, an idea map, an explainer, a timeline, findings, grades, metrics, a before and after, a decision record, the evidence, the risks, the log, the terms, the sources and the links. The fields of each are in the spec reference of the visualize-work skill.
- Status and handoff: a head with the state as an icon and a word, the title, one sentence, the date and the scope; your actions as a numbered list with no heading of their own; each decision as a numbered card with a question, two or three options (the recommended one tagged), the reason and, last, a detail in small monospace; the steps as one list of rows (name, note, and an icon, or the number for a step not started) with done rows muted and the next one tinted. Background goes in
sections: paragraphs, code, quotes and lists. - Flow and architecture: boxes and labelled arrows on a grid, or layers with links between boxes; a box can carry a state (a colour, an icon and a word); Play animates the arrows and Next steps through the lit boxes.
- Compare: two ways of doing the same thing drawn as one figure. An edge only in the second way is heavy and solid with a
+, an edge only in the first is dotted with a-, and the legend and the phone list say the words, so colour is never the only difference. A compare with no edge that differs is refused. - Sources and terms: a flow box, a flow step or a compare box can carry a
source(repo, a 40-charactercommit,path,lines), shown asrepo@commit:path:linesand listed once in a Sources part; a short commit, an absolute path or a..is refused. Atermslist explains words the reader may not know, and a term that never appears in the page is a warning. - Sequence, lifecycle and tree: lanes for the participants with one arrow per message (a call, a reply, or a call that does not wait); states with a start, ends and the trigger on each move; a root with children nested up to four levels. Each is drawn as a figure on a wide screen and is a list on a phone.
- Comparison: scores of 1 to 5 per criterion, totalled and drawn as bars, an option card each with pros and cons, and the recommended option tagged.
- Idea map, explainer, timeline, decision record: a centre with clusters of ideas; numbered steps on a rail with a small diagram for each; dated items on a vertical rail; the context, the options, the decision as a pull-quote and the consequences.
- Findings: key numbers (with an optional trend line), and bar, line, donut, stack, meter and table charts drawn from the data as inline SVG in a fixed colour order. The page chooses the form from the data: three values or fewer are a stat line, dates make a line, names make ranked bars, the parts of a whole are one segmented bar (ranked bars past five), and a list of more than eight short items takes two columns. Each chart has its numbers as a table view.
- Before and after: two columns, the lines that changed highlighted and marked
+or-.
The page
Every state carries an icon and a word, never colour alone: the status, each minimap row (an icon and a word for done, in progress, waiting, blocked and dropped; a step not started is its number) and each evidence tag (verified, inferred, guess). Light and dark follow the system, with a sun and moon switch at the right of the head; the choice is remembered in the browser of the reader. The contents line lists the parts of the page with a count each (decisions, steps done).
Cards in a row share their rows: the score, the title, each criterion and each pro of one comparison card, the finding tiles, the flow steps, the idea-map branches, the charts and the terms sit at the same height in every card of a row, whatever wraps or is missing (CSS grid with subgrid; one column on a phone). A test measures the offsets in headless Chrome.
The page fits a phone without sideways scrolling. A figure is drawn whole while its text stays at 12 px or more; on a narrower screen it gives way to a list, and tables become one block per row with the column names beside the values.
A page for the owner (steps, actions or decisions) is read, not presented. On any other page, Present (or ?present=1 on the address) turns the sections into slides: the arrow keys, Space, Page Up and Page Down step, Home and End jump, Escape leaves, and the buttons at the foot do the same on a phone. Print gives every section one after another, with the figure and without the phone list. With no script, print or reduced motion, the final state shows.
The look is the one of this wiki: a system font stack and a monospace one, three type sizes (28, 20 and 16 px, and 13 px for small print), 4 px corners, and one accent colour for what needs the owner. Figures sit in a light window with a hairline frame. Nothing is loaded for it.
The colour
The accent is the project's. The page takes the first that exists of: the accent of the spec, the theme of the project (copied by vulcan project sync into .agents/local/vulcan.manifest.json, which is the only file the generator reads for it), and the venizia preset. A page about another project gives accent (and accentDark, accentText) in its spec. The colours of the states (done, waiting, blocked) are fixed and separate from the accent, and every state also has an icon and a word.
Words and language
The page takes the language of your profile (vulcan page new reads it), else English; a spec cannot choose the language. The words of the page are bundled in English and Vietnamese; for any other language a spec replaces any word through a chrome object, so the visualize-work skill writes them in your language.
Exit codes
0 on success. 1 when the spec is missing, not valid JSON or not renderable (nothing is written, every problem is listed), or when .agents/local/ is missing, a symlink, or outside the project: run vulcan project sync first.