joplin-llm-wiki: Command for Claude Code

.cursor/commands/spectra-propose.md

/spectra-propose is a command for Claude Code, Cursor from gcake119/joplin-llm-wiki. It costs 18 tokens per session (4,014 once invoked), scanned A, original, MIT.

A workflow for creating a complete Spectra change proposal from a requirement.

In plain words
What is it for?
Use it to propose features, fixes, or improvements from a written request or conversation context.
Why use it?
It organizes a requested change into the documents needed for planning and validation before implementation begins.

Command for Claude CodeCursor

Written for Cursor and Claude Code: installed under .cursor/, but also a Claude Code command (commands/*.md). Also seen: names the AskUserQuestion tool; mentions Codex.

This is gcake119/joplin-llm-wiki's own configuration. It tells Claude Code and Cursor how to work on joplin-llm-wiki 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 joplin-llm-wiki configures →

Reuse

Borrowing it

Nothing to install: this file belongs to gcake119/joplin-llm-wiki. 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/gcake119/joplin-llm-wiki/main/.cursor/commands/spectra-propose.md
Clone the repo
git clone --depth 1 https://github.com/gcake119/joplin-llm-wiki

Made for: Claude Code, Cursor.

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 /spectra-propose

README.md
[![agentmods](https://agentmods.dev/badge/commands/gcake119/joplin-llm-wiki/spectra-propose/github.svg)](https://agentmods.dev/commands/gcake119/joplin-llm-wiki/spectra-propose)
Your own site
<a href="https://agentmods.dev/commands/gcake119/joplin-llm-wiki/spectra-propose"><img src="https://agentmods.dev/badge/commands/gcake119/joplin-llm-wiki/spectra-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 /spectra-propose

Your own site · 80×15
<a href="https://agentmods.dev/commands/gcake119/joplin-llm-wiki/spectra-propose"><img src="https://agentmods.dev/badge/commands/gcake119/joplin-llm-wiki/spectra-propose.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,014 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.00018 $0.04014
Opus 5 $0.00009 $0.02007
Sonnet 5 $0.00004 $0.00803
Haiku 4.5 $0.00002 $0.00401

Measured 10d ago against content hash d759c52b05f3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

/spectra-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 10d 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.

.cursor/commands/spectra-propose.md · 387 lines

How it starts

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

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

  1. 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 .cursor/plans/<name>.md)
    • If found, check if the file exists at .cursor/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 description
      • plan_context (Context section) → use as proposal Why/Motivation content
      • plan_stages (numbered implementation stages) → use for artifact creation
      • plan_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 with YYYY-MM-DD-, strip that date prefix before running spectra 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.

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

  3. Scan existing specs for relevance

    Before creating the change, check if any existing specs overlap:

    1. Use the Glob tool to list all files matching openspec/specs/*/spec.md
    2. Extract directory names as the spec identifier list
    3. Compare against the user's description to identify related specs (max 5 candidates)
    4. For each candidate (max 3), read the first 10 lines to retrieve the Purpose section
    5. 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
  4. Create the change directory

    spectra new change "<name>" --agent cursor
    

    If a change with that name already exists, suggest continuing the existing change instead of creating a new one.

  5. Write the proposal

    IMPORTANT — file path rules for the ## Impact section:

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

Read the full file on GitHub · 387 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. 10d ago First seen · 387 lines · 18 tokens per session scan A d759c52b05f3

Subscribe to this mod's changes

/spectra-propose is a command published in the GitHub repository gcake119/joplin-llm-wiki (2 stars, last pushed 3mo ago), licensed MIT. It adds 18 tokens to every session and 4,014 once invoked, about $0.0001 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-31.