Skill guide: /figure — editable vector diagrams

Skill guide: /figure — editable vector diagrams

figure draws diagrams — study flow, protocol, conceptual framework, path/SEM model, analysis pipeline, concept tree, simple charts — as native vector figures from a figure DSL. Not for photographic or illustrative art: that is /illustrate.

How to call it

text
/figure Draw the study flow diagram for the experiment designed in this session: recruitment → screening → randomization → HRV biofeedback (4 weeks) vs active control → post-test (PSS-10) → 3-month follow-up. Use a journal template.

It reads the session — a design or an analysis earlier in the chat — so you describe the figure, not the study.

What happens

  • The diagram is built as nodes, edges and groups in a journal template and rendered as SVG.
  • It opens in the figure panel: drag, rename, recolor, or type a change in "Describe a change…"; undo/redo keep the history.
  • "Edit in workspace" opens the full editor: select shapes and points, align, compose panels, save versions.
The figure panel with "Describe a change…" above the canvas.
The figure panel with "Describe a change…" above the canvas.
The full-page editor for the same figure.
The full-page editor for the same figure.

What you get

  • The figure artifact (editable), exportable to SVG, PNG, PDF and PPTX with shapes and text intact.
  • Session citations can be attached to nodes; multi-panel figures compose several artifacts with panel letters.
Design-step figures — protocol flow, expected results, power curve — are drawn by the same engine.
Design-step figures — protocol flow, expected results, power curve — are drawn by the same engine.

Tips

  • Name the template ("Nature-style", "APA") and the palette; the figure follows it.
  • Place an illustration inside a diagram as a node icon by referencing it by name.