spectra-propose
Skill0 starsChanged 4 months agoMITView on GitHub
Create a change proposal with all required artifacts
6 other projects use a version of this, 4 of them edited.
Adopted by
Most recently taken up by
- DanSnow/hoarder-pipetteedited, first seen Oct 8, 2026
- leoho0722/naver-blog-image-downloaderedited, first seen Aug 31, 2026
- PsychQuant/claude-hot-limitword for word, first seen Jul 1, 2026
- harrychuang/cursor-skillsword for word, first seen Jun 17, 2026
- BananaBay69/claude-code-watchdogedited, first seen Apr 29, 2026
- PsychQuant/che-ical-mcpedited, first seen Mar 31, 2026
Other versions6 projects use a version of this.
Word for word · 2
- harrychuang/cursor-skills★ 19100% same
- PsychQuant/claude-hot-limit★ 0100% same
Edited · 4
- DanSnow/hoarder-pipette★ 9817% same
- PsychQuant/che-ical-mcp★ 4490% same
- BananaBay69/claude-code-watchdog★ 299% same
- leoho0722/naver-blog-image-downloader★ 299% same
Wrote their own version · 0
None found.
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 repository13 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- spectra-analyzeSkill
- spectra-applySkill
- spectra-archiveSkill
- spectra-askSkill
- spectra-auditSkill
- spectra-commitSkill
- spectra-debugSkill
- spectra-discussSkill
- spectra-driftSkill
- spectra-ingestSkill
- spectra-verifySkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
46 rules. 27 are common, 4 are distinctive, and 15 are very specific to this project.
27
Common
Most of the 4 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
15
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Common: line 12
Create a complete Spectra change proposal — from requirement to validated artifacts — in a single workflow.
- Common: line 20
If no argument is provided, the workflow will extract requirements from conversation context or ask.
- Very specific: line 31
Check if the conversation context mentions a plan file path (plan mode system messages include the path like ~/.claude/plans/<name>.md)
- Very specific: line 32
If found, check if the file exists at ~/.claude/plans/
- Common: line 33
If a plan file is found, use the AskUserQuestion tool to ask:
- Common: line 36
If conversation context has no relevant discussion, mention this when presenting the choice
- Common: line 37
If the user picks the plan file → read it and extract:
- Common: line 42
If the user picks conversation context → fall through to (c)
- Common: line 45
If context is insufficient, use the AskUserQuestion tool to ask what they want to build
- Very specific: line 48
Do not keep archive-style date prefixes in active change names.
- Common: line 50
IMPORTANT: Do NOT proceed without understanding what the user wants to build.
- Common: line 66
Before creating the change, check if any existing specs overlap:
- Very specific: line 67
Use the Glob tool to list all files matching openspec/specs/*/spec.md
- Common: line 71
If related specs are found, display them as an informational summary
- Common: line 74
If related specs are found, display them but do NOT stop or ask for confirmation — continue to the next step
- Common: line 75
If no related specs are found, silently proceed without mentioning the scan
- Common: line 83
If a change with that name already exists, suggest continuing the existing change instead of creating a new one.
- Very specific: line 88
All file paths SHALL be written relative to the project root (e.g., src/lib/foo.ts, src-tauri/crates/core/src/bar.rs, …
- Very specific: line 89
Do NOT use relative fragments (e.g., parser/mod.rs, core/mod.rs) — preflight rejects them as non-anchored paths.
- Very specific: line 90
Do NOT wrap shell commands in backticks inside artifact text (e.g.,
git mv a.rs b.rs) — preflight's backtick extractor will otherwise … - Distinctive: line 91
When referring to a file without naming its concrete path, use descriptive prose (e.g., "Parser 入口檔") rather than a backticked path …
- Distinctive: line 107
If the command fails with a validation error, fix the content and retry.
- Distinctive: line 109
Use the following format based on change type:
- Common: line 236
Read any completed dependency files for context
- Distinctive: line 239
Write the artifact via CLI (the CLI handles directory creation and format validation):
- Very specific: line 262
After creating each artifact, re-run spectra status --change "<name>" --json
- Very specific: line 263
Check if every artifact ID in applyRequires has status: "done"
- Very specific: line 264
Stop when all applyRequires artifacts are done
- Common: line 267
Use AskUserQuestion tool to clarify
- Common: line 272
After creating all artifacts, scan them manually.
- Common: line 287
Do tasks cover all design decisions, and nothing outside proposal scope?
- Common: line 328
If no Critical/Warning findings → show "Artifacts look consistent ✓" and proceed
- Very specific: line 329
If Critical/Warning findings exist: a.
- Common: line 334
After 2 attempts, if findings remain:
- Common: line 344
If validation fails, fix errors and re-validate.
- Very specific: line 367
Follow the instruction field from spectra instructions for each artifact type
- Common: line 368
Read dependency artifacts for context before creating new ones
- Very specific: line 369
Use template as the structure for your output file - fill in its sections
- Very specific: line 371
Do NOT copy <context>, <rules>, <project_context> blocks into the artifact
- Very specific: line 377
Create all artifacts needed for implementation.
- Common: line 378
Always read dependency artifacts before creating a new one
- Common: line 379
If context is critically unclear, ask the user - but prefer making reasonable decisions to keep momentum
- Common: line 380
If a change with that name already exists, suggest continuing that change instead
- Common: line 381
Verify each artifact file exists after writing before proceeding to next
- Common: line 382
NEVER: write application code or implement features during this workflow
- Common: line 386
If AskUserQuestion tool is not available, ask the same questions as plain text and wait for the user's response
“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.
Files
Create a complete Spectra change proposal — from requirement to validated artifacts — in a single workflow.
Input: The argument after /spectra-propose is the requirement description. Examples:
/spectra-propose add dark mode/spectra-propose fix the login page crash/spectra-propose improve search performance
If no argument is provided, the workflow will extract requirements from conversation context or ask.
Prerequisites: This skill requires the spectra CLI. If any spectra command fails with "command not found" or similar, report the error and STOP.
Steps
Determine the requirement source
a. Argument provided (e.g., "add dark mode") → use it as the requirement description, skip to deriving the change name below.
b. Plan file available:
- Check if the conversation context mentions a plan file path (plan mode system messages include the path like
~/.claude/plans/<name>.md) - If found, check if the file exists at
~/.claude/plans/ - If a plan file is found, use the AskUserQuestion tool to ask:
- Option 1: Use the plan file
- Option 2: Use conversation context
- If conversation context has no relevant discussion, mention this when presenting the choice
- If the user picks the plan file → read it and extract:
plan_title(H1 heading) → use as requirement descriptionplan_context(Context section) → use as proposal Why/Motivation contentplan_stages(numbered implementation stages) → use for artifact creationplan_files(all file paths mentioned) → use for Impact section
- If the user picks conversation context → fall through to (c)
c. Conversation context → attempt to extract requirements from conversation history
- If context is insufficient, use the AskUserQuestion tool to ask what they want to build
From the resolved description, derive a kebab-case change name (e.g., "add dark mode" →
add-dark-mode). Do not keep archive-style date prefixes in active change names. If the source name starts withYYYY-MM-DD-, strip that date prefix before runningspectra new change; archived change names and directories are historical references, not active names to reuse.IMPORTANT: Do NOT proceed without understanding what the user wants to build.
- Check if the conversation context mentions a plan file path (plan mode system messages include the path like
Classify the change type
Based on the requirement, classify the change into one of three types:
Type When to use Feature New functionality, new capabilities Bug Fix Fixing existing behavior, resolving errors Refactor Architecture improvements, performance optimization, UI adjustments This determines the proposal template format in step 5.
Scan existing specs for relevance
Before creating the change, check if any existing specs overlap:
- Use the Glob tool to list all files matching
openspec/specs/*/spec.md - Extract directory names as the spec identifier list
- Compare against the user's description to identify related specs (max 5 candidates)
- For each candidate (max 3), read the first 10 lines to retrieve the Purpose section
- If related specs are found, display them as an informational summary
IMPORTANT:
- If related specs are found, display them but do NOT stop or ask for confirmation — continue to the next step
- If no related specs are found, silently proceed without mentioning the scan
- Use the Glob tool to list all files matching
Create the change directory
spectra new change "<name>" --agent claudeIf a change with that name already exists, suggest continuing the existing change instead of creating a new one.
Write the proposal
IMPORTANT — file path rules for the
## Impactsection:- All file paths SHALL be written relative to the project root (e.g.,
src/lib/foo.ts,src-tauri/crates/core/src/bar.rs,docs/specs/specs/auth/spec.md). - Do NOT use relative fragments (e.g.,
parser/mod.rs,core/mod.rs) — preflight rejects them as non-anchored paths. - Do NOT wrap shell commands in backticks inside artifact text (e.g.,
`git mv a.rs b.rs`) — preflight's backtick extractor will otherwise mis-parse the command as a file reference. - When referring to a file without naming its concrete path, use descriptive prose (e.g., "Parser 入口檔") rather than a backticked path fragment.
Get instructions:
spectra instructions proposal --change "<name>" --jsonGenerate the proposal content based on change type (see formats below), then write it via CLI:
spectra new artifact proposal --change "<name>" --stdin <<'ARTIFACT_EOF' <proposal content> ARTIFACT_EOFIf the command fails with a validation error, fix the content and retry.
Use the following format based on change type:
Feature
## Why <!-- Why this functionality is needed --> ## What Changes <!-- What will be different --> ## Non-Goals (optional) <!-- Scope exclusions and rejected approaches. Required when design.md is skipped. --> ## Capabilities ### New Capabilities - `<capability-name>`: <brief description> ### Modified Capabilities (none) ## Impact - Affected specs: <new or modified capabilities> - Affected code: - New: <paths to be created, relative to project root> - Modified: <paths that already exist> - Removed: <paths to be deleted>Bug Fix
## Problem <!-- Current broken behavior --> ## Root Cause <!-- Why it happens --> ## Proposed Solution <!-- How to fix --> ## Non-Goals (optional) <!-- Scope exclusions and rejected approaches. Required when design.md is skipped. --> ## Success Criteria <!-- Expected behavior after fix, verifiable conditions --> ## Impact - Affected code: - Modified: <paths that already exist> - New: <paths to be created, relative to project root> - Removed: <paths to be deleted>Refactor / Enhancement
## Summary <!-- One sentence description --> ## Motivation <!-- Why this is needed --> ## Proposed Solution <!-- How to do it --> ## Non-Goals (optional) <!-- Scope exclusions and rejected approaches. Required when design.md is skipped. --> ## Alternatives Considered (optional) <!-- Other approaches considered and why not --> ## Impact - Affected specs: <affected capabilities> - Affected code: - Modified: <paths that already exist> - New: <paths to be created, relative to project root> - Removed: <paths to be deleted>- All file paths SHALL be written relative to the project root (e.g.,
Get the artifact build order
spectra status --change "<name>" --jsonParse the JSON to get:
applyRequires: array of artifact IDs needed before implementationartifacts: list of all artifacts with their status and dependencies
Create remaining artifacts in sequence
Loop through artifacts in dependency order (skip proposal since it's already done):
a. For each artifact that is
ready(dependencies satisfied):- Check if the artifact is optional: If the artifact is NOT in the dependency chain of any
applyRequiresartifact (i.e., removing it would not block reaching apply), it is optional. Get its instructions and read theinstructionfield. If the instruction contains conditional criteria (e.g., "create only if any apply"), evaluate whether any criteria apply to this change based on the proposal content. If none apply, skip the artifact and show: "⊘ Skipped<artifact-id>(not needed for this change)". Then continue to the next artifact. - Get instructions:
spectra instructions <artifact-id> --change "<name>" --json - The instructions JSON includes:
context: Project background (constraints for you - do NOT include in output)rules: Artifact-specific rules (constraints for you - do NOT include in output)template: The structure to use for your output fileinstruction: Schema-specific guidanceoutputPath: Where to write the artifactdependencies: Completed artifacts to read for contextlocale: The language to write the artifact in (e.g., "Japanese (日本語)"). If present, you MUST write the artifact content in this language. Exception: spec files (specs/*/.md) MUST always be written in English regardless of locale, because they use normative language (SHALL/MUST).
- Read any completed dependency files for context
- Generate the artifact content using
templateas the structure - Apply
contextandrulesas constraints - but do NOT copy them into the file Write the artifact via CLI (the CLI handles directory creation and format validation):
For design or tasks:
spectra new artifact <artifact-id> --change "<name>" --stdin <<'ARTIFACT_EOF' <content> ARTIFACT_EOFFor specs (one command per capability):
spectra new artifact spec <capability-name> --change "<name>" --stdin <<'ARTIFACT_EOF' <delta spec content> ARTIFACT_EOFIf the command fails with a validation error, fix the content and retry.
- Show brief progress: "✓ Created
<artifact-id>"
b. Continue until all
applyRequiresartifacts are complete- After creating each artifact, re-run
spectra status --change "<name>" --json - Check if every artifact ID in
applyRequireshasstatus: "done" - Stop when all
applyRequiresartifacts are done
c. If an artifact requires user input (unclear context):
- Use AskUserQuestion tool to clarify
- Then continue with creation
- Check if the artifact is optional: If the artifact is NOT in the dependency chain of any
Inline Self-Review (before CLI analysis)
After creating all artifacts, scan them manually. Fix issues inline, then proceed to the CLI analyzer.
Check 1: No Placeholders
These patterns are artifact failures — fix each one before proceeding:
- "TBD", "TODO", "FIXME", "implement later", "details to follow"
- Vague instructions: "Add appropriate error handling", "Handle edge cases", "Write tests for the above"
- Delegation by reference: "Similar to Task N" without repeating specifics
- Steps describing WHAT without HOW: "Implement the authentication flow" (what flow? what steps?)
- Empty template sections left unfilled
- Weasel quantities: "some", "various", "several" when a specific number or list is needed
Check 2: Internal Consistency
- Does every capability in the proposal have a corresponding spec?
- Does the design reference only capabilities from the proposal?
- Do tasks cover all design decisions, and nothing outside proposal scope?
- Are file paths consistent across proposal Impact, design, and tasks?
Check 3: Scope Check
- More than 15 pending tasks → consider decomposing into multiple changes
- Any single task would take more than 1 hour → split it
- Touches more than 3 unrelated subsystems → consider splitting
Check 4: Ambiguity Check
- Are success/failure conditions testable and specific?
- Are boundary conditions defined (empty input, max limits, error cases)?
- Could "the system" refer to multiple components? Be explicit.
Check 5: Durable Handoff Review (run BEFORE the CLI analyzer)
This change has to survive being parked or handed to another agent. Reject and fix any of the following:
- File-path-only tasks: a task whose entire description is "edit file X" with no behavior, contract, or verification target. File paths are locator context — the task SHALL still describe what is observably true when complete.
- Line-number-coupled instructions: design or tasks content that points to "line 42" / "the function on lines 80-95" as the only way to identify the work. Source line numbers drift; name the function, command, struct, or behavior instead.
- Vague acceptance criteria: success conditions like "works correctly", "behaves as expected", "handles edge cases" without naming the observable behavior or the verification target (test name, CLI invocation, analyzer rule, manual assertion).
- Missing scope boundaries on non-trivial work: design lacking explicit "in scope" / "out of scope" lines for any change that touches more than one subsystem or introduces new behavior. Trivial artifact-only edits MAY skip this; runtime, build, or tooling effects MUST NOT.
Fix every failure inline using the existing context before running the CLI analyzer. If a failure cannot be fixed without new input from the user, surface it explicitly rather than papering over it.
Rationalization Table
| What You're Thinking | What You Should Do |
| "The requirements are clear enough, no need for discuss" | Fine if true — but check you're not skipping because you're lazy |
| "This artifact isn't needed for this change" | Check applyRequires — if it's in the dependency chain, create it |
| "The spec doesn't need scenarios, the requirement is obvious" | Obvious to you now. Write scenarios for the implementer who doesn't have your context |
| "I'll keep the design brief, code will be self-explanatory" | Design exists so implementers don't reverse-engineer intent. Be specific |
| "This is a small change, skip the scope check" | Small changes touching 5 subsystems aren't small. Check |
| "The placeholder is fine for now, I'll fill it in later" | There is no "later" — implementation is next. Fill it in now |
- Analyze-Fix Loop (max 2 iterations)
- Run
spectra analyze <change-name> --json - Filter findings to Critical and Warning only (ignore Suggestion)
- If no Critical/Warning findings → show "Artifacts look consistent ✓" and proceed
- If Critical/Warning findings exist:
a. Show: "Found N issue(s), fixing... (attempt M/2)"
b. Fix each finding in the affected artifact
c. Re-run
spectra analyze <change-name> --jsond. Repeat up to 2 total iterations - After 2 attempts, if findings remain:
- Show remaining findings as a summary
- Proceed normally (do NOT block)
- Run
Validation
spectra validate "<name>"If validation fails, fix errors and re-validate.
Park the change and end the workflow
Show summary:
- Change name and location
- List of artifacts created
- Validation result
Then unconditionally execute:
spectra park "<name>"Inform the user that the change is parked and that running
/spectra-apply <change-name>when ready will auto-unpark the change and start implementation.If you are currently in Codex Plan Mode, also remind the user to switch the session to normal mode before running
/spectra-apply <change-name>. This is only a reminder: do NOT try to use ExitPlanMode or EnterPlanMode, do NOT ask whether to switch modes, and do NOT invoke apply.The propose workflow ENDS here. Do NOT invoke
/spectra-apply. Do NOT call AskUserQuestion to ask whether to park or apply. This behavior is identical across Auto Mode, interactive mode, and any other agent mode — parking is unconditional and does not depend onAskUserQuestionavailability or UI auto-accept settings.
Artifact Creation Guidelines
- Follow the
instructionfield fromspectra instructionsfor each artifact type - Read dependency artifacts for context before creating new ones
- Use
templateas the structure for your output file - fill in its sections - IMPORTANT:
contextandrulesare constraints for YOU, not content for the file- Do NOT copy
<context>,<rules>,<project_context>blocks into the artifact - These guide what you write, but should never appear in the output
- Do NOT copy
- Parallel task markers (
[P]): When creating the tasks artifact, first read.spectra.yaml. Ifparallel_tasks: trueis set, add[P]markers to tasks that can be executed in parallel. Format:- [ ] [P] Task description. A task qualifies for[P]if it targets different files from other pending tasks AND has no dependency on incomplete tasks in the same group. Whenparallel_tasksis not enabled, do NOT add[P]markers.
Guardrails
- Create all artifacts needed for implementation. Optional artifacts (those not in the
applyRequiresdependency chain) may be skipped if their inclusion criteria don't apply. - Always read dependency artifacts before creating a new one
- If context is critically unclear, ask the user - but prefer making reasonable decisions to keep momentum
- If a change with that name already exists, suggest continuing that change instead
- Verify each artifact file exists after writing before proceeding to next
- NEVER write application code or implement features during this workflow
- NEVER skip the artifact workflow to write code directly
- NEVER reinterpret requirements by ignoring the proposal file
- NEVER invoke
/spectra-apply— this workflow ends after artifact creation. The user decides when to start implementation - If AskUserQuestion tool is not available, ask the same questions as plain text and wait for the user's response
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.

