analysis-phase

A feature-analysis check that compares a feature's requirements, implementation plan, and task list. It also looks for changes that could affect APIs, databases, user interfaces, or authentication.

In plain words
What is it for?
Use it with an analysis command to validate spec, plan, and task documents, check dependencies, and produce an analysis report with findings.
Why use it?
It finds missing links or contradictions before implementation or deployment. This helps ensure every requirement is planned, every plan item has tasks, and risky changes are identified early.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/marcusgoll/spec-flow/analysis-phase
Any agent
npx skills add marcusgoll/Spec-Flow --skill analysis-phase
Clone the repo
git clone --depth 1 https://github.com/marcusgoll/Spec-Flow

Made for: Claude Code, Codex.

Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 977 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00049 $0.00977
Opus 5 $0.00024 $0.00489
Sonnet 5 $0.00010 $0.00195
Haiku 4.5 $0.00005 $0.00098

Measured 2d ago against content hash 5cfcd4d2ff4b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

analysis-phase 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 2d 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.

.claude/skills/analysis-phase/SKILL.md · 156 lines

How it starts

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

<quick_start> Validate cross-artifact consistency and detect breaking changes:

  1. Check spec → plan → tasks alignment
  2. Detect breaking changes (API, database, UI, auth)
  3. Validate dependencies
  4. Generate analysis-report.md with findings

Inputs: spec.md, plan.md, tasks.md Outputs: analysis-report.md </quick_start>

Read spec.md requirements, verify each has corresponding plan component. Flag missing mappings in analysis report.

See references/examples.md for grep commands.

Read plan.md components, verify each broken into tasks in tasks.md.

Validate:

  • Each plan component has ≥1 task
  • Task acceptance criteria match spec success criteria
  • No orphaned tasks (tasks without plan component)

Scan for patterns indicating breaking changes:

  • API changes: Endpoint signature modifications, required parameter additions, response format changes
  • Database changes: Schema modifications, required field additions, migrations affecting existing data
  • UI changes: Component interface changes, prop requirement additions
  • Auth changes: Permission model modifications, authentication flow changes

Flag with impact level (Low/Medium/High) using reference rubric.

Cross-reference:

  • Imports and integrations mentioned in plan
  • External dependencies in tasks
  • Integration points in spec

Verify all dependencies documented and accounted for.

Create specs/NNN-slug/analysis-report.md:

# Analysis Report

## Consistency Check

- Spec-Plan: [✓/✗] Description
- Plan-Tasks: [✓/✗] Description

## Breaking Changes

- [High/Medium/Low] Description and impact

## Dependency Validation

- [✓/✗] Dependencies documented

## Recommendations

- Action items to fix inconsistencies

Update state.yaml: analysis.status = completed

  • All spec requirements have plan component coverage
  • All plan components have task breakdown
  • Breaking changes flagged with impact level (Low/Medium/High)
  • Analysis report generated with actionable findings
  • No orphaned artifacts (tasks without plan, plan without spec)

<anti_patterns> ❌ Don't: Assume no breaking changes without scanning ✅ Do: Explicitly check API signatures, database schema, required fields, auth changes

Why: Breaking changes missed in analysis cause production issues post-deployment

Why: Missing mappings lead to incomplete implementation

Why: Undocumented dependencies cause integration failures

Why: Actionable findings enable quick remediation </anti_patterns>

<success_criteria>

  • All spec requirements mapped to plan components (no gaps)
  • All plan components broken into tasks (no orphans)
  • Breaking changes documented with impact level (High/Medium/Low)
  • Dependencies validated and documented
  • analysis-report.md generated with actionable findings
  • state.yaml updated (analysis.status = completed) </success_criteria>

Read the full file on GitHub · 156 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2d ago First seen · 156 lines · 49 tokens per session scan A 5cfcd4d2ff4b

Subscribe to this mod's changes

analysis-phase is a skill published in the GitHub repository marcusgoll/Spec-Flow (91 stars, last pushed 4mo ago), licensed MIT. It adds 49 tokens to every session and 977 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.