analyze-spec

analyze-spec is a command for Claude Code from basher83/lunar-claude. It costs 0 tokens per session (633 once invoked), scanned A, original, MIT.

A command that reads one or two specification files and turns them into a saved deployment plan. The plan covers the problem, solution, constraints, phases, blockers, risks, next action, and critical files.

In plain words
What is it for?
Use it before implementation to organize deployment work, identify missing information and risks, and define the next concrete command or file change.
Why use it?
It reduces the work of turning incomplete or flexible requirements into an actionable implementation plan. It also records the plan in a predictable project location.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool; positional $N argument.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the omni-scale plugin — 1 skill, 5 commands, 2 agents shipped together

Good fit Use it before implementation to organize deployment work, identify missing information and…

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add basher83/lunar-claude
Claude Code
/plugin install omni-scale

Made for: Claude Code.

Or install omni-scale, the plugin that ships this one along with the rest of its 1 skill, 5 commands, 2 agents.

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 analyze-spec

README.md
[![agentmods](https://agentmods.dev/badge/commands/basher83/lunar-claude/analyze-spec.svg)](https://agentmods.dev/commands/basher83/lunar-claude/analyze-spec)
Your own site
<a href="https://agentmods.dev/commands/basher83/lunar-claude/analyze-spec"><img src="https://agentmods.dev/badge/commands/basher83/lunar-claude/analyze-spec.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 633 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.00000 $0.00633
Opus 5 $0.00000 $0.00316
Sonnet 5 $0.00000 $0.00127
Haiku 4.5 $0.00000 $0.00063

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

Security

Grade A, and why

analyze-spec 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 3d 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.

plugins/homelab/omni-scale/commands/analyze-spec.md · 91 lines

How it starts

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

Analyze Spec

Generate a deployment plan using soft guidelines with anchored outputs.

Variables

PLAN_OUTPUT_DIRECTORY: ${CLAUDE_PROJECT_DIR}/.claude/

Context

Up to two specs may be given, only one spec is required to proceed.

Spec files: @${CLAUDE_PLUGIN_ROOT}/specs/$1 @${CLAUDE_PLUGIN_ROOT}/specs/$2

Plan template: @${CLAUDE_PLUGIN_ROOT}/templates/plan-template.md

Instructions

  • Create an implementation plan that is:
    • Concise enough to scan quickly
    • Detailed enough to execute effectively
    • Structured however best fits the content
  • Cover: problem, solution, constraints, phases, blockers, risks
  • Required sections must appear exactly as specified:
## Next Action

**Phase:** [N]
**Task:** [Specific, concrete step]
**Command:** [Actual command or file to create]

## Critical Files

| File | Why Critical |
|------|--------------|
| [path] | [reason] |
  • Save the complete implementation plan to PLAN_OUTPUT_DIRECTORY/plan.local.md

Workflow

  1. Readiness Check (output before proceeding):

    • What do I know from loaded context? (structure, patterns, constraints)
    • What's unclear or missing for this spec?
    • Planned vs Actual: Compare any planned counts/values against actual_distribution, exit_criteria, or live cluster state. Flag discrepancies as "Spec needs reconciliation"
    • Key risks I can already identify
    • Confidence: X/5 - If < 4, use AskUserQuestion to clarify before proceeding
  2. Understand: Focus on the requirements provided and apply your assigned perspective throughout the design process

  3. Explore Thoroughly:

    • Read any files provided to you in the initial prompt
    • Find existing patterns and conventions using GLOB, GREP, and READ tools
    • Understand the current architecture
  4. Design:

    • Create implementation approach based on your perspective
    • Determine phases, dependencies, execution order
    • Consider trade-offs and architectural decisions
  5. Detail the Plan:

    • Provide step-by-step implementation strategy
    • Identify dependencies and sequencing
    • Anticipate potential challenges
    • Let structure adapt to content—don't force sections that don't fit

Read the full file on GitHub · 91 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. 3d ago First seen · 91 lines · 0 tokens per session scan A 8c5ca1398314

Subscribe to this mod's changes

analyze-spec is a command published in the GitHub repository basher83/lunar-claude (22 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 633 tokens. 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.