Token导航 LogoToken导航

Agent Skill · 研究检索

charts-flow(图表流程)

charts-flow 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

charts-flow 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证为 MIT,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 38,602。

总安装 1,536周安装 64GitHub Stars 14下载 512核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:charts-flow(图表流程)
来源仓库:https://github.com/vladm3105/aidoc-flow-framework
仓库路径:skills/charts-flow
安装命令:
npx skills add https://github.com/vladm3105/aidoc-flow-framework --skill charts-flow
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/vladm3105/aidoc-flow-framework --skill charts-flow

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

charts-flow 自动化生成 Mermaid 流程图并转换为 SVG,分离源码与预览以提升文档性能。保持父文档与 diagram 文件的 traceability,便于维护与版本追溯。适用于技术文档中架构图、时序图与状态机的标准化管理。需遵循命名规范与 ID 规则,否则无法正确链接与渲染嵌套图表。

适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/charts-flow

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/vladm3105/aidoc-flow-framework --skill charts-…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

charts-flow 怎么安装?

在终端执行 npx skills add https://github.com/vladm3105/aidoc-flow-framework --skill charts-flow。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

charts-flow 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

charts-flow 需要什么权限?

权限级别是操作浏览器。该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

charts-flow 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

charts-flow 用的人多吗?

公开数据是累计安装 1,536 次,近一周安装 64 次,下载 512 次,GitHub 14 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

charts-flow 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
charts-flow

图表流程 · 本页

1,53614操作浏览器MIT通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

charts-flow

Purpose

The charts-flow skill automates creation and management of Mermaid diagrams for technical documentation. It separates diagram source files from main documents to improve rendering performance, provides automatic SVG conversion for human viewing, and maintains traceability between parent documents and diagram files.

Key Benefits:

  • Performance: Separate diagram files load faster in documentation viewers
  • Dual Format: Mermaid source for AI assistants, SVG preview for humans
  • Traceability: Diagrams linked to parent documents with proper ID naming
  • Migration: Extract existing inline diagrams to separate files
  • Consistency: Standardized diagram file structure and metadata

When to Use This Skill

Use charts-flow when:

  • Creating architecture diagrams for PRD, BRD, ADR, SYS, or other technical documents
  • Migrating existing inline Mermaid diagrams to separate files
  • Main document becomes slow to render due to complex diagrams
  • Diagram needs to be reused across multiple documents
  • Creating flowcharts, component diagrams, deployment diagrams, sequence diagrams, state machines, or class diagrams

Do NOT use charts-flow when:

  • Creating simple tables or text-based lists (use markdown)
  • Diagram is < 20 lines and main document renders fast
  • Creating data visualization charts (use appropriate charting libraries)
  • Working with non-architecture diagrams (Gantt, pie charts - outside scope)

Skill Inputs

Required Inputs

InputDescriptionExample
Parent File PathAbsolute path to main document{project_root}/docs/PRD/PRD-01_multi_agent_system_architecture.md
Diagram DescriptionShort name for diagram3_tier_agent_hierarchy
Diagram TypeArchitecture diagram typeflowchart, sequence, class, state, component, deployment

Optional Inputs

InputDescriptionDefault
Migration ModeExtract existing diagrams from documentfalse (create new)
Diagram TitleHuman-readable titleDerived from description
Styling PreferencesColor scheme, layout directionProject defaults

Skill Workflow

Mode 1: Create New Diagram

Step 1: Parse Parent Document

  • Extract parent document ID from filename (e.g., PRD-01 from PRD-01_multi_agent_system_architecture.md)
  • Identify parent document type (PRD, BRD, ADR, SYS, etc.)
  • Determine correct diagrams/ subfolder location

Step 2: Generate Diagram File Path

  • Format: {parent_folder}/diagrams/{PARENT-ID}-diag_{description}.md
  • The diagrams/ subfolder is created in the same directory as the parent document
  • Examples by document type:

- BRD: docs/BRD/diagrams/BRD-01-diag_workflow.md - PRD: docs/PRD/diagrams/PRD-01-diag_3_tier_agent_hierarchy.md - ADR: docs/ADR/diagrams/ADR-005-diag_cloud_deployment.md - SYS: docs/SYS/diagrams/SYS-002-diag_data_flow.md - IMPL: docs/IMPL/diagrams/IMPL-010-diag_implementation_phases.md

  • Create diagrams/ folder if it doesn't exist

