write-architecture-doc
Write or update a document under `docs/architecture/` describing a subsystem, component, or cross-cutting flow.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Write or update a document under `docs/architecture/` describing a subsystem, component, or cross-cutting flow.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
| name | write-architecture-doc |
| description | Write or update a document under `docs/architecture/` describing a subsystem, component, or cross-cutting flow. |
| when-to-use | When a new subsystem is being designed, an existing subsystem's design changes materially, or the maintainer requests documentation for a specific part of the system. |
kernel-core, ipc, security-model, hal).Check the index at docs/architecture/README.md.
Create the file at docs/architecture/<slug>.md.
Structure the document:
# <Title>
<One-paragraph summary. A reader who reads only this paragraph must be able to say what this document covers and who it is for.>
## Context
<What this subsystem is responsible for, and which ADRs drove its design. One or two paragraphs with ADR links.>
## Design
<The actual how. Subdivide with `###` headings as the topic requires: components, data structures, flows, boundaries.>
### <Component or flow 1>
<Prose description. Include a Mermaid diagram if it clarifies boundaries, flow, or state transitions.>
### <Component or flow 2>
…
## Invariants
<Bulleted list of the invariants this subsystem maintains. These are the claims a reader can rely on and a tester can exercise.>
## Trade-offs
<What this design gives up, and why. This is a design document, not marketing — the downsides must be present.>
## Open questions
<Questions still to be answered. Linked to issues or future ADRs where applicable.>
## References
- ADRs and external literature.
Write the summary paragraph carefully. This paragraph is the document's thesis. A reader who skims only the summary should come away with the subsystem's purpose and its place in the system.
Use Mermaid for every diagram. Per documentation-style.md:
mermaid language tag.Example:
The IPC send flow crosses three boundaries: syscall entry, endpoint rendezvous, and receiver delivery.
```mermaid
sequenceDiagram
participant S as Sender task
participant K as Kernel
participant R as Receiver task
S->>K: syscall: send(endpoint, msg)
K->>K: check send capability
K->>R: deliver if receiver waiting, else block
R->>K: return after receive
K->>S: return Ok
```
Cross-reference ADRs wherever the document makes a claim that rests on a decision. Format: see [ADR-NNNN: Title](../decisions/NNNN-slug.md).
Link the glossary on first use of any project-specific term (see [capability](../glossary.md)).
Update the index.
docs/architecture/README.md — change the document's status column from Planned to Accepted (or Draft if it is a substantial but incomplete pass).Commit per commit-style.md:
docs(arch): <subsystem> — e.g. docs(arch): ipc design.Refs: ADR-NNNN for each ADR the document reflects.docs/architecture/<slug>.md.Refs: ADR-NNNN trailer in the commit.SendCap before transferring a message" is.Add a new Board Support Package (BSP) crate to the Tyrne workspace — from crate skeleton through boot checklist to first QEMU or hardware boot.
Propose and draft a new Architecture Decision Record (ADR) in MADR format for Tyrne.
Run an independent verification pass over artefacts in `Proposed` / `In Review` waiting-for-promotion states. Distinct from code-review (style + correctness on a diff) and security-review (adversarial axis pass) — this skill verifies that the artefacts' claims about their own state match reality and produces a Done-promotion verdict.
Produce a review artifact in `docs/analysis/reviews/<type>-reviews/`, following that type's master plan. Works for business / code / security / performance-optimization reviews.
Change an existing Tyrne standard correctly — write or update the motivating ADR first, then update the standard file.
Add a new Rust crate to the Tyrne workspace following the dependency policy in `infrastructure.md`.