agentleFS
IvenKooLabIvenKooLab/vibe-coding-skills/openspec/SKILL.md

openspec

Skill0 starsChanged 4 months agoMITView on GitHub

Use when the user says "/openspec", "启用 openspec", "spec-driven", "写规格", "提 proposal", "走规格驱动", or wants requirements/contracts persisted into repo-level specs as the single source of truth before implementation. Also use when deciding whether to adopt a full spec (proposal/specs/design/tasks) workflow vs a lighter setup, OR when the work touches internal frameworks and needs routing to the right framework skill. Symptoms - requirements keep getting re-explained; conversations disagree on what was actually decided; AI drifts from the agreed contract; the user wants a change-request trail; the user asks which framework module to use for a given task.

  • Installs packages

7 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions7 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 7

    1. rcdelfin/agentkit★ 2same name
    2. seikaikyo/dash-skills★ 2same name
    3. TsinHzl/claude-code-config★ 2same name
    4. leonardoaraujosantos/my_ai_skills★ 1same name
    5. weininghui/skills★ 1same name
    6. zoujindouGithub/agent-skills★ 1same name
    7. lgzarturo/codeconductor★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository2 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

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

    Do not start apply until:

    line 49
  2. Very specific:

    Never: start apply before the user reviews the proposal artifacts — the whole point is a reviewed contract.

    line 107
  3. Very specific:

    Never: treat specs as immutable once a change lands — archive deliberately rewrites openspec/specs/.

    line 108

“Common” is measured: kept by at least 6 in 10 of the 4 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 — Spec-Driven Contract Layer + Internal Framework Router

Overview

This skill does two things, and they are orthogonal:

  1. Contract layer (Part A) — Persist requirements and design decisions into specs that live in the repo, so every session works against the single source of truth instead of someone's latest recollection. Distilled from Fission-AI/OpenSpec (MIT).
  2. Framework router (Part B) — When the work touches an internal framework, route to the right framework skill instead of re-deriving how to use it. One entry point, many destinations — like a switchboard.

The red line with Superpowers (memorize this): OpenSpec owns what to build and the contract (proposals, specs, design, tasks). The methodology layer — [[superpowers]] (its §brainstorming / §writing-plans / §test-driven-development / §systematic-debugging / §verification-before-completion disciplines) — owns how to build and the quality. This skill reads specs; it does not redefine the requirement baseline. Light projects can skip OpenSpec entirely and run on methodology alone.


Part A — Spec-Driven Workflow (the contract layer)

The philosophy

  • Fluid, not rigid. Specs evolve; they are not carved in stone. Propose a delta, review it, merge it.
  • Iterative, not waterfall. You can go explore → propose → apply → archive more than once for the same feature as understanding grows.
  • Brownfield, not just greenfield. An existing project already has specs (even implicit ones). The first job is to make them explicit, not to start over.

The 4-phase loop

PhaseCommand (upstream)What happensChanges specs?
1. Explore/opsx:exploreRead the codebase and existing specs. Map current behavior. Ask the questions a proposal will need answered.No (read-only)
2. Propose/opsx:proposeProduce the four artifacts (below): proposal.md + specs/ (the delta) + optional design.md + tasks.md. User reviews before anything is built.Proposes a delta — not yet applied
3. Apply/opsx:applyImplement against tasks.md. The spec delta is the acceptance baseline: done = the delta's "Specs" section matches reality.Code moves toward the spec
4. Archive/opsx:archiveMove the change into openspec/changes/archive/, promote the spec deltas back into openspec/specs/ so the next session inherits them.Yes — this is where specs get updated

You do not need the upstream CLI for the methodology. The phases are a discipline. If you install upstream (npm install -g @fission-ai/openspec), the /opsx:* commands automate the bookkeeping; without it, you follow the same four phases by hand.

The four artifacts (what lives in the repo)

