AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Html Effectiveness Diagram

skill-azhi-ss-html-effectiveness-05-diagram · by Azhi-ss

子 skill — 插画与图表。当用户要博客/文档配图(SVG 插图集)、流程图、状态机、deploy pipeline(flowchart.html)时使用。所有图都用内联 SVG,不引外部库(mermaid/d3/excalidraw)。当父 skill 路由命中"图/diagram/flowchart/state machine/pipeline 可视化"类请求时加载。

No reviews yet
0 installs
43 views
0.0% view→install

Install

$ agentstack add skill-azhi-ss-html-effectiveness-05-diagram

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-azhi-ss-html-effectiveness-05-diagram)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
4mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Html Effectiveness Diagram? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

05-diagram — 插画与图表

> "Inline SVG gives the agent a real pen. Ask for the figures for a post or a flowchart of a process and get vector art you can tweak by hand or paste straight into the final document."

何时用

| 用户说 | 用哪个范式 | 模板 | |-------|-----------|------| | "画一下我们的 deploy pipeline" | 流程图 | ../../templates/flowchart.html | | "状态机长什么样" | 同上 | 同上 | | "request flow / data flow 怎么走" | 同上(或参考 [01-explore](../01-explore/SKILL.md) 的 plan 数据流) | — | | "给这篇博客配几张图" | SVG 插图集 | 自建(见下) |

> 不要用 mermaid / d3 / excalidraw。直接写 inline SVG——更可控、零依赖、可手改。


范式 5.1 · SVG 插图集

空间形状:一个文档要的所有图都画在一页。每个 `` 单独一块——读者右键-检查-复制 outerHTML 就能拿到一张图。

HTML 骨架


  Figure 1 · Token bucket
  
    
    
    
    
    
    
    
    
    refill rate/sec
  
  A bucket holds at most burst tokens; refills at rate/sec.

  Figure 2 · LRU cache eviction
  ...
  ...

SVG 坐标手算法(不要让 LLM 蒙数字):

  • viewBox 用整除值:0 0 240 1600 0 800 400
  • 节点对齐 20px 网格
  • 文本居中:text-anchor="middle" dominant-baseline="middle"
  • 配色用 var(--clay) 等 baseline 变量(如果 SVG 不在 base.css 同页则改成 hex)

无独立模板(按图不同而异)。


范式 5.2 · 流程图

空间形状:节点(盒子)+ 边(箭头)+ 状态颜色(pass/fail)+ 节点可点击展开"这步运行什么"。

典型场景:deploy pipeline、状态机、决策树。

HTML 骨架


  
    
      
    
  

  
  
    
    CI · lint+typecheck
    ~2 min · ci.yml
  

  
    
    tests pass?
  

  
    
    ✓ Deploy complete
  

  
  
  

  
  

  
  
    Solid = pass · Dashed = fail
  

  CI · lint + typecheck
  ~2 min · .github/workflows/ci.yml. Runs eslint + tsc --noEmit.

关键 CSS

.flowchart .node rect, .flowchart .node polygon {
  fill: var(--white); stroke: var(--gray-300); stroke-width: 1.5;
}
.flowchart .node.terminal.success rect { fill: rgba(120,140,93,0.15); stroke: var(--success); }
.flowchart .node text { font-size: 12px; font-family: var(--font-sans); fill: var(--slate); }
.flowchart .node text.sub { font-size: 10px; fill: var(--gray-500); }
.flowchart .node[tabindex] { cursor: pointer; }
.flowchart .node:focus rect { stroke: var(--clay); stroke-width: 2; outline: none; }

.flowchart .edge { fill: none; stroke: var(--slate); stroke-width: 1.5; }
.flowchart .edge.fail { stroke: var(--danger); }

关键 JS(节点点击展开详情):

document.querySelectorAll('.node[data-detail]').forEach(n => {
  n.onclick = () => {
    const id = n.dataset.detail;
    document.querySelectorAll('aside[id]').forEach(a => a.hidden = a.id !== id);
  };
});

直接可用模板:[../../templates/flowchart.html](../../templates/flowchart.html) — 11 节点的 deploy pipeline 骨架,含 process / decision / terminal 三种节点形状、success(实线)/ fail(虚线)双路径、键盘可达的节点点击展开详情面板、内嵌的节点详情 JSON。修改方式:替换 SVG 节点的 transform 坐标和文本、调整 path d 走线、把 `` 里的 detail data 换成你的 pipeline 内容。


共同原则

  • 永远用 inline SVG,不要外链 lib——agent 应该会用 ` `
  • 失败路径必须视觉上区分——通常用 stroke-dasharray="6 4" + --danger 颜色
  • 图例必须显示——读者第一眼看不懂图就放弃了
  • 节点可点击是奢侈但有用——用户能查"这步在做什么"
  • 节点形状有语义:长方形 = process,菱形 = decision,圆角胶囊 = terminal,圆形 = state

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.