speckit.memory-md.specify

speckit.memory-md.specify is a command for Claude Code from DyanGalih/spec-kit-memory-hub. It costs 33 tokens per session (556 once invoked), scanned A, original, MIT.

A feature-specification workflow that prepares relevant project memory before writing or revising a feature specification. A feature specification is a document describing what a planned software change should do.

In plain words
What is it for?
Use it when creating or updating a feature specification, particularly when the project has stored governance rules and historical memory.
Why use it?
It gathers project rules, previous decisions, and related context before specification work begins. This reduces the need to search memory files manually.

Command for Claude Code

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

Good fit Use it when creating or updating a feature specification, particularly when the project has stored governance rules and historical memory.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/dyangalih/spec-kit-memory-hub/speckit.memory-md.specify
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/DyanGalih/spec-kit-memory-hub

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.memory-md.specify

README.md
[![agentmods](https://agentmods.dev/badge/commands/dyangalih/spec-kit-memory-hub/speckit.memory-md.specify/github.svg)](https://agentmods.dev/commands/dyangalih/spec-kit-memory-hub/speckit.memory-md.specify)
Your own site
<a href="https://agentmods.dev/commands/dyangalih/spec-kit-memory-hub/speckit.memory-md.specify"><img src="https://agentmods.dev/badge/commands/dyangalih/spec-kit-memory-hub/speckit.memory-md.specify/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.memory-md.specify

Your own site · 80×15
<a href="https://agentmods.dev/commands/dyangalih/spec-kit-memory-hub/speckit.memory-md.specify"><img src="https://agentmods.dev/badge/commands/dyangalih/spec-kit-memory-hub/speckit.memory-md.specify.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 556 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.00033 $0.00556
Opus 5 $0.00016 $0.00278
Sonnet 5 $0.00007 $0.00111
Haiku 4.5 $0.00003 $0.00056

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

Security

Grade A, and why

speckit.memory-md.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 9d 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.

commands/speckit.memory-md.specify.md · 35 lines

How it starts

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

Specify With Memory

Before writing or revising the feature spec, resolve configuration. If .specify/extensions/memory-md/config.yml exists, read it for memory_root, specs_root, feature_memory_filename, memory_synthesis_filename, and optimizer. Otherwise use defaults: memory_root: docs/memory, specs_root: specs, feature_memory_filename: memory.md, memory_synthesis_filename: memory-synthesis.md.

  1. Prepare Context: Run /speckit.memory-md.prepare-context --feature specs/<feature> or call speckit_memory_refresh_cache(scope="all") (to sync backup .md files to SQLite if empty) and then speckit_memory_synthesize(feature="specs/<feature>").
  2. Read Synthesis: Read specs/<feature>/memory-synthesis.md to identify constraints and decisions relevant to this feature.
  3. Targeted Search: If the synthesis is insufficient, call speckit_memory_search to query the SQLite cache. Do NOT read .md memory files directly. The SQLite cache is the single source of truth.

Retrieval Order

  1. Read config.
  2. Read the Governance Layer (.specify/memory/) constitution, standards, or principles first.
  3. Call speckit_memory_search or use MCP tools for any durable memory queries. Do NOT read {memory_root}/INDEX.md or other memory .md files directly.
  4. Read existing {specs_root}/<feature>/{memory_synthesis_filename} when present.
  5. Read any nearby feature memory from related unfinished work when clearly relevant.

Do not load all durable memory files. Rely on the MCP tools which respect configured retrieval budgets.

After Reading

  • Extract only the constraints, reused decisions, bug patterns, and architecture boundaries relevant to this feature.
  • Write or refresh {specs_root}/<feature>/{feature_memory_filename} with feature-local notes and open questions.
  • Write or refresh {specs_root}/<feature>/{memory_synthesis_filename} with a compact summary for planning and implementation, within retrieval.max_synthesis_words defaulting to 900 words.
  • Call out conflicts between the requested feature and existing durable memory.
  • Separate durable project memory from transient feature context.

Read the full file on GitHub · 35 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. 9d ago First seen · 35 lines · 33 tokens per session scan A ab994f57c7e4

Subscribe to this mod's changes

speckit.memory-md.specify is a command published in the GitHub repository DyanGalih/spec-kit-memory-hub (15 stars, last pushed 3mo ago), licensed MIT. It adds 33 tokens to every session and 556 once invoked, about $0.0002 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.