openspec-quality-plan
Skill1 starsChanged 58 days agoApache-2.0View on GitHub
Generates a complete OpenSpec change package containing proposal, design, and task specs. Use this whenever the user asks to create an implementation plan, an OpenSpec package, or convert a research leaf node into a concrete project plan.
In this repository39 other files it gives its agents.
- agent-core/AGENTS.mdAGENTS.md
- .agents/AGENTS.mdAGENTS.md
- AGENTS.mdAGENTS.md
- behavioral-regression/AGENTS.mdAGENTS.md
- claude-foundation/AGENTS.mdAGENTS.md
- config/AGENTS.mdAGENTS.md
- corpora/AGENTS.mdAGENTS.md
- demo/AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- examples/AGENTS.mdAGENTS.md
- experiments/AGENTS.mdAGENTS.md
- flow-corpus/AGENTS.mdAGENTS.md
- flow-protocol/AGENTS.mdAGENTS.md
- openspec/AGENTS.mdAGENTS.md
- scripts/AGENTS.mdAGENTS.md
- skills/AGENTS.mdAGENTS.md
- tests/AGENTS.mdAGENTS.md
- claude-foundation/CLAUDE.mdCLAUDE.md
- merge-gate-auditorSkill
- update-executive-reportSkill
- update-executive-reportSkill
- architecture-drift-guardSkill
- commonSkill
- corpus-guardianSkill
- dataset-lintSkill
- deploySkill
- e2e-matrix-sentinelSkill
- eval-corpus-forgeSkill
- hierarchical-recursive-brainstormSkill
- model-benchSkill
- openai-judgeSkill
- openspec-implementation-reviewSkill
- openspec-peer-reviewSkill
- pre-pr-gateSkill
- project-setupSkill
- quality-gateSkill
- refactoring-decomposerSkill
- repo-invariant-reviewSkill
- test-completeness-guardSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 1 is distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
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
- Very specific: line 20
Proposal: Write proposal.md with the background, goals, and non-goals.
- Very specific: line 21
Design: Write design.md. You must include a "Code Hygiene & Quality Gates" section that explicitly lists:
- Distinctive: line 23
Test coverage targets (determine dynamically based on criticality, strictly enforced).
- Very specific: line 26
Tasks: Write tasks.md. You must end every implementation phase with a concrete hygiene/test gate (e.g., "Run quality-gate.sh all and fix …
- Very specific: line 43
Run structural only (python scripts/validate_skill.py --skill .
- Very specific: line 50
Phase Gates Are Concrete: Every phase in tasks.md ends with a hygiene/test gate that names the actual command to run (e.g., "Run …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
openspec-quality-plan — E2E Action Skill
Perform OpenSpec package generation end to end: take a feature request or research leaf node, produce a complete OpenSpec package (proposal.md, design.md, tasks.md, and behavioural delta specs), and prove it worked before reporting success.
1. Preconditions (input contract)
- The user has provided a feature request or a surviving leaf node from a brainstorming session.
- You have reviewed the composition contract and examples in
references/research-application.md.
2. Procedure (the E2E steps)
Execute the following generation protocol:
- Proposal: Write
proposal.mdwith the background, goals, and non-goals. - Design: Write
design.md. You must include a "Code Hygiene & Quality Gates" section that explicitly lists:- Required tooling (e.g.,
ruff,mypy). - Test coverage targets (determine dynamically based on criticality, strictly enforced).
- Configuration strategy (zero hard-coded values).
- Backwards-compatibility approach.
- Required tooling (e.g.,
- Tasks: Write
tasks.md. You must end every implementation phase with a concrete hygiene/test gate (e.g., "Run quality-gate.sh all and fix issues"). - Behavioural Deltas: Include pure behavioural delta specs if applicable.
3. Output contract (postconditions — what "done" means)
- A complete OpenSpec package is produced.
design.mdexplicitly lists tooling, coverage, configuration, and compatibility under a "Code Hygiene & Quality Gates" section.tasks.mdends every phase with a hygiene/test gate.
4. Failure handling
- On failure to meet the constraints, explain what was missing and regenerate the output.
5. Validation gate (before declaring success)
Subjective skill validation: There is no honest scripted gate for the quality of an OpenSpec package.
- Run structural only (
python scripts/validate_skill.py --skill . --tier structural) to keep the metadata/triggering honest. - Self-check against explicit, concrete criteria:
- Mandatory Sections Present: The "Code Hygiene & Quality Gates" section is present in
design.md. - Tooling Named Concretely: The section names the actual required tools for this change (e.g.,
ruff,mypy), not a generic placeholder like "appropriate linters." - Coverage Target Is Derived, Not Boilerplate: The stated coverage target reflects this change's own criticality — it is not the same number copy-pasted unchanged from the last package generated.
- Configuration Is Hardcode-Free, Not Just Claimed: The section states config values are single-sourced (a flag, a config field, a named constant) with zero literals duplicated at call sites — not a generic "config is externalized" sentence.
- Backwards-Compatibility Approach Is Concrete: The section names an actual approach for this change (e.g., additive-only, a deprecation window, a version gate), not a placeholder claim.
- Phase Gates Are Concrete: Every phase in
tasks.mdends with a hygiene/test gate that names the actual command to run (e.g., "Runquality-gate.sh alland fix issues"), not a vague mention of "testing."
- Mandatory Sections Present: The "Code Hygiene & Quality Gates" section is present in
6. Examples
See references/research-application.md for concrete examples.
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
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.

