원클릭으로
godark-define-architecture
Define or update architecture layer definitions for the project
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Define or update architecture layer definitions for the project
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Analyze an existing project and populate godark.yaml with modules, codegen, CI, and env configuration
Generate scenario spec files for a phase or individual issue
Create GitHub issues from a phase planning doc
Create a project roadmap and GitHub milestones through conversation
Generate a practical overview with real-world examples for a completed roadmap phase
Create a detailed planning doc for a roadmap phase
| name | godark-define-architecture |
| description | Define or update architecture layer definitions for the project |
| argument-hint | [project-path] |
| disable-model-invocation | true |
Help the user define or update the architecture layer definitions for their
project. For existing projects, scan the codebase to identify packages and
import relationships and propose layers. For new projects, ask about the
language and framework and propose idiomatic layers. Writes
docs/architecture.json and docs/architecture.md.
Read project configuration — Read godark.yaml to find the repo,
runtime info, and any configured paths. Note the language and framework from
runtime.name if set.
Read existing definitions — Check whether docs/architecture.json and
docs/architecture.md already exist. If they do, read both files so you can
propose updates rather than starting from scratch.
Assess the project state — Determine whether this is an existing project with code or a new/empty project:
internal/,
src/, lib/, pkg/, app/) and source files.For existing projects — scan the codebase:
internal/, Python modules, Node.js packages, Java source trees).cmd, config, domain, infrastructure, api, storage).For new/empty projects — gather requirements:
Discuss with the user:
Write docs/architecture.json — Write the agreed layer definitions in
JSON format. Create the docs/ directory if needed. The format is:
{
"layers": [
{
"name": "layer-name",
"description": "What this layer contains and its responsibility.",
"paths": ["internal/example/"],
"may_depend_on": ["other-layer"],
"must_not_depend_on": ["higher-layer"]
}
]
}
If docs/architecture.json already exists, update it with the agreed
changes rather than replacing it wholesale.
Update docs/architecture.md — Write or update prose documentation
describing each layer: what it contains, what it may depend on, and what it
must not depend on. Include a section on cross-cutting concerns if relevant.
Validate the result — Run:
godark vet architecture
Review the output. If the command reports errors or warnings, explain them to the user and offer to fix them before finishing.
Check for discrepancies — If godark vet architecture reports
discrepancies between the defined layers and the actual codebase (e.g.
packages in the wrong layer, imports that violate layer rules), suggest
running /godark-create-milestone to plan a codebase alignment phase that
migrates the code to match the architecture.
docs/architecture.json is the authoritative machine-readable definition.
docs/architecture.md is the human-readable companion — keep them in sync.domain, storage, api-gateway).name, description, and paths field.cmd and internal) as a
starting point.