Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Mix Flow?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/donnici-mix-flow)
---
name: mix-flow
description: "Which mix-* skill fits your situation, and the order of the spec-driven flow."
disable-model-invocation: true
---
# Flow
Before recommending a skill or saying a step can be skipped, read that skill's `SKILL.md`; the
summaries here are for orientation.
## Projects, repos, hub
A **project** (scope) is one product or one company's work: its rules, architecture docs,
glossary, ADRs, templates, specs, and one or more code **repos** (e.g. `web`, `bff`, `api`),
wherever they are on disk. Everything the flow owns that is not a spec lives in a
`mix-dev-skills/` folder; specs live in `specs/` beside it. Both sit at the project's base: the
repo root (**in-repo**) or a project folder at any path inside a **hub** (a folder outside the
code, e.g. an existing notes repo, holding many projects).
- **`/mix-scope`**: show the active project; `/mix-scope lumen` switches; `list`; `new <name>`.
Every other skill resolves its context through it.
## Coming from Spec Kit or Matt Pocock's skills
**`/mix-migrate`** moves `.specify/`, speckit commands, `GLOSSARY.md`, `docs/adr/`,
`.out-of-scope/`, `docs/agents/`, and `.scratch/` into the mix layout, converting the
constitution and config and fixing references. `--dry-run` shows the plan only.
## Once per project
**`/mix-setup`** asks hub vs in-repo, the root folder and each repo's role, branch/PR/ticket
conventions; maps each repo's stack, installed libraries, patterns, and golden files; for
multi-repo projects also maps how the repos integrate (contracts, golden path across repos); and
creates the constitution with the default rules. Re-run after big structural changes.
## Main flow: idea → reviewed code
1. **`/mix-specify <idea>`**: explores every repo, settles delivery (strategy, tickets, feature
branch), grills you on material decisions, writes `spec.md`, keeps glossary and ADRs current.
`--quick` when the conversation already settled everything.
2. **`/mix-clarify`** *(recommended)*: coverage scan of the spec, more questions, answers written
back.
3. **`/mix-plan`**: which repos change and why, reuse inventory, constitution gate, **contracts
between repos first**, module design per repo, agreed test seams → `plan.md`.
4. **`/mix-tasks`**: vertical slices per story; inside a story: contract → provider → consumer →
integration; each task tagged with its repo and exemplar → `tasks.md`; tickets per story.
5. **`/mix-analyze`** *(recommended)*: consistency check, including both sides of every contract;
writes only `state.yml`.
6. **`/mix-implement`**: builds task by task in each repo; at each delivery boundary prunes tests,
strips comment noise, self-reviews, and offers a **local** commit. It never pushes or opens PRs.
7. **`/mix-pr`**: you decide when work leaves the machine; one run creates the branch, commits,
pushes, and opens one PR per repo (linked to its siblings with the merge order), with no
approval step, then shows each PR's link, title, and body.
8. **`/mix-review`**: on any PR or branch, across repos. `--tasks` appends convergence tasks; run
`/mix-implement` again to close them.
9. **`/mix-retro <PR#>`**: turn repeated review comments into checks and rules.
**`/mix-ticket <key | idea>`** runs steps 1–8 in one session: you approve the spec once, then it
plans, tasks, analyzes, implements (parallel slices when independent), reviews, and opens the PR
when you asked for it.
Keep steps 1–4 in one session when you can. Start `/mix-implement` in a fresh session for large
features; `tasks.md` carries everything it needs.
## Spec state and next step
Each flow skill records where the spec stands in `specs/NNN-slug/state.yml`, next to the spec in
every mode (hub, in-repo, no git), and its report names the same next step:
```yaml
status: Planned # Specified | Clarified | Planned | Tasked | Analyzed | Implementing | Implemented
next_step: /mix-tasks # /mix-clarify | /mix-plan | /mix-tasks | /mix-analyze | /mix-implement | /mix-quick-implement | none
prs: # optional; added by /mix-pr
- https://github.com/acme/web/pull/5
```
`none` is valid only with `status: Implemented`. Anywhere else, readers treat the state as not informed.
| Skill | `status` | `next_step` |
|-------|----------|-------------|
| `/mix-specify` | Specified | `/mix-clarify` if markers or weak areas remain, else `/mix-plan` |
| `/mix-clarify` | Clarified | `/mix-plan`, or `/mix-clarify` if high-impact items are Outstanding |
| `/mix-plan` | Planned | `/mix-tasks` |
| `/mix-tasks` | Tasked | `/mix-analyze` |
| `/mix-analyze` | Analyzed | `/mix-implement`; with CRITICAL findings, the fixing skill, or `/mix-analyze` when a direct edit fixes them |
| `/mix-implement`, open tasks | Implementing | `/mix-implement` |
| `/mix-implement`, every task done | Implemented | `none` |
| `/mix-review --tasks`, tasks appended | Implementing | `/mix-implement` |
| `/mix-quick-implement` | Implementing, then Implemented | `/mix-quick-implement`, then `none` |
`/mix-pr` appends each PR URL to `prs`, creating the file with only `prs` when missing. Writers
change only their own keys and keep the others and any comments. An unknown value, or a missing
`next_step` on a state other than `Implemented`, reads as "not informed". The file is committed
under the same rule as the spec.
## Delivery strategies
Chosen in `/mix-setup`, overridable per feature in `/mix-specify`:
- **single**: one branch per repo touched, one PR per repo for the feature.
- **per-story**: each story on its own branch and PR (per repo touched), to the base branch.
- **per-story-stacked**: a feature branch with a macro PR; each story PR targets it.
Names follow the configured patterns: fixed text plus `[variables]`. Default `spec/[NNN]-[slug]`
(e.g. `spec/001-alpha-login`). `[ticket]` and custom variables are asked when needed.
## No git?
Supported. Branch/commit/PR steps are skipped, planned names go to `<feature>/delivery.md`, and
review works from the files the feature touched.
## On-ramps
- **Issues and requests arriving raw** → **`/mix-triage`**: categorise, dedupe, verify, grill, and
write agent-ready briefs. Large enhancements continue at `/mix-specify --quick`.
- **Something broken, flaky, or slow** → **`mix-diagnose`**: build a tight red loop first, then
hypothesise, fix with a regression test. Afterwards `/mix-retro` if a check or rule would have
prevented it.
- **An open technical question** (can we integrate X, how would we automate Y) →
**`mix-spike`**: current state across repos, a throwaway proof of concept, options, and a
phased recommendation in `spike.md`. Continues at `/mix-specify --quick` when it needs building.
- **A codebase or area that makes every change expensive** → **`/mix-untangle [area]`**: maps
hotspots, imports, and co-change; lists hidden links, needless links, surplus, and special
cases; redesigns them into fixes ordered as behaviour-preserving slices in `untangle.md`.
Changes no code; continues at `/mix-specify --quick` (one story per slice) or
`/mix-quick-implement` for a small slice.
## After the PR
- **`mix-land`**: open PRs to merge-ready: CI failures classified (this PR, inherited, flaky,
infra) and reproduced before fixing, conflicts, reviewer replies drafted in your tone, and the
merge order across repos.
- **`mix-housekeep`**: remove worktrees and branches of merged PRs, list unpushed work, and sync
each spec's `state.yml` and the index with the PRs' real status.
## Small changes
**`/mix-quick-implement <change or issue>`**: one behaviour, a handful of files, no new contract
or dependency. One command runs it end to end: locate the code, confirm today's behaviour, a single
check-in (change, test, decisions with recommended answers, branch and commit), a short
`spec.md`, test-first implementation, hardening, and the outcome written back to the spec. A
change that outgrows the size gate is routed to `/mix-specify --quick` with the draft spec.
`/mix-quick-implement <quick spec folder>` resumes one at its implementation step.
A trivial edit (typo, copy, config value) can skip even that: implement directly, then
`/mix-review` on the diff. The constitution and architecture docs still apply.
## Anytime
- **`/mix-constitution <rule>`**: add or change a rule.
- **`mix-grill`**: "grill me on this" for any plan or design.
- **`mix-testing`**: how to choose seams and which tests to delete.
- **`/mix-explain [spec NNN | adr NNNN | path | url | topic]`**: a clear, sourced explanation in
plain technical Portuguese; with no argument, of the agent's last answer.
- **`/mix-self-improve`**: how you use Claude, strengths and friction from `/insights` and your
sessions, and improvements (rules, skills, hooks, routines) applied on approval.
## Files
```text
<base>/ repo root (in-repo) or project folder (hub)
├── mix-dev-skills/
│ ├── mix.yml code root, repos, roles, knowledge pointers, conventions
│ ├── constitution.md rules (MUST / SHOULD), versioned
│ ├── architecture.md repo map, or system map for multi-repo projects
│ ├── architecture/<repo>.md per-repo maps (multi-repo)
│ ├── glossary.md domain terms
│ ├── adr/ hard-to-reverse decisions
│ ├── out-of-scope/ rejected requests
│ ├── triage/ local triage drafts
│ └── templates/ optional project overrides of the bundled templates
└── specs/NNN-slug/ spec.md, plan.md, tasks.md, state.yml, checklists/, delivery.md
(or spike.md for a spike, untangle.md for an untangle)
<hub>/mix-dev-skills/hub.yml projects (name → folder) + active
~/.mix-dev-skills/registry.yml hubs to search when a session starts inside a code repo
```