[input-file] File IR có kiểu
Path tùy chọn tới sơ đồ JSON IR có kiểu. Chỉ bỏ trống khi IR sẽ được soạn trong phiên trước khi compile.
/ak:diagram architecture.json --format html --out ./build/diagram.html Tóm tắt nhanh / Lệnh
Bộ Engineer
/ak:diagram
Compile JSON IR có kiểu thành bản đồ hệ thống tương tác đã kiểm, SVG, fragment nhúng được, và HTML reader tự chứa mà không cần trình duyệt.
Chọn archetype
Soạn IR có kiểu
Áp invariant schema
Chọn cờ compile
Nguyên tắc 01
Chọn theo artifact cần tạo, không chọn chỉ vì có chữ diagram.
Nguyên tắc 02
JSON IR có kiểu là nguồn; compile offline thành SVG, fragment hoặc HTML.
Nguyên tắc 03
Cùng byte IR phải cho ra cùng byte output.
Nguyên tắc 04
Phác thảo whiteboard, biểu đồ in, và Mermaid inline thuộc skill khác.
Các nhánh chính từ đầu vào đến kết quả, bám theo cách command chạy khi dùng thật.
Khởi động
Đầu vào, phạm vi, route
Xử lý
Agent / skill thực thi
Kiểm chứng
Gate, review, xác thực
Đóng
Báo cáo, bàn giao, artifact
Cách gọi skill: cú pháp, đối số vị trí, option dùng chung, rồi từng subcommand với cú pháp và kết quả riêng.
Cú pháp
/ak:diagram [input-file] [--format <svg|fragment|html>] [--preset <classic|signal-flow|blueprint|editorial>] [--theme <light|dark>] [--out <path>][input-file] File IR có kiểu
Path tùy chọn tới sơ đồ JSON IR có kiểu. Chỉ bỏ trống khi IR sẽ được soạn trong phiên trước khi compile.
/ak:diagram architecture.json --format html --out ./build/diagram.html --format <svg|fragment|html> Định dạng output
Compile thành SVG vector sạch, fragment HTML scoped để nhúng, hoặc HTML reader tương tác độc lập. Đường compile mặc định là HTML reader tự chứa.
/ak:diagram architecture.json --format svg --out ./build/diagram.svg --preset <classic|signal-flow|blueprint|editorial> Preset hình ảnh
classic là nền sạch, signal-flow dùng ánh emerald/cyan, blueprint là xanh kỹ thuật, editorial là serif ấm.
/ak:diagram architecture.json --format fragment --preset signal-flow --theme dark --theme <light|dark> Theme màu
Theme sáng hoặc tối cho SVG, fragment hoặc HTML reader đã compile. Animation trace hữu hạn, nếu có, không quá tám giây và tôn trọng reduced motion.
/ak:diagram architecture.json --format html --theme dark --out ./build/diagram.html --out <path> Đường dẫn output
File đích cho artifact đã compile. Cùng byte IR cho ra cùng byte output SHA-256 trên mọi môi trường.
/ak:diagram architecture.json --format html --out ./build/diagram.html --format svg|fragment|html Định dạng compile
--preset Preset hình
--theme Sáng hoặc tối
--out Path output
Không mạng
Compile chạy offline trong Node.js thuần; không gọi mạng, telemetry hay tải font.
Giảm chuyển động
Animation trace luôn hữu hạn và tự tắt khi prefers-reduced-motion.
Ví dụ gọi command theo từng flag, subcommand, mode hoặc route dùng được trong workflow thực tế.
/ak:diagram architecture.json /ak:diagramarchitecture.json--formathtml--themedark--out./build/diagram.html
/ak:diagramarchitecture.json--formatsvg--out./build/diagram.svg
/ak:diagramarchitecture.json--formatfragment--presetsignal-flow--themedark
Sơ đồ đã compile
Mẫu đường dẫn
<out>.html | <out>.svg | fragment HTML scoped HTML reader tương tác tự chứa, SVG vector sạch, hoặc fragment scoped để nhúng, compile từ JSON IR có kiểu.