@canonical/design-system 0.2.3 → 0.2.4

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.
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "types": "src/index.ts",
5
5
  "type": "module",
6
6
  "license": "LGPL-3.0",
7
- "version": "0.2.3",
7
+ "version": "0.2.4",
8
8
  "bin": {
9
9
  "collect-implementations": "./src/collect-implementations.ts"
10
10
  },
@@ -44,10 +44,67 @@ Offer the tutorial in the same breath, because this track doubles as one:
44
44
  > it as a tutorial: I'll take a plausible example — a small Vite React app — and walk
45
45
  > you through the track on it.
46
46
 
47
- Tutorial mode runs the real steps on the example, narrated: name each step before
48
- running it, show what it changed and why that matters. The tutorial runs on a scratch
47
+ Tutorial mode is the step narration below, turned up: the same outcome-path-conclusion
48
+ frame, with the reasoning behind each change made explicit. It runs on a scratch
49
49
  example, not on the person's app — nothing in their repo changes unless they ask.
50
50
 
51
+ ## Every step is narrated: outcome, path, conclusion
52
+
53
+ Every step is addressed to the person — once before it runs, once when it ends. This is
54
+ not tutorial manner. It holds in the ordinary flow too: the person is the design
55
+ authority, and they can only steer a step they saw coming. A decision gate met cold is
56
+ a decision they cannot really make.
57
+
58
+ **Open** the step with what it is FOR — the outcome it should leave behind — and how
59
+ you are about to get there. **Close** it with a sentence saying what it established and
60
+ what that means for the step after. One sentence each is enough; the failure mode is
61
+ silence, not length, and a step whose outcome looks obvious still gets its sentence
62
+ rather than a shrug.
63
+
64
+ Do:
65
+
66
+ > **Fonts, then styles.** The outcome is an app whose type and tokens come from the
67
+ > design system, with the fonts loaded before the styles that expect them. The path is
68
+ > the two `@import` lines below, in the root stylesheet, fonts first.
69
+ >
70
+ > …
71
+ >
72
+ > So: type and tokens are live and Ubuntu Sans is self-hosted — which leaves the
73
+ > surface classes as the step that decides whether the density channel emits real
74
+ > values at all.
75
+
76
+ Don't:
77
+
78
+ > Added the two imports. Fonts load.
79
+
80
+ Both carry the same facts. Only the first says what the step was trying to achieve and
81
+ what it settled — and only the first lets the person cut in with the thing they know
82
+ and the graph does not, which is the whole reason they are here.
83
+
84
+ ## Asked about the skill: methodology and outcomes first
85
+
86
+ A question about what this skill does — what it covers, what its steps are, how it
87
+ works — is answered in that order: the METHOD it applies and the OUTCOMES it leaves
88
+ the person holding come first, the step-by-step breakdown comes after.
89
+
90
+ Two or three sentences of method is enough: what the skill treats as its object, the
91
+ discipline that makes it work, and what exists at the end that did not exist before.
92
+ The enumeration then reads as steps in service of something, rather than as a list to
93
+ be got through.
94
+
95
+ What this prevents is a table of contents standing in for an answer. A reply opening
96
+ with the step names tells someone who already knows the skill nothing new, and someone
97
+ who does not, nothing at all.
98
+
99
+ So, asked what this skill is:
100
+
101
+ > It installs the visual foundation — reset, typography, tokens, fonts, icons — before
102
+ > any component is swapped, under the live code standards. Complete it and the app
103
+ > looks and reads like the design system while it still renders its old components,
104
+ > which is what makes every later track land on the right ground.
105
+
106
+ Then, and only then, the breakdown.
107
+
51
108
  ## Install
52
109
 
