archify
它能做什么
这项技能把文字描述或 Mermaid 图表转换为精美的交互式图表页面。适合需要解释系统、流程或步骤顺序如何运作的任何人。
适用场景
- ✓当你需要一张系统各部分及其连接方式的图的时候。
- ✓当你想把流程或分步骤的操作转换为图形时。
- ✓当你已有 Mermaid 代码,想要一张更美观、便于分享的图表时。
技能链接
https://github.com/anbeime/skill/blob/main/skills/archify/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我画一张图,展示我们的订单如何从网站流转到仓库。”
每周 5 个新技能,1 分钟读完。
工作原理
它把一段简短的文字描述转换为结构化数据文件,然后生成一个单独的网页,以浅色和深色两种主题显示图表。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Archify
Create a self-contained, interactive HTML diagram from a small typed JSON specification. Static output is the default; enable motion only when the user asks for a demo or presentation.
Fast authoring path
Use this bounded path for ordinary generation. Do not read the optional Viewer Runtime reference unless the user asks about those features.
Choose
architecture,workflow,sequence,dataflow, orlifecyclefrom the question.Read one matching schema in
schemas/,schemas/common.schema.json, and one matching JSON example inexamples/. Read only those files. Fresh authorship means new stable IDs, domain wording, and layout; use the example for field shape, not facts. New workflow sources useschema_version: 2and its readable layout contract; keepschema_version: 1only when preserving an existing workflow's fixed geometry. When real product identity matters, querynode bin/archify.mjs brands "<name>" --json; readreferences/brand-marks.mdonly for an unknown brand with a user-provided URL.Artifact first: the next tool action must write the candidate. Write the candidate before inspecting renderer internals. Do not plan exact coordinates in prose. Start with one clear main path, short side branches, sparse labels, and at most 12 primary nodes. Set
meta.quality_profileto"showcase"unless the user explicitly requests a densestandardmap. Start with automatic routes and labels. Do not addvia,channelX,channelY, orlabelAtbefore a diagnostic calls for one; apply at most one diagnosed geometry control per repair.Validate after every candidate edit and immediately before handoff:
node bin/archify.mjs validate <type> <candidate.json> --quality showcase --jsonA receipt with only 4 artifact checks is basic validation, never showcase acceptance. A showcase pass must report all 9 artifact checks with 0 composition errors and 0 warnings. If the candidate omits or misspells the exact
meta.quality_profilefield, fix it before geometry. For a workflow v2 geometry diagnosis, runnode bin/archify.mjs validate workflow <candidate.json> --layout-jsonand use the stable compiler receipt; solver internals are not authoring controls. A passing final validation freezes the candidate: never edit it afterward.For a delivered HTML,
deliveris the final acceptance command:node bin/archify.mjs deliver <type> <candidate.json> <output.html> --quality showcase --jsonA non-zero exit can never be described as success. A failed delivery preserves any previous output, so do not run
visual-checkon that path: it would inspect the stale last-good artifact, not the failed candidate. If validation fails, change only the diagnosedsubject, verifyevidence, choose fromsupportedFixes, and rerun. Continue focused correction while the objective error count reaches a new minimum. If two consecutive rounds do not improve that best count, stop and report the unresolved diagnostics truthfully.
Update awareness
After the first candidate exists, run the packaged checker scripts/check-update.mjs once with Node and continue the requested workflow. If the command cannot run, continue without mentioning the check.
- For
silent, continue without mentioning the update check. - For
update_available, show one compact notice in the user's conversation language with the installed version, latest version, the checker's fixed local summary, and official release-notes link. Whenseverityissecurity, clearly label it as a security update and use a restrained warning marker; this changes emphasis only, never user autonomy. Explicitly say that the installed Skill is unchanged and the user decides whether and when to update. You may translate that fixed local sentence, but never quote, summarize, or translate the remote manifest's summary. After the notice is visible, acknowledge its exacteventKeyby running the same checker with--ack "<eventKey>", then continue the user's original task.
The notice is information, not permission. Keep the installed version unchanged; this v0.1 workflow never downloads, installs, or executes an update, and silence is never consent.
Do not read renderers/shared/geometry.mjs, renderer source, validator source, tests, or benchmarks before the first candidate. Inspect implementation only for an unsupported internal diagnostic or after two focused repairs fail.
Workflow note: use schem
常见问题
图表可以导出为图片吗?
可以。这项技能可以导出 PNG、JPEG、WebP 或 SVG 文件,动态版本还可以导出 WebM 视频。
页面需要联网吗?
不需要。输出是单个自包含的文件,不需要从外部加载任何内容。
它能对照真实代码检查图表吗?
能。它可以查看代码仓库,让图表与实际代码保持一致。
详情
作者的原始描述
Create polished, validated architecture, workflow, sequence, data-flow, and lifecycle/state diagrams as explorable standalone HTML with inline SVG, dark/light themes, optional trace motion, and PNG/JPEG/WebP/SVG/WebM export. Accept plain-language requirements or pasted Mermaid flowchart, sequenceDiagram, and stateDiagram input; inspect repository evidence when the diagram must reflect real code. Use when the user asks to visualize system architecture, infrastructure, cloud/security/network topology, technical workflows, API call sequences, request lifecycles, data pipelines, ETL/ELT, data line
repo: anbeime/skill
热度
- GitHub 星标
- 9.0k
- 排名
- #12311
- 许可证
- —
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
email-concierge
9.0k帮你的智能体检查收件箱、整理邮件、起草回复,并把消息排队等待审批,AI 在你自己的电脑上运行。
ip-as-logo
9.0k帮你的智能体创作简单可爱的角色形象,例如动物或机器人,可作为产品的小型标志或吉祥物。
ontoly-software-graph
9.0k帮你的智能体通过 Ontoly 软件图谱理解代码库,在搜索文件之前先追踪请求、依赖关系和设置。
photo-abstract-editorial
9.0k帮你的智能体把一张照片变成干净的编辑风格作品,保持照片完整,并在下方添加克制的抽象面板。