---
description: OpenSpec /opsx workflow — commands and file locations
alwaysApply: true
---

# OpenSpec Workflow (/opsx)

`/opsx:*` are workflow commands, not source code.

## File Locations

Commands: `.agents/commands/opsx-*.md`; skills: `.agents/skills/`.
Main specs: `openspec/specs/`; changes: `openspec/changes/` (each contains `design-brief.md` + `assets/` when needed).
Config: `openspec/config.yaml`, `.agents/orchestrator.yaml`.

## Command → Skill Mapping

- `/opsx:explore` → skill `openspec-explore` (thinking only)
- `/opsx:design <name>` → command `opsx-design` (writes design-brief.md + assets/)
- `/opsx:propose <name>` → skill `openspec-propose`
- `/opsx:review <name>` → command `opsx-review` (read-only, writes review.md)
- `/opsx:apply` → skill `openspec-apply-change`
- `/opsx:quick <name>` → command `opsx-quick` (small change: propose + light review + apply)
- `/opsx:archive` → skill `openspec-archive-change`
- `/opsx:sync` → skill `openspec-sync-specs`

## Requirement descriptions

New descriptions: ≤500 characters between `### Requirement:` and first `#### Scenario:`. Preserve MODIFIED behavior/scenarios; migrate old specs separately. `gate-check --review` previews all main specs with strict validation.

## CLI (via npx — never bare binaries)

See also `.agents/rules/cli-via-npm.mdc`.

```bash
npx openspec list
npx openspec validate "<name>" --strict --type change
npx openspec status --change "<name>" --json
npx openspec instructions apply --change "<name>" --json
npx agent-orchestrator-kit status
```

Do NOT search for opsx in `src/` — nothing there.
