task-pipeline-skill 0.17.1 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. package/CHANGELOG.md +244 -0
  2. package/README.md +314 -135
  3. package/cursor/rules/task-pipeline.mdc +91 -16
  4. package/package.json +7 -3
  5. package/plugins/task-pipeline/.claude-plugin/plugin.json +2 -2
  6. package/plugins/task-pipeline/commands/task-pipeline.md +16 -6
  7. package/plugins/task-pipeline/skills/task-pipeline/SKILL.md +39 -8
  8. package/plugins/task-pipeline/skills/task-pipeline/pipeline.example.json +9 -4
  9. package/plugins/task-pipeline/skills/task-pipeline/references/acceptance.md +40 -8
  10. package/plugins/task-pipeline/skills/task-pipeline/references/artifacts.md +23 -11
  11. package/plugins/task-pipeline/skills/task-pipeline/references/audit.md +224 -0
  12. package/plugins/task-pipeline/skills/task-pipeline/references/brainstorm.md +6 -4
  13. package/plugins/task-pipeline/skills/task-pipeline/references/build.md +8 -1
  14. package/plugins/task-pipeline/skills/task-pipeline/references/companion-skills.md +12 -2
  15. package/plugins/task-pipeline/skills/task-pipeline/references/conventions.md +17 -3
  16. package/plugins/task-pipeline/skills/task-pipeline/references/grill.md +37 -4
  17. package/plugins/task-pipeline/skills/task-pipeline/references/knowledge-sources.md +159 -0
  18. package/plugins/task-pipeline/skills/task-pipeline/references/loop-guard.md +8 -0
  19. package/plugins/task-pipeline/skills/task-pipeline/references/planning.md +5 -3
  20. package/plugins/task-pipeline/skills/task-pipeline/references/review.md +2 -1
  21. package/plugins/task-pipeline/skills/task-pipeline/references/stages.md +73 -11
  22. package/plugins/task-pipeline/skills/task-pipeline/references/tdd.md +5 -0
  23. package/plugins/task-pipeline/skills/task-pipeline/templates/brief.md +24 -1
  24. package/plugins/task-pipeline/skills/task-pipeline/templates/carryover.md +23 -0