53
110
  ```bash
@@ -46,10 +46,68 @@ Offer the tutorial in the same breath, because this track doubles as one:
46
46
  > as a tutorial: I'll take a plausible example — buttons in a small React app — and
47
47
  > walk you through one type from inventory to a finished PR.
48
48
 
49
- Tutorial mode runs the real steps on the example, narrated: name each step before
50
- running it, show what it changed and why that matters. The tutorial runs on a scratch
49
+ Tutorial mode is the step narration below, turned up: the same outcome-path-conclusion
50
+ frame, with the reasoning behind each change made explicit. It runs on a scratch
51
51
  example, not on the person's app — nothing in their repo changes unless they ask.
52
52
 
53
+ ## Every step is narrated: outcome, path, conclusion
54
+
55
+ Every step is addressed to the person — once before it runs, once when it ends. This is
56
+ not tutorial manner. It holds in the ordinary flow too: the person is the design
57
+ authority, and they can only steer a step they saw coming. A decision gate met cold is
58
+ a decision they cannot really make.
59
+
60
+ **Open** the step with what it is FOR — the outcome it should leave behind — and how
61
+ you are about to get there. **Close** it with a sentence saying what it established and
62
+ what that means for the step after. One sentence each is enough; the failure mode is
63
+ silence, not length, and a step whose outcome looks obvious still gets its sentence
64
+ rather than a shrug.
65
+
66
+ Do:
67
+
68
+ > **Inventory first.** The outcome is a real count of what the app uses, per component
69
+ > type, so the first swap PR is chosen from evidence rather than instinct. The path is
70
+ > the greps below over `src/`, deduped with counts.
71
+ >
72
+ > …
73
+ >
74
+ > So: 43 button call sites against 6 cards — buttons are the widest swap and the
75
+ > obvious first PR, and two of those call sites use a variant the system has no
76
+ > modifier for, which is a finding to report rather than a blocker.
77
+
78
+ Don't:
79
+
80
+ > Inventory: 43 buttons, 6 cards, 3 tooltips.
81
+
82
+ Both carry the same facts. Only the first says what the step was trying to achieve and
83
+ what it settled — and only the first lets the person cut in with the thing they know
84
+ and the graph does not, which is the whole reason they are here.
85
+
86
+ ## Asked about the skill: methodology and outcomes first
87
+
88
+ A question about what this skill does — what it covers, what its steps are, how it
89
+ works — is answered in that order: the METHOD it applies and the OUTCOMES it leaves
90
+ the person holding come first, the step-by-step breakdown comes after.
91
+
92
+ Two or three sentences of method is enough: what the skill treats as its object, the
93
+ discipline that makes it work, and what exists at the end that did not exist before.
94
+ The enumeration then reads as steps in service of something, rather than as a list to
95
+ be got through.
96
+
97
+ What this prevents is a table of contents standing in for an answer. A reply opening
98
+ with the step names tells someone who already knows the skill nothing new, and someone
99
+ who does not, nothing at all.
100
+
101
+ So, asked what this skill is:
102
+
103
+ > It replaces the app's UI elements with design-system components, one component type
104
+ > per PR, with the order chosen from a real inventory rather than instinct. You end
105
+ > with each swapped type sitting on A1's foundation, accessibility warnings treated as
106
+ > contract, and any type the system does not cover reported as a finding rather than
107
+ > treated as a blocker.
108
+
109
+ Then, and only then, the breakdown.
110
+
53
111
  ## Install
54
112
 
55
113
  ```bash
@@ -45,10 +45,68 @@ Offer the tutorial in the same breath, because this track doubles as one:
45
45
  > tutorial: I'll take a plausible example — a couple of text fields and a select — and
46
46
  > walk you through the migration on it.
47
47
 
48
- Tutorial mode runs the real steps on the example, narrated: name each step before
49
- running it, show what it changed and why that matters. The tutorial runs on a scratch
48
+ Tutorial mode is the step narration below, turned up: the same outcome-path-conclusion
49
+ frame, with the reasoning behind each change made explicit. It runs on a scratch
50
50
  example, not on the person's app — nothing in their repo changes unless they ask.
51
51
 
