Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/csmar432/finai-researchnpx agentmods add skills/csmar432/finai-research/fin-arch-diagramWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/csmar432/finai-research/fin-arch-diagram)<a href="https://agentmods.dev/skills/csmar432/finai-research/fin-arch-diagram"><img src="https://agentmods.dev/badge/skills/csmar432/finai-research/fin-arch-diagram/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/csmar432/finai-research/fin-arch-diagram"><img src="https://agentmods.dev/badge/skills/csmar432/finai-research/fin-arch-diagram.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00072 | $0.02469 |
| Opus 5 | $0.00036 | $0.01234 |
| Sonnet 5 | $0.00014 | $0.00494 |
| Haiku 4.5 | $0.00007 | $0.00247 |
Grade A, and why
fin-arch-diagram scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 188 lines — stays where its author put it; the contents beside it link to each section on GitHub.
fin-arch-diagram
生成高质量架构/流程/层次图,专为 PPT 汇报和技术文档插图设计。 不依赖数据(与 fin-viz-launch / fin-paper-figure 的"数据图表"互补), 不阻塞论文流水线(用户主动触发)。
触发条件
- 关键词:
架构图架构流程图流程层次图层次swim_laneprocess_flowhierarchy画架构生成架构图绘制流程图绘制架构图画一个流程图组织架构图架构示意图系统架构图 - Skill 语法:
Skill: fin-arch-diagram "[描述]" - 前置条件: 无需数据 / 无需 DataFrame
三种图类型
| 类型 | 用途 | 函数 | graphviz 风格 |
|---|---|---|---|
swim_lane |
系统架构(多层 + 泳道) | swim_lane_gv() |
✅ ~92% 接近 draw.io |
process_flow |
业务流程(决策菱形 + 分支 + 循环) | process_flow_gv() |
✅ 决策菱形 + yes/no 边 |
hierarchy_tree |
树状/层级(树/CONSORT/组织架构) | hierarchy_tree_gv() |
✅ tree/consort/org 三风格 |
推荐用法(PPT 制作最常用)
from scripts.research_framework.arch_diagram_gv import draw_diagram
from scripts.research_framework.arch_diagram import (
DiagramSpec, Node, Edge, Layer,
)
# 例:生成 FinResearch Agent 系统架构图
spec = DiagramSpec(
title="FinResearch Agent · 系统架构",
layers=[
Layer("USER LAYER", y_top=70, y_bottom=55, color="#FDEBD0", text_color="#D68910"),
Layer("SKILLS LAYER", y_top=53, y_bottom=38, color="#D6EAF8", text_color="#21618C"),
Layer("PERSISTENCE", y_top=36, y_bottom=21, color="#EBDEF0", text_color="#6C3483"),
Layer("INFRASTRUCTURE", y_top=19, y_bottom=4, color="#D5F5E3", text_color="#1E8449"),
],
nodes=[
Node("u1", "Researchers", layer="USER LAYER", color="#E67E22", icon="U"),
Node("u2", "HitL Reviewer", layer="USER LAYER", color="#E67E22", icon="U"),
Node("a1", "Orchestrator", layer="SKILLS LAYER", column="Sub-agents",
color="#1ABC9C", icon="1"),
Node("p1", "fin-full-pipeline", layer="SKILLS LAYER", column="Pipelines",
color="#3498DB", icon="1"),
# ... 更多节点
],
edges=[
Edge("u1", "p1"),
Edge("p1", "a1", label="dispatch", style="invoke"),
Edge("a1", "u2", label="HITL", style="invoke"),
# ... 更多边
],
)
# 默认 graphviz 后端(接近 draw.io 风格)
out = draw_diagram(spec, "output/figures/finresearch_arch.png")
print(f"生成: {out}")
# 显式指定后端
out = draw_diagram(spec, "out.png", engine="graphviz") # 高质量 (推荐)
out = draw_diagram(spec, "out.png", engine="matplotlib") # 零系统依赖
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 12d ago First seen · 188 lines · 72 tokens per session scan A 2d960671884d
fin-arch-diagram is a skill published in the GitHub repository csmar432/finai-research (100 stars, last pushed 4d ago), licensed MIT. It adds 72 tokens to every session and 2,469 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
code-to-diagram
Analyze codebases and automatically generate architecture diagrams, flowcharts, and org charts. Uses AST parsing to map import dependencies for Python, JS/TS, Go, and Java, outputting Mermaid or SVG files. Triggered when users ask to visualize code architecture, understand dependencies, draw a flowchart, or create a…
aws-architecture-diagram
AWS architecture diagrams — generate visual network topology diagrams from live AWS infrastructure. Use when drawing AWS network diagrams, visualizing VPCs, mapping Transit Gateway topology, or generating architecture documentation.
diagram-creator
Create professional diagrams using Mermaid, PlantUML, and other text-based diagram tools. Generate flowcharts, sequence diagrams, architecture diagrams, and more.
tech-diagram
Use this skill when the user wants to turn a description into a technical diagram — architecture diagrams, flowcharts, sequence diagrams, state machines, ER diagrams, class diagrams, or mind maps. Generates brand-consistent Mermaid that the DesireCore chat renders inline as SVG, with a semantic shape/arrow vocabulary…
Diagram Design
Create polished, responsive technical and product diagrams as sanitized HTML with inline SVG.
code-to-diagram
Analyze codebases and automatically generate architecture diagrams, flowcharts, and org charts. Uses AST parsing to map import dependencies for Python, JS/TS, Go, and Java, outputting Mermaid or SVG files. Triggered when users ask to visualize code architecture, understand dependencies, draw a flowchart, or create a…