octospec-finish

octospec-finish is a command for Claude Code from Mininglamp-OSS/octo-spec. It costs 17 tokens per session (675 once invoked), scanned A, original, Apache-2.0.

A command for the final phase of an octo-spec coding task. It runs the last checks, records what changed, and documents reusable lessons in the repository.

In plain words
What is it for?
Use it to finish a task, update the octo-spec journal and log, and promote useful findings into repository rules.
Why use it?
It creates a visible record of the completed work and ensures linting, type checks, and tests are run before completion.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Good fit Use it to finish a task, update the octo-spec journal and log, and promote useful findings into repository rules.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/mininglamp-oss/octo-spec/octospec-finish
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/Mininglamp-OSS/octo-spec

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 octospec-finish

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/mininglamp-oss/octo-spec/octospec-finish"><img src="https://agentmods.dev/badge/commands/mininglamp-oss/octo-spec/octospec-finish.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 675 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.00017 $0.00675
Opus 5 $0.00009 $0.00338
Sonnet 5 $0.00003 $0.00135
Haiku 4.5 $0.00002 $0.00068

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

Security

Grade A, and why

octospec-finish 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 12d 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.

templates/octospec-init/.claude/commands/octospec-finish.md · 40 lines

What it actually says

You are running the octospec Finish phase for task $ARGUMENTS.

  1. Run the final verification gate one more time (lint / type-check / tests).
  2. Write .octospec/journal/shared/$ARGUMENTS.md — a short, team-visible record: what was done, any structural learning, any gotcha worth remembering. Start the file with OKF frontmatter (type: Journal, plus title/description/ tags/timestamp) so it stays a valid OKF unit and passes octospec-lint. Also add a dated entry to .octospec/log.md (create it if missing).
  3. Learning promotion (in-place write-back, same PR). If this task produced a reusable learning, land it in this same PR — do NOT stage it in learnings/pending/ for a separate PR or a later move (that PR never happens, so the learning stays stranded on the feature branch). Two cases:
    • Existing rule applies → edit the relevant .octospec/rules/<rule>.md in place (add/refine a bullet), bump its timestamp, and note the change in the journal. The PR review IS the gate for the rule edit.
    • No rule fits yet → create a new .octospec/rules/<slug>.md with full OKF frontmatter (type: Rule, title, description, inject_when, priority, load_bearing, tier, source, timestamp) and add it to rules/_index.yaml. The helper .octospec/scripts/octospec-update-spec.sh gives you the raw material for this — --kind=rule writes a rule draft to learnings/pending/<slug>-rule-draft.md plus a promotion block (proposed body + COMPREHENSION questions) on stdout; --kind=task writes a per-actor journal entry. The helper never auto-writes rules/ (that keeps the comprehension gate human), so you copy the draft into rules/<id>.md and update _index.yaml here, in this PR — then drop the scratch draft. The draft is in-PR scratch, not a deliverable to promote later. Only leave something in learnings/pending/ when the learning is genuinely unresolved (needs human design before it can become a rule) — pending is for open questions, not for finished learnings awaiting a phantom review PR.
  4. Open a PR. Pre-fill the body using .github/PULL_REQUEST_TEMPLATE.md:
    • Linked Spec.octospec/tasks/$ARGUMENTS/brief.md
    • COMPREHENSION three questions answered to substance (for load-bearing / architectural / P0 changes; omit for trivial ones).
  5. Commit with a Conventional Commit message referencing the issue.
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. 12d ago First seen · 40 lines · 17 tokens per session scan A 88f81436dc43

Subscribe to this mod's changes

octospec-finish is a command published in the GitHub repository Mininglamp-OSS/octo-spec (19 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 17 tokens to every session and 675 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-30.