openspec-propose

openspec-propose is a skill for Claude Code, Codex from cp-yu/cc-switch-web. It costs 47 tokens per session (2,159 once invoked), scanned A, original, MIT.

A change-planning tool that turns a build or fix request into a ready-to-implement proposal. It creates documents explaining what to change, how to build it, and the implementation steps.

In plain words
What is it for?
Use it to start a named project change and generate its proposal, design, specification details, and task list in one step.
Why use it?
It removes the need to prepare these planning documents separately before coding. It also makes the intended change clearer before implementation begins.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/cp-yu/cc-switch-web/openspec-propose
Any agent
npx skills add cp-yu/cc-switch-web --skill openspec-propose
Clone the repo
git clone --depth 1 https://github.com/cp-yu/cc-switch-web

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for openspec-propose

README.md
[![agentmods](https://agentmods.dev/badge/skills/cp-yu/cc-switch-web/openspec-propose.svg)](https://agentmods.dev/skills/cp-yu/cc-switch-web/openspec-propose)
Your own site
<a href="https://agentmods.dev/skills/cp-yu/cc-switch-web/openspec-propose"><img src="https://agentmods.dev/badge/skills/cp-yu/cc-switch-web/openspec-propose.svg" alt="Measured on agentmods" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,159 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00047 $0.02159
Opus 5 $0.00023 $0.01079
Sonnet 5 $0.00009 $0.00432
Haiku 4.5 $0.00005 $0.00216

Measured 4d ago against content hash 9a438bc384ef, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

openspec-propose scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/skills/openspec-propose/SKILL.md · 184 lines

How it starts

The opening of the file, as written. The whole thing — 184 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Propose a new change - create the change and generate all artifacts in one step.

I'll create a change with artifacts:

  • proposal.md (what & why)
  • design.md (how)
  • tasks.md (implementation steps)
  • opsx-delta.yaml (project OPSX delta, generated after specs are clear)

When ready to implement, run /opsx:apply


Input: The user's request should include a change name (kebab-case) OR a description of what they want to build.

Steps

  1. If no clear input provided, ask what they want to build

    Use the AskUserQuestion tool (open-ended, no preset options) to ask:

    "What change do you want to work on? Describe what you want to build or fix."

    From their description, derive a kebab-case name (e.g., "add user authentication" → add-user-auth).

    IMPORTANT: Do NOT proceed without understanding what the user wants to build.

  2. Create the change directory

    openspec new change "<name>"
    

    This creates a scaffolded change at openspec/changes/<name>/ with .openspec.yaml.

  3. Get the artifact build order

    openspec status --change "<name>" --json
    

    Parse the JSON to get:

    • applyRequires: array of artifact IDs needed before implementation (e.g., ["tasks"])
    • artifacts: list of all artifacts with their status and dependencies

Before reading other context files, check whether openspec/project.opsx.yaml exists.

  • If it exists, read it first for domains → capabilities structure
  • Check openspec/project.opsx.code-map.yaml for code location references
  • Check openspec/specs/ for behavior documentation
  • Treat it as navigation context, not as a replacement for change artifacts
  1. Create artifacts in sequence until apply-ready

    Use the TodoWrite tool to track progress through the artifacts.

    Loop through artifacts in dependency order (artifacts with no pending dependencies first):

    a. For each artifact that is ready (dependencies satisfied):

    • Get instructions:
      openspec 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 file
      • instruction: Schema-specific guidance for this artifact type
      • outputPath: Where to write the artifact
      • dependencies: Completed artifacts to read for context
    • Read any completed dependency files for context
    • Create the artifact file using template as the structure
    • Apply context and rules as constraints - but do NOT copy them into the file
    • Show brief progress: "Created "

    b. Continue until all applyRequires artifacts are complete

    • After creating each artifact, re-run openspec status --change "<name>" --json
    • Check if every artifact ID in applyRequires has status: "done" in the artifacts array
    • Stop when all applyRequires artifacts are done

    c. If an artifact requires user input (unclear context):

    • Use AskUserQuestion tool to clarify
    • Then continue with creation

    d. After the specs artifact is complete in a spec-driven change, generate opsx-delta.yaml Generate opsx-delta.yaml:

  • Read openspec instructions opsx-delta --change "<name>" --json
  • Use the returned template, instruction, and outputPath to generate opsx-delta.yaml
  • Read proposal.md to extract the capability list
  • Read all delta specs in openspec/changes/<name>/specs/*/spec.md
  • Read openspec/project.opsx.yaml if it exists for current-system context
  • Treat ADDED, MODIFIED, and REMOVED as YAML object keys, not Markdown headings
  • Follow a concrete YAML object structure such as:
    schema_version: 1
    ADDED:
      capabilities:
        - id: cap.example.feature
          type: capability
          intent: Describe the new capability
      relations:
        - from: cap.example.feature
          type: contains
          to: dom.example
    MODIFIED:
      capabilities:
        - id: cap.example.existing
          intent: Updated intent text
    REMOVED:
      capabilities:
        - id: cap.example.legacy
    
  • Delta nodes contain only id, type, intent, status — no code_refs or spec_refs
  • Keep this agent-driven: capture merge intent in the YAML, not in programmatic code

Read the full file on GitHub · 184 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 184 lines · 47 tokens per session scan A 9a438bc384ef

Subscribe to this mod's changes

openspec-propose is a skill published in the GitHub repository cp-yu/cc-switch-web (42 stars, last pushed 1mo ago), licensed MIT. It adds 47 tokens to every session and 2,159 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.

obra/superpowers · 37 tokens

auto-perf-optimize

Run agent-driven VS Code performance or memory investigations. Use when asked to launch Code OSS, automate a VS Code scenario, run the Chat memory smoke runner, capture renderer heap snapshots, take workflow screenshots, compare run summaries, or drive a repeatable scenario before heap-snapshot analysis.

microsoft/vscode · 62 tokens

chat-perf

Run chat perf benchmarks and memory leak checks against the local dev build or any published VS Code version. Use when investigating chat rendering regressions, validating perf-sensitive changes to chat UI, or checking for memory leaks in the chat response pipeline.

microsoft/vscode · 51 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens