joplin-llm-wiki: Command for Claude Code

.cursor/commands/spectra-ingest.md

/spectra-ingest is a command for Claude Code, Cursor from gcake119/joplin-llm-wiki. It costs 19 tokens per session (3,269 once invoked), scanned A, original, MIT.

A workflow for updating an existing Spectra change from a plan file or the current conversation.

In plain words
What is it for?
Use it to find a plan, choose the requirement source, and revise the change's documents.
Why use it?
It turns newly clarified requirements into updates to an existing change instead of leaving its documents out of date.

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 Claude Code.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/gcake119/joplin-llm-wiki/spectra-ingest"><img src="https://agentmods.dev/badge/commands/gcake119/joplin-llm-wiki/spectra-ingest.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,269 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.00019 $0.03269
Opus 5 $0.00010 $0.01635
Sonnet 5 $0.00004 $0.00654
Haiku 4.5 $0.00002 $0.00327

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

Security

Grade A, and why

/spectra-ingest 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 11d 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-ingest.md · 264 lines

How it starts

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

Update an existing Spectra change — from a plan file or conversation context.

Plan file support is available when the tool has a plan directory (.cursor/plans/). Otherwise, use conversation context to update artifacts.

Prerequisites: This skill requires the spectra CLI. If any spectra command fails with "command not found" or similar, report the error and STOP.

Input: Optionally specify a plan file path or name.

  • /spectra:ingest .cursor/plans/agile-discovering-rocket.md
  • /spectra:ingest agile-discovering-rocket
  • /spectra:ingest (use conversation context or auto-detect plan file)

Steps

  1. Locate the requirement source

    a. Argument provided → treat as plan file reference (prepend .cursor/plans/ and append .md if needed)

    • If the file exists → use it as the plan file source, proceed to Step 2
    • If the file does NOT exist → report the error and stop

    b. No argument, plan file detectable:

    • Check conversation context for plan file path (plan mode system messages include the path like .cursor/plans/<name>.md)
    • If found and the file exists → use the AskUserQuestion tool to ask:
      • Option 1: Use the plan file
      • Option 2: Use conversation context
    • If the user picks plan file → proceed to Step 2
    • If the user picks conversation context → skip Step 2, go to Step 3

    c. No argument, no plan file detectable:

    • Check .cursor/plans/ for recent files
    • If recent files exist → list 5 most recent with the AskUserQuestion tool, include "Use conversation context" as an additional option
    • If the user picks a file → proceed to Step 2
    • If the user picks conversation context → skip Step 2, go to Step 3

    d. Conversation context fallback (no plan files found at all):

    • Use conversation context to update artifacts
    • If conversation context is insufficient, use the AskUserQuestion tool to get more details
    • Warn: "No plan file found. Using conversation context."
  2. Parse the plan structure (skip if using conversation context)

    Claude Code plan files typically contain:

    • Title (# ...) — the high-level goal
    • Context section — background, motivation, current state
    • Stages/Steps — numbered implementation stages with goals and file lists
    • Files involved — list of files to modify/create
    • Verification section — how to test the changes

    Extract:

    • plan_title: from the H1 heading
    • plan_context: from the Context section
    • plan_stages: each numbered stage with its goal and file list
    • plan_files: all file paths mentioned
    • plan_verification: verification steps
  3. Check for active changes (REQUIRED — ingest only updates existing changes)

    spectra list --json
    

    Also check for parked changes:

    spectra list --parked --json
    

    Parse both JSON outputs to get the full list of changes (active + parked). Parked changes should be annotated with "(parked)" in any selection list.

    • If one change exists (active or parked) → use the AskUserQuestion tool to confirm updating it
    • If multiple changes exist → use the AskUserQuestion tool to let user pick which one to update
    • If no changes at all (neither active nor parked) → tell the user: "No active change found. Use /spectra:propose first to create one." and stop
  4. Select the change

    After selecting the change, check if it is parked:

    spectra list --parked --json
    

    If the selected change appears in the parked array:

    • Inform the user that this change is currently parked(暫存)
    • Use AskUserQuestion tool to ask: continue (unpark) or cancel
    • If continue: run spectra unpark "<name>" then proceed
    • If cancel: stop the workflow

    If there is no AskUserQuestion tool available (non-Claude-Code environment): Inform the user that this change is currently parked(暫存)and ask via plain text whether to unpark and continue, or cancel. Wait for the user's response. If the user confirms, run spectra unpark "<name>" then proceed.

Read the full file on GitHub · 264 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. 11d ago First seen · 264 lines · 19 tokens per session scan A def954903e1a

Subscribe to this mod's changes

/spectra-ingest is a command published in the GitHub repository gcake119/joplin-llm-wiki (2 stars, last pushed 3mo ago), licensed MIT. It adds 19 tokens to every session and 3,269 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.