← 返回 Skills 市场
vincentlau2046-sudo

Source To Architecture

作者 vincentlau2046-sudo · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
96
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install source-to-architecture
功能描述
实现从源码解析到五层架构的全链路可视化,支持版本控制、自动同步和多格式架构图生成。
安全使用建议
This skill largely does what it says (analyze code and generate DrawIO diagrams), but there are mismatches between its claims and the delivered code. Before installing or running: - Review the install script (scripts/install-tools.sh). It performs global npm installs and uses apt/yum/brew (may call sudo). Prefer running these steps inside a disposable container/VM rather than on your workstation. The Dockerfile provided is a safer option. - Don’t run the analyzer against sensitive or production repositories until you inspect the code—the analyzer reads all files under the given project path and there is no exclusion configuration shown. - The README/SKILL.md promise automated features (weekly sync, PR/commit integration, sensitive-change alerts). These features are not present in the shipped scripts; treat them as planned features rather than working automation. - Validate the external packages (drawio-desktop from npm, ripgrep .deb URL) and consider installing them via your distribution’s package manager where possible to reduce supply-chain risk. - Run the tool first in an isolated environment (container) and test on a non-sensitive sample project. If you need the promised automation (hooks/scheduling/alerts), request the author for the specific implementations or source for the CI/git hooks before trusting auto-sync behavior. If you want higher confidence, provide the full, untruncated drawio-generator.py (the copy in the package appears truncated/buggy) and confirm whether any post-install scripts or network calls are made by npm packages used.
功能分析
Type: OpenClaw Skill Name: source-to-architecture Version: 1.0.0 The skill bundle is designed to automate the generation of architecture diagrams from source code. It includes scripts for environment setup (install-tools.sh), source code analysis (source-analyzer.py), and DrawIO diagram generation (drawio-generator.py). The behavior is consistent with the stated purpose, using standard system utilities like ripgrep and tree to map code structures to a five-layer architecture. No evidence of data exfiltration, unauthorized remote execution, or malicious prompt injection was found.
能力评估
Purpose & Capability
The name/description (source → five-layer architectures, diagram generation, versioning) align with the provided scripts (source-analyzer.py and drawio-generator.py) and README. However SKILL.md and README claim additional automated capabilities (weekly auto-sync, PR/commit integration, sensitive-module alerting, CI hooks) that are not implemented in the shipped scripts. The code reasonably needs ripgrep/tree/drawio/etc — so requested tools are generally proportionate to the stated goal.
Instruction Scope
Runtime instructions require scanning an entire project directory (expected) and saving analysis artifacts. Concern: SKILL.md promises automatic weekly sync, PR integration, and sensitive-module change alerts, but there is no code or configuration in the package implementing scheduled jobs, Git hooks, or alerting. The install script (install-tools.sh) instructs system-wide installs (npm -g drawio-desktop, apt/yum/brew, sudo) which elevates scope to system package management and requires user privilege. The analyzer reads project files (expected) but there is no explicit handling of secrets or exclusion lists — user should avoid running against sensitive repos without inspection.
Install Mechanism
There is no platform install spec in the registry, but the repository includes an install script and a generated Dockerfile. install-tools.sh performs package installs via package managers and npm -g; Dockerfile downloads a ripgrep .deb from a GitHub release (a known host). These are reasonable for this use case but carry the usual supply-chain risks (global npm installs, postinstall scripts, running apt installs with sudo). No obscure shortened URLs were used.
Credentials
The skill declares no required environment variables, no credentials, and no config paths. The scripts operate on local filesystem input (project path) only, which is proportionate to the stated purpose.
Persistence & Privilege
Skill is not always-enabled and does not request elevated persistent privileges in the skill metadata. The included install script may require sudo when run by the user, but the skill itself does not declare persistent system modifications or cross-skill configuration changes.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install source-to-architecture
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /source-to-architecture 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release – provides full-lifecycle, versionable code-to-architecture visualization using an optimized five-layer DrawIO template. - Supports module-to-architecture mapping from source code, through module relations, to deployment. - Enforces strict five-layered architecture (access, routing/control, logic, data access, storage/external) with standardized layout, colors, and shapes. - Integrates automated source code scanning, diagram generation, and Git workflow (including change reports and consistency checks). - Outputs architecture diagrams and analysis lists in multiple formats (DrawIO, PNG, SVG, PDF). - Provides CI/CD integration, toolchain requirements, and clear sample usage commands.
元数据
Slug source-to-architecture
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Source To Architecture 是什么?

实现从源码解析到五层架构的全链路可视化,支持版本控制、自动同步和多格式架构图生成。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 96 次。

如何安装 Source To Architecture?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install source-to-architecture」即可一键安装,无需额外配置。

Source To Architecture 是免费的吗?

是的,Source To Architecture 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Source To Architecture 支持哪些平台?

Source To Architecture 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Source To Architecture?

由 vincentlau2046-sudo(@vincentlau2046-sudo)开发并维护,当前版本 v1.0.0。

💬 留言讨论