speckit.companion.amend

speckit.companion.amend is a command for Claude Code from alfredoperez/speckit-companion. It costs 31 tokens per session (1,072 once invoked), scanned A, original, MIT.

A command for changing an active software specification in place after planning or implementation. A software specification is a written description of what a feature must do.

In plain words
What is it for?
Use it to amend a feature specification, record the change, and re-plan when a requirement was added or removed.
Why use it?
It keeps requirement changes recorded and avoids repeating the planning process when the requirements did not change. It also prevents a missing Python installation from stopping the host command.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md). Also seen: mentions Claude Code.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 .specify/extensions/companion/scripts/write-context.py --feature-dir <feature_directory> --amend '{"what": "...", "why": "...", "by": "you", "replanned".

Good fit Use it to amend a feature specification, record the change, and re-plan when a requirement was added or removed.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/alfredoperez/speckit-companion
agentmods
npx agentmods add commands/alfredoperez/speckit-companion/speckit.companion.amend

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 speckit.companion.amend

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/alfredoperez/speckit-companion/speckit.companion.amend"><img src="https://agentmods.dev/badge/commands/alfredoperez/speckit-companion/speckit.companion.amend.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,072 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.00031 $0.01072
Opus 5.5 $0.00012 $0.00429
Sonnet 5.5 $0.00006 $0.00214
Haiku 4.5 $0.00003 $0.00107

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

Security

Grade A, and why

speckit.companion.amend 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 5d 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.

apps/speckit-extension/commands/speckit.companion.amend.md · 70 lines

How it starts

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

Amend Spec

Change the active spec in place. This command edits spec.md with the change you describe, records it in .spec-context.json, and re-plans only when the requirements changed.

Name every command the way this project registers it

Commands are named in dot form throughout this body, speckit.companion.plan, because that is their canonical id, and without a leading slash, because the spelling a host actually registers is not always this one. Claude Code installs /speckit-companion-plan. Look at how the commands are installed in this project, under the agent's own commands or skills directory, and use that spelling every time you name one to the developer or dispatch one yourself. A dotted name typed into a host that registered dashes resolves to nothing at all.

Prerequisites

  • Verify Python is available by running python3 --version.
  • If python3 is not available, warn the user and skip: [companion] Warning: python3 not detected; skipped amend. Do not fail the host command.

Execution

  1. Resolve the feature directory. Use the one in the input, else the feature_directory in .specify/feature.json. If it has no spec.md, stop and tell the user to run specify first.

  2. Read the requirement list (the FR- lines) in spec.md before you touch it.

  3. Edit spec.md in place with the change the user described. Never start a new spec: never mint a folder and never run mint-spec-dir. The change belongs to this spec.

  4. Read the requirement list again and compare. A requirement added or removed means re-plan; wording only means no re-plan.

  5. Re-plan only when a requirement was added or removed. First point .specify/feature.json at this spec by writing {"feature_directory": "<feature_directory>"}, because plan and converge read their target from it. Then invoke speckit.companion.plan <feature_directory>, then speckit.converge <feature_directory>. For wording only, run neither. If either fails, record a --concern that names the step and says the plan or tasks are now behind the spec.

Read the full file on GitHub · 70 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. 5d ago First seen · 70 lines · 31 tokens per session scan A eef726187886

Subscribe to this mod's changes

speckit.companion.amend is a command published in the GitHub repository alfredoperez/speckit-companion (111 stars, last pushed 3d ago), licensed MIT. It adds 31 tokens to every session and 1,072 once invoked, about $0.0001 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-11-25.

Related

speckit.companion.amend compared with commands from other repositories

speckit.companion.amend next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
speckit.companion.amendalfredoperez/speckit-companionCommand1113d agoMITA31Claude Code
debugtruffle-ai/dextoCommand661yesterdaynoneA12Claude Code
explaintruffle-ai/dextoCommand661yesterdaynoneA14Claude Code
zooza-setupzooza-dev/zooza-mcp-serverCommand67d agoMITA21Claude Code
create-storefabioc-aloha/Alex_Plug_InCommand416d agononeA13GitHub Copilot
svelte:componentqdhenry/Claude-Command-SuiteCommand1.4k9mo agononeA0Claude Code
enforce.playwright-typescriptstefaniuk/loadoutCommand14d agoMITA11Claude Code, GitHub Copilot