declarative-engine-figures
Grid-based block diagrams, network overview figures and deployment/phase flowcharts via a declarative layout engine — config syntax with real manuscript configs, and a no-download SVG extraction path.
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- declarative-engine-figures
- description
- Grid-based block diagrams, network overview figures and deployment/phase flowcharts via a declarative layout engine — config syntax with real manuscript configs, and a no-download SVG extraction path.
03 SKILL.md 正文
Declarative layout-engine figures
When to use
Your figure fits a row×column grid: network overview figures (backbone/neck/head columns with legends and column heads), deployment or phase flowcharts (stacked dashed phase frames), method framework diagrams. A declarative engine does layout, alignment and orthogonal routing; you only write the configuration — and the same config always renders the same figure.
The configs in this folder were authored for a local companion engine (grid + emphasis colors + lane-based orthogonal routing + dashed groups + captions + true sub/superscripts). The engine itself is not bundled here; the config syntax and workflow below are the transferable part — port them to your engine of choice, or keep them as the spec.
Config syntax (real examples in configs/)
- Node:
name: main text | sub text @rRowcCol !blue— spans@r1-3c1(rows),@r2c3-4(columns);nat= natural-width narrow node; twonatnodes in one cell pack side-by-side. - Column heads
@head 1: Backbone; bottom legend@legend blue: P2 branch, orange: ACR; dashed phase group@group Training only : dashed … @end; bottom caption@caption …. - Edges
A -> B, coloredA -> B !orange; sub text supports_{sub}^{sup}(stackable:z^{T}_{c}) and\nforced line breaks. - Text arrows like
(32→64)inside node text are never mistaken for edges (position-based disambiguation).
Workflow (no-download SVG extraction)
- Write the config; base64url-encode it into the hash:
engine.html#c=<b64url>; success =window.__archState.ok === true. - Evaluate
buildSVG(lastScene)in the page console — it returns the full SVG string (no browser download handling needed). - The exported width/height are float strings — later regexes must accept
[\d.]+. - Export PNG via the
hand-svg-structureinline-page pipeline.
Real configs (configs/)
fig4-1.config.txt— network overview with column heads + legend + packed narrow-node pair.fig5-2.config.txt— teacher–student distillation training framework.fig6-2_convert.config.md— TensorRT deployment flow (two stacked dashed phase frames).
04 同仓库更多 Skills
github-workflow
Umbrella for GitHub auth, repo management, issues, PRs, Mergify, and releases. Subsumes github-auth and repo-manager.
brave-automation
baa CLI: Brave profiles, Google sessions, credentials.
aes
AES docs, layers, rule fixes, and legacy migration.
pretext
Build creative browser demos with DOM-free text layout.
popular-web-designs
54 real design systems (Stripe, Linear, Vercel) as HTML/CSS.
p5js
p5.js sketches: gen art, shaders, interactive, 3D.