Index of every page on this site: llms.txt
All skills
wghust avatar

/c4-interactive-html

@e591e3f
by wghustwghust/stark-skills5 stars
Run it yourself

Analyze the current workspace codebase and produce a single-file interactive C4 architecture diagram as HTML (L1 System Context → L2 Containers → L3 Components), with drill-down, breadcrumb, side panel, and light theme. Use when the user asks for C4 diagrams, interactive architecture HTML, system context/container/component views, or 可交互 C4 架构图. 分析当前项目代码结构,生成交互式 C4 架构图(单文件 HTML):系统上下文、容器、组件三级下钻、面包屑、侧栏详情、浅色主题。触发词:C4 架构图、交互式架构、系统上下文、容器图、组件图、架构可视化、可下钻、architecture diagram、interactive C4。

Use this Skill: https://skilld.dev/gh/wghust/stark-skills/c4-interactive-html

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

USAGE.md

≈316 tokens on demand. Your agent reads this file only when SKILL.md points to it.

c4-interactive-html — User guide

Changing the output path

The skill defaults to <workspace-root>/c4-architecture.html (the opened project / workspace folder). In the same turn you can ask for another path under the repo (e.g. docs/c4-architecture.html) or an absolute path. If the workspace root is unclear or not writable, the agent should ask you where to save—there is no automatic fallback to ~/Downloads.

No Docker / single-process projects

If there is no docker-compose.yml or only one package.json app, L2 can still list logical containers: e.g. “Browser UI”, “Dev server”, “SQLite file”, “External OAuth”. Mark inferred boundaries in the side panel description.

Offline or blocked Google Fonts

If you need fully offline behavior, ask the agent to omit the Google Fonts <link> and rely on the system font stack documented in SKILL.md (still UTF-8 for Chinese).

Updating the diagram later

Regenerate the HTML after major structural changes, or edit the embedded L1 / L2 / L3 JavaScript objects in the file—no separate data file is required by the skill.

Git

Teams may commit c4-architecture.html or add it to .gitignore—the skill does not change .gitignore for you.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning7mo3 checks · Risk MEDIUM
  • Gen Agent Trust Hub7mo

    This skill analyzes a project's codebase to generate an interactive C4 architecture diagram. It is assessed as medium risk because it explicitly directs the agent to read sensitive .env files, which frequently contain secrets that could be exposed in the final report. It also processes various workspace files without explicit sanitization, creating a surface for indirect prompt injection.

  • Socket7mo

    No alerts

  • Snyk7mo

    Risk: LOW · No issues

Signed by skilld at e591e3f. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 weeks ago.

Dormantupdated 8 months ago
Other metadata
triggers
[
  "C4",
  "c4 architecture",
  "interactive architecture",
  "system context",
  "container diagram",
  "component diagram",
  "C4 架构图",
  "交互式架构",
  "系统上下文",
  "容器图",
  "组件图",
  "架构图 HTML",
  "可下钻"
]

README badge

README badge for wghust/stark-skills/c4-interactive-html