phase-spec-optimizer

phase-spec-optimizer is a skill for Claude Code, Codex from mattmre/EVOKORE-MCP-PUBLIC. It costs 40 tokens per session (3,288 once invoked), scanned A, original, MIT.

A review tool for comparing completed phase plans with what actually happened during their work sessions, then improving the plan template.

In plain words
What is it for?
It is for reviewing batches of product-development phase specs, identifying structural improvements, and applying those improvements to future phases.
Why use it?
It helps teams find repeated gaps in their planning format instead of fixing each phase plan by hand. It can also update plans that have not started yet.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths.

Good fit It is for reviewing batches of product-development phase specs, identifying structural improvements, and applying those improvements to future phases.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mattmre/evokore-mcp-public/phase-spec-optimizer
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.

Any agent
npx skills add mattmre/EVOKORE-MCP-PUBLIC --skill phase-spec-optimizer
Clone the repo
git clone --depth 1 https://github.com/mattmre/EVOKORE-MCP-PUBLIC

Made for: Claude Code, Codex.

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 phase-spec-optimizer

README.md
[![agentmods](https://agentmods.dev/badge/skills/mattmre/evokore-mcp-public/phase-spec-optimizer/github.svg)](https://agentmods.dev/skills/mattmre/evokore-mcp-public/phase-spec-optimizer)
Your own site
<a href="https://agentmods.dev/skills/mattmre/evokore-mcp-public/phase-spec-optimizer"><img src="https://agentmods.dev/badge/skills/mattmre/evokore-mcp-public/phase-spec-optimizer/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 phase-spec-optimizer

Your own site · 80×15
<a href="https://agentmods.dev/skills/mattmre/evokore-mcp-public/phase-spec-optimizer"><img src="https://agentmods.dev/badge/skills/mattmre/evokore-mcp-public/phase-spec-optimizer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,288 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.00040 $0.03288
Opus 5 $0.00020 $0.01644
Sonnet 5 $0.00008 $0.00658
Haiku 4.5 $0.00004 $0.00329

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

Security

Grade A, and why

phase-spec-optimizer 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 7d 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.

SKILLS/GENERAL CODING WORKFLOWS/phase-spec-optimizer/SKILL.md · 333 lines

How it starts

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

Phase Spec Optimizer

Purpose

Analyzes a batch of completed phase specs against their actual session outcomes and produces an updated spec template with structural improvements baked in. Optionally applies the improved template to remaining unstarted phase specs.

This is the multi-phase product-development companion to narrative-quality-scorer. Where the scorer evaluates a single prompt, this skill compares an entire batch of phase specs against their real session data and produces a template diff you can apply forward.

Completed Phase Specs ──► Phase Spec Optimizer ──► Template Diff
    +                                                    │
Session JSONL                                             ▼
    +                                     Improved template + evidence
Retrospective Output                                      │
    +                                                    ▼
Narrative Scores                              (Optional) Bulk-apply to
                                                remaining unstarted specs

When To Use This Skill

Trigger it when:

  • Starting a new block of phases (e.g., "next 20 phases of Claudius Maximus")
  • Session efficiency has been declining across recent phases
  • narrative-quality-scorer flags the same missing elements repeatedly
  • Post-milestone — before planning the next milestone's phase specs
  • After running session-retrospective-miner and seeing a HIGH action item about phase spec structure

Prerequisites

This skill composes output from the Phase B retrospective skills plus two MCP tools:

  • session_analyze_replay — tool usage + retry signals per session
  • session_work_ratio — evidence/replay density per session
  • session-retrospective-miner skill — aggregate efficiency findings
  • narrative-quality-scorer skill — per-spec quality scoring

Verify the tools are available with discover_tools before running.


Input Parameters

phase_range: "300-310"            # completed phases to analyze (inclusive)
remaining_phases: "311-317"       # unstarted phases to optionally update
project_path: "D:/GITHUB/Claudius-Maximus"
session_filter: "Claudius-Maximus"  # project slug used in ~/.claude/projects/
apply_template: false             # if true, apply improved template to remaining phase specs
template_path: "04-planning/phase-spec-template.md"  # optional; auto-detected if omitted
phase_file_glob: "04-planning/phases/phase-*.md"     # where phase spec files live

Read the full file on GitHub · 333 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. 7d ago First seen · 333 lines · 40 tokens per session scan A 27b5231662a8

Subscribe to this mod's changes

phase-spec-optimizer is a skill published in the GitHub repository mattmre/EVOKORE-MCP-PUBLIC (3 stars, last pushed 3mo ago), licensed MIT. It adds 40 tokens to every session and 3,288 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-09-03.

Related

Other skills, from other repositories

agenttrace-session-audit

Audit local AI coding-agent sessions with agenttrace for cost, tool failures, latency, anomalies, health, diffs, and CI gates.

LiHongwei-cn/lihongwei-cn · 34 tokens

law-of-similarity

Apply the Law of Similarity — shared colour, shape, or size signals that elements belong to one category. Use when signalling relationships across distance. For grouping by position, use law-of-proximity.

Owl-Listener/designer-skills · 47 tokens

law-of-common-region

Apply the Law of Common Region — a shared container, background, or border groups elements regardless of spacing. Use when grouping must survive a tight layout. For grouping by spacing alone, use law-of-proximity.

Owl-Listener/designer-skills · 48 tokens

presentation-deck

Structure a design presentation for a specific audience and decision. Use when presenting internally. For a portfolio narrative use case-study; for the written argument use design-rationale.

Owl-Listener/designer-skills · 39 tokens

accessibility-test-plan

Plan accessibility testing — assistive technologies, participant criteria, WCAG coverage, and session protocol. Use when scheduling testing with real AT users. Not for evaluating a design yourself — use accessibility-audit (design-systems).

Owl-Listener/designer-skills · 52 tokens

version-control-strategy

Define version control for design files, components, and libraries — branching, naming, and release. Use when file history is chaotic. For design system contribution rules, use design-system-governance (design-systems).

Owl-Listener/designer-skills · 50 tokens