Skip to content
Back to skills

Architecture

ASecurity

Designs and maintains root ARCHITECTURE.md for the intended system, including its data model and shared technical rules. Use for new systems or changes to system boundaries, ownership, storage, or deployment.

  • 412 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 6, 2026
developmentrustgosecurity

Security analysis

A100/100

Scanned October 6, 2026

npx -y skills add owainlewis/blueprint --skill architecture --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Architecture?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Architecture
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/owainlewis-architecture/badge)](https://www.skillsdirectory.com/skills/owainlewis-architecture)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: architecture
description: "Designs and maintains root ARCHITECTURE.md for the intended system, including its data model and shared technical rules. Use for new systems or changes to system boundaries, ownership, storage, or deployment."
user-invocable: true
argument-hint: "<system, requirements, or ARCHITECTURE.md>"
---

# Architecture

Create or update root `ARCHITECTURE.md`. Design the system we intend to build.
Keep this as a long-running system document alongside `REQUIREMENTS.md`.
Use `/requirements` for product needs and `/spec` for a feature's technical change.

## Process

1. Read the requirements, repository instructions, existing architecture, and relevant code, schemas, tests, and infrastructure. A new system may have no code yet.
2. Identify the decisions that shape the system: boundaries, responsibilities, data ownership, dependencies, and quality constraints. Ask for missing consequential decisions; recommend an answer with its tradeoff when evidence supports one.
3. Choose the simplest structure that satisfies the requirements. For consequential decisions, explain the chosen approach, strongest alternative, reason, and main cost. Consider keeping the existing system when relevant. Skip comparisons that cannot change the choice.
4. Write the architecture using the shape below. Always include an architecture and data flow diagram. Reference requirements instead of copying them.
5. Trace critical success and failure flows. Check ownership, contracts, data consistency, security, recovery, and measurable limits against the requirements.
6. Stop with the architecture ready for review. Do not plan tasks or implement it.

## Document shape

- **Summary and goals:** the system, its main parts, source of truth, and the requirements driving the design.
- **System boundary:** users, outside systems, components, and important interfaces. Include the required architecture and data flow diagram.
- **Responsibilities and dependencies:** what each part owns, what it does not own, and which way dependencies may point.
- **Data model:** core entities, relationships, identifiers, ownership, lifecycle, constraints, consistency rules, retention, and storage choices. Include an entity diagram when useful. Link larger schemas rather than repeating them.
- **Runtime flows:** important execution order, data movement, transactions, side effects, failures, retries, and recovery.
- **Security and operations:** trust boundaries, authorization, deployment, observability, resource limits, and operator recovery where they affect the design.
- **Operating expectations:** expected workload, latency, availability, recovery, and cost constraints where they shape the design. Use supported targets; record consequential unknowns and their effects instead of inventing numbers. Link requirements for product limits.
- **Path to the intended system:** for an existing system, explain important gaps, compatibility constraints, migration, and rollback where needed. Keep feature details in specs and delivery tasks in `/plan`.
- **Decisions and status:** mark decisions proposed or accepted. Separately state what is implemented, missing, or different in the current system. Acceptance does not mean implementation.
- **Risks and proof:** unresolved decisions, assumptions, quality scenarios, and checks needed to validate the design.

## Diagram

Always include a Mermaid diagram showing the main components, external actors, data stores, and data flow. A single diagram may cover architecture and flow; use a second when combining them would make either hard to read.

Use clear labels, labeled arrows, and groups for system or trust boundaries. Show what moves between parts, not just which parts connect. Keep spacing generous and the layout easy to follow. Use a restrained, consistent palette with readable contrast. Avoid crossing arrows and decorative detail. Split crowded diagrams by flow and keep an overview.

Render the diagram and inspect it before finishing. Check labels, arrow direction, legibility, and agreement with the written design. Include a caption explaining the main flow and any boundary the reader needs to understand.

The diagram is required. Use other sections only when they help explain this system; combine related points and omit empty sections. Describe shared rules here; put feature-specific schema changes and migrations in its spec.

Verify claims about existing implementation against authoritative files or runtime evidence. Label future behavior and assumptions clearly. Do not mark a proposal accepted without human approval. Give important architectural rules stable `INV-n` IDs and name their intended enforcement and proof.

Update this document when an accepted change alters ownership, dependencies, interfaces, stored data, trust boundaries, deployment, or hard limits. Keep this document current. Preserve useful content and stable references; retain feature decision history in specs.

## Return

Report the path, main decisions and tradeoffs, implementation gaps, and any blocking question.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…