agentleFS
cedaniel200cedaniel200/atlas-template/.agents/skills/openspec-workflow/SKILL.md

openspec-workflow

Skill3 starsChanged 20 days agoMITView on GitHub

OpenSpec pipeline: explore → propose → apply → QA → review → archive, with a consistency checkpoint.

4 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

6 rules. 0 are common, 4 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    The user reviews each artifact: before moving to the next one.

    line 26
  2. Distinctive:

    Before QA: does the code implement the approved design?

    line 56
  3. Very specific:

    Archive: after explicit user approval, run openspec archive <change> and sync the specs.

    line 77
  4. Distinctive:

    If the PR is merged without archive, do not rewrite main: open a new archive branch/PR, archive and merge it.

    line 81
  5. Very specific:

    If QA reports BLOQUEADO (3+ high findings on the second iteration), return to design with the user.

    line 88
  6. Distinctive:

    No finding is closed silently: it is fixed or documented with the user's approval.

    line 89

“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 pipeline

Phases

explore → propose (proposal, specs, design, adr, tasks) → apply → QA → review → archive

Artifact order

proposal → specs → design → adr → tasks

Each artifact is written only when its dependencies are complete and the user approves it.

Rules

  • OpenSpec commands: the preference in AGENTS.md (§ Preferences) is user, agent or ask. With ask, the question is asked at the start of every session; the answer applies to that session only. archive and sync always require explicit approval.
  • The user reviews each artifact before moving to the next one.
  • Command syntax depends on the host: the wrappers are generated by openspec init/update --tools <host>.
  • Never proceed without explicit approval.
  • Phase gates (orchestrated mode): artifact approval, implementation start, QA start, pull request, archive/merge. The user decides when implementation begins; it may be postponed to another session.

Phases in detail

1. Explore

Think, ask, visualize. Do not implement. If the idea crystallizes, propose a change.

2. Propose

Generate proposal, specs, design, adr and tasks. Add qa-scenarios.md when the change has an end-to-end flow worth testing.

3. Apply

TDD per task: red → green → refactor → commit. Run the project's quality gate before closing.

4. QA

Scenario inventory → gap analysis → execution. Approval requires -FINAL with zero open high-severity findings.

5. Consistency checkpoint

Before QA: does the code implement the approved design? Did the scope change? Are the new ADRs coherent? If there is drift, fix the design before spending QA and review iterations.

  • Did the refactor introduce weak types (bare strings, booleans or magic numbers carrying semantics) or incohesive helpers only to satisfy a size, complexity or CRAP threshold?
  • Is the behavior or observability change (logs, metrics, traces) covered by a test, and is the refactor declared in the change report and design.md?

6. Review

Code review against the declared architecture and security, plus quantitative gates. No critical findings and highs resolved → -FINAL.

7. Close the cycle

  1. Consistency check (design → code): does the implementation match the approved design? Did the scope change? Are the new ADRs coherent?
  2. Documentation: invoke doc-writer. It updates technical and functional documentation and returns a summary; if the code diverges from the specs, it flags the divergence instead of documenting it.
  3. Analyst validates that the documentation matches the approved change and the specs.
  4. Pull request: open it with the documentation included. The user reviews the PR once.
  5. Archive: after explicit user approval, run openspec archive <change> and sync the specs; commit the archive in the same PR.
  6. Merge (the user) and cleanup (branch + worktree).

If the PR is merged without archive, do not rewrite main: open a new archive branch/PR, archive and merge it. If a review after archive changes specs, design or tasks, unarchive, fix, validate and archive again.

Limits

  • Maximum 5 iterations between QA and review.
  • If QA reports BLOQUEADO (3+ high findings on the second iteration), return to design with the user.
  • No finding is closed silently: it is fixed or documented with the user's approval.

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.