specrew: Command for Claude Code

.specify/extensions/specrew-speckit/commands/speckit.specrew-speckit.before-specify.md

speckit.specrew-speckit.before-specify is a command for Claude Code from alonf/specrew. It costs 14 tokens per session (372 once invoked), scanned A, original, MIT.

A guided design step for writing a feature specification, using focused questions about the product, architecture, data, operations, and implementation.

In plain words
What is it for?
Use it before creating a spec to collect design choices, record who approved them, and stop at the specification checkpoint.
Why use it?
It prevents a specification from being based on unconfirmed assumptions and requires human decisions before work continues.

Command for Claude Code

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

This is alonf/specrew's own configuration. It tells Claude Code how to work on specrew 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 specrew configures →

Reuse

Borrowing it

Nothing to install: this file belongs to alonf/specrew. 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/alonf/specrew/main/.specify/extensions/specrew-speckit/commands/speckit.specrew-speckit.before-specify.md
Clone the repo
git clone --depth 1 https://github.com/alonf/specrew

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.specrew-speckit.before-specify

README.md
[![agentmods](https://agentmods.dev/badge/commands/alonf/specrew/speckit.specrew-speckit.before-specify.svg)](https://agentmods.dev/commands/alonf/specrew/speckit.specrew-speckit.before-specify)
Your own site
<a href="https://agentmods.dev/commands/alonf/specrew/speckit.specrew-speckit.before-specify"><img src="https://agentmods.dev/badge/commands/alonf/specrew/speckit.specrew-speckit.before-specify.svg" alt="Measured on agentmods" height="20"></a>
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 372 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.00014 $0.00372
Opus 5 $0.00007 $0.00186
Sonnet 5 $0.00003 $0.00074
Haiku 4.5 $0.00001 $0.00037

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

Security

Grade A, and why

speckit.specrew-speckit.before-specify 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 4d 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.

.specify/extensions/specrew-speckit/commands/speckit.specrew-speckit.before-specify.md · 18 lines

What it actually says

Run the Specrew Design Workshop Before Specifying

You are producing a feature specification on a Specrew-governed project. Specrew does NOT generate the spec from informed defaults — the spec must be lens-informed, produced WITH the human through the design workshop. Before you write any spec content, do this:

Required

  1. Invoke the specrew-design-workshop skill and work the applicable design lenses WITH the human — product-domain first, then architecture-core, component-design, data-storage, integration-api, observability-resilience, devops-operations, requirements-nfr, ui-ux, and code-implementation as applicable. Work one lens at a time: present each lens, get the human's decide / delegate / skip, and record the confirmation. Never fabricate a lens agreement — the SC-026 provenance gate validates that each lens record reflects a real human answer.
  2. Only after the workshop is complete and the lens records exist do you write spec.md, informed by the confirmed lens decisions (lens-informed, not lens-decorated).
  3. Then stop at the specify boundary and render the human re-entry packet for the verdict. Do not free-run into clarify.

Failure behavior

If you are about to generate the spec from informed defaults without having run the workshop with the human, STOP — that is raw Spec Kit behavior, and this project is Specrew-governed. The specrew-design-workshop skill is the Specrew specify entry; the speckit.specify generation is the spec-writer that runs only after the workshop. Invoke the workshop and work the lenses with the human first.

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. 4d ago First seen · 18 lines · 14 tokens per session scan A e4115a26f804

Subscribe to this mod's changes

speckit.specrew-speckit.before-specify is a command published in the GitHub repository alonf/specrew (54 stars, last pushed today), licensed MIT. It adds 14 tokens to every session and 372 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-09-03.