autospec.analyze

autospec.analyze is a command for Claude Code from ariel-frischer/autospec. It costs 11 tokens per session (2,029 once invoked), scanned A, original, MIT.

A read-only command that compares a specification, implementation plan, and task list for contradictions, repeated work, unclear wording, or missing details. YAML is a text format commonly used for structured configuration and reports.

In plain words
What is it for?
Use it after a complete autospec task file exists to produce a structured YAML analysis and, optionally, suggest a repair plan without changing files.
Why use it?
It finds planning problems before implementation begins, including conflicts with the project’s required rules.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

Good fit Use it after a complete autospec task file exists to produce a structured YAML analysis and, optionally, suggest a repair plan without changing files.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/ariel-frischer/autospec/autospec.analyze
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/ariel-frischer/autospec

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 autospec.analyze

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/ariel-frischer/autospec/autospec.analyze"><img src="https://agentmods.dev/badge/commands/ariel-frischer/autospec/autospec.analyze.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,029 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.00011 $0.02029
Opus 5 $0.00005 $0.01014
Sonnet 5 $0.00002 $0.00406
Haiku 4.5 $0.00001 $0.00203

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

Security

Grade A, and why

autospec.analyze 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 10d 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.

internal/cli/admin/.claude/commands/autospec.analyze.md · 251 lines

How it starts

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

User Input

$ARGUMENTS

You MUST consider the user input before proceeding (if not empty).

Goal

Identify inconsistencies, duplications, ambiguities, and underspecified items across the core artifacts (spec, plan, tasks) before implementation. This command MUST run only after /autospec.tasks has successfully produced a complete tasks file.

Operating Constraints

STRICTLY READ-ONLY: Do not modify any files. Output a structured analysis YAML file. Offer an optional remediation plan (user must explicitly approve before any follow-up editing commands would be invoked manually).

Constitution Authority: The project constitution (.autospec/constitution.yaml or AGENTS.md, falling back to agent-specific file like CLAUDE.md) is non-negotiable within this analysis scope. Constitution conflicts are automatically CRITICAL and require adjustment of the spec, plan, or tasks.

Pre-computed Context

The following paths have been pre-computed and are available for use:

  • FEATURE_DIR: {{.FeatureDir}}
  • FEATURE_SPEC: {{.FeatureSpec}}

Execution Steps

1. Load Artifacts (Progressive Disclosure)

Load only the minimal necessary context from each artifact:

From spec.yaml:

  • Overview/Context
  • Functional Requirements
  • Non-Functional Requirements
  • User Stories
  • Edge Cases (if present)

From plan.yaml:

  • Architecture/stack choices
  • Data Model references
  • Phases
  • Technical constraints

From tasks.yaml:

  • Task IDs
  • Descriptions
  • Phase grouping
  • Parallel markers
  • Referenced file paths

From constitution:

  • Load .autospec/constitution.yaml or AGENTS.md (falling back to agent-specific file like CLAUDE.md) for principle validation

2. Build Semantic Models

Create internal representations (do not include raw artifacts in output):

  • Requirements inventory: Each functional + non-functional requirement with a stable key
  • User story/action inventory: Discrete user actions with acceptance criteria
  • Task coverage mapping: Map each task to one or more requirements or stories
  • Constitution rule set: Extract principle names and MUST/SHOULD normative statements

Read the full file on GitHub · 251 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. 10d ago First seen · 251 lines · 11 tokens per session scan A cb7547ca9e39

Subscribe to this mod's changes

autospec.analyze is a command published in the GitHub repository ariel-frischer/autospec (141 stars, last pushed 1mo ago), licensed MIT. It adds 11 tokens to every session and 2,029 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.