close-spec

close-spec is a command for Claude Code, Cursor from jabrena/plinth. It costs 9 tokens per session (399 once invoked), scanned A, original, Apache-2.0.

A command that archives a completed OpenSpec change, where an OpenSpec change is a named set of proposed project work. It checks that the command-line tool and change exist before archiving.

In plain words
What is it for?
Run `/close-spec <change-name>` from the documentation directory after an OpenSpec change is complete.
Why use it?
It removes completed changes from the active list and reports missing prerequisites or failed archive operations.

Command for Claude CodeCursor

Written for Claude Code and Cursor: argument-hint in frontmatter, but also installed under .cursor/. Also seen: model in frontmatter.

Good fit Run /close-spec from the documentation directory after an OpenSpec change is complete.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/jabrena/plinth/close-spec
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.

Clone the repo
git clone --depth 1 https://github.com/jabrena/plinth

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 close-spec

README.md
[![agentmods](https://agentmods.dev/badge/commands/jabrena/plinth/close-spec/github.svg)](https://agentmods.dev/commands/jabrena/plinth/close-spec)
Your own site
<a href="https://agentmods.dev/commands/jabrena/plinth/close-spec"><img src="https://agentmods.dev/badge/commands/jabrena/plinth/close-spec/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 close-spec

Your own site · 80×15
<a href="https://agentmods.dev/commands/jabrena/plinth/close-spec"><img src="https://agentmods.dev/badge/commands/jabrena/plinth/close-spec.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 9 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 399 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.00009 $0.00399
Opus 5.5 $0.00004 $0.00160
Sonnet 5.5 $0.00002 $0.00080
Haiku 4.5 $0.00001 $0.00040

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

Security

Grade A, and why

close-spec 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 3mo 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/close-spec.md · 49 lines

What it actually says

close-spec

Archive an OpenSpec change by name, using the OpenSpec CLI, so completed changes can be reconciled and removed from the active change list.

Usage

/close-spec <change-name>

Inputs

  • <change-name>: the OpenSpec change name to archive (for example add-close-spec-command)

Owner

@plinth-architect

Workflow

  1. Validate the argument is present.
    • If missing, print usage: /close-spec <change-name> and stop.
  2. Verify the OpenSpec CLI is available (for example, openspec --version).
    • If OpenSpec cannot be executed, report the missing prerequisite and provide a short hint to install/enable OpenSpec.
  3. Verify the change exists before attempting to archive it.
    • Prefer checking openspec list and matching <change-name>, or
    • Use openspec show <change-name> and treat “not found” as an unknown-change error.
    • If the change is unknown, report that the change was not found and suggest running openspec list.
  4. From the documentation/ working directory, execute the equivalent of:
    • openspec archive <change-name>
  5. If the archive command fails, surface the OpenSpec CLI output and stop (do not claim success).
  6. If the archive command succeeds, report a success message that includes <change-name>.

Safeguards

  • Do not guess or auto-correct the change name.
  • Do not claim success when openspec archive fails; surface the CLI output.
  • Do not run openspec archive unless the change exists.
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. 3mo ago First seen · 49 lines · 9 tokens per session scan A 5d18c50d32c8

Subscribe to this mod's changes

close-spec is a command published in the GitHub repository jabrena/plinth (469 stars, last pushed yesterday), licensed Apache-2.0. It adds 9 tokens to every session and 399 once invoked, about $0.0000 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.

Related

close-spec compared with commands from other repositories

close-spec next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
close-specjabrena/plinthCommand469yesterdayApache-2.0A9Claude Code, Cursor
earningslongbridge/skillsCommand754d agoMITA23Claude Code
skill-evalcitedy/skillsCommand26mo agoMITA35Claude Code
startjperrello/C0BALT_CUTCommand34mo agononeA62Claude Code
resolve-review.bodysergeyklay/.agentsCommand64d agoApache-2.0A0Claude Code
checklistgithub/spec-kitCommand153k3d agoMITA13Claude Code
clarifygithub/spec-kitCommand153k3d agoMITA27Claude Code