agentleFS
fmindfmind/dot/skills/openspec/SKILL.md

openspec

Skill14 starsChanged yesterdayMITView on GitHub

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

12 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 0 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 8 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Add the opt-in overlay below to mise.toml (tool versions), add "check:specs" to check:local.depends, add --exclude-path …

    line 22
  2. Very specific:

    Create a change and load schema instructions (proposal, specs, design, tasks):

    line 42
  3. Very specific:

    Write proposal.md, delta specs (specs/<cap>/spec.md), design.md (mini-ADR for local choices.

    line 48
  4. Very specific:

    Run openspec validate <change-id> --type change --strict --no-interactive and apply risk-gated design review (subagent).

    line 49
  5. Very specific:

    --archived overrides --all: run both validation commands separately in check:specs.

    line 55

“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

OpenSpec

Opt-in technical spec layer for multi-feature or contract-heavy repos: keep AGENTS.md as the lean repo constitution, keep docs/ focused on user experience, and store technical capability specs in openspec/specs/ plus active change traces in openspec/changes/. Skip OpenSpec on small CLIs, libs, scripts, or standalone doc sites, and apply small bug fixes directly.

  • Non-overlapping layers: stakeholder business outcomes live in opt-in features/ (testing/bdd); technical SHALL/MUST contracts (schemas, status codes, failure modes) live in openspec/specs/; change proposals and default mini-ADRs live in openspec/changes/; low-level unit/boundary/property tests live in always-on tests/. On OpenSpec repos, openspec/changes/ replaces standalone feature briefs; create docs/decisions/ (adr-rfc) only on demand for rare cross-cutting, hard-to-reverse bets (linked from design.md), and keep cross-repo notes in bf.

Workflow

  1. Opt in and initialize:

    • Add the opt-in overlay below to mise.toml (tool versions), add "check:specs" to check:local.depends, add --exclude-path openspec/changes/archive to check:links, and run mise lock.
    • Scaffold openspec/ without upstream skills and copy config.yaml to openspec/config.yaml (collaborators without fmind/dot can run openspec init --scope project --profile core --no-animation </dev/null vetted per vendor-skills):
      OPENSPEC_TELEMETRY=0 CI=1 openspec init --tools none --no-animation </dev/null
    [env]
    OPENSPEC_TELEMETRY = "0"
    
    [tools."github:Fission-AI/OpenSpec"]
    version = "<pinned-version>"
    platforms = { linux-arm64 = { asset_pattern = "openspec-linux-arm64.tar.gz" }, linux-x64 = { asset_pattern = "openspec-linux-x64.tar.gz" }, macos-arm64 = { asset_pattern = "openspec-darwin-arm64.tar.gz" } }
    
    [tasks."check:specs"]
    description = "Validate OpenSpec specs, active changes, and archived tasks strictly"
    run = ["openspec validate --all --strict --no-interactive", "openspec validate --archived --strict --no-interactive"]
  2. Propose & plan:
    • Create a change and load schema instructions (proposal, specs, design, tasks):
      openspec new change <change-id>
      openspec status --change <change-id> --json
      openspec instructions proposal --change <change-id> --json
    • Write proposal.md, delta specs (specs/<cap>/spec.md), design.md (mini-ADR for local choices; link durable ones to docs/decisions/), and tasks.md (skip_specs: true in .openspec.yaml for refactors/docs) per authoring.
    • Run openspec validate <change-id> --type change --strict --no-interactive and apply risk-gated design review (subagent).
  3. Implement & verify: load openspec instructions apply --change <change-id> --json, execute slices, check - [x] items, run mise run all, and verify completeness against specs.
  4. 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, run dprint fmt, and pass check:specs.

Gotchas

  • --archived overrides --all: run both validation commands separately in check:specs.
  • 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 prevent 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, which bypasses chezmoi in ~/.agents/skills/ and fails dot context --check; pass --tools none (or --scope project) and optionally run openspec config set skillsScope project.
  • Exclude archives from link/prose checks: exclude openspec/changes/archive in lychee and vale.
  • Granular, human-first specs: one single-noun slug per seam (notes, loops, network, database; no -and- bundles or internal code symbols). Follow authoring: ## Purpose -> ## Non-goals -> ## Examples (snippets or 3–5 box mermaid + tables) -> ## Requirements (MUST + Problem/Solution/optional Limit(s) & Failure < 500 chars + terse WHEN/THEN #### Scenario:).
  • Pair with pytest-bdd: match slugs (openspec/specs/<cap>/spec.md ↔ features/<cap>.feature), keep technical SHALL/MUST contracts here (linking to features/<cap>.feature), and keep business narratives, Examples: tables, and @wip/@sla in Gherkin.

Documentation

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.