一键导入
arch4
Maintain Arch4 workspaces, source files, entity metadata, derived outputs, and CLI workflow.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Maintain Arch4 workspaces, source files, entity metadata, derived outputs, and CLI workflow.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
| arch4-owned | true |
| name | arch4 |
| description | Maintain Arch4 workspaces, source files, entity metadata, derived outputs, and CLI workflow. |
Use this skill when editing or reviewing Arch4 files for the current repository. Use the C4 skill for C4 modeling terminology and diagram semantics.
.arch4/architecture/workspace.dsl.arch4/architecture/entities/*.json.arch4/architecture/build/**.arch4/bin/**.cursor/commands/*, .cursor/rules/arch4.mdc,
and .cursor/skills/*.arch4/architecture/workspace.dsl and
.arch4/architecture/entities/*.json..arch4/architecture/build/**,
.arch4/bin/**, .cursor/commands/*, .cursor/rules/arch4.mdc, and
.cursor/skills/*..cursor/** or
.arch4/bin/** as unexpected.Each entity metadata file is stored at
.arch4/architecture/entities/{entityId}.json:
{
"schemaVersion": 1,
"entityId": "bookingApi",
"owners": ["Platform"],
"paths": ["src/booking-api/**/*"],
"confidence": "high",
"openQuestions": [],
"notes": {}
}
Use paths for repository file globs. Do not use pathGlobs.
Use notes for durable, evidence-backed architecture context that is not
already obvious from the DSL, paths, owners, or relationships.
notes.summary as the first field when notes are present. Keep it to
1-3 concise sentences about the entity's durable architecture role, not an
implementation walkthrough.summary,
responsibilities, boundaries, dataOwnership, contracts,
technologyNotes, dependencyNotes, operationalConcerns,
decisions, risks, and evidence.technologyNotes and dependencyNotes for explanatory context, not as
duplicates of DSL technology labels or modeled relationships. Good notes
explain rationale, runtime constraints, dependency criticality, sync/async
behavior, failure behavior, ownership boundaries, or coupling that affects
future changes.openQuestions, not notes.notes: {} when there is nothing durable to
add..arch4/architecture/workspace.dsl contains
!identifiers hierarchical before editing identifiers, relationships,
views, or metadata.developer -> arch4.arch4Extension, not
developer -> arch4Extension.arch4.arch4Renderer.rendererExport as the metadata filename
and entityId, not rendererExport.entityId values.group.group for semantic or readability
grouping only when labels do not imply false ownership, runtime containment,
or decomposition..arch4/bin/arch4 doctor. If the local launcher, workspace, CLI, or
runtime is missing, stop without edits and tell the user to run
Arch4: Create/Update Architecture Model or reinstall Arch4..arch4/architecture/workspace.dsl and the relevant
.arch4/architecture/entities/*.json metadata files..arch4/architecture/build/** disposable and derived; do not edit it
as source..arch4/bin/arch4 validate, .arch4/bin/arch4 render, and
.arch4/bin/arch4 index. Treat command failure as a blocking error..arch4/architecture/entities/*.json notes are still accurate.git status --short after architecture workflows and classify changes
using the Git Status Classification rules above.For large DSL changes, use staged validation before metadata generation:
.arch4/bin/arch4 doctor: verify the local Arch4 launcher, bundled CLI,
and runtime..arch4/bin/arch4 validate: validate the Structurizr workspace and write diagnostics..arch4/bin/arch4 render: render DSL views into .arch4/architecture/build/views/..arch4/bin/arch4 index: build .arch4/architecture/build/architecture-index.json
and .arch4/architecture/build/context/*.md..arch4/bin/arch4 context --changed-files <paths...>: retrieve compact architecture
context for changed files.