mac-shell-mcp: Command for Claude Code

.claude/commands/opsx/propose.md

OPSX: Propose is a command for Claude Code from cfdude/mac-shell-mcp. It costs 21 tokens per session (2,609 once invoked), scanned A, a copy of OPSX: Propose, MIT.

A workflow command that creates a proposed software change and its planning documents in one step. The documents can describe the reason, requirements, design, and implementation tasks.

In plain words
What is it for?
Use it to create an OpenSpec change with a proposal, specification updates, design, and task list; it does not implement the change.
Why use it?
It separates planning from coding, so a proposed change can be reviewed before project files are edited.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

This is cfdude/mac-shell-mcp's own configuration. It tells Claude Code how to work on mac-shell-mcp 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 mac-shell-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to cfdude/mac-shell-mcp. 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/cfdude/mac-shell-mcp/main/.claude/commands/opsx/propose.md
Clone the repo
git clone --depth 1 https://github.com/cfdude/mac-shell-mcp

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/cfdude/mac-shell-mcp/propose/github.svg)](https://agentmods.dev/commands/cfdude/mac-shell-mcp/propose)
Your own site
<a href="https://agentmods.dev/commands/cfdude/mac-shell-mcp/propose"><img src="https://agentmods.dev/badge/commands/cfdude/mac-shell-mcp/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/cfdude/mac-shell-mcp/propose"><img src="https://agentmods.dev/badge/commands/cfdude/mac-shell-mcp/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,609 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 94% copy Near-identical to another mod 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.02609
Opus 5.5 $0.00008 $0.01044
Sonnet 5.5 $0.00004 $0.00522
Haiku 4.5 $0.00002 $0.00261

Measured 1mo ago against content hash db5b52f9a763, 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

This is a copy

94% identical to OPSX: Propose — 22 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

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

How it starts

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

    Use the configured default schema unless the user explicitly requests a different workflow.

    Use a different schema only if the user:

    • Explicitly requests a specific schema by name → use --schema <schema-name>
    • Asks to "show workflows" or asks "what workflows" exist → resolve the authoritative root by running openspec context --json from the current working directory. If the user explicitly selected a registered store, use openspec context --json --store "<store-id>". Then run openspec schemas --json with its working directory set to the returned root.path and let them choose. This preserves roots selected by a local store: pointer or the global defaultStore; when a registered store was explicitly selected, append --store "<store-id>" to openspec schemas --json as well. If context reports only no_openspec_root, run openspec schemas --json from the current working directory instead. Do not use this fallback for invalid or unavailable stores.

    Otherwise, omit --schema to preserve the configured default.

  3. Create the change directory

    Choose one schema form below. If a registered store is selected, append --store "<store-id>" to that command and each later OpenSpec command shown below that accepts --store.

Read the full file on GitHub · 150 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 First seen · 150 lines · 21 tokens per session scan A db5b52f9a763

Subscribe to this mod's changes

OPSX: Propose is a command published in the GitHub repository cfdude/mac-shell-mcp (27 stars, last pushed yesterday), licensed MIT. It adds 21 tokens to every session and 2,609 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 94% identical to OPSX: Propose, differing in 22 lines, and is treated as a copy.