ArtifactHoldsWhy it matters
proposal.mdWhy this change, what's in/out of scope, the decision and its alternativesThe "why" survives the author. A future session (or reviewer) reads this instead of guessing.
specs/ (delta)The changes to specifications — what WILL be true after this lands, written as spec deltasThe negotiable part. Reviewed and merged; never edited silently once applied.
design.md (optional)Technical design — data models, sequence, trade-offsOnly for complex changes. Skip for trivial ones (don't pay ceremony tax).
tasks.mdThe ordered, checkable implementation listThe execution contract. "Apply" works through this; "done" is when every task is checked and the spec delta holds.

The gate before "Apply"

Do not start apply until:

  • The proposal has testable acceptance criteria (not "make it better").
  • Repository-answerable questions were answered by reading, not by asking the user.
  • The user has reviewed the artifacts or explicitly approved proceeding.

(Same instinct as [[grill-me]] — drive the soft spots into the open before building.)

Directory layout in the repo (reference)

openspec/
├── specs/                 # the living source of truth (current, accumulated)
│   ├── ...
├── changes/               # in-flight and historical proposals
│   ├── <change-id>/       #   proposal.md + specs/ + design.md? + tasks.md
│   └── archive/           #   landed changes, post-merge

Part B — Internal Framework Router (the "use what" layer)

Any time the task touches an internal framework: scaffolding a new service, middleware integration, data access, caching, messaging, permissions, scheduled tasks.

You do not re-derive framework usage here. You route to the right framework skill and follow its conventions. This skill is the switchboard; your framework skills are the destinations. (Single source of truth — their content lives in your skill library, not duplicated here.)

Replace this table with your own framework skills. Placeholder example:

Route toCoversTypical triggers
[[your-framework-base]]Parent POM / project scaffolding, multi-env confignew service, any starter
[[your-framework-orm]]ORM (MySQL/Oracle), mappers, paginationMapper, CRUD, pagination
[[your-framework-cache]]Redis cache + distributed lockcache, lock, multi-cluster
[[your-framework-mq]]RabbitMQ / RocketMQ producers & consumerssend/consume, transactional msg
[[your-framework-sso]]CAS single sign-on, session sharingSSO login/logout, 302

When NOT to route

  • Pure business logic with no framework surface → stay in Part A flow.
  • The user explicitly says "don't use the framework" → plain implementation.

When to use

  • The user invokes it: /openspec, "启用 openspec", "走 spec-driven", "写规格", "提个 proposal".
  • Requirements need to survive across sessions, or multiple people/agents must agree on the contract.
  • The work touches an internal framework and you need the right module's conventions.

When NOT to use

  • Light, single-dev, short-lived work with no cross-session memory needs — methodology layer + [[ponytail]] is enough. Don't pay the spec tax.
  • Debugging a concrete bug — use [[superpowers]] §systematic-debugging. (You may read specs to understand intended behavior, but don't run the propose loop mid-bug.)
  • The task touches no internal framework module — Part B has nothing to route to; Part A may still apply if you want a contract trail.

Anti-patterns (Never)

  • Never redefine the requirement baseline inside this skill — that is OpenSpec's whole job; this skill runs it, and the methodology skills read it.
  • Never copy framework-skill content into this skill — single source of truth. Route, don't duplicate. When a framework convention changes upstream, only that framework skill should need updating.
  • Never confuse OpenSpec with [[trellis]] — OpenSpec owns the requirement contract (propose → archive a delta); Trellis owns persistence + multi-agent orchestration (spec/task/memory + worker coordination). They can coexist; they are not the same layer.
  • Never start apply before the user reviews the proposal artifacts — the whole point is a reviewed contract.
  • Never treat specs as immutable once a change lands — archive deliberately rewrites openspec/specs/. Fluid, not rigid.

Collaborates with

  • Superpowers methodology layer — orthogonal. OpenSpec = what/contract; [[superpowers]] (its §brainstorming / §writing-plans / §test-driven-development / §verification-before-completion) = how/quality. Per the red line, one owns the baseline, the other owns execution — neither crosses over.
  • [[trellis]] — sibling at the engineering-framework tier. Trellis is the persistence + orchestration frame; OpenSpec is the contract layer. For a heavy project you might use both: OpenSpec to negotiate the contract, Trellis to keep it + the tasks + memory coherent across agents.
  • [[grill-me]] — the propose phase's interview instinct is the same: drive soft spots into the open before building.
  • Framework skills (your-framework-*) — Part B is a router to them; they are the destinations, this skill is the switchboard.

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.