content/skills/visual-media-design/archify/SKILL.md
Create professional architecture, workflow, sequence, data-flow, and lifecycle/state diagrams as standalone HTML files with inline SVG, dark/light theme toggle, and one-click export to PNG / JPEG / WebP / SVG. Use this skill for system architecture diagrams, infrastructure/cloud/security/network topology visuals, technical workflows, approval/runbook/CI/CD/process diagrams, API call sequences, request lifecycles, interaction diagrams, data pipelines, ETL/ELT maps, PII/governance/data-lineage diagrams, state machines, status transitions, retry/cancel/timeout paths, or any request that needs a polished browser-openable technical diagram rather than Mermaid or an editable whiteboard.
npx skillsauth add bahayonghang/my-claude-code-settings archifyInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Create polished technical diagrams as self-contained HTML files with inline SVG, theme switching, and built-in export controls.
Archify has two production paths:
workflow, sequence, dataflow, and lifecycle.Prefer renderer-backed modes whenever the request matches one of them. Use manual architecture mode only when the user needs a bespoke component/topology diagram that does not fit the structured IRs.
Renderer modes depend on the bundled npm dependency ajv for JSON Schema validation. In a fresh checkout or installed skill directory, run once before rendering:
cd archify
npm ci
If npm ci is unavailable but dependency installation is allowed, use npm install. If dependencies cannot be installed, do not pretend the renderer can run; either use manual architecture mode or report the dependency blocker.
The final diagram HTML itself has no server runtime. It opens directly in a browser. The page uses embedded CSS/JS and inline SVG, with Google Fonts as the only network stylesheet.
| Mode | Use when the user asks for | Primary path |
| --- | --- | --- |
| architecture | System components, cloud resources, services, storage, network/security boundaries, topology overviews | Copy and customize assets/template.html |
| workflow | Technical flows, approval gates, runbooks, CI/CD, incidents, tool calls, ownership/process lanes | renderers/workflow/render-workflow.mjs |
| sequence | API call chains, request lifecycles, participant interactions over time, returns/fallbacks | renderers/sequence/render-sequence.mjs |
| dataflow | ETL/ELT, analytics pipelines, PII isolation, governance, lineage, warehouse/consumer paths | renderers/dataflow/render-dataflow.mjs |
| lifecycle | State machines, status changes, retries, waits, terminal states, cancel/timeout/recovery paths | renderers/lifecycle/render-lifecycle.mjs |
Mode-selection rules:
architecture unless the result is clearly process-oriented.workflow.sequence.dataflow.lifecycle.For workflow, sequence, dataflow, and lifecycle:
Read references/renderer-modes.md for the selected mode.
Start from the closest JSON file in examples/ when it materially matches the request.
Create a JSON IR file with schema_version: 1, diagram_type, meta, graph items, and summary cards.
Render with the matching script, for example:
node archify/renderers/workflow/render-workflow.mjs workflow.json workflow.html
If validation fails, fix the JSON and re-run. Do not edit the renderer to bypass schema/layout checks.
Open or inspect the output HTML when possible, then return the actual file path and any assumptions.
Renderer modes intentionally constrain layout through lanes, columns, stages, rows, anchors, route presets, and short labels. This keeps future invocations stable and avoids SVG surgery.
For architecture:
assets/template.html to the requested output path.references/design-system.md and references/template-export.md.c-mask behind semi-transparent fills.viewBox instead of crowding legends or clipping boundaries.Every Archify deliverable should include:
.html file.When reporting completion, include:
Read only what the selected task needs:
references/renderer-modes.md — JSON IR schemas, examples, renderer commands, and mode-specific design rules.references/design-system.md — semantic classes, arrows, masks, spacing, boundaries, legends, and card patterns.references/template-export.md — template customization points and export/theming contract.renderers/<mode>/README.md — concise renderer-specific command and input summary.schemas/*.schema.json — exact JSON Schema if validation details are needed.examples/*.json — working renderer-backed examples.Do not use Archify when:
tools
文献深度解读助手,像研究生导师一样交互式解读 Zotero 库中的学术论文,面向计算机科学、深度学习、自动化等方向(个人向)。当用户提供文献题目、DOI、PDF 或要求解读某篇论文时触发,通过 Zotero MCP 优先获取全文,并根据用户意图自动选择快速筛选、导师深读或研究复盘模式。完整深读时先完成叙事类型判断、阅读前预检、novelty 校准和作者思考路径重建,再整体概览,并基于图例、正文和表格逐图详细解读(Zotero MCP 无法提取 PDF 图片,解读基于文字信息,必要时提醒上传图片)。适用于:(1)快速判断文献是否值得深读 (2)深入理解某篇论文 (3)学习文章中的方法和技术 (4)批判性分析研究设计 (5)寻找研究灵感。需要多篇论文综合、对比或找研究空白,或 arXiv/DOI 批量规范化时,改用 paper-workbench。
development
Review Codex, Claude, OpenAI, or other agent skill directories as reusable capability packages. Use when asked to audit, review, improve, score, rewrite, debrand, package, or document a SKILL.md, skill package, marketplace skill, or agent skill directory, especially when the user wants a comprehensive findings-first report with concrete patch recommendations and validation steps.
development
Turn vague or complex Codex tasks into strong `/goal` commands with outcome, verification, constraints, boundaries, iteration policy, completion evidence, and pause/block conditions. Use when the user asks for Codex goal instructions, Goal 指令, 目标指令, `/goal` prompts, 中文 Goal 模板, plan-to-goal interviews, success criteria, verification commands, or bounded agent work definitions.
tools
Write, debug, and validate ast-grep structural code search rules. Use this skill when the user needs syntax-aware code search, AST pattern matching, structural refactor discovery, language-construct queries, or searches that plain text tools like rg can miss, such as finding functions with particular descendants, calls inside specific contexts, missing error handling, React hook shapes, decorators, or other Tree-sitter-backed code structures.