New Diagram command with starter templates #2

Closed
opened 2026-10-04 10:52:51 -07:00 by root-at-skic · 0 comments
Owner

Add a command, Archify: New Diagram…, that asks for a diagram type and a file name, then creates a starter .archify (YAML) file and opens it in the diagram editor.

Why: the only starter today is examples/hello.archify. Upstream archify now also targets everyday subjects (leave plans, approval processes, order status). A valid starting file per type lowers the barrier more than an empty schema does.

Templates (one per type):

  • architecture, workflow, sequence, dataflow, lifecycle: small, valid, converted from the upstream examples/*.json with scripts/to-yaml.mjs.
  • One everyday template based on upstream examples/holiday-planning.workflow.json (uses the calendar / briefcase icons).

Also: add it to the Explorer context menu (folder) and the command palette.

Done when: every template passes archify validate (test), and the new file opens in the diagram editor.

Add a command, **Archify: New Diagram…**, that asks for a diagram type and a file name, then creates a starter `.archify` (YAML) file and opens it in the diagram editor. **Why:** the only starter today is `examples/hello.archify`. Upstream archify now also targets everyday subjects (leave plans, approval processes, order status). A valid starting file per type lowers the barrier more than an empty schema does. **Templates (one per type):** - architecture, workflow, sequence, dataflow, lifecycle: small, valid, converted from the upstream `examples/*.json` with `scripts/to-yaml.mjs`. - One everyday template based on upstream `examples/holiday-planning.workflow.json` (uses the `calendar` / `briefcase` icons). **Also:** add it to the Explorer context menu (folder) and the command palette. **Done when:** every template passes `archify validate` (test), and the new file opens in the diagram editor.
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: vscode-extensions/archify-vscode-ext#2