Skip to content
Back to skills

Mix Analyze

ASecurity

Consistency check across spec.md, plan.md, and tasks.md before implementing, writing only state.yml: coverage gaps, contradictions, ambiguity, constitution violations, and missing reuse. Spec Kit's analyze, extended.

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 18, 2026
developmentgogit

Security analysis

A100/100

Scanned November 18, 2026

npx -y skills add Donnici/mix-dev-skills --skill mix-analyze --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Mix Analyze?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Mix Analyze
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/donnici-mix-analyze/badge)](https://www.skillsdirectory.com/skills/donnici-mix-analyze)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: mix-analyze
description: "Consistency check across spec.md, plan.md, and tasks.md before implementing, writing only state.yml: coverage gaps, contradictions, ambiguity, constitution violations, and missing reuse. Spec Kit's analyze, extended."
disable-model-invocation: true
argument-hint: "[feature dir]"
---

# Analyze

Find what would make implementation go wrong, before it starts. This skill writes only `state.yml`,
nothing else. It ends by offering remediation edits, which happen only if the user approves.

**Context**: call the Skill tool with `mix-scope` to resolve the project: its repos (one or
several) and the paths to the constitution, architecture docs, glossary, ADRs, and specs folder.
A git repo is not required.

**Feature**: the folder in the project's `specs/` passed as argument; else the one whose spec
**Delivery** line names the current git branch; else the most recently modified one. Requires `spec.md`, `plan.md`, and
`tasks.md`; if one is missing, name the skill that creates it.

## 1. Build inventories

Internally, without echoing the artifacts:

- **Requirements**: every `FR-###`, buildable `SC-###` (skip post-launch business KPIs), and
  acceptance scenario (`US1/AC2`).
- **Tasks**: ID, phase, story, files, exemplar, blockers.
- **Rules**: every MUST/SHOULD in the constitution.
- **Design**: modules, files, seams, and decisions from the plan.

## 2. Detection passes

Report the highest-signal findings, 50 at most (summarise the overflow).

- **Coverage**: requirements with no task; tasks with no requirement; acceptance scenarios with no
  test at an agreed seam; plan files no task creates.
- **Constitution**: plan or tasks conflicting with a MUST (always CRITICAL); new dependencies
  without justification; tasks creating something the Prior Art table says already exists;
  tasks missing an exemplar where the plan names one.
- **Contracts** (multi-repo): an operation consumed but not provided, or provided but unused;
  contract fields without types or constraints; provider and consumer tasks that don't both
  reference the contract; a story crossing repos with no integration task; tasks in a repo the
  plan's **Repos Affected** doesn't list.
- **Tests**: test tasks at seams the plan did not agree; the same behaviour tested at several
  levels; test-per-file patterns.
- **Ambiguity**: vague adjectives without a measure; leftover placeholders and TODOs.
- **Inconsistency**: terminology drift (vs the glossary and across files); entities in the plan
  absent from the spec or vice versa; conflicting decisions; task order contradicting blockers.
- **Duplication**: near-duplicate requirements or tasks.
- **Scope**: tasks or plan elements the spec does not ask for.

Severity: **CRITICAL** = constitution MUST violation, or a P1 requirement with no coverage;
**HIGH** = conflicting or untestable requirement, missing reuse that duplicates existing code;
**MEDIUM** = terminology drift, missing non-functional coverage, redundant test tasks;
**LOW** = wording and minor redundancy.

## 3. Record state

Write `state.yml` in the feature folder, next to `spec.md`, creating it when missing:

```yaml
status: Analyzed
next_step: /mix-implement
```

`next_step` follows the CRITICAL findings:

- None → `/mix-implement`.
- A skill fixes one → that skill's command: `/mix-clarify`, `/mix-plan`, or `/mix-tasks`. Several
  skills → the earliest in that order.
- Only direct edits fix them → `/mix-analyze`, to check again after the edit.

When the file exists, change only these two values and keep every other key (such as `prs`)
and comment.

**Done when** `state.yml` holds these values, it is the only file written, and the report names the
same next step.

## 4. Report

```markdown
## Analysis: [feature]

| ID | Category | Severity | Location | Finding | Recommendation |
|----|----------|----------|----------|---------|----------------|

**Coverage**: | Requirement | Tasks | Test seam | Notes |

**Metrics**: requirements, tasks, coverage %, critical / high / medium / low counts

**Next step**: <the `next_step` in `state.yml`>
```

Stable IDs (category initial + number) so a rerun on unchanged files gives the same report.
Cite specific lines; report missing sections as missing rather than inventing them.

## 5. Next actions

CRITICAL present → resolve before `/mix-implement`, naming which skill fixes each
(`/mix-clarify`, `/mix-plan`, `/mix-tasks`, or a direct edit). Otherwise the user may proceed.
Then ask: "Want concrete remediation edits for the top N findings?" Apply nothing unasked.

Approved edits are applied one at a time with the Edit tool, each replacing an exact passage;
never with a script that rewrites a file. After the edits, compare each touched file's line
count and headings with before: a file that shrank by more than the edits explain is restored
and the edit redone.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.