Skip to content
Skills Library
Programming · Writing

openspec-design

/openspec-design

Create OpenSpec design artifacts. Use when: user wants to design a feature before tasking, run a bounded context check, produce design.md, or create C4/ER/flow diagrams for an OpenSpec change. Triggers: design, openspec-design, BC check, bounded context, design.md.

Licence
MIT
Last repository change
27.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
2
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 27.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Create OpenSpec design artifacts. Use when: user wants to design a feature before tasking, run a bounded context check, produce design.md, or create C4/ER/flow diagrams for an OpenSpec change. Triggers: design, openspec-design, BC check, bounded context, design.md.

Arguments

/openspec-design design <change-id> | maintain <change-id>
Original author description

Create OpenSpec design artifacts. Use when: user wants to design a feature before tasking, run a bounded context check, produce design.md, or create C4/ER/flow diagrams for an OpenSpec change. Triggers: design, openspec-design, BC check, bounded context, design.md.

How it works

  1. Commands
  2. Output: design.md
  3. BC Check Signals
  4. Reference
Original SKILL.md headings · 100 lines, 529 words
SKILL.md preview
---
name: openspec-design
description: "Create OpenSpec design artifacts. Use when: user wants to design a feature before tasking, run a bounded context check, produce design.md, or create C4/ER/flow diagrams for an OpenSpec change. Triggers: design, openspec-design, BC check, bounded context, design.md."
model: opus
argument-hint: "design <change-id> | maintain <change-id>"
cynefin-domain: complicated
cynefin-verb: analyze
---

# OpenSpec Design

BC-first structural design engine. Produces `design.md` — the missing layer between proposal.md and tasks.md.

**Domain-agnostic**: Containers are any bounded unit — services, files, skill directories, workflow phases, document sections, process stages. Not limited to software architecture. Choose the zoom level that fits the change.

**You are designing:** `$ARGUMENTS`

## Commands

### design

Analyze proposal → BC check → Minimal Design Kit → write `design.md`.

**Input**: `$ARGUMENTS` = `design <change-id>`

**Workflow**:

1. **Read context**:
   - `openspec/project.md` → execution mode
   - `openspec/changes/{id}/proposal.md` → change scope

2. **BC check** (mandatory first step — stop if fails):
   - Scan proposal for BC violation signals (see reference.md §BC Signals)
   - If multi-domain detected → output split recommendation and **STOP**
   - If single-domain → proceed

3. **Design phase** (only if BC check passes):
   - Produce all 5 sections of `design.md` (see §Output Format)
   - Maintain mode (project.md mode = `maintain`) → delta-only, skip full kit

4. **Write**: `openspec/changes/{id}/design.md`

**BC split output** (stop before design artifacts):
```
⚠️ Bounded Context boundary crossed

This change appears to span multiple domains:
- BC1: {name} — {what it owns}
- BC2: {name} — {what it owns}

Recommendation: Split into separate OpenSpec changes:
1. openspec-plan create {change-id}-{bc1}: {description}
2. openspec-plan create {change-id}-{bc2}: {description}

Why: 1 change = 1 BC enables isolated testing, clear ownership,
and tractable troubleshooting. Mixing domains creates ambiguous
failures where you can't tell which boundary is broken.

Override: Add ADR to proposal.md documenting why mixed-domain is
intentional, then re-invoke /openspec-design design {id}.
```

### maintain

Delta-only design update for an existing `design.md`.

**Input**: `$ARGUMENTS` = `maintain <change-id>`

**Workflow**:
1. Read existing `openspec/changes/{id}/design.md`
2. Read proposal.md for what changed
3. BC check on the delta only
4. Output: which sections change, what moves, why
5. Append `## Delta` section to design.md (do not rewrite existing sections)

## Output: design.md

5 sections — see reference.md §design.md Template for full copy-paste scaffold:

1. **BC Scope** — Domain, ubiquitous language, owns/doesn't own, invariants, context interactions
2. **Containers (C4 L2)** — Bounded units at appropriate zoom + cognitive load check per container
3. **Entity-Relationship** — Mermaid ER with aggregate boundaries marked
4. **Key Flows** — Sequence diagrams (3-5 critical paths), solid=command, dashed=event
5. **ADRs** — context → decision → consequences

## BC Check Signals

Scan proposal.md for these patterns. Any 2+ signals = recommend split.

| Signal | What to look for |
|---|---|
| Multiple vocabularies | Proposal uses terms from 2+ distinct domains that don't overlap (e.g., "order fulfillment" + "payment processing", or "skill authoring" + "plugin deployment") |
| Independent subgraphs | Containers that never interact — diagram splits into disconnected clusters |
| Independent testability | "Part A works without part B" — if separable, should be separate |
| Multiple ownership | "Who owns this?" yields different answers depending on which part |
| Cognitive load overflow | Single container requires 3+ distinct domains to understand simultaneously |

## Reference

See `reference.md` for:
- Full context map relationship types (7 DDD patterns + quick-pick)
- ACL detection heuristic
- Aggregate boundary annotation guide
- Domain event / command flow conventions
- Cognitive load heuristic detail
- design.md template (copy-paste scaffold)
- ADR format template
Files in this package (2)
  • SKILL.md 4 KB
  • reference.md 10 KB

Versions

The database has no other skills named openspec-design.

Database snapshot: 13.11.2026 · package version e5aefe417d2f (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 92openspec-ff-change
    Fast-forward through OpenSpec artifact creation. Use when the user wants to quickly create all artifacts needed for implementation without stepping through each one individually. Also use when the user says "openspec ff" or "opsx ff".
  • 92openspec-ff-change
    Fast-forward through OpenSpec artifact creation. Use when the user wants to quickly create all artifacts needed for implementation without stepping through each one individually. Also use when the user says "openspec ff" or "opsx ff".
  • 92openspec-ff-change
    Fast-forward through OpenSpec artifact creation. Use when the user wants to quickly create all artifacts needed for implementation without stepping through each one individually. Also use when the user says "openspec ff" or "opsx ff".
  • 100openspec-plus-design
    MANDATORY skill that activates whenever the OpenSpec design phase begins. Triggers: /opsx-new or /opsx-continue runs; openspec-new-change, openspec-continue-change, or openspec-explore is active; `openspec instructions design` is invoked; or the user wants to create, update,…
  • 92openspec-ff-change
    Fast-forward through OpenSpec artifact creation. Use when the user wants to quickly create all artifacts needed for implementation without stepping through each one individually.
  • 92openspec-propose
    Propose a new OpenSpec 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. Also use when the user says "openspec propose" or "opsx propose".

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.