OpenSpec-practise: Command for Claude Code

.claude/commands/opsx/propose.md

OPSX: Propose is a command for Claude Code from ForceInjection/OpenSpec-practise. It costs 21 tokens per session (2,948 once invoked), scanned A, original, Apache-2.0.

A command that creates a proposed change and generates its planning documents, such as a proposal, specification updates, design, and task list. It stops after planning and does not modify project code.

In plain words
What is it for?
Use it to prepare a spec-driven change, including its rationale, requirements, technical design, and implementation tasks, with an optional OpenSpec store selection.
Why use it?
It turns a requested change into a structured plan while keeping planning separate from implementation.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

This is ForceInjection/OpenSpec-practise's own configuration. It tells Claude Code how to work on OpenSpec-practise itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything OpenSpec-practise configures →

Reuse

Borrowing it

Nothing to install: this file belongs to ForceInjection/OpenSpec-practise. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/ForceInjection/OpenSpec-practise/main/.claude/commands/opsx/propose.md
Clone the repo
git clone --depth 1 https://github.com/ForceInjection/OpenSpec-practise

Made for: Claude Code.

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 OPSX: Propose

README.md
[![agentmods](https://agentmods.dev/badge/commands/forceinjection/openspec-practise/propose/github.svg)](https://agentmods.dev/commands/forceinjection/openspec-practise/propose)
Your own site
<a href="https://agentmods.dev/commands/forceinjection/openspec-practise/propose"><img src="https://agentmods.dev/badge/commands/forceinjection/openspec-practise/propose/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for OPSX: Propose

Your own site · 80×15
<a href="https://agentmods.dev/commands/forceinjection/openspec-practise/propose"><img src="https://agentmods.dev/badge/commands/forceinjection/openspec-practise/propose.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,948 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00021 $0.02948
Opus 5.5 $0.00008 $0.01179
Sonnet 5.5 $0.00004 $0.00590
Haiku 4.5 $0.00002 $0.00295

Measured 1mo ago against content hash 8a28d17caac1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

OPSX: 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 1mo 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.

Origin

Copies of this mod

8 near-identical copies found in the catalogue:

.claude/commands/opsx/propose.md · 160 lines

How it starts

The opening of the file, as written. The whole thing — 160 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.

Planning boundary: This workflow creates planning artifacts only. The user request that selected or triggered this workflow authorizes planning only, even if it asks to build or fix something. Do not edit project code. After the planning artifacts are complete, stop. Do not start implementation in the same response, even if the initial request asks for it. Wait for a new user request after the artifacts are presented; then start the apply workflow.

I'll create a change with the artifacts your schema defines. With the default spec-driven schema that is:

  • proposal.md (what & why)
  • specs/<capability-path>/spec.md (what the system must do - a delta, not the main spec)
  • design.md (how)
  • tasks.md (implementation steps)

<capability-path> is the spec directory relative to specs/ (for example, user-auth or identity/user-auth). Preserve an existing capability's full path and follow the project's established organization for new capabilities.

When the user is ready to implement, they must start the apply workflow explicitly.


Store selection: If the user names a store (a store is a standalone OpenSpec repo registered on this machine) or the work lives in one, run openspec store list --json to discover registered store ids, then pass --store <id> on the commands that read or write specs and changes (new change, status, instructions, list, show, validate, archive, doctor, context, schemas, view). Once selected, treat --store <id> as sticky for the rest of the workflow. Every unscoped example of those commands below is shorthand: before running it, append the flag. For example, run openspec status --change "<name>" --json --store "<id>", not the unscoped form shown below. Other commands do not take the flag. Hints printed by commands already carry the flag; keep it on follow-ups. Without a store, commands act on the nearest local openspec/ root.

Input: The argument after /opsx:propose is the change name (kebab-case), OR a description of what the user wants to build.

Steps

  1. Understand the request and clarify material ambiguity

    If no input is provided, ask the user (open-ended, no preset options):

    "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.

    If the request contains ambiguity that would materially affect scope, externally observable behavior, compatibility, or acceptance criteria, ask the user before creating the change. For minor details, make a reasonable assumption and record it in the planning artifacts.

  2. Load project context

    Run openspec context --json from the current working directory (or openspec context --json --store "<store-id>" when a registered store was explicitly selected). Use the returned root.path as the authoritative OpenSpec root. If context reports no_openspec_root, stop without creating or changing any files. Offer openspec init and wait for the user to request initialization. Do not initialize automatically or run openspec new change. After initialization, rerun this context check before continuing. For any other context failure, stop and report the error; do not fall back to the current directory or run later OpenSpec commands without the selected store.

    Only when context returns a resolved root.path, read <root.path>/openspec/config.yaml. Use config.yml only when config.yaml does not exist. If neither file exists, continue without project context. Do not fall back to config.yml if config.yaml is unreadable or invalid.

    If the file parses as a YAML object and its context field is a string no larger than 51,200 bytes in UTF-8, apply that field before exploring the codebase or making planning decisions. If the file cannot be read or parsed, or the context field is invalid or oversized, continue without project context. Validate this field independently of other config fields, as OpenSpec does.

Read the full file on GitHub · 160 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. 1mo ago Changed · +14 lines 8a28d17caac1
  2. 1mo ago First seen · 146 lines · 21 tokens per session scan A 66945fbaf818

Subscribe to this mod's changes

OPSX: Propose is a command published in the GitHub repository ForceInjection/OpenSpec-practise (631 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 21 tokens to every session and 2,948 once invoked, about $0.0001 per session on Opus 5.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.