Skip to content
Back to skills

Openspec

ASecurity

Manage repo openspec/ specs and changes via openspec CLI: initialize repos, author proposals/delta specs/designs/tasks, validate strictly, review, and archive.

  • 14 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 2, 2026
ai-agentsgobashgitdocumentation

Works with

  • cli

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned December 2, 2026

npx -y skills add fmind/dot --skill openspec --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Openspec?

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

Security grade badge for Openspec
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/fmind-openspec/badge)](https://www.skillsdirectory.com/skills/fmind-openspec)

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: openspec
description: "Manage repo openspec/ specs and changes via openspec CLI: initialize repos, author proposals/delta specs/designs/tasks, validate strictly, review, and archive."
license: MIT
metadata:
  kind: task
  author: Médéric HURIER (Fmind)
  source: github.com/fmind/dot/tree/main/skills/openspec
  created: "2026-11-27"
  updated: "2026-11-29"
---

# OpenSpec

Opt-in technical spec layer for multi-feature or contract-heavy repos: `AGENTS.md` stays a lean constitution, `docs/` owns user guides, `openspec/specs/` owns `SHALL/MUST` contracts (paired by slug with opt-in `features/*.feature` BDD files), `openspec/changes/` owns active proposals and optional mini-ADRs (replacing [spec-prd](../docs/references/spec-prd.md)), `docs/decisions/` owns irreversible ADRs ([adr-rfc](../docs/references/adr-rfc.md)), and [bf](../bf/SKILL.md) owns cross-repo notes. Skip OpenSpec on small CLIs, libs, scripts, or doc sites, and apply small bug fixes directly.

## Workflow

1. **Opt in and initialize**:
   - Pin `"github:Fission-AI/OpenSpec"` with glibc Linux/macOS asset patterns ([tool versions](../mise/references/tool-versions.md)), set `OPENSPEC_TELEMETRY = "0"`, add `check:specs` running `openspec validate --all --strict --no-interactive` and `openspec validate --archived --strict --no-interactive` (wired into `check:local.depends`), exclude `openspec/changes/archive` in `lychee` and `vale`, and run `mise lock`.
   - Scaffold `openspec/` without upstream skills and copy [config.yaml](templates/config.yaml) to `openspec/config.yaml` (external collaborators can vet `openspec init --scope project --profile core --no-animation </dev/null` per [vendor-skills](../agent-harnesses/references/vendor-skills.md)):
     ```bash
     OPENSPEC_TELEMETRY=0 CI=1 openspec init --tools none --no-animation </dev/null
     ```
1. **Propose & plan**:
   - Create a change and load schema instructions (`proposal`, `specs`, `design`, `tasks`):
     ```bash
     openspec new change <change-id>
     openspec status --change <change-id> --json
     openspec instructions proposal --change <change-id> --json
     ```
   - Write concise `proposal.md`, delta `specs/<cap>/spec.md`, optional `design.md`, and `tasks.md` (`skip_specs: true` in `.openspec.yaml` for refactors/docs) per [authoring](references/authoring.md) budgets.
   - Run `openspec validate <change-id> --type change --strict --no-interactive` and risk-gated design review ([subagent](../subagent/SKILL.md)).
1. **Implement & verify**: load `openspec instructions apply --change <change-id> --json`, execute slices, check `- [x]` items, run `mise run all`, and verify completeness against specs.
1. **Archive & finalize**: load `openspec instructions archive --change <change-id> --json`, run `openspec archive -y <change-id>` (`--skip-specs` if no spec changed), replace new `TBD` `## Purpose` (`>= 50` chars), sync `## Examples` and tables if flags/config/limits changed, and run `mise run format` and `mise run check:specs`.

## Gotchas

- **`--archived` overrides `--all`**: run both validation commands separately in `check:specs`.
- **Quote YAML rules in `openspec/config.yaml`**: unquoted `: ` turns a rule into a map (silently dropping that artifact's `rules`), and unquoted ` #` truncates it as a comment. Always double-quote rule strings.
- **Omitting `design.md` leaves `design` in `missingPrerequisites`**: `status` shows `isComplete: false` and `apply` lists `missingPrerequisites: ["design"]`; `validate` and `archive` still pass.
- **Use glibc Linux tarballs**: `-musl` binaries link `/lib/ld-musl-*` and fail on Debian/Ubuntu.
- **Close stdin non-interactively**: pass `</dev/null` and `CI=1` to `openspec init` to avoid TTY hangs.
- **Edit new main specs after archive**: brand-new capabilities emit a `TBD` `## Purpose` that fails `--strict` and is never overwritten by later deltas.
- **Never use `--scope global`**: OpenSpec defaults `skillsScope` to `global`, bypassing chezmoi in `~/.agents/skills/` and failing `dot context --check`; pass `--tools none` (or `--scope project`).
- **30-second reviewability**: follow [authoring](references/authoring.md) budgets (single-noun slugs, `<= 400` char target / `500` strict max, optional `design.md`, zero prose pseudocode).

## Documentation

- [OpenSpec documentation](https://openspec.dev/) · [Fission-AI/OpenSpec](https://github.com/Fission-AI/OpenSpec)
- Companions: [docs](../docs/SKILL.md), [github/bootstrap](../github/references/bootstrap.md), [mise](../mise/SKILL.md), [agent-harnesses](../agent-harnesses/references/project-setup.md), [subagent](../subagent/SKILL.md), [bf](../bf/SKILL.md).

Files in this skill

  • SKILL.md4.5 KB
  • references/authoring.md5.5 KB
  • templates/config.yaml3.3 KB

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.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.