Arch design

From leogodin217/leos_claude_starter · View interactive version

Arch design is an AI agent skill from the GitHub repository leogodin217/leos_claude_starter. Design architecture docs for new features, refactors, or redesigns. Produces a pending architecture doc describing a specific change — semantics, contracts, invariants. File enumeration happens at sprint planning.

How to use this skill

Skill file

Architecture Design

Design a pending architecture doc describing a specific change to the system —

a new feature, a refactor, or a redesign.

The deliverable is an architecture artifact, not a sprint precursor. It

defines what the change is and why — semantics, contracts, invariants,

rationale. It does NOT enumerate files, line ranges, or import rewrites —

those belong to sprint planning.

All pending docs live at docs/architecture/pending/<name>.md. There is no

per-package pending location and no owns frontmatter; the doc's content —

specifically the Affected Subsystems section — describes which subsystems

the change touches.

Audience (LLM)

Design docs should be optimized for LLM use.

Inputs

The user provides one of:

Context posture

Full architecture. Run /understand architecture first — it loads the

pipeline boundaries, docs/PROCESS.md, and the docs/CAPABILITIES.md outline

that a design has to hold to. Everything below is what this skill loads *on top

of* that bundle; do not re-read what the bundle already gave you.

Process

Checkpoint 1: Problem + Solution (wait for user approval)

  1. Load context:
  1. Write Problem and Solution sections:
  1. Present to user for approval. Name the subsystems the change touches.

Design the whole feature — a feature that spans three packages is a

three-package design. If part of the feature is genuinely separable, say so

explicitly and explain why; don't silently drop it or present a shrunken

scope as the safe default. Do not continue until the user confirms direction.

Automated Phase (after direction is approved)

  1. Load relevant architecture docs per README.md reading order for each affected area. These docs are read-only context — they describe today's contracts and invariants so you can design a change that fits. Do not write the design as a diff against them, do not enumerate which sections will be rewritten, and do not describe how they should be updated. The pending doc describes the change to the system, not the change to the docs.
  1. Read existing source code only as needed to understand current contracts and invariants. Use cclsp to inspect specific symbols. Do not enumerate import sites — that is sprint planning.
  1. Write remaining sections using the template at .claude/skills/arch-design/template.md:
  1. Write the complete doc to docs/architecture/pending/<name>.md.
  1. Present the full doc to user with a summary of:

Quality Rules

Output Location

All pending docs: docs/architecture/pending/<feature-name>.md.

Boundary with sprint planning

Architecture design ends at the contract. Sprint planning begins with the contract and produces:

If you find yourself wanting to write any of the above during /arch-design, that's a signal the design is done and a sprint plan should be opened separately.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.