Loading...
Loading...
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。
npx skill4agent add wghust/stark-skills c4-interactive-htmlLanguage: Match the user’s language (中文提问则中文回复).
docker-compose.ymlpom.xmlbuild.gradlepackage.jsongo.modrequirements.txtCargo.tomlapplication.ymldocker-compose.ymlDockerfile.env.env.examplesrc/| Level | What to capture |
|---|---|
| People | End users, admins, operators, integrators—who uses or operates the system |
| L1 Software system | This system + external dependencies (DB, MQ, 3rd-party APIs, other microservices) |
| L2 Containers | Deployable/runnable units: web apps, APIs, workers, DB, cache, brokers, etc. |
| L3 Components | Inside one core container: controllers/services/repositories/modules—only the most important slice |
subL1 / L2 / L3legendsHTTPgRPCMQJDBCopacity: 0.5cursor: pointeropacity: 0.5cursor: pointeropacity: 0.5L1L2L3level1const L1 = {
nodes: [
{
id: 'unique-id',
label: '显示名称',
sub: '描述 / 推断依据',
c: 'color-key',
x: 0,
y: 0,
w: 180,
drill: true,
drillTo: 'L2',
},
],
edges: [
{ f: 'from-id', t: 'to-id', c: 'color-key', protocol: 'HTTP' },
],
layers: [{ y: 120, label: '层名称', color: '#ccc' }],
legends: [{ c: 'core', l: '核心系统' }],
};cprotocol#f5f7fa#ffffff#f0f2f5#1168BD#2b8a3e#6f42c1#d4620a#b8860bsystem-ui, "PingFang SC", "Microsoft YaHei", sans-serif<workspace-root>/c4-architecture.htmlcwdc4-architecture.htmldocs/c4-architecture.html~/Downloads<meta charset="utf-8">c4-architecture.htmlUSAGE.md