一键导入
openspec-bootstrap-arch
Bootstrap a LikeC4 architecture model from existing code using a five-phase workflow (init → scan → map → review → promote).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Bootstrap a LikeC4 architecture model from existing code using a five-phase workflow (init → scan → map → review → promote).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Implement tasks from an OpenSpec change. Use when the user wants to start implementing, continue implementation, or work through tasks.
Archive a completed change in the experimental workflow. Use when the user wants to finalize and archive a completed change after implementation is complete.
Enter explore mode - a thinking partner for exploring ideas, investigating problems, and clarifying requirements. Use when the user wants to think through something before or during a change.
Propose a new change with all artifacts generated in one step. Use when the user wants to quickly describe what they want to build and get a complete proposal with design, specs, and tasks ready for implementation.
Quick code-first artifact reconciliation: from already-written code, conditionally create or update proposal + specs + simplified design + architecture delta using available code-change evidence. Use after iterative coding to back-fill OpenSpec artifacts without redoing propose→apply. Does not generate tasks.md.
| name | openspec-bootstrap-arch |
| description | Bootstrap a LikeC4 architecture model from existing code using a five-phase workflow (init → scan → map → review → promote). |
| license | MIT |
| compatibility | Requires openspec CLI with arch commands. |
| metadata | {"author":"openspec","version":"3.0","generatedBy":"1.4.1-cpyu.5"} |
Bootstrap the LikeC4 architecture model from current repository evidence.
OpenSpec Philosophy
OpenSpec is a human-intent programming layer between human intent and general-purpose programming languages.
proposal.md, design.md, and tasks.md are compilation scaffolding, not competing sources of truth.openspec/architecture/candidates/.rg/read only as current implementation evidence..c4 file per domain. Nest every capability in exactly one domain; do not emit a belongs_to relationship.openspec/architecture/specification.c4, domains/*.c4, and views.c4; run openspec arch validate.Use LikeC4 DSL only. MUST NOT generate YAML architecture candidates.
model {
cli = domain 'CLI' {
query = capability 'Query architecture' {
metadata {
capabilityId 'cap.cli.arch-query'
specs ['openspec/specs/arch-query-command/spec.md']
}
}
}
cli.query -[invokes]-> architecture.reader
}
Element IDs use snake_case locally. Semantic relations use -[invokes]->, -[consumes]->, -[precedes]->, -[constrains]->, or -[validates]->. Keep evidence paths out of durable architecture metadata.
belongs_to; nesting is the ownership source.