package/README.md CHANGED
@@ -4,24 +4,61 @@
4
4
  [![validate](https://github.com/ssheleg/task-pipeline/actions/workflows/validate.yml/badge.svg)](https://github.com/ssheleg/task-pipeline/actions/workflows/validate.yml)
5
5
  [![license](https://img.shields.io/badge/license-MIT-blue)](LICENSE)
6
6
 
7
- Full-cycle task delivery pipeline orchestrator for **Claude Code**. One skill that
8
- runs any substantial task through an up-front **intake grill** + **10 gated stages** —
9
- with every stage's doctrine **built in**: no companion plugin required.
7
+ **A full-cycle delivery pipeline for coding agents.** One skill takes a substantial
8
+ task, interrogates it into a complete brief, then walks it through ten gated stages
9
+ — and refuses to advance until each gate passes.
10
10
 
11
- ## What it does
11
+ Agents write code well and judge *when to stop asking you things* badly. A
12
+ substantial task becomes twenty interruptions, or a confident build that skipped
13
+ the tests and quietly delivered two thirds of what you asked for. `task-pipeline`
14
+ front-loads every decision into one intake conversation, then runs to the end
15
+ without checking in — and closes by accounting for every requirement, from a list
16
+ rather than from memory.
17
+
18
+ Built for **Claude Code**, and installable into any agent that reads skills
19
+ (Cursor, Codex, OpenCode, …). Every stage's doctrine ships **inside the skill** —
20
+ no companion plugin, nothing to resolve, nothing that breaks when a dependency is
21
+ missing.
22
+
23
+ ---
24
+
25
+ ## The flow
26
+
27
+ ```
28
+ intake grill → docs study → brainstorm + decompose → spec → plan → subagent build
29
+ → tests → lint/deploy → post-deploy log check → docs/wiki sync → acceptance
30
+ ```
12
31
 
13
- `intake grill → docs study → brainstorm + decompose → spec → plan → subagent build →
14
- tests → lint/deploy → post-deploy log check → docs/wiki sync → acceptance`
32
+ ```mermaid
33
+ flowchart TD
34
+ S0["0 · Harvest + intake grill<br/>brief · REQ table · source ledger"]
35
+ S1["1 · Docs study"]
36
+ S2["2 · Brainstorm + decompose"]
37
+ S3["3 · Spec — UX track first, if UI"]
38
+ S4["4 · Plan"]
39
+ S5["5 · Dev — worktree, subagents, TDD"]
40
+ S6["6 · Tests"]
41
+ S7["7 · Lint + deploy"]
42
+ S8["8 · Post-deploy"]
43
+ S9["9 · Docs + wiki"]
44
+ S10["10 · Acceptance"]
45
+
46
+ S0 --> S1 --> S2 --> S3 --> S4 --> S5 --> S6 --> S7 --> S8 --> S9 --> S10
47
+ S10 -. "platform: next module" .-> S3
48
+ S10 -. "accounts for every REQ in the brief" .-> S0
49
+
50
+ classDef manual fill:#fde68a,stroke:#b45309,color:#111827
51
+ classDef auto fill:#dbeafe,stroke:#1d4ed8,color:#111827
52
+ class S0,S2,S3,S7,S10 manual
53
+ class S1,S4,S5,S6,S8,S9 auto
54
+ ```
15
55
 
16
- It **grills you first, always**: stage 0 is mandatory — a one-line task ("make me
17
- feature X") is expanded, one question at a time, into a locked brief, and the grill
18
- also sweeps stages 1→10 for anything that would stop the run later. Each stage gates
19
- the next. Every gate is typed — **auto** (the orchestrator verifies it, pass/fail)
20
- or **manual** (waits for your go). One model, confirmed before the run starts.
56
+ Every gate is **typed**: `auto` — the orchestrator verifies it itself, pass/fail
57
+ (blue); `manual` — it waits for your explicit go (amber).
21
58
 
22
59
  | # | Stage | Gate | Type |
23
60
  |---|---|---|---|
24
- | 0 | Intake grill — **mandatory** | shared understanding + autonomy sweep; brief locked | manual |
61
+ | 0 | Harvest + intake grill — **mandatory** | source ledger written; shared understanding + autonomy sweep; brief locked | manual |
25
62
  | 1 | Docs study | contracts grounded on current docs | auto |
26
63
  | 2 | Brainstorm + decompose | design approved; UI verdict recorded; every REQ answered; platform: module map approved | manual |
27
64
  | 3 | Spec | committed + reviewed; UI: super-ux chain validated, linter green | manual |
@@ -30,18 +67,41 @@ or **manual** (waits for your go). One model, confirmed before the run starts.
30
67
  | 6 | Tests | full suite green, new code covered | auto |
31
68
  | 7 | Lint + deploy | lint clean + suite green before deploy | manual |
32
69
  | 8 | Post-deploy | clean boot / honest degradation | auto |
33
- | 9 | Docs + wiki | docs + wiki synced | auto |
70
+ | 9 | Docs + wiki | every stale source-ledger row updated; docs + wiki synced | auto |
34
71
  | 10 | **Acceptance** | every REQ accounted for with evidence; operator signs off | manual |
35
72
 
36
- These stages (0 intake + 1→10) are the plugin's **example** flow. It's a machine-readable config
37
- ([`pipeline.example.json`](plugins/task-pipeline/skills/task-pipeline/pipeline.example.json))
38
- against a universal contract
39
- ([`pipeline.schema.json`](plugins/task-pipeline/skills/task-pipeline/pipeline.schema.json)):
40
- a host project copies the example to `pipeline.json` and rewrites it with its own
41
- stages (any count), its own `skills[]`, and its own `auto`/`manual` gate types —
42
- "bring your own skills". The framework bakes in no fixed stages.
73
+ ## What you get
74
+
75
+ - **The intake grill asks what a senior engineer would ask** before anything is
76
+ touched — scope, edge cases, failure modes, rollback, who the user is — so the
77
+ build does not stall halfway through.
78
+ - **Every stage has a gate.** No code before a spec. No deploy before tests. No
79
+ "done" before the post-deploy logs have been read.
80
+ - **Nothing falls out the back.** The request becomes a frozen, addressable list of
81
+ requirements, and the last stage accounts for every one with evidence — then
82
+ walks the ladder for what should have been on the list and never was.
83
+ - **Team discipline without a team.** ADRs, a written plan, a real test suite, a
84
+ wiki entry — produced as part of the work, not promised for later.
85
+ - **It adapts to your repo, not the reverse.** Deploy, docs and wiki conventions
86
+ are read from the host project, so nothing is imposed.
43
87
 
44
- ## Everything is built in — zero required dependencies
88
+ ## Quickstart
89
+
90
+ ```
91
+ /plugin marketplace add ssheleg/task-pipeline
92
+ /plugin install task-pipeline@task-pipeline
93
+ ```
94
+
95
+ Then say *"run this through the pipeline"*, *"the full cycle"*, or invoke
96
+ `/task-pipeline <one-line task>`. Russian phrasings (*"полный цикл"*, *"прогони по
97
+ конвейеру"*) route the same way. The skill creates a TaskList with one entry per
98
+ stage and walks the gates. See [Install](#install) for the other channels.
99
+
100
+ ---
101
+
102
+ ## What makes it different
103
+
104
+ ### Everything is built in — zero required dependencies
45
105
 
46
106
  The doctrine each stage runs on ships inside the skill. Nothing to install for it,
47
107
  nothing to resolve at preflight, no version skew with someone else's repo, and no
@@ -49,15 +109,17 @@ stage that can fail because a plugin is missing:
49
109
 
50
110
  | Stage | Built-in doctrine |
51
111
  |---|---|
52
- | 0 Intake grill | [`references/grill.md`](plugins/task-pipeline/skills/task-pipeline/references/grill.md) — interview loop, domain awareness, autonomy sweep |
53
- | 2 Brainstorm | [`references/brainstorm.md`](plugins/task-pipeline/skills/task-pipeline/references/brainstorm.md) — approaches, YAGNI, the no-code-before-approval gate |
54
- | 2 Decompose | [`references/decomposition.md`](plugins/task-pipeline/skills/task-pipeline/references/decomposition.md) — platforms only: brick criteria, module map, build order |
55
- | 3 Spec | [`references/spec.md`](plugins/task-pipeline/skills/task-pipeline/references/spec.md) — UX-track order, locked contracts, global constraints, self-review |
56
- | 4 Plan | [`references/planning.md`](plugins/task-pipeline/skills/task-pipeline/references/planning.md) — zero-context tasks, parallel groups, no placeholders |
57
- | 5 Build | [`references/build.md`](plugins/task-pipeline/skills/task-pipeline/references/build.md) + [`review.md`](plugins/task-pipeline/skills/task-pipeline/references/review.md) — isolation, ledger, subagent loop, review rubric, fix loop |
58
- | 5–6 TDD | [`references/tdd.md`](plugins/task-pipeline/skills/task-pipeline/references/tdd.md) — the iron law, red/green/refactor, the suite gate |
59
- | 10 Acceptance | [`references/acceptance.md`](plugins/task-pipeline/skills/task-pipeline/references/acceptance.md) — REQ coverage table, evidence rules, the closing question |
60
- | any loop | [`references/loop-guard.md`](plugins/task-pipeline/skills/task-pipeline/references/loop-guard.md) — churn detection, caps, the break protocol |
112
+ | 0 Knowledge harvest | [`knowledge-sources.md`](plugins/task-pipeline/skills/task-pipeline/references/knowledge-sources.md) — source list, the wiki, the ledger, the stage-9 loop-back |
113
+ | 0 Intake grill | [`grill.md`](plugins/task-pipeline/skills/task-pipeline/references/grill.md) — interview loop, domain awareness, autonomy sweep |
114
+ | 2 Brainstorm | [`brainstorm.md`](plugins/task-pipeline/skills/task-pipeline/references/brainstorm.md) — approaches, YAGNI, the no-code-before-approval gate |
115
+ | 2 Decompose | [`decomposition.md`](plugins/task-pipeline/skills/task-pipeline/references/decomposition.md) — platforms only: brick criteria, module map, build order |
116
+ | 3 Spec | [`spec.md`](plugins/task-pipeline/skills/task-pipeline/references/spec.md) — UX-track order, locked contracts, global constraints, self-review |
117
+ | 4 Plan | [`planning.md`](plugins/task-pipeline/skills/task-pipeline/references/planning.md) — zero-context tasks, parallel groups, no placeholders |
118
+ | 5 Build | [`build.md`](plugins/task-pipeline/skills/task-pipeline/references/build.md) + [`review.md`](plugins/task-pipeline/skills/task-pipeline/references/review.md) — isolation, ledger, subagent loop, review rubric, fix loop |
119
+ | 5–6 TDD | [`tdd.md`](plugins/task-pipeline/skills/task-pipeline/references/tdd.md) — the iron law, red/green/refactor, the suite gate |
120
+ | 10 Acceptance | [`acceptance.md`](plugins/task-pipeline/skills/task-pipeline/references/acceptance.md) — REQ coverage table, evidence rules, the closing question |
121
+ | 10 + any audit | [`audit.md`](plugins/task-pipeline/skills/task-pipeline/references/audit.md) — the L0→L7 ladder and its seams, axis rotation, ratchets, proven checks |
122
+ | any loop | [`loop-guard.md`](plugins/task-pipeline/skills/task-pipeline/references/loop-guard.md) — churn detection, caps, the break protocol |
61
123
 
62
124
  **Ported, not depended on.** Stage 0 is adapted from
63
125
  [Matt Pocock's `grilling` / `grill-with-docs`](https://github.com/mattpocock/skills)
@@ -70,21 +132,14 @@ and stages 2–6 from the corresponding skills in
70
132
  requirement — the gates still govern, and nothing detects, recommends or waits for
71
133
  an external provider.
72
134
 
73
- ## Intake grill (stage 0) — mandatory
135
+ ### The intake grill (stage 0) — mandatory
74
136
 
75
- Inspired by [Matt Pocock's grill-me](https://github.com/mattpocock/skills). Before
76
- any technical work, task-pipeline interviews you relentlessly — one question per
77
- turn, each with a recommended answer, exploring the codebase before asking — until
78
- every decision branch is resolved and locked into a **task brief**. There is no
79
- "clear enough task" exemption: no stage-1 work starts without a committed,
137
+ Before any technical work, task-pipeline interviews you relentlessly — one question
138
+ per turn, each with a recommended answer, exploring the codebase before asking —
139
+ until every decision branch is resolved and locked into a **task brief**. There is
140
+ no "clear enough task" exemption: no stage-1 work starts without a committed,
80
141
  confirmed brief.
81
142
 
82
- **Built in — nothing to install.** The full doctrine ships inside the skill
83
- ([`references/grill.md`](plugins/task-pipeline/skills/task-pipeline/references/grill.md)):
84
- no companion skill, no resolution step, no fallback path, no version skew. Adapted
85
- from [Matt Pocock's grill-with-docs](https://github.com/mattpocock/skills) (MIT —
86
- see [LICENSE](LICENSE) → *Third-party*).
87
-
88
143
  **Domain awareness.** While exploring, the grill reads the project's own
89
144
  `CONTEXT.md` / `docs/adr/` and holds you to them — calling out terms that conflict
90
145
  with the glossary, replacing overloaded words with a canonical one, stress-testing
@@ -94,15 +149,57 @@ decisions that are hard to reverse, surprising without context **and** the resul
94
149
  a real trade-off get an ADR. Both files are created lazily.
95
150
 
96
151
  **Autonomy comes from the sweep.** Beyond the task itself, the grill pre-resolves
97
- everything that would otherwise interrupt stages 1→10: which external libs need docs,
98
- branch and task-tracker policy, the test command and what "green" means, the lint
99
- command, the deploy target and its **authorization**, where logs and health live,
100
- which docs and runbooks to update, and the model. Each gets an answer or an explicit
101
- "stop and ask me here" — an unasked question is a scheduled interruption. Deploy
102
- authorization has a hard floor: a standing go counts only if it names the target and
103
- the preconditions.
152
+ everything that would otherwise interrupt stages 1→10: which external libs need
153
+ docs, branch and task-tracker policy, the test command and what "green" means, the
154
+ lint command, the deploy target and its **authorization**, where logs and health
155
+ live, which docs and runbooks to update, and the model. Each gets an answer or an
156
+ explicit "stop and ask me here" — an unasked question is a scheduled interruption.
157
+ Deploy authorization has a hard floor: a standing go counts only if it names the
158
+ target and the preconditions.
159
+
160
+ ### Knowledge harvest — read the project before asking the person
161
+
162
+ Stage 0 doesn't open with a question. It opens by finding what the project already
163
+ knows about this task
164
+ ([`knowledge-sources.md`](plugins/task-pipeline/skills/task-pipeline/references/knowledge-sources.md)):
165
+ the code, `CLAUDE.md`, `CONTEXT.md` and the ADRs, `docs/` and `docs/ux/`, previous
166
+ pipeline briefs and their carry-over ledgers, **the knowledge wiki if you have one**,
167
+ and **any other repository or hosted doc system your project names as its docs**. It's
168
+ retrieval scoped by the task's own nouns, not a read of everything, and it ends with a
169
+ **source ledger** written into the brief — one row per source, what it says, how
170
+ fresh, and whether this run makes it stale.
171
+
172
+ That buys two things. The cheap one: you don't get asked what an ADR already
173
+ answers. The one that matters: **an answer nobody can check is a recollection.**
174
+ People answer from memory about systems they wrote a year ago, and without the
175
+ document in hand there is no way to tell a decision from a misremembering — so the
176
+ run builds on it and every later gate passes honestly on a false premise. With the
177
+ harvest in hand the grill quotes the source instead: *"the March ADR says orders go
178
+ through the command handler, you just described a direct write — has that changed?"*
179
+ You outrank every document, but **only out loud**: an override quoted against its
180
+ source is a recorded decision, an unquoted one is an undetected divergence. When two
181
+ sources disagree, precedence is code > host docs/ADRs > wiki > memory.
182
+
183
+ Then the loop closes: **stage 9 updates exactly what stage 0 read.** Every doc the
184
+ run proved stale is already in the ledger with what's wrong, so "docs updated" means
185
+ the sources the next run will trust — not just the files this change happened to
186
+ touch.
187
+
188
+ **The wiki is [obsidian-wiki](https://github.com/ar9av/obsidian-wiki)** (Karpathy's
189
+ LLM-wiki pattern), and it's the one source that carries *why* across projects and
190
+ across months. Detected via `~/.obsidian-wiki/config` or a resolving `wiki-query`.
191
+ Installed → queried at stage 0, synced with `wiki-update` at stage 9. Not installed →
192
+ recommended once, with the line, and the run continues:
104
193
 
105
- ## The REQ spine — why nothing falls out the back
194
+ ```bash
195
+ pip install obsidian-wiki
196
+ obsidian-wiki setup --vault /path/to/your/vault
197
+ ```
198
+
199
+ It is a **recommendation, never a gate** — no stage blocks on a missing wiki, and
200
+ nothing asks twice in one run.
201
+
202
+ ### The REQ spine — why nothing falls out the back
106
203
 
107
204
  Every gate before the last one asks *"is this artifact good?"* — none asks *"does
108
205
  this still contain everything that was asked for?"* Scope doesn't leak inside a
@@ -136,12 +233,12 @@ Stage 10 closes the circle with the question the pipeline exists to be able to
136
233
  answer from a list rather than from memory: *here's what you asked for, here's what
137
234
  shipped, here's what's deferred and where it lives — what's missing?*
138
235
 
139
- ## Platforms — decomposed into bricks, built one at a time
236
+ ### Platforms — decomposed into bricks, built one at a time
140
237
 
141
238
  A one-feature task runs the pipeline once. A **platform** — several independent
142
239
  capabilities, several separately shippable surfaces, requirements no single
143
240
  deliverable satisfies — gets cut into modules at stage 2, before any spec is
144
- written ([`references/decomposition.md`](plugins/task-pipeline/skills/task-pipeline/references/decomposition.md)).
241
+ written ([`decomposition.md`](plugins/task-pipeline/skills/task-pipeline/references/decomposition.md)).
145
242
 
146
243
  Modules are cut **by capability, never by layer** ("Ordering", "Billing" — not
147
244
  "Controllers", "Services"), and a candidate is only a brick when it is
@@ -158,7 +255,7 @@ stopped. Each module's spec is a full dossier: architecture, entities and
158
255
  ownership, contracts in and out with their failure behavior, business rules, edge
159
256
  and failure cases, UI/Figma chain, limits, open questions.
160
257
 
161
- ## Loop guard — churn is detected, not endured
258
+ ### Loop guard — churn is detected, not endured
162
259
 
163
260
  Any repeating pass can start undoing the previous one: two shapes alternating, the
164
261
  same file rewritten round after round, a finding that was closed coming back. That
@@ -176,7 +273,58 @@ module map), re-plans the check as an ordered checklist with one verification
176
273
  command per item, and goes through it one at a time. A higher-layer conflict is
177
274
  never settled inside a lower loop.
178
275
 
179
- ## UX track (user-facing tasks) — super-ux recommended
276
+ ### The audit ladder — finding what was never written
277
+
278
+ The REQ spine catches a requirement that was **named and lost**. It cannot catch
279
+ one that was never named — because **a comparison needs two sides, and an absence
280
+ has one.** Nothing in a diff between spec and plan reveals the error path nobody
281
+ specified, the entity nobody gave an owner, the failure mode nobody thought of.
282
+
283
+ So stage 10 opens with a **ladder walk**
284
+ ([`audit.md`](plugins/task-pipeline/skills/task-pipeline/references/audit.md)), not
285
+ with the coverage table. Each requirement is walked **bottom-up** through its rungs
286
+ — recorded decision → spec section → contract *and its failure behavior* → plan
287
+ task → the change in the tree → an **executed** named assertion → the surface a
288
+ user reaches and its docs — and the work is the **seam between each pair**: did the
289
+ decision reach the spec, does every contract have a task, did the DoD land in the
290
+ diff, would that test still pass with the production code deleted, does what
291
+ shipped satisfy the requirement's own *statement* rather than the task's
292
+ instructions. Findings are ordered **by seam, never by file** — the seam names
293
+ which layer of your process leaks. Every absence becomes a new REQ row with its
294
+ check *before* the table is written.
295
+
296
+ Bottom-up is not taste: a missing artefact low on the ladder makes everything above
297
+ it meaningless, so top-down you spend the pass polishing a surface for a contract
298
+ that does not exist.
299
+
300
+ Three rules keep the audit from becoming another loop:
301
+
302
+ - **Every pass changes the axis, not the effort.** A searching pass doesn't
303
+ oscillate, it *converges*: each pass edits the corpus the next one reads, so the
304
+ newest edits are always the least-reviewed text and are what the next pass finds.
305
+ Measured over seven passes on a production repository, by pass six the audit was
306
+ mostly repairing its own previous pass — while the finding count still looked
307
+ healthy. So count both numbers every pass (new findings vs. self-inflicted ones);
308
+ when the second overtakes the first, **rotate the axis** — seams down one
309
+ deliverable, then invariants across deliverables, then one class swept end to end.
310
+ - **A class that repeats twice becomes a gate, not a note.** Once is an incident;
311
+ twice is a category, and a category belongs in lint or CI where nobody has to
312
+ remember it. The third instance in a ledger is how a mechanical defect becomes
313
+ permanent.
314
+ - **What can't be fixed now becomes a ratchet, never a TODO** — a named, counted
315
+ set that may only shrink, printed *beside every gate verdict*
316
+ (`carry-over: 4 open (was 6) · unresolved: 0`). A TODO is invisible until someone
317
+ opens the file; a ratchet makes **"green" never read as "verified"** — it reads
318
+ as *"green, and here is exactly what was not looked at"*.
319
+
320
+ And the exit criterion that is usually skipped: a deliverable is audited when every
321
+ rung has its artefact **and every check you are relying on has been seen failing
322
+ once against a planted defect.** That is the TDD iron law — *if you didn't watch it
323
+ fail, you don't know it tests the right thing* — raised from one test to every
324
+ gate, linter and script in the run. **A green result from an unproven check is
325
+ worth nothing.**
326
+
327
+ ### UX track (user-facing tasks) — super-ux recommended
180
328
 
181
329
  The moment a task touches any user-facing surface (web / mobile / CLI / TUI — a
182
330
  screen, command, or visible behavior), [super-ux](https://github.com/ssheleg/super-ux)
@@ -185,26 +333,82 @@ installed, task-pipeline uses it; if not, it gives you the install line on the s
185
333
  The spec stage runs it **before any plan is written**: `/ux` (setup check) →
186
334
  `ux-foundation` (personas, JTBD, **customer journey maps**, user stories) →
187
335
  `ux-flows` (user flows + `screens.md` UI map, Figma frames) → `ux-scenarios`
188
- (usage scenarios validated against the base, ux-contract v4) → `/ux-lint` (must pass). The
189
- spec then embeds the UX layer — scenario IDs, CJM stages served, applicable UX
190
- patterns — and the plan's UI tasks carry scenario IDs in their DoD. Scenarios come
191
- before interface.
192
-
193
- ## Prerequisites
194
-
195
- **None for the pipeline itself** — the doctrine for every stage ships inside the
196
- skill (see *Everything is built in* above).
197
-
198
- **super-ux** (only for user-facing tasks) — https://github.com/ssheleg/super-ux
336
+ (usage scenarios validated against super-ux's own scenario-format contract) →
337
+ `/ux-lint` (must pass). The spec then embeds the UX layer — scenario IDs, CJM
338
+ stages served, applicable UX patterns — and the plan's UI tasks carry scenario IDs
339
+ in their DoD. Scenarios come before interface.
199
340
 
200
341
  ```
201
342
  /plugin marketplace add ssheleg/super-ux
202
343
  /plugin install super-ux@super-ux
203
344
  ```
204
345
 
346
+ ### Model policy — one model, confirmed once
347
+
348
+ The default recommendation is *the most capable reasoning model the environment
349
+ offers* — currently the latest Opus generation, but that's a **tier, not a string**.
350
+ Model ids go stale as generations ship, and you may be on another provider entirely,
351
+ so nothing is hardcoded: the pipeline resolves the top tier available at runtime and
352
+ stage configs use provider-agnostic tokens (`default` / `inherit`).
353
+
354
+ You confirm or override it (per-stage overrides welcome) before stage 0 — then it
355
+ **stops asking**. A skill can't switch the main-loop model; `/model` is yours.
356
+ Stage-5 subagents are pinned to the confirmed model automatically. If the
357
+ recommended tier isn't available, the pipeline says which one it's using and
358
+ continues — a reminder, never a block.
359
+
360
+ ---
361
+
362
+ ## Configure it for your project
363
+
364
+ ### Bring your own skills
365
+
366
+ Stages 0→10 above are the plugin's **example** flow. It is a machine-readable config
367
+ ([`pipeline.example.json`](plugins/task-pipeline/skills/task-pipeline/pipeline.example.json))
368
+ written against a universal contract
369
+ ([`pipeline.schema.json`](plugins/task-pipeline/skills/task-pipeline/pipeline.schema.json)):
370
+ copy the example to `pipeline.json` in your repo and rewrite it with your own stages
371
+ (any count), your own `skills[]`, and your own `auto`/`manual` gate types. The
372
+ framework bakes in no fixed stage count and no opinion on which gates are manual.
373
+
374
+ ```jsonc
375
+ {
376
+ "version": 1,
377
+ "stages": [
378
+ {
379
+ "id": 1,
380
+ "state": "spec",
381
+ "name": "Spec",
382
+ "model": "default", // 'default' = the run's confirmed model
383
+ "skills": ["your-team:spec"], // whatever your environment resolves
384
+ "gate": { "type": "manual", "check": "spec committed and reviewed" }
385
+ }
386
+ ]
387
+ }
388
+ ```
389
+
390
+ ### Release automation (optional, toggleable)
391
+
392
+ A pipeline config may declare an optional `release` block: a master `enabled`
393
+ toggle, a `trigger`, project-defined `steps`, and `verify` smoke-checks. It's **off
394
+ unless a project turns it on**, and every project configures its own. This repo's
395
+ own instance is [`.github/workflows/release.yml`](.github/workflows/release.yml) —
396
+ armed per repo by the `RELEASE_ENABLED` variable (unset = off), it validates the tag
397
+ against the manifests, cuts a GitHub release from the CHANGELOG, and smoke-tests
398
+ `npx` from a clean checkout. Copy and adapt it; nothing is hardcoded.
399
+
400
+ ### Portability
401
+
402
+ Stages 6–10 read the host project's `CLAUDE.md` conventions (tests / lint / deploy /
403
+ docs / wiki) with detection fallbacks, so the skill works in any repo. The canonical
404
+ artifact layout each stage writes to is fixed in
405
+ [`artifacts.md`](plugins/task-pipeline/skills/task-pipeline/references/artifacts.md).
406
+
407
+ ---
408
+
205
409
  ## Install
206
410
 
207
- **Plugin (recommended):**
411
+ **Claude Code plugin (recommended):**
208
412
  ```
209
413
  /plugin marketplace add ssheleg/task-pipeline
210
414
  /plugin install task-pipeline@task-pipeline
@@ -212,14 +416,14 @@ skill (see *Everything is built in* above).
212
416
 
213
417
  **Any agent via the skills CLI (Cursor, Codex, OpenCode, 70+ — not Claude Code,
214
418
  use the plugin above):**
215
- ```
419
+ ```bash
216
420
  npx skills add ssheleg/task-pipeline --agent cursor --agent codex --global
217
421
  ```
218
422
  (one repeated `--agent` per agent; never include `claude-code` while the plugin is
219
423
  installed — the plain copy shadows it)
220
424
 
221
425
  **npm installer (no clone needed):**
222
- ```
426
+ ```bash
223
427
  npx github:ssheleg/task-pipeline # straight from GitHub
224
428
  npx task-pipeline-skill # from the npm registry
225
429
  ```
@@ -227,17 +431,14 @@ npx task-pipeline-skill # from the npm registry
227
431
  on npm; installs the same skill + `/task-pipeline` command into `~/.claude`,
228
432
  idempotent, `--force` to overwrite)
229
433
 
230
- **Cursor:**
231
- ```
232
- npx skills add ssheleg/task-pipeline --agent cursor --global # global, or…
233
- ```
234
- …or per project, copy `cursor/rules/task-pipeline.mdc` into the repo's
434
+ **Cursor:** the skills CLI above with `--agent cursor`, or per project copy
435
+ [`cursor/rules/task-pipeline.mdc`](cursor/rules/task-pipeline.mdc) into the repo's
235
436
  `.cursor/rules/`. Cursor has no global rules directory — use the skills CLI for a
236
437
  global install, the `.mdc` for per-project, or paste it into Cursor Settings →
237
438
  Rules. The rule is self-contained (no external links), so it works copied anywhere.
238
439
 
239
440
  **Plain skill:**
240
- ```
441
+ ```bash
241
442
  git clone https://github.com/ssheleg/task-pipeline
242
443
  cd task-pipeline && ./install.sh
243
444
  ```
@@ -245,10 +446,10 @@ cd task-pipeline && ./install.sh
245
446
  command into `~/.claude/commands/`; idempotent — rerun skips existing installs,
246
447
  `./install.sh --force` overwrites)
247
448
 
248
- ## Updating everywhere
449
+ ### Updating
249
450
 
250
- Pick **one** channel per agent (running the plugin and the plain/skills-CLI copy
251
- on the same Claude Code install yields a duplicate skill).
451
+ Pick **one** channel per agent — running the plugin and the plain/skills-CLI copy on
452
+ the same Claude Code install yields a duplicate, shadowing skill.
252
453
 
253
454
  | Agent / channel | Update |
254
455
  |---|---|
@@ -258,70 +459,47 @@ on the same Claude Code install yields a duplicate skill).
258
459
  | npm | `npx task-pipeline-skill@latest` / `npx github:ssheleg/task-pipeline` (ephemeral — always latest) |
259
460
  | Plain skill | `git pull && ./install.sh --force` |
260
461
 
261
- ## Use
262
-
263
- Say *"run this through the pipeline"* or *"the full cycle"*, or invoke
264
- `/task-pipeline`. The skill creates a per-stage TaskList and walks the gates.
265
- Russian phrasings (*"полный цикл"*, *"прогони по конвейеру"*) route the same way.
266
-
267
- ## Model policy
268
-
269
- **One model, confirmed once, at preflight.** The default recommendation is *the most
270
- capable reasoning model the environment offers* — currently the latest Opus
271
- generation, but that's a **tier, not a string**. Model ids go stale as generations
272
- ship, and you may be on another provider entirely, so nothing is hardcoded: the
273
- pipeline resolves the top tier available at runtime and stage configs use
274
- provider-agnostic tokens (`default` / `inherit`).
462
+ ### Prerequisites
275
463
 
276
- You confirm or override it (per-stage overrides welcome) before stage 0 — then it
277
- **stops asking**. A skill can't switch the main-loop model; `/model` is yours.
278
- Stage-5 subagents are pinned to the confirmed model automatically. If the
279
- recommended tier isn't available, the pipeline says which one it's using and
280
- continues — a reminder, never a block.
281
-
282
- ## Release automation (project-configurable, toggleable)
283
-
284
- A pipeline config may declare an optional `release` block (see
285
- [`pipeline.schema.json`](plugins/task-pipeline/skills/task-pipeline/pipeline.schema.json)):
286
- a master `enabled` toggle, a `trigger`, project-defined `steps`, and `verify`
287
- smoke-checks. It's **off unless a project turns it on**, and every project
288
- configures its own. This repo's own instance is
289
- [`.github/workflows/release.yml`](.github/workflows/release.yml) — armed per repo
290
- by the `RELEASE_ENABLED` variable (unset = off), it validates the tag against the
291
- manifests, cuts a GitHub release from the CHANGELOG, and smoke-tests `npx` from a
292
- clean checkout. Copy and adapt it per project; nothing is hardcoded.
293
-
294
- ## Companion skills
464
+ **None for the pipeline itself** — the doctrine for every stage ships inside the
465
+ skill. Three optional companions make individual stages better:
295
466
 
296
- `references/companion-skills.md` separates what's built in (stages 0, 2, 3, 4, 5, 6
297
- and 10 — nothing to install) from the short optional list: **super-ux** (required only for
298
- user-facing tasks — install line surfaced on the spot), **context7** (docs stage),
299
- **wiki-update** (stage 9). A single preflight block prints which are ready, which to
300
- install, and the model recommendation, so you arm the whole run in one exchange.
467
+ | Companion | For | Required? |
468
+ |---|---|---|
469
+ | [super-ux](https://github.com/ssheleg/super-ux) | the stage-3 UX track | only for user-facing tasks |
470
+ | context7 (MCP) | stage-1 docs study | recommended — web-search fallback |
471
+ | [obsidian-wiki](https://github.com/ar9av/obsidian-wiki) | stage-0 harvest + stage-9 sync | recommended — never a gate |
301
472
 
302
- ## Portability
473
+ A single preflight block prints which are ready, which to install, and the model
474
+ recommendation, so you arm the whole run in one exchange. Detail:
475
+ [`companion-skills.md`](plugins/task-pipeline/skills/task-pipeline/references/companion-skills.md).
303
476
 
304
- Stages 6–10 read the host project's `CLAUDE.md` conventions (tests / lint / deploy /
305
- docs / wiki) with detection fallbacks, so the skill works in any repo. The
306
- canonical artifact layout each stage writes to is fixed in
307
- [`references/artifacts.md`](plugins/task-pipeline/skills/task-pipeline/references/artifacts.md).
477
+ ---
308
478
 
309
- ## What this gives you
479
+ ## Documentation map
310
480
 
311
- Agents write code well and judge *when to stop asking you things* badly. A
312
- substantial task turns into twenty interruptions, or into a confident build that
313
- skipped the tests. `task-pipeline` front-loads every decision into one intake
314
- conversation, then runs ten gated stages without stopping to check in.
481
+ | File | What's in it |
482
+ |---|---|
483
+ | [`SKILL.md`](plugins/task-pipeline/skills/task-pipeline/SKILL.md) | the orchestrator: how to run, the stage table, the model decision |
484
+ | [`references/stages.md`](plugins/task-pipeline/skills/task-pipeline/references/stages.md) | per-stage detail and the exact gate criteria |
485
+ | [`references/artifacts.md`](plugins/task-pipeline/skills/task-pipeline/references/artifacts.md) | the canonical document layout each stage writes to |
486
+ | [`references/conventions.md`](plugins/task-pipeline/skills/task-pipeline/references/conventions.md) | how stages 6–10 read the host project's `CLAUDE.md` |
487
+ | [`references/model-tiering.md`](plugins/task-pipeline/skills/task-pipeline/references/model-tiering.md) | model policy, the `/model` reminder, overrides |
488
+ | [`templates/`](plugins/task-pipeline/skills/task-pipeline/templates/README.md) | brief, carry-over ledger, `CONTEXT.md` and ADR skeletons |
489
+ | [`CHANGELOG.md`](CHANGELOG.md) | every release, with the reasoning behind it |
490
+ | [`CONTRIBUTING.md`](CONTRIBUTING.md) | dev setup, the validator, the version-sync rule, release flow |
491
+
492
+ ## Contributing
493
+
494
+ Issues and pull requests are welcome — see [CONTRIBUTING.md](CONTRIBUTING.md) for
495
+ the repo's invariants (the structural validator, four-way version sync, and the
496
+ surfaces that must never drift apart). Security reports:
497
+ [SECURITY.md](SECURITY.md). Everyone participating is expected to follow the
498
+ [Code of Conduct](CODE_OF_CONDUCT.md).
315
499
 
316
- - **The intake grill asks what a senior engineer would ask** before anything is
317
- touched — scope, edge cases, failure modes, rollback, who the user is — so the
318
- build does not stall halfway through.
319
- - **Every stage has a gate.** No code before a spec. No deploy before tests. No
320
- "done" before the post-deploy logs have been read.
321
- - **Team discipline without a team.** ADRs, a written plan, a real test suite, a
322
- wiki entry — produced as part of the work, not promised for later.
323
- - **It adapts to your repo, not the reverse.** Deploy, docs and wiki conventions
324
- are read from the host project, so nothing is imposed.
500
+ ```bash
501
+ npm test # python3 test/validate.py — the structural validator
502
+ ```
325
503
 
326
504
  ## Author
327
505
 
@@ -340,4 +518,5 @@ npx sshlg-skills install
340
518
 
341
519
  ## License
342
520
 
343
- MIT © 2026 ssheleg.
521
+ MIT © 2026 ssheleg. Third-party portions (the ported stage doctrine) are credited
522
+ and licensed in [LICENSE](LICENSE) → *Third-party*.