Step 3: Create Diagram File

  • Use diagram file template (see Templates section below)
  • Include Document Control section linking to parent
  • Add diagram type metadata
  • Create Mermaid code block with syntax appropriate for diagram type

Step 4: Generate SVG

  • Attempt mmdc CLI conversion: mmdc -i diagram.md -o diagram.svg
  • Fallback: Use Mermaid Live API if CLI unavailable
  • Validate SVG output (check for errors, size < 1MB)

Step 5: Encode SVG as Base64

  • Read generated SVG file
  • Convert to Base64 string
  • Prepare data URI: data:image/svg+xml;base64,{BASE64_STRING}

Step 6: Update Parent Document

  • Add reference link to diagram file
  • Embed Base64 SVG in collapsible <details> block
  • Place in appropriate section of parent document

Step 7: Validate

  • Verify diagram file exists and is readable
  • Check Mermaid syntax validity
  • Confirm SVG renders correctly
  • Validate cross-references resolve

Mode 2: Migrate Existing Diagrams

Step 1: Scan Parent Document

  • Search for ```mermaid code blocks
  • Extract each diagram with surrounding context
  • Preserve diagram content and styling

Step 2: Create Diagram Files

  • For each extracted diagram, follow Steps 1-4 from Mode 1
  • Auto-generate description from diagram content or context
  • Number multiple diagrams: _diagram_1, _diagram_2, etc.

Step 3: Replace in Parent Document

  • Remove original ```mermaid blocks
  • Insert SVG + reference link in same location
  • Maintain document flow and readability

Step 4: Validate Migration

  • Confirm all diagrams extracted
  • Verify no broken references
  • Check visual fidelity (SVG matches original Mermaid)

Templates

Diagram File Template

# {PARENT-ID}-diag: {Diagram Title}

## Document Control

| Item | Details |
|------|---------|
| **Diagram ID** | {PARENT-ID}-diag |
| **Parent Document** | [{PARENT-ID}: {Parent Title}](../{PARENT-FILE}.md) |
| **Diagram Type** | {flowchart|sequence|class|state|component|deployment} |
| **Status** | Active |
| **Version** | 1.0.0 |
| **Created** | {YYYY-MM-DD} |
| **Last Updated** | {YYYY-MM-DD} |
| **Maintained By** | {Role} |

## Overview

{Brief description of what this diagram represents}

## {Diagram Title}

{Mermaid diagram code}


## Diagram Description

{Detailed explanation of diagram elements, flows, and purpose}

## Key Elements

{List or table of important nodes, components, actors, states, or flows}

## References