52
+ ## Every step is narrated: outcome, path, conclusion
53
+
54
+ Every step is addressed to the person — once before it runs, once when it ends. This is
55
+ not tutorial manner. It holds in the ordinary flow too: the person is the design
56
+ authority, and they can only steer a step they saw coming. A decision gate met cold is
57
+ a decision they cannot really make.
58
+
59
+ **Open** the step with what it is FOR — the outcome it should leave behind — and how
60
+ you are about to get there. **Close** it with a sentence saying what it established and
61
+ what that means for the step after. One sentence each is enough; the failure mode is
62
+ silence, not length, and a step whose outcome looks obvious still gets its sentence
63
+ rather than a shrug.
64
+
65
+ Do:
66
+
67
+ > **The first field conversion.** The outcome is one field moved onto the `Form`/`Field`
68
+ > model, proving the wiring end to end before the rest follow. The path is to replace
69
+ > the input with a `<Field>` and let `Form` own the state `useState` was holding.
70
+ >
71
+ > …
72
+ >
73
+ > So: the field validates and submits through react-hook-form and the local `useState`
74
+ > is gone — every remaining field is the same move, except the file upload, which needs
75
+ > the `custom` escape hatch.
76
+
77
+ Don't:
78
+
79
+ > Converted the email field. Works.
80
+
81
+ Both carry the same facts. Only the first says what the step was trying to achieve and
82
+ what it settled — and only the first lets the person cut in with the thing they know
83
+ and the graph does not, which is the whole reason they are here.
84
+
85
+ ## Asked about the skill: methodology and outcomes first
86
+
87
+ A question about what this skill does — what it covers, what its steps are, how it
88
+ works — is answered in that order: the METHOD it applies and the OUTCOMES it leaves
89
+ the person holding come first, the step-by-step breakdown comes after.
90
+
91
+ Two or three sentences of method is enough: what the skill treats as its object, the
92
+ discipline that makes it work, and what exists at the end that did not exist before.
93
+ The enumeration then reads as steps in service of something, rather than as a list to
94
+ be got through.
95
+
96
+ What this prevents is a table of contents standing in for an answer. A reply opening
97
+ with the step names tells someone who already knows the skill nothing new, and someone
98
+ who does not, nothing at all.
99
+
100
+ So, asked what this skill is:
101
+
102
+ > It moves forms onto the design-system form package, and the thing to understand
103
+ > before starting is that this is a DIFFERENT PROGRAMMING MODEL built on
104
+ > react-hook-form — fields as data, `Form` owning the state — not a restyle of the
105
+ > existing inputs. You end with forms on the `Form`/`Field` model, and anything the
106
+ > system does not cover kept inside the `Form` through the `custom` escape hatch.
107
+
108
+ Then, and only then, the breakdown.
109
+
52
110
  ## Install + the forms styles import
53
111
 
