Skip to content

Workflow OpenSpec

OpenPencil usa OpenSpec per lo sviluppo guidato da specifiche. Le specifiche sono la fonte di verità.

Struttura

openspec/
├── specs/              # Source of truth
│   ├── scene-graph/
│   ├── canvas-rendering/
│   ├── auto-layout/
│   └── ...             # 19 capability specs
├── changes/
│   └── archive/
└── config.yaml

Specifiche attuali

CapabilityDescription
scene-graphFlat Map, CRUD, hit testing
canvas-renderingCanvasKit WASM rendering
auto-layoutYoga WASM flexbox
fig-import.fig file import
kiwi-codecKiwi binary codec
editor-uiVue 3 panels, toolbar
desktop-appTauri v2
testingPlaywright + bun:test
toolingVite, oxlint, tsgo

Workflow

1. Proporre una modifica

/opsx:propose change-name

→ proposal.md, design.md, specs/, tasks.md

2. Implementare

/opsx:apply

3. Archiviare

/opsx:archive

Formato delle specifiche

markdown
# capability-name Specification
## Requirements
### Requirement: Name
#### Scenario: Name
- **WHEN** condition
- **THEN** expected outcome

Comandi CLI

sh
openspec list
openspec show <name>
openspec status --change <name>
openspec archive <name>

Released under the MIT License.