- **Parent Document**: [{PARENT-ID}: {Parent Title}](https://github.com/vladm3105/aidoc-flow-framework/blob/HEAD/.claude/skills/charts-flow/../%7BPARENT-FILE%7D.md)
- **Related Diagrams**: {Links to related diagram files if applicable}
- **Related Documents**: {Links to related requirements, ADRs, strategy docs}

---

**Diagram Version**: 1.0.0 **Created**: {YYYY-MM-DD} **Maintained By**: {Role}

Parent Document Reference Template

**Visual Diagram**: [{PARENT-ID}-diag: {Diagram Title}](diagrams/{PARENT-ID}-diag_{description}.md)

<details>
<summary>View Diagram (SVG Preview)</summary>

![{Diagram Title}](data:image/svg+xml;base64,{BASE64_SVG_STRING})

</details>

Supported Diagram Types

Flowchart / Graph

graph TB
    A[Start] --> B{Decision}
    B -->|Yes| C[Action 1]
    B -->|No| D[Action 2]

Use for: Process flows, decision trees, workflows

Sequence Diagram

sequenceDiagram
    Actor->>System: Request
    System->>Database: Query
    Database-->>System: Result
    System-->>Actor: Response

Use for: Agent interactions, API calls, message flows

Class Diagram

classDiagram
    class Agent {
        +state: State
        +execute()
        +validate()
    }
    Agent <|-- StrategyAgent

Use for: Object relationships, system components

State Diagram

stateDiagram-v2
    [*] --> SCANNING
    SCANNING --> ACTIVE
    ACTIVE --> DEFENSE
    DEFENSE --> [*]

Use for: State machines, lifecycle flows

Component Diagram (using flowchart)

graph LR
    subgraph "Level 1"
        SO[System Orchestrator]
    end
    subgraph "Level 2"
        IS[Item Selection]
    end
    SO --> IS

Use for: System architecture, component relationships

Deployment Diagram (using flowchart)

graph TB
    subgraph "Cloud Run"
        A[Agent Container]
    end
    subgraph "Cloud SQL"
        B[(Database)]
    end
    A --> B

Use for: Infrastructure architecture, deployment topology

Tool Usage

Check for Mermaid CLI

which mmdc

If not installed:

npm install -g @mermaid-js/mermaid-cli

Alternative: Use Puppeteer

npm install -g puppeteer

Generate SVG from Mermaid

mmdc -i input.md -o output.svg -b transparent

Parameters:

  • -i: Input file (Mermaid markdown)
  • -o: Output file (SVG)
  • -b: Background color (transparent recommended)

Convert SVG to Base64

base64 -w 0 diagram.svg

macOS:

base64 -i diagram.svg

Quality Gates (Definition of Done)

  • File Created: Diagram file exists in correct diagrams/ subfolder
  • Naming Convention: File name follows {PARENT-ID}-diag_{description}.md pattern
  • Document Control: Metadata section present with parent link back-reference
  • Mermaid Syntax: Diagram syntax validates without errors
  • SVG Generated: SVG file created successfully (if using file method)
  • SVG Embedded: Base64 SVG embedded in parent document
  • Reference Added: Link to diagram file added in parent document
  • Cross-References: All links resolve correctly (bidirectional)
  • Rendering: Diagram displays correctly in GitHub, VS Code, and documentation sites
  • Accessibility: Collapsible <details> block used for SVG preview
  • File Size: SVG < 1MB, Base64 string < 1.5MB

Skill Constraints

What NOT to Do

  • Do NOT create diagrams in archived folders without explicit permission
  • Do NOT modify existing diagram files without checking version history
  • Do NOT embed large binary images (use SVG only)
  • Do NOT use Gantt charts, pie charts, or git graphs (outside scope - architecture diagrams only)
  • Do NOT create diagrams for simple lists or tables (use markdown)
  • Do NOT skip Document Control metadata
  • Do NOT use generic filenames like diagram1.md (use descriptive names)

File Organization Rules

  • Always create diagrams/ subfolder in same directory as parent document
  • Always use parent document ID as diagram file prefix
  • Always maintain traceability with cross-references
  • Always follow template structure for consistency

Error Handling

Error: mmdc command not found

Cause: Mermaid CLI not installed

Resolution:

npm install -g @mermaid-js/mermaid-cli
# OR
# Provide manual instructions to use Mermaid Live (https://mermaid.live)

Error: Invalid Mermaid syntax

Cause: Syntax error in diagram code

Resolution:

  • Validate syntax at https://mermaid.live
  • Check for missing quotes, brackets, or keywords
  • Review Mermaid documentation for diagram type

Error: SVG file too large (> 1MB)

Cause: Diagram too complex

Resolution:

  • Split into multiple diagrams
  • Simplify diagram (remove redundant elements)
  • Use subgraphs to organize complexity

Error: Cannot determine parent document ID

Cause: Filename doesn't follow standard naming (e.g., no ID prefix)

Resolution:

  • Prompt user to specify parent ID manually
  • Suggest renaming parent file to follow conventions

Error: diagrams/ folder creation failed

Cause: Permission issues or invalid path

Resolution:

  • Check file permissions
  • Verify parent directory exists
  • Use absolute paths

Example Usage

Example 1: Create New Flowchart Diagram for BRD

User Request:

"Create a flowchart diagram showing the user workflow for BRD-01"

Skill Actions:

  1. Parse parent: {project_root}/docs/BRD/BRD-01_project_requirements.md
  2. Extract ID: BRD-01
  3. Create file: docs/BRD/diagrams/BRD-01-diag_user_workflow.md (in BRD subfolder)
  4. Generate Mermaid flowchart with user journey steps
  5. Convert to SVG using mmdc
  6. Embed Base64 SVG in BRD-01
  7. Add reference link

Result:

  • Diagram file created in docs/BRD/diagrams/ (document type-specific subfolder)
  • SVG preview visible in parent document
  • Cross-references working in both directions

Example 2: Migrate Existing Diagram

User Request:

"Migrate the state machine diagram from strategy_state_machine.md to a separate file"

Skill Actions:

  1. Scan {project_root}/strategy/strategy_state_machine.md
  2. Find ```mermaid block (state diagram)
  3. Extract diagram code
  4. Create {project_root}/strategy/diagrams/SSM-001-diag_state_transitions.md
  5. Generate SVG
  6. Replace original block with SVG + reference
  7. Validate migration

Result:

  • Original Mermaid moved to separate file
  • SVG preview embedded in main document
  • Main document renders faster

Example 3: Create Sequence Diagram for ADR

User Request:

"Create a sequence diagram showing the agent communication flow for ADR-003"

Skill Actions:

  1. Parent: docs/ADR/ADR-003_agent_communication.md
  2. Create: docs/ADR/diagrams/ADR-003-diag_agent_communication_sequence.md (in ADR subfolder)
  3. Generate sequence diagram: System Orchestrator → Selection Service → Strategy Agent → Risk Service
  4. Add swimlanes for timing (A2A Protocol patterns)
  5. Convert to SVG
  6. Embed in ADR-003

Result:

  • Sequence diagram in docs/ADR/diagrams/ (document type-specific subfolder)
  • Message flow with <50ms SLA annotations visible
  • SVG preview in ADR document

Output Format

Generated Artifacts

  1. Diagram File ({PARENT-ID}-diag_{description}.md)

- Location: {parent_folder}/diagrams/ - Format: Markdown with Mermaid code block - Includes: Document Control, diagram code, description, references

  1. SVG File (optional, if using file-based approach)

- Location: Same as diagram file, .svg extension - Format: Scalable Vector Graphics - Used for Base64 encoding

  1. Updated Parent Document

- Reference link added in appropriate section - SVG preview embedded in <details> block - Original content preserved

File Organization After Execution

Each document type has its own diagrams subfolder:

docs/
├── BRD/
│   ├── BRD-01_project_requirements.md         ← Updated with SVG + link
│   └── diagrams/
│       ├── BRD-01-diag_user_workflow.md       ← BRD diagrams
│       └── BRD-01-diag_business_rules.md
├── PRD/
│   ├── PRD-01_multi_agent_system.md           ← Updated with SVG + link
│   └── diagrams/
│       ├── PRD-01-diag_3_tier_hierarchy.md    ← PRD diagrams
│       └── PRD-01-diag_cloud_architecture.md
├── ADR/
│   ├── ADR-005_deployment_strategy.md          ← Updated with SVG + link
│   └── diagrams/
│       └── ADR-005-diag_deployment_flow.md     ← ADR diagrams
├── SYS/
│   ├── SYS-002_data_pipeline.md                ← Updated with SVG + link
│   └── diagrams/
│       └── SYS-002-diag_data_flow.md           ← SYS diagrams
└── IMPL/
    ├── IMPL-010_phase_1_plan.md                ← Updated with SVG + link
    └── diagrams/
        └── IMPL-010-diag_implementation.md     ← IMPL diagrams

Integration with Project Workflow

Traceability Chain

Product Strategy ({project_root}/strategy/*.md)
  ↓
Requirements (docs/reqs/*.md)
  ↓
Architecture Decisions (docs/adrs/*.md) ← diagrams support ADRs
  ↓
System Specifications (docs/sys/*.md) ← diagrams show architecture
  ↓
BDD Scenarios (docs/BDD/*.feature)
  ↓
Code Implementation

Diagrams enhance: ADRs, SYS, PRD, BRD documents with visual architecture representations

Relationship to Other Skills

  • doc-flow: Creates specification documents; charts-flow adds diagrams to those documents
  • google-adk: Defines agent framework; charts-flow visualizes agent hierarchies
  • project-mngt: Creates implementation plans; charts-flow shows dependency graphs

References

Internal Documentation

External Resources

Related Templates


Skill Version: 1.0.0 Created: 2025-01-04 Last Updated: 2025-01-04 Maintained By: Development Team

平台分布

Gemini CLI

28.22%
按下载量换算144

Claude Code

23.99%
按下载量换算123

Antigravity

17.68%
按下载量换算91

OpenCode

11.86%
按下载量换算61

windsurf

7.77%
按下载量换算40

Codex

3.53%
按下载量换算18

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

继续浏览同类 Skills