54
112
  ```bash
@@ -75,11 +75,72 @@ Offer the tutorial in the same breath, because this skill doubles as one:
75
75
  > plausible example — a card, say — and walk you through it from discovery to the
76
76
  > emitted anatomy.
77
77
 
78
- Tutorial mode runs the real flow on the example, narrated: name each step before
79
- running it, show what came back and what it means, and reason each structural decision
80
- out loud before checking the person is with you. Stop short of anything that lands —
81
- no anatomy written into the graph, no file committed — unless they ask to keep what
82
- you built.
78
+ Tutorial mode is the step narration below, turned up: the same outcome-path-conclusion
79
+ frame, with the reasoning at each decision gate made fully explicit and a check that
80
+ the person is with you before the next step. Stop short of anything that lands — no
81
+ anatomy written into the graph, no file committed — unless they ask to keep what you
82
+ built.
83
+
84
+ ## Every step is narrated: outcome, path, conclusion
85
+
86
+ Every step is addressed to the person — once before it runs, once when it ends. This is
87
+ not tutorial manner. It holds in the ordinary flow too: the person is the design
88
+ authority, and they can only steer a step they saw coming. A decision gate met cold is
89
+ a decision they cannot really make.
90
+
91
+ **Open** the step with what it is FOR — the outcome it should leave behind — and how
92
+ you are about to get there. **Close** it with a sentence saying what it established and
93
+ what that means for the step after. One sentence each is enough; the failure mode is
94
+ silence, not length, and a step whose outcome looks obvious still gets its sentence
95
+ rather than a shrug.
96
+
97
+ Do:
98
+
99
+ > **Discovery, before any DSL.** The outcome is the component's real context — what it
100
+ > is composed of, and what already names its parts — so the anatomy describes the
101
+ > system instead of inventing beside it. The path is `pragma block lookup Card`, then
102
+ > the subcomponent query below.
103
+ >
104
+ > …
105
+ >
106
+ > So: Card already carries a named `Card-Header` subcomponent and no named body — the
107
+ > anatomy inherits the first and has to decide the second, which is the first
108
+ > structural gate.
109
+
110
+ Don't:
111
+
112
+ > Discovery
113
+ >
114
+ > Card exists. Has Card-Header. No body node.
115
+
116
+ Both carry the same facts. Only the first says what the step was trying to achieve and
117
+ what it settled — and only the first lets the person cut in with the thing they know
118
+ and the graph does not, which is the whole reason they are here.
119
+
120
+ ## Asked about the skill: methodology and outcomes first
121
+
122
+ A question about what this skill does — what it covers, what its steps are, how it
123
+ works — is answered in that order: the METHOD it applies and the OUTCOMES it leaves
124
+ the person holding come first, the step-by-step breakdown comes after.
125
+
126
+ Two or three sentences of method is enough: what the skill treats as its object, the
127
+ discipline that makes it work, and what exists at the end that did not exist before.
128
+ The enumeration then reads as steps in service of something, rather than as a list to
129
+ be got through.
130
+
131
+ What this prevents is a table of contents standing in for an answer. A reply opening
132
+ with the step names tells someone who already knows the skill nothing new, and someone
133
+ who does not, nothing at all.
134
+
135
+ So, asked what this skill is:
136
+
137
+ > It writes component anatomies in the Anatomy DSL, combining semantic discovery —
138
+ > understanding what the graph already names — with procedural authoring. The
139
+ > structural choices are the substance: node boundaries, cardinality, and slot names,
140
+ > which become API surface. You end holding a well-formed anatomy whose every
141
+ > deliberate decision is one someone can revisit.
142
+
143
+ Then, and only then, the breakdown.
83
144
 
84
145
  ## Anatomy falls under standards too
85
146
 
@@ -74,10 +74,69 @@ Offer the tutorial in the same breath, because this skill doubles as one:
74
74
  > take one dimension — documentation coverage, say — and walk you through it end to
75
75
  > end on the live graph.
76
76
 
77
- Tutorial mode runs the real queries, narrated: name each step before running it, show
78
- what came back and what it means, and reason each judgment out loud before checking
79
- the person is with you. Stop short of anything that lands — no report filed, no issues
80
- opened — unless they ask to keep what you found.
77
+ Tutorial mode is the step narration below, turned up: the same outcome-path-conclusion
78
+ frame, with the reasoning at each decision gate made fully explicit and a check that
79
+ the person is with you before the next step. Stop short of anything that lands — no
80
+ report filed, no issues opened — unless they ask to keep what you built.
81
+
82
+ ## Every step is narrated: outcome, path, conclusion
83
+
84
+ Every step is addressed to the person — once before it runs, once when it ends. This is
85
+ not tutorial manner. It holds in the ordinary flow too: the person is the design
86
+ authority, and they can only steer a step they saw coming. A decision gate met cold is
87
+ a decision they cannot really make.
88
+
89
+ **Open** the step with what it is FOR — the outcome it should leave behind — and how
90
+ you are about to get there. **Close** it with a sentence saying what it established and
91
+ what that means for the step after. One sentence each is enough; the failure mode is
92
+ silence, not length, and a step whose outcome looks obvious still gets its sentence
93
+ rather than a shrug.
94
+
95
+ Do:
96
+
97
+ > **Documentation coverage, the first dimension.** The outcome is a count you can act
98
+ > on: which blocks carry a summary, usage and anatomy, and which are entries in name
99
+ > only. The path is the coverage query below, run per tier so a young tier is not
100
+ > scored against a mature one.
101
+ >
102
+ > …
103
+ >
104
+ > So: 12 of 87 blocks are undocumented and 9 of those sit in one tier — a tier-shaped
105
+ > problem rather than a system-wide one, which changes what the recommendation should
106
+ > say.
107
+
108
+ Don't:
109
+
110
+ > Coverage: 75/87 documented (86%). 12 missing.
111
+
112
+ Both carry the same facts. Only the first says what the step was trying to achieve and
113
+ what it settled — and only the first lets the person cut in with the thing they know
114
+ and the graph does not, which is the whole reason they are here.
115
+
116
+ ## Asked about the skill: methodology and outcomes first
117
+
118
+ A question about what this skill does — what it covers, what its steps are, how it
119
+ works — is answered in that order: the METHOD it applies and the OUTCOMES it leaves
120
+ the person holding come first, the step-by-step breakdown comes after.
121
+
122
+ Two or three sentences of method is enough: what the skill treats as its object, the
123
+ discipline that makes it work, and what exists at the end that did not exist before.
124
+ The enumeration then reads as steps in service of something, rather than as a list to
125
+ be got through.
126
+
127
+ What this prevents is a table of contents standing in for an answer. A reply opening
128
+ with the step names tells someone who already knows the skill nothing new, and someone
129
+ who does not, nothing at all.
130
+
131
+ So, asked what this skill is:
132
+
133
+ > It audits the design system by querying the graph along chosen dimensions and
134
+ > turning counts into judgments — against thresholds agreed with the team, not
135
+ > folklore numbers, because a low count can be a young catalog rather than a problem.
136
+ > You end holding prioritised findings, each routed to the skill that fixes it, with
137
+ > the promote/demote/deprecate calls left where they belong: with the person.
138
+
139
+ Then, and only then, the breakdown.
81
140
 
82
141
  ## Discovery Flow
83
142
 
@@ -54,10 +54,72 @@ Offer the tutorial in the same breath, because this skill doubles as one:
54
54
  > Or if you'd rather see the flow first, I can run it as a tutorial: I'll pick a small
55
55
  > documented block from the graph and walk you through it from pre-flight to review.
56
56
 
57
- Tutorial mode runs the real flow on the example, narrated: name each step before
58
- running it, show what came back and what it means, and reason each decision out loud
59
- before checking the person is with you. Stop short of anything that lands — no commit,
60
- no PR — unless they ask to keep what you built.
57
+ Tutorial mode is the step narration below, turned up: the same outcome-path-conclusion
58
+ frame, with the reasoning at each decision gate made fully explicit and a check that
59
+ the person is with you before the next step. Stop short of anything that lands — no
60
+ commit, no PR — unless they ask to keep what you built.
61
+
62
+ ## Every step is narrated: outcome, path, conclusion
63
+
64
+ Every step is addressed to the person — once before it runs, once when it ends. This is
65
+ not tutorial manner. It holds in the ordinary flow too: the person is the design
66
+ authority, and they can only steer a step they saw coming. A decision gate met cold is
67
+ a decision they cannot really make.
68
+
69
+ **Open** the step with what it is FOR — the outcome it should leave behind — and how
70
+ you are about to get there. **Close** it with a sentence saying what it established and
71
+ what that means for the step after. One sentence each is enough; the failure mode is
72
+ silence, not length, and a step whose outcome looks obvious still gets its sentence
73
+ rather than a shrug.
74
+
75
+ Do:
76
+
77
+ > **Pulling the standards, before any code.** The outcome is a shortlist held open
78
+ > while the Badge is written, so the code is shaped by the standards as it is written
79
+ > rather than corrected in review. The path is `pragma standard categories` for the
80
+ > live set, then `standard list --category <name>` for each one that applies.
81
+ >
82
+ > …
83
+ >
84
+ > So: `react`, `storybook` and `testing-unit` are the live shortlist and nothing in
85
+ > them contradicts the spec — implementation can proceed against them, with `css` and
86
+ > `styling` held back for the token work.
87
+
88
+ Don't:
89
+
90
+ > Step 3 — Pull the standards NOW
91
+ >
92
+ > Categories exist for: react (16), testing (+coverage/integration/regression/unit),
93
+ > storybook (11), css (15), styling (4).
94
+
95
+ Both carry the same facts. Only the first says what the step was trying to achieve and
96
+ what it settled — and only the first lets the person cut in with the thing they know
97
+ and the graph does not, which is the whole reason they are here.
98
+
99
+ ## Asked about the skill: methodology and outcomes first
100
+
101
+ A question about what this skill does — what it covers, what its steps are, how it
102
+ works — is answered in that order: the METHOD it applies and the OUTCOMES it leaves
103
+ the person holding come first, the step-by-step breakdown comes after.
104
+
105
+ Two or three sentences of method is enough: what the skill treats as its object, the
106
+ discipline that makes it work, and what exists at the end that did not exist before.
107
+ The enumeration then reads as steps in service of something, rather than as a list to
108
+ be got through.
109
+
110
+ What this prevents is a table of contents standing in for an answer. A reply opening
111
+ with the step names tells someone who already knows the skill nothing new, and someone
112
+ who does not, nothing at all.
113
+
114
+ So, asked what this skill is:
115
+
116
+ > It takes an approved spec to working code, and the discipline that defines it is
117
+ > that the applicable code standards are pulled and held open DURING implementation —
118
+ > so they shape the code as it is written, not only in review. You end holding a
119
+ > scaffolded and implemented component, any deviation from a standard recorded next to
120
+ > that standard's name, and an independent review of the result.
121
+
122
+ Then, and only then, the breakdown.
61
123
 
62
124
  ## Pre-flight
63
125
 
@@ -76,10 +76,72 @@ Offer the tutorial in the same breath, because this skill doubles as one:
76
76
  > Or if you'd rather see the flow first, I can run it as a tutorial: I'll take a
77
77
  > plausible example — a date picker, say — and walk you through the eight steps on it.
78
78
 
79
- Tutorial mode runs the real flow on the example, narrated: name each step before
80
- running it, show what came back and what it means, and reason each decision gate out
81
- loud before checking the person is with you. Stop short of anything that lands — no
82
- spec file written, no proposal filed — unless they ask to keep what you built.
79
+ Tutorial mode is the step narration below, turned up: the same outcome-path-conclusion
80
+ frame, with the reasoning at each decision gate made fully explicit and a check that
81
+ the person is with you before the next step. Stop short of anything that lands — no spec
82
+ file written, no proposal filed — unless they ask to keep what you built.
83
+
84
+ ## Every step is narrated: outcome, path, conclusion
85
+
86
+ Every step is addressed to the person — once before it runs, once when it ends. This is
87
+ not tutorial manner. It holds in the ordinary flow too: the person is the design
88
+ authority, and they can only steer a step they saw coming. A decision gate met cold is
89
+ a decision they cannot really make.
90
+
91
+ **Open** the step with what it is FOR — the outcome it should leave behind — and how
92
+ you are about to get there. **Close** it with a sentence saying what it established and
93
+ what that means for the step after. One sentence each is enough; the failure mode is
94
+ silence, not length, and a step whose outcome looks obvious still gets its sentence
95
+ rather than a shrug.
96
+
97
+ Do:
98
+
99
+ > **Step 1 — search the graph.** The outcome is a verdict: the thing already exists,
100
+ > an existing block should be extended, or there is a named gap worth specifying. The
101
+ > path is `pragma block list` for the catalog, then `block lookup` on the closest
102
+ > candidates.
103
+ >
104
+ > …
105
+ >
106
+ > So: nothing covers date entry, and the nearest neighbour (`Input`) stops at free
107
+ > text — a real gap, and one that step 2 has to place as a component rather than a
108
+ > pattern.
109
+
110
+ Don't:
111
+
112
+ > Step 1 — Search the graph
113
+ >
114
+ > 87 blocks. No date picker. Closest: Input, Select.
115
+
116
+ Both carry the same facts. Only the first says what the step was trying to achieve and
117
+ what it settled — and only the first lets the person cut in with the thing they know
118
+ and the graph does not, which is the whole reason they are here.
119
+
120
+ ## Asked about the skill: methodology and outcomes first
121
+
122
+ A question about what this skill does — what it covers, what its steps are, how it
123
+ works — is answered in that order: the METHOD it applies and the OUTCOMES it leaves
124
+ the person holding come first, the step-by-step breakdown comes after.
125
+
126
+ Two or three sentences of method is enough: what the skill treats as its object, the
127
+ discipline that makes it work, and what exists at the end that did not exist before.
128
+ The enumeration then reads as steps in service of something, rather than as a list to
129
+ be got through.
130
+
131
+ What this prevents is a table of contents standing in for an answer. A reply opening
132
+ with the step names tells someone who already knows the skill nothing new, and someone
133
+ who does not, nothing at all.
134
+
135
+ So, asked what this skill is:
136
+
137
+ > It specifies a component against the knowledge graph, and the discipline is that
138
+ > nothing is invented before the graph has been searched: the entry's category comes
139
+ > from the ontology rather than from taste, the boundary is drawn against its real
140
+ > neighbours, and a benchmark decides what is adopted and what is refused. You end
141
+ > holding a standalone spec file the data sync cannot destroy, plus a record of every
142
+ > judgment call it took to get there.
143
+
144
+ Then, and only then, the breakdown.
83
145
 
84
146
  ## The spec falls under standards too
85
147
 
@@ -80,10 +80,71 @@ Offer the tutorial in the same breath, because this skill doubles as one:
80
80
  > plausible example — confirming a destructive action, say — and walk you through the
81
81
  > eight steps on it.
82
82
 
83
- Tutorial mode runs the real flow on the example, narrated: name each step before
84
- running it, show what came back and what it means, and reason each decision gate out
85
- loud before checking the person is with you. Stop short of anything that lands — no
86
- spec file written, no proposal filed — unless they ask to keep what you built.
83
+ Tutorial mode is the step narration below, turned up: the same outcome-path-conclusion
84
+ frame, with the reasoning at each decision gate made fully explicit and a check that
85
+ the person is with you before the next step. Stop short of anything that lands — no spec
86
+ file written, no proposal filed — unless they ask to keep what you built.
87
+
88
+ ## Every step is narrated: outcome, path, conclusion
89
+
90
+ Every step is addressed to the person — once before it runs, once when it ends. This is
91
+ not tutorial manner. It holds in the ordinary flow too: the person is the design
92
+ authority, and they can only steer a step they saw coming. A decision gate met cold is
93
+ a decision they cannot really make.
94
+
95
+ **Open** the step with what it is FOR — the outcome it should leave behind — and how
96
+ you are about to get there. **Close** it with a sentence saying what it established and
97
+ what that means for the step after. One sentence each is enough; the failure mode is
98
+ silence, not length, and a step whose outcome looks obvious still gets its sentence
99
+ rather than a shrug.
100
+
101
+ Do:
102
+
103
+ > **Step 1 — search the graph, twice.** The outcome is two verdicts: whether a pattern
104
+ > already answers this situation, and whether the components it would compose exist.
105
+ > The path is `pragma block list`, then `block lookup` on the near patterns and on each
106
+ > part.
107
+ >
108
+ > …
109
+ >
110
+ > So: no pattern covers destructive confirmation, and both parts it would compose
111
+ > (`Modal`, `Button`) already exist — the gap is the arrangement, not the pieces, which
112
+ > is exactly what step 2 has to defend.
113
+
114
+ Don't:
115
+
116
+ > Step 1 — Search
117
+ >
118
+ > No confirmation pattern. Modal and Button exist.
119
+
120
+ Both carry the same facts. Only the first says what the step was trying to achieve and
121
+ what it settled — and only the first lets the person cut in with the thing they know
122
+ and the graph does not, which is the whole reason they are here.
123
+
124
+ ## Asked about the skill: methodology and outcomes first
125
+
126
+ A question about what this skill does — what it covers, what its steps are, how it
127
+ works — is answered in that order: the METHOD it applies and the OUTCOMES it leaves
128
+ the person holding come first, the step-by-step breakdown comes after.
129
+
130
+ Two or three sentences of method is enough: what the skill treats as its object, the
131
+ discipline that makes it work, and what exists at the end that did not exist before.
132
+ The enumeration then reads as steps in service of something, rather than as a list to
133
+ be got through.
134
+
135
+ What this prevents is a table of contents standing in for an answer. A reply opening
136
+ with the step names tells someone who already knows the skill nothing new, and someone
137
+ who does not, nothing at all.
138
+
139
+ So, asked what this skill is:
140
+
141
+ > It specifies a pattern, and the defining move is that a pattern is defined by the
142
+ > repeatable USER CONTEXT it serves — the situation, the job, the flow it recurs in —
143
+ > more than by the atomicity of the element. Every step is aimed at that context. You
144
+ > end holding a spec that names the situation, fixes what the arrangement holds
145
+ > constant and what it lets vary, and records the judgment calls behind both.
146
+
147
+ Then, and only then, the breakdown.
87
148
 
88
149
  ## The spec falls under standards too
89
150