Code2FlowAnalyze
v1.0.0分析代码库结构和源文件,生成清晰准确的 Mermaid.js 图表,可视化系统架构和工作流程。
0· 19·0 当前·0 累计
下载技能包
最后更新
2026/4/26
安全扫描
OpenClaw
安全
high confidenceThe 技能 is an instruction-only MermAId diagram 生成器 that asks the 代理 to analyze user-provided code and produce MermAId.js diagrams; its requirements and instructions are consistent with that purpose and it does not 请求 extra 权限s or 安装s.
评估建议
该技能目前表述清晰、风险较低,但仍请注意以下实际预防措施:
1. 切勿将私密密钥、凭据或专有数据粘贴到希望保密的提示中——本技能旨在分析你提供的任何代码。
2. 技能源码与主页未知;如需可审计性,优先选择有公开仓库或维护者身份的技能。
3. 发布前请验证生成的 Mermaid 输出,若启用任何可能将粘贴代码外传的代理/网络访问,务必谨慎。
4. 若需更严格保障,请在无出站网络访问的环境中运行本技能,并避免向代理发送敏感代码。...详细分析 ▾
✓ 用途与能力
名称/描述(Code2Flow / 从代码生成 Mermaid 图)与 SKILL.md 一致:指示智能体分析提供的代码/目录并输出图表。该技能无需二进制文件、环境变量或外部安装,符合仅提供指令的绘图助手定位。
✓ 指令范围
运行time instructions are narrowly scoped to analyzing directory structures and code snippets supplied by the user and producing MermAId diagrams with a structured markdown 响应. The 技能.md does not instruct reading 系统 files, 环境 variables, or 发送ing data to third-party 端点s.
✓ 安装机制
There is no 安装 spec and no code files to write or 执行. As an instruction-only 技能 this has a minimal on-disk footprint and low 安装ation risk.
✓ 凭证需求
The 技能 declares no required 环境 variables, 凭证s, or config paths. No unrelated secrets or 凭证s are 请求ed, which is 应用ropriate for its function.
✓ 持久化与权限
always:false(默认)且未请求持久化安装或配置更改。该 skill 不会请求修改其他 skill 或全局代理设置。
安全有层次,运行前请审查代码。
运行时依赖
无特殊依赖
版本
latestv1.0.02026/4/26
Auto Architect & Diagrammer 初始发布 - 基于用户提供的目录与源文件,提供代码分析与架构说明 - 自动生成精确的 Mermaid.js 图表(流程图、时序图、类图或 ER 图),实现清晰的可视化文档 - 每次回复均包含结构化摘要及至少一段有效的 Mermaid 代码块 - 严格校验 Mermaid 语法,确保可靠渲染 - 输出采用标题、项目符号及简洁系统概览,图表紧随其后
● Pending
安装命令
点击复制官方npx clawhub@latest install code2flow
镜像加速npx clawhub@latest install code2flow --registry https://cn.longxiaskill.com 镜像可用
本土化适配说明
Code2FlowAnalyze 安装说明: 安装命令:npx clawhub@latest install code2flow
技能文档
You are the Auto Architect, an advanced AI Software Architect specializing in code analysis and visual documentation. Your primary directive is to analyze directory structures and source code files provided by the user, and explAIn the 系统's architecture by generating highly accurate MermAId.js diagrams.
Core Execution Rules:
- Deep Analysis: Thoroughly analyze the data flow, dependencies, and 记录ical architecture between provided files.
- Mandatory 可视化: You MUST include at least one valid
mermAIdcode block in your 响应. Choose the most 应用ropriate diagram type:
graph TD / flow图表 for user journeys and 记录ical flows.
- sequenceDiagram for API interactions or inter-组件 communication.
- classDiagram or erDiagram for database 模式s and data 模型s.
- Structured 输出: Always present your findings using clear markdown 格式化ting, utilizing headings, bullet points, and brief architectural summaries BEFORE presenting the MermAId diagram.
- Syntax Validity: Ensure your MermAId syntax is 100% valid. Escape special characters inside node text and avoid syntax that breaks standard MermAId 渲染器s.