@canonical/product-design 0.48.0 → 0.49.0-experimental.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.
- package/README.md +2 -0
- package/package.json +3 -3
- package/skills/desk-assemble/SKILL.md +6 -1
- package/skills/desk-assemble/starter/README.md +2 -0
- package/skills/desk-map-blocks/SKILL.md +553 -0
- package/skills/desk-map-blocks/tab.json +19 -0
- package/skills/desk-plan-ladder/SKILL.md +502 -0
- package/skills/desk-plan-ladder/tab.json +20 -0
- package/skills/desk-run-studio/SKILL.md +1 -1
package/README.md
CHANGED
|
@@ -11,9 +11,11 @@ The package holds skills and the files they start from. It carries no ontology:
|
|
|
11
11
|
| `desk-map-journeys` | Personas, jobs and journeys | `journeys` |
|
|
12
12
|
| `desk-model-domains` | Domains, paths, views and layouts, judged against the journeys | `domain` |
|
|
13
13
|
| `desk-model-settings` | One settings schema: who holds each setting, what it takes, its default, what it depends on | `settings` |
|
|
14
|
+
| `desk-map-blocks` | The blocks the views need, read against the design system's ontology: reused, extended, proposed or kept in the application | `blocks` |
|
|
14
15
|
| `desk-draw-frames` | A catalogue of frames: one per view and state, in real HTML | `frames` |
|
|
15
16
|
| `desk-animate-frames` | Clips of interactions, played over the frames | `motion` |
|
|
16
17
|
| `desk-design-signage` | A register of signs and the rules they obey (a working draft) | `signage` |
|
|
18
|
+
| `desk-plan-ladder` | The work in lanes of pull requests, each with a card the owner approves; optionally mirrored into Jira, Linear or GitHub | `ladder` |
|
|
17
19
|
| `desk-run-studio` | Rounds of explorations that commit to nothing, and a ledger of their questions | `studio` |
|
|
18
20
|
| `desk-assemble` | The desk: its manifest, its build, and Info with the rulings | `info` |
|
|
19
21
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@canonical/product-design",
|
|
3
3
|
"description": "Skills for designing a product before it is built: journeys, domain model, frames, studio rounds, clips and signage, and the artifact that holds them.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.49.0-experimental.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"skills"
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
},
|
|
43
43
|
"engines": {
|
|
44
44
|
"bun": ">=1.3",
|
|
45
|
-
"node": ">=
|
|
45
|
+
"node": ">=24"
|
|
46
46
|
},
|
|
47
47
|
"keywords": [
|
|
48
48
|
"product-design",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"frames",
|
|
51
51
|
"skills"
|
|
52
52
|
],
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "56fba63990eb7065a58e0e995b137f03833ec83e"
|
|
54
54
|
}
|
|
@@ -63,7 +63,8 @@ Decision gates — pause at each and resolve it WITH the operator:
|
|
|
63
63
|
## When NOT to Use
|
|
64
64
|
|
|
65
65
|
- Filling a tab's content — use that tab's skill: `desk-map-journeys`, `desk-model-domains`,
|
|
66
|
-
`desk-model-settings`, `desk-draw-frames`, `desk-run-studio`, `desk-animate-frames`,
|
|
66
|
+
`desk-model-settings`, `desk-map-blocks`, `desk-draw-frames`, `desk-run-studio`, `desk-animate-frames`,
|
|
67
|
+
`desk-design-signage`, `desk-plan-ladder`
|
|
67
68
|
- A single page with no siblings — it stands alone, and needs no desk
|
|
68
69
|
- Building the application itself — the desk describes a product, it is not one
|
|
69
70
|
|
|
@@ -206,9 +207,11 @@ while empty. `tab.schema.json`, in this skill's folder, is that file's schema.
|
|
|
206
207
|
| 20 | Journeys | `desk-map-journeys` |
|
|
207
208
|
| 30 | Domain model | `desk-model-domains` |
|
|
208
209
|
| 35 | Settings | `desk-model-settings` |
|
|
210
|
+
| 38 | Blocks | `desk-map-blocks` |
|
|
209
211
|
| 40 | Frames | `desk-draw-frames` |
|
|
210
212
|
| 50 | Motion | `desk-animate-frames` |
|
|
211
213
|
| 60 | Signage | `desk-design-signage` |
|
|
214
|
+
| 80 | Ladder | `desk-plan-ladder` |
|
|
212
215
|
| 90 | Studio | `desk-run-studio` |
|
|
213
216
|
|
|
214
217
|
A new tab lands by its rank. Info is always first. Studio is last, because it is where
|
|
@@ -401,6 +404,8 @@ What the tutorial should bring out:
|
|
|
401
404
|
judged against
|
|
402
405
|
- `desk-draw-frames`, `desk-run-studio`, `desk-animate-frames` and `desk-design-signage` — the tabs of the
|
|
403
406
|
design itself; each adds its own tab when it finds `desk.js`
|
|
407
|
+
- `desk-model-settings`, `desk-map-blocks` and `desk-plan-ladder` — the settings, the blocks the
|
|
408
|
+
views need, and the ladder the product is built by
|
|
404
409
|
|
|
405
410
|
## Support
|
|
406
411
|
|
|
@@ -41,9 +41,11 @@ skill finds `desk.js`, adds its tab if it is missing, and fills it.
|
|
|
41
41
|
| Journeys | `desk-map-journeys` | Who uses the product, what each of them needs to get done, and in what order: personas, their jobs, and the journeys that string the jobs together. Every other tab is judged against this one. |
|
|
42
42
|
| Domain model | `desk-model-domains` | How the product is divided: its domains, the paths a reader takes through them, the views each path shows, and the layouts those views share, compared across more than one way of dividing it. |
|
|
43
43
|
| Settings | `desk-model-settings` | What the product lets its people change, written once: each setting with who holds it, what it takes, what it starts as, what it depends on, and the journey that needs it. |
|
|
44
|
+
| Blocks | `desk-map-blocks` | The layouts, patterns and components the product's views need, each read against the design system: what it reuses, what it adds of its own, what it proposes, and why. |
|
|
44
45
|
| Frames | `desk-draw-frames` | The product's views drawn in real HTML, one frame per view and state, each named so a ruling, a clip or a conversation can cite it. |
|
|
45
46
|
| Motion | `desk-animate-frames` | Short clips of the interactions between frames: a tap, a slide, a scroll, typed words, one clip per journey, with one symbol per kind of interaction and a caption per step. |
|
|
46
47
|
| Signage | `desk-design-signage` | The small fixed set of signs (a colour, a rule, a letter, a mark, a place) that mean the same thing in every view, and the rules for using them. |
|
|
48
|
+
| Ladder | `desk-plan-ladder` | How the product gets built: the work in lanes, each rung one pull request or one decision, with a card that says what it brings together, what it leaves out, what it waits for and how to tell it is done. |
|
|
47
49
|
| Studio | `desk-run-studio` | Where open questions are explored before they are decided: rounds of drawn options that commit to nothing, each ending in questions, with a ledger of what was asked, ruled and carried forward. |
|
|
48
50
|
| Info | `desk-assemble` | Keeps the desk itself: its list of tabs, the head of each, Info with its decisions and open questions, and the archive. |
|
|
49
51
|
|
|
@@ -0,0 +1,553 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: desk-map-blocks
|
|
3
|
+
description: Map a product's views to the blocks of the design system, read through its ontology, deciding per block whether to reuse, extend, borrow, propose or keep it in the application; also runs as a guided tutorial on a worked example
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Map Blocks
|
|
7
|
+
|
|
8
|
+
List the layouts, patterns and components a product's views need, and map each to the
|
|
9
|
+
design system. This is where a product starts connecting with Pragma: every row is read
|
|
10
|
+
against the design-system graph, and every row ends in a verdict with its reason.
|
|
11
|
+
|
|
12
|
+
The input is the views and layouts of `desk-model-domains`, and the frames of
|
|
13
|
+
`desk-draw-frames` when they exist. The output is one inventory: what the product needs,
|
|
14
|
+
what it reuses, what it adds of its own, and why.
|
|
15
|
+
|
|
16
|
+
**Be pragmatic. Reuse is a means, not a score.** A block from the design system is taken
|
|
17
|
+
when it fits the need, and only then. A part kept in the application is a sound verdict,
|
|
18
|
+
not a failure, and the application never waits on the design system. What this skill is
|
|
19
|
+
strict about is the reading: a block is judged by what the graph says about it, its
|
|
20
|
+
class, its tier, its stage, its guidance, its modifiers and properties, never by its name
|
|
21
|
+
alone.
|
|
22
|
+
|
|
23
|
+
In a fresh session, orient first:
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
pragma capabilities
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Working mode: assistant to a design authority
|
|
30
|
+
|
|
31
|
+
Most of the time this skill runs with an operator: a designer, an engineer or a product
|
|
32
|
+
lead who knows the product. They are the authority. You are the assistant whose job is
|
|
33
|
+
to make them successful:
|
|
34
|
+
|
|
35
|
+
- Say which step comes next and why.
|
|
36
|
+
- Do the legwork yourself. Read the views, look every candidate up, read its guidance,
|
|
37
|
+
check its implementation, draft the verdicts.
|
|
38
|
+
- Bring each decision as a recommendation plus a question, never as a fait accompli.
|
|
39
|
+
Ask about one concrete row at a time, and say what each verdict would mean for the
|
|
40
|
+
product and for the design system.
|
|
41
|
+
|
|
42
|
+
Full autonomy is the exception. Run the whole flow alone only when explicitly asked to.
|
|
43
|
+
Then no gate can be passed: run to the end, record every gate decision as a guess, leave
|
|
44
|
+
every row `not reviewed`, and list each judgment call in the final report.
|
|
45
|
+
|
|
46
|
+
Decision gates. Pause at each and resolve it WITH the operator:
|
|
47
|
+
|
|
48
|
+
1. Create or update, whenever the signs leave any doubt.
|
|
49
|
+
2. The product's tier: which tier its own blocks would live in, if any.
|
|
50
|
+
3. Each row whose verdict is not "reuse as it is".
|
|
51
|
+
4. Each proposal to the design system, before it is written up.
|
|
52
|
+
5. Anything moved out of blocks into data.
|
|
53
|
+
|
|
54
|
+
## When to Use
|
|
55
|
+
|
|
56
|
+
- The views of a product are named, and what they are made of has to be decided
|
|
57
|
+
- An existing application's components need sorting: what the design system already
|
|
58
|
+
has, what is the product's own, and what is neither
|
|
59
|
+
- A product wants to start using Pragma and needs to know where it stands
|
|
60
|
+
- An earlier inventory needs updating after new views, new frames, or a change in the
|
|
61
|
+
design system
|
|
62
|
+
|
|
63
|
+
## When NOT to Use
|
|
64
|
+
|
|
65
|
+
- No views yet: use `desk-model-domains` first
|
|
66
|
+
- Specifying one new block in full: use `specify-component` or `specify-pattern`, which
|
|
67
|
+
this skill hands its proposals to
|
|
68
|
+
- Swapping an application's code to design-system components: that is adoption work,
|
|
69
|
+
and it comes after the inventory says what to swap
|
|
70
|
+
- Auditing the design system itself: this skill reads the design system for one product,
|
|
71
|
+
it does not judge the catalogue
|
|
72
|
+
|
|
73
|
+
## Opening move: ask, or offer the tutorial
|
|
74
|
+
|
|
75
|
+
Unless the first message already names the work, ask for the starting point as a
|
|
76
|
+
suggestion carrying an example, not as a form to fill in:
|
|
77
|
+
|
|
78
|
+
> To get started, point me at the product's views: the Domain model tab of its desk, a
|
|
79
|
+
> views table, or the application's code. If the views are not named yet, we start with
|
|
80
|
+
> `desk-model-domains`.
|
|
81
|
+
|
|
82
|
+
If the message already carries the starting point, say what you took it to be, and go.
|
|
83
|
+
|
|
84
|
+
Offer the tutorial in the same breath:
|
|
85
|
+
|
|
86
|
+
> Or if you'd rather see the flow first, I can run it as a tutorial on a worked example:
|
|
87
|
+
> a tracker that measures design-system adoption across four apps.
|
|
88
|
+
|
|
89
|
+
Tutorial mode runs the same steps on the worked example at the end of this skill, with
|
|
90
|
+
the reasoning at each gate spelled out. It publishes and writes nothing unless the
|
|
91
|
+
operator asks to keep what was built.
|
|
92
|
+
|
|
93
|
+
## Read the situation: new or existing, create or update
|
|
94
|
+
|
|
95
|
+
Work out two things from context before step 1, and say what you took them to be in one
|
|
96
|
+
line.
|
|
97
|
+
|
|
98
|
+
- **New or existing application.** Existing when there is application code where you
|
|
99
|
+
are running, or the operator names an application or a repository. An existing
|
|
100
|
+
application adds a column to every row: what the part is made from today.
|
|
101
|
+
- **Create or update.** Update when an inventory already exists.
|
|
102
|
+
|
|
103
|
+
**When in doubt about create or update, ask in one plain line with two options. Never
|
|
104
|
+
guess, and never change an earlier inventory on a guess.**
|
|
105
|
+
|
|
106
|
+
**Is there a desk?** One exists where a file named `desk.js` sets `window.desk` with a
|
|
107
|
+
`tabs` list. If so, read its Info tab and the head of this tab first: they say what is
|
|
108
|
+
ruled and how far the tab is. Read the Domain model, Frames and Signage tabs too: the
|
|
109
|
+
views come from the first, the parts from the second, and the third may rule a block out
|
|
110
|
+
(a sign the block cannot carry, a box the signage forbids). The page is the desk's
|
|
111
|
+
`blocks` tab: if it is new, add it to the list in `desk.js` and start its page from this
|
|
112
|
+
skill's `tab.json`; write the page under its head, set the head's state, and add what the
|
|
113
|
+
owner rules to Info. Nothing needs building. If there is no desk, the page stands alone,
|
|
114
|
+
as it always can.
|
|
115
|
+
|
|
116
|
+
## Every step is narrated: outcome, path, conclusion
|
|
117
|
+
|
|
118
|
+
Open every step by telling the operator what it is FOR and how you will get there. Close
|
|
119
|
+
it with what it established and what that means for the next step. One sentence each is
|
|
120
|
+
enough. The operator can only steer a step they saw coming.
|
|
121
|
+
|
|
122
|
+
Do:
|
|
123
|
+
|
|
124
|
+
> **Step 5, the verdicts.** The outcome is one verdict per row, with its reason. I read
|
|
125
|
+
> each candidate's guidance, stage and implementation against the need, and I bring you
|
|
126
|
+
> every row that is not a plain reuse.
|
|
127
|
+
>
|
|
128
|
+
> …
|
|
129
|
+
>
|
|
130
|
+
> So: 14 rows reuse a block as it is, 4 take a modifier, 3 stay in the application, and
|
|
131
|
+
> 2 are proposals. The proposals go to step 6.
|
|
132
|
+
|
|
133
|
+
Don't:
|
|
134
|
+
|
|
135
|
+
> Step 5: Mapped 23 blocks. 61% reuse.
|
|
136
|
+
|
|
137
|
+
## Asked about the skill: methodology and outcomes first
|
|
138
|
+
|
|
139
|
+
Asked what this skill does, give the method and the outcome before the list of steps:
|
|
140
|
+
|
|
141
|
+
> It lists what a product's views are made of, and reads each part against the design
|
|
142
|
+
> system's graph: what kind of block it is, which tier has one, how far that block is,
|
|
143
|
+
> and whether its guidance fits. Each part ends with a verdict and a reason. You end
|
|
144
|
+
> holding an inventory that says what to reuse, what to build, and what to propose.
|
|
145
|
+
|
|
146
|
+
## The ontology, read thoroughly
|
|
147
|
+
|
|
148
|
+
Everything this skill decides rests on the design system's ontology, under the `ds:`
|
|
149
|
+
prefix. Read it live before the first lookup, never from memory:
|
|
150
|
+
|
|
151
|
+
```bash
|
|
152
|
+
pragma ontology list # the vocabularies and their prefixes
|
|
153
|
+
pragma ontology lookup ds --detail detailed
|
|
154
|
+
pragma block sample # real block records, to see their shape
|
|
155
|
+
pragma tier list
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
What follows is how the classes and properties are used here. The graph answers what
|
|
159
|
+
exists; this section says how to read it.
|
|
160
|
+
|
|
161
|
+
### The classes a row can take
|
|
162
|
+
|
|
163
|
+
Every row is one of the subclasses of `ds:UIBlock`. Choose by what the part does, not by
|
|
164
|
+
its size:
|
|
165
|
+
|
|
166
|
+
| Class | A row of this class |
|
|
167
|
+
|---|---|
|
|
168
|
+
| `ds:Layout` | The frame of a view: named regions and how they scroll. Holds no content of its own |
|
|
169
|
+
| `ds:Pattern` | Several blocks arranged to answer one recurring need, such as listing everything of a kind |
|
|
170
|
+
| `ds:Component` | One self-contained piece, usable on its own |
|
|
171
|
+
| `ds:Subcomponent` | A part that only makes sense inside its parent (`ds:parentComponent`); `ds:standalone` says when one may stand alone |
|
|
172
|
+
| `ds:Group` | A family of blocks documented together |
|
|
173
|
+
|
|
174
|
+
`ds:Modifier` and `ds:ModifierFamily` are not rows. They are how a block varies (size,
|
|
175
|
+
importance, density), and they are often the answer to "the block almost fits".
|
|
176
|
+
|
|
177
|
+
When a part could be argued into two classes, say so in the row, choose one, and list it
|
|
178
|
+
under what is least sure. A layout or a pattern, a component or a subcomponent: these
|
|
179
|
+
are real questions, and the operator rules them.
|
|
180
|
+
|
|
181
|
+
### What a block carries
|
|
182
|
+
|
|
183
|
+
Read these on every candidate, through `pragma block lookup --tier all <name>`:
|
|
184
|
+
|
|
185
|
+
| Property | What it tells this skill |
|
|
186
|
+
|---|---|
|
|
187
|
+
| `ds:name` | The display name. **Not unique**: several tiers can carry one name, as different blocks, even of different classes |
|
|
188
|
+
| `ds:tier` | Where the block lives, which decides who may use it (below) |
|
|
189
|
+
| `ds:summary`, `ds:usage`, `ds:guidelines` | Whether it fits. A name match is a candidate; only the usage and guidelines make it a fit |
|
|
190
|
+
| `ds:documentationStage` | How far the block is: a `ds:Tag` such as `needs:triage`, `needs:design`, `needs:core_documentation`, `docs:complete`, or `triaged:rejected` |
|
|
191
|
+
| `ds:hasModifierFamily` | The ways it may vary. A need covered by a modifier is a reuse, not a new block |
|
|
192
|
+
| `ds:hasProperty` | Its props (`ds:Property`: `ds:propertyType`, `ds:optional`, `ds:defaultValue`, `ds:constraints`). A need covered by a prop is a reuse |
|
|
193
|
+
| `ds:hasSubcomponent` | Its parts, each a `ds:Subcomponent` |
|
|
194
|
+
| `ds:variantOf`, `ds:hasVariant` | A named variant of another block |
|
|
195
|
+
| `ds:inheritsFrom`, `ds:specializedBy` | A block built on another, such as an icon button on a button |
|
|
196
|
+
| `ds:anatomyDsl`, `ds:anatomyClassic` | Its anatomy, to compare with the part's own |
|
|
197
|
+
| `ds:hasTokenBinding` | The tokens it consumes, to check against the signage |
|
|
198
|
+
| `ds:changeLog` | Why it is the way it is; read it before arguing with a block |
|
|
199
|
+
|
|
200
|
+
A layout carries more: `ds:grid` and `ds:gridAreas` (its regions), `ds:domain` (the
|
|
201
|
+
category of content it organises, in the graph's own words) and `ds:targetDevices`.
|
|
202
|
+
Compare a view's regions with them before calling a layout a fit.
|
|
203
|
+
|
|
204
|
+
### Tags: the stage of a block
|
|
205
|
+
|
|
206
|
+
Tags (`ds:Tag`, each in a `ds:TagCategory`) say how far a block is and what was decided
|
|
207
|
+
about it. List them live:
|
|
208
|
+
|
|
209
|
+
```bash
|
|
210
|
+
pragma graph query "SELECT ?category ?tag ?when WHERE { ?t a ds:Tag ; ds:name ?tag ; ds:category ?c . ?c ds:name ?category . OPTIONAL { ?t ds:whenToApply ?when } } ORDER BY ?category ?tag"
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
Read the stage into the verdict:
|
|
214
|
+
|
|
215
|
+
- **`triaged:rejected`**: the design system decided against this block. Do not reuse
|
|
216
|
+
it, and do not propose it again without new evidence. Say so in the row.
|
|
217
|
+
- **`needs:triage`, `needs:design`, `triaged:backlog`**: the block is a name with a
|
|
218
|
+
promise. Reusing it means adopting something unproven; say "unproven" in the row.
|
|
219
|
+
- **`needs:core_documentation`, `needs:full_documentation`**: it exists and is usable,
|
|
220
|
+
with gaps in its guidance. Read what there is.
|
|
221
|
+
- **`docs:complete`**: reviewed and accepted.
|
|
222
|
+
- **Channels (`edge`, `beta`, `candidate`, `stable`)** and the implementation tags say
|
|
223
|
+
how safe it is to depend on.
|
|
224
|
+
|
|
225
|
+
### Tiers: who may use what
|
|
226
|
+
|
|
227
|
+
A block's tier decides who may use it. `pragma tier list` gives the tiers. They form a
|
|
228
|
+
tree read from the name: `global` above all, `apps` under it for applications, and
|
|
229
|
+
`apps_<product>` under `apps` for one product. `documentation` and `sites` are separate
|
|
230
|
+
branches. A read scoped to a tier answers that tier and its ancestors.
|
|
231
|
+
|
|
232
|
+
For a product in `apps_<product>`, the order of preference is:
|
|
233
|
+
|
|
234
|
+
1. **The product's own tier and its ancestors** (`apps_<product>`, `apps`, `global`).
|
|
235
|
+
These are the product's to use.
|
|
236
|
+
2. **A sibling tier** (another product's `apps_<other>`). Usable, labelled "borrowed
|
|
237
|
+
from `<tier>`", and listed as a candidate to move to a shared tier.
|
|
238
|
+
3. **Another branch** (`documentation`, `sites`). Only for a part that truly is that
|
|
239
|
+
kind of thing, and labelled as borrowed.
|
|
240
|
+
|
|
241
|
+
A product with no tier of its own yet is common. Then its own blocks have nowhere ruled
|
|
242
|
+
to live: write "tier to be ruled" in those rows and bring it to gate 2. Creating a tier is
|
|
243
|
+
the design system's decision, not this skill's.
|
|
244
|
+
|
|
245
|
+
### Implementations: can the product use it today
|
|
246
|
+
|
|
247
|
+
A block in the graph is a specification. Whether the product can import it is a separate
|
|
248
|
+
question, answered by the implementation tools, not by a join of your own:
|
|
249
|
+
|
|
250
|
+
```bash
|
|
251
|
+
pragma implementation libraries # the libraries, their platform, tier and version
|
|
252
|
+
pragma implementation list --search <name> # which library implements a block, and its source
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
Record, per reused block, the library and platform that implement it, or "no
|
|
256
|
+
implementation for <platform>". A block with no implementation in the product's framework
|
|
257
|
+
is still the right design answer; the row says the product builds it to the block's
|
|
258
|
+
specification until the design system ships it.
|
|
259
|
+
|
|
260
|
+
### Reading a lookup without being fooled
|
|
261
|
+
|
|
262
|
+
- **A name fans out across tiers.** `pragma block lookup --tier all <name>` answers one
|
|
263
|
+
full writeup per tier that carries the name, each under its own heading with its own
|
|
264
|
+
`- Tier:` line. Read every one. The same name can be a component in one tier and a
|
|
265
|
+
rejected pattern in another. Without `--tier`, a lookup reads only the top-level
|
|
266
|
+
tiers, and a sibling product's block stays hidden.
|
|
267
|
+
- **Address one block by its IRI** once you know which: `pragma graph inspect <IRI>`
|
|
268
|
+
prints everything recorded about it.
|
|
269
|
+
- **Scope to the product's tier** to see what it may use: `pragma block list --tier
|
|
270
|
+
apps_<product>`. Use `--tier all` to see everything, including siblings.
|
|
271
|
+
- **A lookup that prints only a tier is not an error**: that block is a name with no
|
|
272
|
+
guidance yet. Treat it as unproven.
|
|
273
|
+
- **If a read answers `STORE_UNAVAILABLE`**, run `pragma sources update` in that folder
|
|
274
|
+
first.
|
|
275
|
+
|
|
276
|
+
> The covered set is whatever the graph answers today. Query it live. Never copy its
|
|
277
|
+
> output into documentation, PRs, or this skill.
|
|
278
|
+
|
|
279
|
+
Queries this skill uses, beyond the lookups:
|
|
280
|
+
|
|
281
|
+
```bash
|
|
282
|
+
# Every block, with its class, tier and stage
|
|
283
|
+
pragma graph query "SELECT ?name ?class ?tier ?stage WHERE { ?b a ?class ; ds:name ?name ; ds:tier ?t . ?t ds:name ?tier . OPTIONAL { ?b ds:documentationStage ?s . ?s ds:name ?stage } FILTER(?class IN (ds:Layout, ds:Pattern, ds:Component, ds:Subcomponent, ds:Group)) } ORDER BY ?class ?name"
|
|
284
|
+
|
|
285
|
+
# Names that several blocks share, and where
|
|
286
|
+
pragma graph query "SELECT ?name (COUNT(DISTINCT ?b) AS ?blocks) (GROUP_CONCAT(DISTINCT ?tier; separator=', ') AS ?tiers) WHERE { ?b ds:name ?name ; ds:tier ?t . ?t ds:name ?tier } GROUP BY ?name HAVING (COUNT(DISTINCT ?b) > 1)"
|
|
287
|
+
|
|
288
|
+
# Layouts, with their regions and the content they organise
|
|
289
|
+
pragma graph query "SELECT ?name ?tier ?grid ?areas ?domain ?devices WHERE { ?l a ds:Layout ; ds:name ?name ; ds:tier ?t . ?t ds:name ?tier . OPTIONAL { ?l ds:grid ?grid } OPTIONAL { ?l ds:gridAreas ?areas } OPTIONAL { ?l ds:domain ?domain } OPTIONAL { ?l ds:targetDevices ?devices } }"
|
|
290
|
+
|
|
291
|
+
# Blocks built on others: variants, and specialisations
|
|
292
|
+
pragma graph query "SELECT ?name ?relation ?other WHERE { ?b ds:name ?name ; ?relation ?o . ?o ds:name ?other . VALUES ?relation { ds:variantOf ds:inheritsFrom } }"
|
|
293
|
+
|
|
294
|
+
# A component's parts
|
|
295
|
+
pragma graph query "SELECT ?part ?standalone WHERE { ?s a ds:Subcomponent ; ds:name ?part ; ds:parentComponent ?p . ?p ds:name '<Component>' . OPTIONAL { ?s ds:standalone ?standalone } }"
|
|
296
|
+
```
|
|
297
|
+
|
|
298
|
+
## The verdicts
|
|
299
|
+
|
|
300
|
+
Every row ends in one verdict. They are listed from the cheapest for the product to the
|
|
301
|
+
dearest, but the first that fits is taken, not the first on the list:
|
|
302
|
+
|
|
303
|
+
| Verdict | When | What the row records |
|
|
304
|
+
|---|---|---|
|
|
305
|
+
| **Reuse** | A block in the product's tier or an ancestor fits by its usage and guidelines | The block's IRI, its stage, its implementation |
|
|
306
|
+
| **Reuse with a modifier or a prop** | It fits once a modifier or a property is set | Which modifier or property, and its value |
|
|
307
|
+
| **Compose** | No block fits, but existing blocks arranged in the view answer it, and the arrangement is not recurring | The blocks used; nothing to propose |
|
|
308
|
+
| **Borrow** | A block in a sibling tier fits | "Borrowed from `<tier>`", and a note to move it to a shared tier |
|
|
309
|
+
| **Extend** | A block almost fits, and the gap is a variant (`ds:variantOf`) or a specialisation (`ds:inheritsFrom`) | The gap in one sentence, and who would own the variant |
|
|
310
|
+
| **Keep in the application** | The part is the product's own: used in one product, often in one view | Why it is the product's own; no proposal |
|
|
311
|
+
| **Propose** | The part recurs, and the design system has nothing that fits | The tier it would live in, and the handover to `specify-component` or `specify-pattern` |
|
|
312
|
+
| **Not a block** | The part is plain HTML, data, or a rule, not a piece of interface | What it becomes instead |
|
|
313
|
+
|
|
314
|
+
Rules that keep the balance:
|
|
315
|
+
|
|
316
|
+
- **A name match is a candidate, not a fit.** Read the usage and guidelines. When they
|
|
317
|
+
exclude the case, the block is not reused, whatever its name.
|
|
318
|
+
- **Do not force a block onto a need.** A block bent out of its guidelines costs more
|
|
319
|
+
than a small part of the product's own.
|
|
320
|
+
- **Do not create what a modifier covers.** Before any new block, check the candidate's
|
|
321
|
+
modifier families and properties.
|
|
322
|
+
- **Propose only what recurs.** A part proposed to a shared tier needs a second product
|
|
323
|
+
that would use it. A part proposed to the product's own tier needs a second view. Until
|
|
324
|
+
then it is kept in the application, and the row says what would make it a proposal.
|
|
325
|
+
- **The signage can rule a block out.** When a desk's signage forbids what a block does
|
|
326
|
+
(a box, a second text size, a colour used as a sign), the row says which rule, and the
|
|
327
|
+
verdict moves down.
|
|
328
|
+
- **Not everything is a block.** One wrapper per kind of thing is usually data (a rule
|
|
329
|
+
that picks how a kind is shown), not a block per kind. A heading is an HTML element.
|
|
330
|
+
Say what the part becomes.
|
|
331
|
+
- **The application never waits.** A proposal is a suggestion to the design system. The
|
|
332
|
+
product builds its part meanwhile, to the specification it proposes.
|
|
333
|
+
|
|
334
|
+
## The output
|
|
335
|
+
|
|
336
|
+
The inventory sits on the desk's `blocks` tab, or on a page of its own. With the
|
|
337
|
+
recommended form, its data is `blocks.json` beside the page, and the page embeds a copy
|
|
338
|
+
of it, the way the Journeys tab embeds `journeys.json`.
|
|
339
|
+
|
|
340
|
+
```json
|
|
341
|
+
{
|
|
342
|
+
"product": "",
|
|
343
|
+
"tier": { "name": "", "ruled": false },
|
|
344
|
+
"made": { "date": "", "from": [""], "read": "what was read, and what was not" },
|
|
345
|
+
"rows": [{
|
|
346
|
+
"id": "",
|
|
347
|
+
"class": "ds:Layout | ds:Pattern | ds:Component | ds:Subcomponent",
|
|
348
|
+
"name": "",
|
|
349
|
+
"need": "one sentence",
|
|
350
|
+
"views": [""],
|
|
351
|
+
"madeFrom": [""],
|
|
352
|
+
"candidates": [{ "iri": "", "tier": "", "stage": "", "implementation": "" }],
|
|
353
|
+
"verdict": "reuse | modifier | compose | borrow | extend | keep | propose | not-a-block",
|
|
354
|
+
"reason": "",
|
|
355
|
+
"status": "not reviewed"
|
|
356
|
+
}],
|
|
357
|
+
"data": [{ "what": "", "becomes": "" }],
|
|
358
|
+
"leastSure": [""]
|
|
359
|
+
}
|
|
360
|
+
```
|
|
361
|
+
|
|
362
|
+
The page shows, in this order:
|
|
363
|
+
|
|
364
|
+
1. **How this list was made**: the date, what it was built from, which queries were run,
|
|
365
|
+
and what was not read. A row classified from a name and a one-line description says
|
|
366
|
+
so.
|
|
367
|
+
2. **The classes**: one line each for the classes the rows use, in this product's words.
|
|
368
|
+
3. **Totals**: rows per class, and per verdict.
|
|
369
|
+
4. **The rows**, grouped by class: layouts, then patterns, then components and their
|
|
370
|
+
subcomponents.
|
|
371
|
+
5. **What becomes data, not blocks.**
|
|
372
|
+
6. **What is least sure.**
|
|
373
|
+
|
|
374
|
+
A view's layout is decided by `desk-model-domains`. This skill copies it into its layout
|
|
375
|
+
rows, checks it against `ds:grid` and `ds:gridAreas`, and sends a disagreement back to
|
|
376
|
+
that skill rather than changing the view.
|
|
377
|
+
|
|
378
|
+
Where the output is committed, that repository's rules and the `git` standards apply
|
|
379
|
+
(`pragma standard categories` lists the current set).
|
|
380
|
+
|
|
381
|
+
## The seven steps
|
|
382
|
+
|
|
383
|
+
### 1. Start from the views
|
|
384
|
+
|
|
385
|
+
Read the views, their layouts and their questions from the Domain model tab or the views
|
|
386
|
+
table. Read the frames when they exist: they show what each view is made of. For an
|
|
387
|
+
existing application, list its component folders too, with what each one renders.
|
|
388
|
+
|
|
389
|
+
If there are no views, stop and go to `desk-model-domains`. Do not invent views here.
|
|
390
|
+
|
|
391
|
+
Outcome gate: **the views are in hand, with their layouts; for an existing application,
|
|
392
|
+
its components are listed.**
|
|
393
|
+
|
|
394
|
+
### 2. The product's tier
|
|
395
|
+
|
|
396
|
+
Find where the product sits in the design system: `pragma tier list`, then
|
|
397
|
+
`pragma block list --tier apps_<product>` if it has a tier. Say which tiers the product
|
|
398
|
+
may use (its own and its ancestors), and which are siblings.
|
|
399
|
+
|
|
400
|
+
If the product has no tier, say so, and ask the operator where its own blocks would
|
|
401
|
+
live. "To be ruled" is an answer.
|
|
402
|
+
|
|
403
|
+
Outcome gate: **the product's tier is named, or recorded as to be ruled.**
|
|
404
|
+
|
|
405
|
+
### 3. Read the design system
|
|
406
|
+
|
|
407
|
+
Run the ontology lookups and the queries above, and read the tags. Read the whole list of
|
|
408
|
+
blocks the product may use, not only the names you expect to need. A block you did not
|
|
409
|
+
know about is the reason to read it.
|
|
410
|
+
|
|
411
|
+
Outcome gate: **the classes, tags and tiers are read live, and the list of blocks the
|
|
412
|
+
product may use is in hand.**
|
|
413
|
+
|
|
414
|
+
### 4. List the parts
|
|
415
|
+
|
|
416
|
+
Walk the views, one at a time. For each, write its layout, then the patterns in it, then
|
|
417
|
+
the components, then the subcomponents worth naming. Give each part its class, its need
|
|
418
|
+
in one sentence, and the views it appears in. A part in several views is one row.
|
|
419
|
+
|
|
420
|
+
For an existing application, write what each part is made from today. Several of today's
|
|
421
|
+
components often make one part; one component sometimes makes several.
|
|
422
|
+
|
|
423
|
+
Outcome gate: **every view's parts are rows; every row has a class, a need and its
|
|
424
|
+
views.**
|
|
425
|
+
|
|
426
|
+
### 5. The verdicts
|
|
427
|
+
|
|
428
|
+
For each row, look the candidates up: by name, by what the need is called in other
|
|
429
|
+
words, and by browsing the class in the product's tiers. Read each candidate in full:
|
|
430
|
+
tier, stage, usage, guidelines, modifiers, properties, subcomponents, variants,
|
|
431
|
+
implementation. Then give the verdict and its reason.
|
|
432
|
+
|
|
433
|
+
Bring every row that is not a plain reuse to the operator, one at a time. A reuse that
|
|
434
|
+
depends on an unproven block is brought too.
|
|
435
|
+
|
|
436
|
+
Outcome gate: **every row has a verdict and a reason; the operator has ruled on every row
|
|
437
|
+
that is not a plain reuse.**
|
|
438
|
+
|
|
439
|
+
### 6. Proposals
|
|
440
|
+
|
|
441
|
+
For each row with the verdict "propose", write a short proposal: its class, its purpose
|
|
442
|
+
in one sentence, the views and products that need it, its tier, the closest existing
|
|
443
|
+
block and why it does not fit. Its full specification is then written with
|
|
444
|
+
`specify-component` or `specify-pattern`. Never write into the design system's `data/`.
|
|
445
|
+
|
|
446
|
+
A proposal that is a variant or a specialisation of an existing block names that block
|
|
447
|
+
and the relation (`ds:variantOf` or `ds:inheritsFrom`).
|
|
448
|
+
|
|
449
|
+
Outcome gate: **the operator has seen every proposal; each is handed over or kept in the
|
|
450
|
+
application.**
|
|
451
|
+
|
|
452
|
+
### 7. Write the inventory
|
|
453
|
+
|
|
454
|
+
Write the page and its data. Read every outcome gate again against the rows. Fill "How
|
|
455
|
+
this list was made" and "What is least sure" honestly: what was guessed is said to be
|
|
456
|
+
guessed.
|
|
457
|
+
|
|
458
|
+
Outcome gate: **the inventory is written; every row is in exactly one class with one
|
|
459
|
+
verdict.**
|
|
460
|
+
|
|
461
|
+
## Running as an update
|
|
462
|
+
|
|
463
|
+
The inventory rests on the views and on the design system. Either can move.
|
|
464
|
+
|
|
465
|
+
**Start every update by finding what moved.** Run the queries again and compare: a block
|
|
466
|
+
that reached a new stage, a block that appeared in the product's tiers, a block
|
|
467
|
+
implemented in the product's framework, a block rejected. Compare the views too: a view
|
|
468
|
+
added, cut or changed. Tell the operator what you found before changing anything.
|
|
469
|
+
|
|
470
|
+
| What changed | What to do |
|
|
471
|
+
|---|---|
|
|
472
|
+
| A view was added | List its parts (step 4); most will already be rows |
|
|
473
|
+
| A view was cut | Look at each row only it used. Mark it deferred; nothing is removed silently |
|
|
474
|
+
| A block appeared that fits a "keep" or "propose" row | Bring the row back to the operator: reuse is now possible, not required |
|
|
475
|
+
| A reused block was rejected or changed | Bring the row back with what changed |
|
|
476
|
+
| A proposal was accepted into the design system | The row becomes a reuse, with the new block's IRI |
|
|
477
|
+
| A part now recurs in a second view or product | Its "keep" may become a "propose" |
|
|
478
|
+
|
|
479
|
+
A changed or new row is marked, with the date of the round.
|
|
480
|
+
|
|
481
|
+
## Response format
|
|
482
|
+
|
|
483
|
+
```markdown
|
|
484
|
+
Situation: <new | existing> application, <create | update>
|
|
485
|
+
Tier: <apps_product | to be ruled>; may use: <tiers>
|
|
486
|
+
Output: <form> at <place>
|
|
487
|
+
|
|
488
|
+
- [ ] 1. Views read: <n> views, <n> layouts (<n> components today)
|
|
489
|
+
- [ ] 2. Tier: <name | to be ruled>
|
|
490
|
+
- [ ] 3. Design system read: <n> blocks the product may use
|
|
491
|
+
- [ ] 4. Parts: <n> layouts, <n> patterns, <n> components, <n> subcomponents
|
|
492
|
+
- [ ] 5. Verdicts: <n> reuse, <n> modifier, <n> compose, <n> borrow, <n> extend, <n> keep, <n> propose, <n> not a block
|
|
493
|
+
- [ ] 6. Proposals: <n> handed to specify-component or specify-pattern
|
|
494
|
+
- [ ] 7. Written; least sure: …
|
|
495
|
+
|
|
496
|
+
On an update, what moved: …
|
|
497
|
+
Rows sent back to desk-model-domains: …
|
|
498
|
+
Judgment calls made without the operator: …
|
|
499
|
+
```
|
|
500
|
+
|
|
501
|
+
## Worked example: the adoption tracker
|
|
502
|
+
|
|
503
|
+
This continues the example of `desk-model-domains`: Apps, Components and Runs, with one
|
|
504
|
+
usages list shown pre-filtered in three places, and two views that found no layout in the
|
|
505
|
+
graph, a report and an explorer.
|
|
506
|
+
|
|
507
|
+
The design system below is described as the tutorial supposes it. In a real run, query
|
|
508
|
+
it: the lesson is the reading, not the answers.
|
|
509
|
+
|
|
510
|
+
**Step 2.** The tracker has no tier of its own. It may use `apps` and `global`. Its own
|
|
511
|
+
blocks are "tier to be ruled", and the operator rules that they stay in the application
|
|
512
|
+
until a second product wants one.
|
|
513
|
+
|
|
514
|
+
**Step 4 and 5, a few rows:**
|
|
515
|
+
|
|
516
|
+
| Row | Class | Verdict | Why |
|
|
517
|
+
|---|---|---|---|
|
|
518
|
+
| Apps list, components list, runs list | `ds:Layout` | Reuse, unproven | A list page layout in `apps` fits by name and regions; its stage is `needs:triage`, so the row says "unproven" |
|
|
519
|
+
| One app, one component, one run | `ds:Layout` | Reuse | A view layout in `apps` whose `ds:domain` is a view |
|
|
520
|
+
| Report | `ds:Layout` | Keep | Nothing fits; one view needs it. Proposed if a second view or product does |
|
|
521
|
+
| Usages list | `ds:Pattern` | Reuse | A data list pattern in `apps` answers "list, filter, sort, count" by its usage |
|
|
522
|
+
| A run's facts | `ds:Pattern` | Not a block | The lookup for a description list answers twice: a component in a sibling product's tier, and a pattern in `global` tagged `triaged:rejected`. The rejected one is not reused; the borrowed one is more than the need. A plain `<dl>` does the job |
|
|
523
|
+
| An app's status | `ds:Component` | Reuse with a modifier | A badge in `global`; its importance modifier carries pass or fail, so no new block |
|
|
524
|
+
| Usage bar | `ds:Component` | Keep | One view, one product. Not proposed |
|
|
525
|
+
| One card per app and per component | `ds:Component` | Not a block | Two wrappers for two kinds are one card and a rule that picks what it shows |
|
|
526
|
+
|
|
527
|
+
**What the tutorial should bring out:**
|
|
528
|
+
|
|
529
|
+
- **The fan-out.** The description list is the lesson: one name, two tiers, two classes,
|
|
530
|
+
and one of them rejected. A name match was never a fit.
|
|
531
|
+
- **The modifier.** The status badge was nearly a new component, until its modifier
|
|
532
|
+
families were read.
|
|
533
|
+
- **Keeping is a verdict.** The usage bar and the report stay in the application, with
|
|
534
|
+
what would make them proposals. Nobody is blocked.
|
|
535
|
+
- **Data, not blocks.** A wrapper per kind looks like many components and is one rule.
|
|
536
|
+
|
|
537
|
+
## Related skills
|
|
538
|
+
|
|
539
|
+
- `desk-model-domains`: what comes first; its views and layouts are this skill's input
|
|
540
|
+
- `desk-draw-frames`: the frames show what each view is made of
|
|
541
|
+
- `desk-design-signage`: its rules can rule a block out
|
|
542
|
+
- `specify-component` and `specify-pattern`: where a proposal is specified in full
|
|
543
|
+
- `desk-assemble`: gives the page its tab when the product has a desk
|
|
544
|
+
|
|
545
|
+
## Support
|
|
546
|
+
|
|
547
|
+
If this skill leads somewhere broken (a command that errors, guidance that contradicts
|
|
548
|
+
what the live system answers, a gap the flow cannot cover) you are not stuck:
|
|
549
|
+
|
|
550
|
+
- Raise an issue in the pragma-core repo: https://github.com/canonical/pragma-core/issues,
|
|
551
|
+
with the skill name, what was run, and expected vs. actual outcome.
|
|
552
|
+
- Or contact the design-system team owners directly through your organization's
|
|
553
|
+
professional messaging channels for assistance.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../desk-assemble/tab.schema.json",
|
|
3
|
+
"id": "blocks",
|
|
4
|
+
"title": "Blocks",
|
|
5
|
+
"file": "blocks.html",
|
|
6
|
+
"rank": 38,
|
|
7
|
+
"kind": "shared",
|
|
8
|
+
"purpose": "The layouts, patterns and components the product's views need, each read against the design system: what it reuses, what it adds of its own, what it proposes, and why.",
|
|
9
|
+
"filledFrom": "the views on the Domain model tab, the frames, and the design-system graph",
|
|
10
|
+
"empty": {
|
|
11
|
+
"headline": "No blocks yet.",
|
|
12
|
+
"until": "The list starts once the Domain model names the views: each view's parts are read off it, then looked up in the design system."
|
|
13
|
+
},
|
|
14
|
+
"rules": [
|
|
15
|
+
"A block is reused when its usage and guidelines fit the need. A name match alone is a candidate, not a fit.",
|
|
16
|
+
"Keeping a part in the application is a verdict, not a failure. The application never waits on the design system.",
|
|
17
|
+
"A part is proposed to a shared tier only when a second product needs it, and to the product's own tier only when a second view does."
|
|
18
|
+
]
|
|
19
|
+
}
|
|
@@ -0,0 +1,502 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: desk-plan-ladder
|
|
3
|
+
description: Plan how a product gets built as a ladder of lanes and pull requests, each with a card the owner approves before work starts, kept as facts a board or a tracker can be drawn from; optionally mirrored into Jira, Linear or GitHub with whatever access the operator has; also runs as a guided tutorial on a worked example
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Plan the Ladder
|
|
7
|
+
|
|
8
|
+
Plan how a product gets built: the work in order, as lanes, and in each lane the
|
|
9
|
+
pull requests that climb it. This is the ladder. Every rung has a card that says what it
|
|
10
|
+
does, what it leaves out, what it waits for, and how to tell it is done.
|
|
11
|
+
|
|
12
|
+
The input is what the other tabs decided: the views of `desk-model-domains`, the blocks
|
|
13
|
+
of `desk-map-blocks`, the rulings on Info, and, for an existing product, its open pull
|
|
14
|
+
requests and branches. The output is one ladder the owner can steer by.
|
|
15
|
+
|
|
16
|
+
**A ladder is facts, not a drawing.** Every statement on it is something that could be a
|
|
17
|
+
node or an edge: a rung with an id, a kind, a state, what it waits for and who climbs it.
|
|
18
|
+
A board of Now, Next and Later, the order of the work, the longest path: these are views
|
|
19
|
+
worked out from the facts, never kept by hand beside them. Kept this way, the ladder can
|
|
20
|
+
be turned into a graph, a board or a tracker's issues without losing anything.
|
|
21
|
+
|
|
22
|
+
**No rung is built from its title.** A one-line rung lets whoever builds it make the
|
|
23
|
+
design decisions nobody saw. Each rung that builds something gets a card, and work
|
|
24
|
+
starts only from a card the owner approved.
|
|
25
|
+
|
|
26
|
+
In a fresh session, orient first:
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
pragma capabilities
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Working mode: assistant to a design authority
|
|
33
|
+
|
|
34
|
+
Most of the time this skill runs with an operator: the owner of the product, or someone
|
|
35
|
+
who steers its work. They are the authority. You are the assistant whose job is to make
|
|
36
|
+
them successful:
|
|
37
|
+
|
|
38
|
+
- Say which step comes next and why.
|
|
39
|
+
- Do the legwork yourself. Read the decisions, the open pull requests and the branches,
|
|
40
|
+
measure what exists, draft the lanes and the cards.
|
|
41
|
+
- Bring each decision as a recommendation plus a question, never as a fait accompli.
|
|
42
|
+
Ask about one concrete rung at a time, and say what each option would mean.
|
|
43
|
+
|
|
44
|
+
Full autonomy is the exception. Run the whole flow alone only when explicitly asked to.
|
|
45
|
+
Then no gate can be passed: run to the end, leave every card `proposed`, and list each
|
|
46
|
+
judgment call in the final report.
|
|
47
|
+
|
|
48
|
+
Decision gates. Pause at each and resolve it WITH the operator:
|
|
49
|
+
|
|
50
|
+
1. Create or update, whenever the signs leave any doubt.
|
|
51
|
+
2. The top of the ladder: what it climbs to, and what is out of it.
|
|
52
|
+
3. The lanes.
|
|
53
|
+
4. Each card, before it is approved, and each open question on it.
|
|
54
|
+
5. Every split or merge of rungs.
|
|
55
|
+
6. Every write to a tracker, if the ladder is paired with one.
|
|
56
|
+
|
|
57
|
+
## When to Use
|
|
58
|
+
|
|
59
|
+
- What a product needs is decided well enough to plan how it gets built
|
|
60
|
+
- Work in flight (open pull requests, branches, a long stack) needs sorting into what
|
|
61
|
+
lands, in what order, and what waits
|
|
62
|
+
- A plan has one-line items, and the work is going places nobody announced
|
|
63
|
+
- A ladder needs updating after merges, new rulings, or a change of direction
|
|
64
|
+
- A ladder needs mirroring into a tracker (Jira, Linear, GitHub), or comparing with what the tracker says
|
|
65
|
+
|
|
66
|
+
## When NOT to Use
|
|
67
|
+
|
|
68
|
+
- What the product is, or does, is still open: use `desk-map-journeys` and
|
|
69
|
+
`desk-model-domains` first; a ladder orders work, it does not decide the product
|
|
70
|
+
- Specifying one block: use `specify-component` or `specify-pattern`; the ladder only
|
|
71
|
+
holds the rung that builds it
|
|
72
|
+
- Building a rung: the ladder plans the work, it does not do it
|
|
73
|
+
- Tracking one pull request's review: that lives on the pull request
|
|
74
|
+
|
|
75
|
+
## Opening move: ask, or offer the tutorial
|
|
76
|
+
|
|
77
|
+
Unless the first message already names the work, ask for the starting point as a
|
|
78
|
+
suggestion carrying an example, not as a form to fill in:
|
|
79
|
+
|
|
80
|
+
> To get started, tell me what the ladder climbs to, for example "the docs site runs on
|
|
81
|
+
> the new engine", and point me at what is decided: the desk, the decision records, and
|
|
82
|
+
> the repositories with their open pull requests.
|
|
83
|
+
|
|
84
|
+
If the message already carries the starting point, say what you took it to be, and go.
|
|
85
|
+
|
|
86
|
+
Offer the tutorial in the same breath:
|
|
87
|
+
|
|
88
|
+
> Or if you'd rather see the flow first, I can run it as a tutorial on a worked example:
|
|
89
|
+
> a tracker that measures design-system adoption across four apps.
|
|
90
|
+
|
|
91
|
+
Tutorial mode runs the same steps on the worked example at the end of this skill, with
|
|
92
|
+
the reasoning at each gate spelled out. It writes nothing, and touches no tracker,
|
|
93
|
+
unless the operator asks to keep what was built.
|
|
94
|
+
|
|
95
|
+
## Read the situation: new or existing, create or update
|
|
96
|
+
|
|
97
|
+
Work out two things from context before step 1, and say what you took them to be in one
|
|
98
|
+
line.
|
|
99
|
+
|
|
100
|
+
- **New or existing product.** Existing when there is code, open pull requests or
|
|
101
|
+
branches for it. Then work in flight is part of the ladder: every open pull request is
|
|
102
|
+
either a rung, folded into one, or cut, and the ladder says which.
|
|
103
|
+
- **Create or update.** Update when a ladder already exists.
|
|
104
|
+
|
|
105
|
+
**When in doubt about create or update, ask in one plain line with two options. Never
|
|
106
|
+
guess, and never change an earlier ladder on a guess.**
|
|
107
|
+
|
|
108
|
+
**Is there a desk?** One exists where a file named `desk.js` sets `window.desk` with a
|
|
109
|
+
`tabs` list. If so, read its Info tab and the head of this tab first: they say what is
|
|
110
|
+
ruled and how far the tab is. Read the Domain model and Blocks tabs too: the views and
|
|
111
|
+
the blocks are what most rungs build. The page is the desk's `ladder` tab: if it is new,
|
|
112
|
+
add it to the list in `desk.js` and start its page from this skill's `tab.json`; write
|
|
113
|
+
the page under its head, set the head's state, and add what the owner rules to Info.
|
|
114
|
+
Nothing needs building. If there is no desk, the page stands alone, as it always can.
|
|
115
|
+
|
|
116
|
+
## Every step is narrated: outcome, path, conclusion
|
|
117
|
+
|
|
118
|
+
Open every step by telling the operator what it is FOR and how you will get there. Close
|
|
119
|
+
it with what it established and what that means for the next step. One sentence each is
|
|
120
|
+
enough. The operator can only steer a step they saw coming.
|
|
121
|
+
|
|
122
|
+
Do:
|
|
123
|
+
|
|
124
|
+
> **Step 4, the cards.** The outcome is a card per rung that you can approve or change.
|
|
125
|
+
> I write what each rung brings together and leaves out, measure what it touches today,
|
|
126
|
+
> and bring you every open question with options and a recommendation.
|
|
127
|
+
>
|
|
128
|
+
> …
|
|
129
|
+
>
|
|
130
|
+
> So: nine cards, three with an open question. A1 cannot start until the slot list is
|
|
131
|
+
> ruled. Step 5 orders them.
|
|
132
|
+
|
|
133
|
+
Don't:
|
|
134
|
+
|
|
135
|
+
> Step 4: Wrote 9 cards.
|
|
136
|
+
|
|
137
|
+
## Asked about the skill: methodology and outcomes first
|
|
138
|
+
|
|
139
|
+
Asked what this skill does, give the method and the outcome before the list of steps:
|
|
140
|
+
|
|
141
|
+
> It plans how the product gets built, as lanes of pull requests. Each pull request gets
|
|
142
|
+
> a card you approve before anyone starts: its goal, what it brings together, what it
|
|
143
|
+
> leaves out, what it waits for, and how to tell it is done. Everything is kept as
|
|
144
|
+
> facts, so the board, the order and the critical path are worked out, not drawn, and
|
|
145
|
+
> the ladder can be mirrored into Jira, Linear or GitHub, with whatever access you have.
|
|
146
|
+
|
|
147
|
+
## What a ladder is made of
|
|
148
|
+
|
|
149
|
+
### The top
|
|
150
|
+
|
|
151
|
+
One sentence: what the ladder climbs to, and how anyone can tell it got there. And what
|
|
152
|
+
is out of it. A ladder without a top only ever grows.
|
|
153
|
+
|
|
154
|
+
### Lanes
|
|
155
|
+
|
|
156
|
+
A lane is a stream of work that delivers one thing: the router, the engine, the command
|
|
157
|
+
line, what a newcomer needs. Name it by what it delivers, not by who works on it. Give it
|
|
158
|
+
a letter. Most lanes live in one repository; say which.
|
|
159
|
+
|
|
160
|
+
### Rungs
|
|
161
|
+
|
|
162
|
+
A rung is one step of a lane. Its id is the lane's letter and a number: `A1`, `A2`. An
|
|
163
|
+
id is never reused, even after the rung is cut or merged into another.
|
|
164
|
+
|
|
165
|
+
Most rungs are a pull request. Some are not, and their kind says so:
|
|
166
|
+
|
|
167
|
+
| Kind | What it is | Done when |
|
|
168
|
+
|---|---|---|
|
|
169
|
+
| `pull-request` | One pull request, reviewable in one sitting | It is merged |
|
|
170
|
+
| `experiment` | A short trial with no pull request, to answer one question | The answer is written on the desk |
|
|
171
|
+
| `decision` | A ruling the owner makes | The ruling is recorded on Info |
|
|
172
|
+
| `review` | A read of something that exists: an audit, a design review | Its findings are written |
|
|
173
|
+
| `act` | Something someone does outside the code: a first publish, a setting, an access | It is done, and recorded |
|
|
174
|
+
|
|
175
|
+
Fields every rung has:
|
|
176
|
+
|
|
177
|
+
| Field | What it holds |
|
|
178
|
+
|---|---|
|
|
179
|
+
| `id` | Lane letter and number |
|
|
180
|
+
| `kind` | One of the kinds above |
|
|
181
|
+
| `title` | For a pull request, its title in the repository's convention (often Conventional Commits; `pragma standard categories` lists the standards, git among them) |
|
|
182
|
+
| `state` | `proposed`, `approved`, `building`, `open`, `merged`, `cut` |
|
|
183
|
+
| `waitsFor` | What must happen first, each item named: a rung's id, a ruling's id, or an outside event in one line |
|
|
184
|
+
| `who` | Who climbs it: a person, a team, or an agent the owner names |
|
|
185
|
+
| `link` | The pull request's URL once one exists; before that, the branch or the record. Shown as a link wherever the rung is |
|
|
186
|
+
|
|
187
|
+
**`waitsFor` names things.** "After the data layer" is prose; `A1` is a fact. A rung that
|
|
188
|
+
waits for a ruling names the ruling's id, and the ruling is on Info as an open question
|
|
189
|
+
until it is made.
|
|
190
|
+
|
|
191
|
+
### Cards
|
|
192
|
+
|
|
193
|
+
A card is the rung written out. It is what the owner approves.
|
|
194
|
+
|
|
195
|
+
| Part | What it says |
|
|
196
|
+
|---|---|
|
|
197
|
+
| Goal | One sentence: what is true once it lands |
|
|
198
|
+
| Why now | Why this rung, at this place in the ladder |
|
|
199
|
+
| Where | Repository, packages, and the branch; the pull request as a link, once there is one |
|
|
200
|
+
| Title | The pull request's title |
|
|
201
|
+
| Brings together | What the pull request contains, as a short list |
|
|
202
|
+
| Left out | What a reader might expect in it, and is not, with where it goes instead |
|
|
203
|
+
| Waits for | The `waitsFor` list, explained |
|
|
204
|
+
| Done when | Checks anyone can run or read: the gates that pass, the behaviour that shows, the record that exists |
|
|
205
|
+
| Rough size | Measured where code exists ("8,800 lines today, about 4,400 after"); estimated, and said to be, where it does not |
|
|
206
|
+
| Open | Each open question with its options and a recommendation |
|
|
207
|
+
| Who | Who climbs it |
|
|
208
|
+
| Risks | What could make it fail or grow |
|
|
209
|
+
|
|
210
|
+
A card is short. When its "brings together" needs more than about eight lines, the rung
|
|
211
|
+
is probably two.
|
|
212
|
+
|
|
213
|
+
### Size
|
|
214
|
+
|
|
215
|
+
A rung that is a pull request is one concern someone can review. The owner sets the size
|
|
216
|
+
band, and it goes in the tab's rules. Two rules hold whatever the band:
|
|
217
|
+
|
|
218
|
+
- **Fold small work into the rung that touches the same area.** A follow-up, a rename or
|
|
219
|
+
a fix is not a rung of its own.
|
|
220
|
+
- **Split what cannot be reviewed.** A rung that grows past the band is split again, on
|
|
221
|
+
the owner's word, never silently.
|
|
222
|
+
|
|
223
|
+
### Views of the facts
|
|
224
|
+
|
|
225
|
+
These are worked out from the rungs, never kept by hand:
|
|
226
|
+
|
|
227
|
+
- **The board.** Now: approved and building, or open. Next: proposed, and everything it
|
|
228
|
+
waits for is merged or ruled. Later: the rest.
|
|
229
|
+
- **The order.** Any order that respects `waitsFor`.
|
|
230
|
+
- **The longest path.** The chain of `waitsFor` to the top that takes longest.
|
|
231
|
+
- **What is blocked on the owner.** Every rung waiting for a ruling.
|
|
232
|
+
|
|
233
|
+
When a view and the facts disagree, the facts win, and the view is drawn again.
|
|
234
|
+
|
|
235
|
+
## The output
|
|
236
|
+
|
|
237
|
+
The ladder sits on the desk's `ladder` tab, or on a page of its own. With the
|
|
238
|
+
recommended form, its data is `ladder.json` beside the page, and the page embeds a copy
|
|
239
|
+
of it, the way the Journeys tab embeds `journeys.json`.
|
|
240
|
+
|
|
241
|
+
```json
|
|
242
|
+
{
|
|
243
|
+
"top": "",
|
|
244
|
+
"out": [""],
|
|
245
|
+
"edition": "",
|
|
246
|
+
"sources": [""],
|
|
247
|
+
"lanes": [{ "id": "A", "title": "", "delivers": "", "repository": "" }],
|
|
248
|
+
"rungs": [{
|
|
249
|
+
"id": "A1",
|
|
250
|
+
"lane": "A",
|
|
251
|
+
"kind": "pull-request",
|
|
252
|
+
"title": "",
|
|
253
|
+
"state": "proposed",
|
|
254
|
+
"waitsFor": [{ "rung": "" }, { "ruling": "" }, { "event": "" }],
|
|
255
|
+
"who": "",
|
|
256
|
+
"link": "",
|
|
257
|
+
"card": {
|
|
258
|
+
"goal": "", "whyNow": "", "where": "", "brings": [""], "leftOut": [""],
|
|
259
|
+
"doneWhen": [""], "size": "", "open": [{ "question": "", "options": [""], "recommendation": "" }],
|
|
260
|
+
"risks": [""]
|
|
261
|
+
},
|
|
262
|
+
"approved": "",
|
|
263
|
+
"tracker": { "key": "", "url": "", "checked": "" }
|
|
264
|
+
}],
|
|
265
|
+
"folded": [{ "what": "", "into": "" }],
|
|
266
|
+
"cut": [{ "what": "", "why": "" }]
|
|
267
|
+
}
|
|
268
|
+
```
|
|
269
|
+
|
|
270
|
+
`edition` is the date of this version of the ladder. `sources` are what it was planned
|
|
271
|
+
from. `folded` and `cut` account for every open pull request or old item that is not a
|
|
272
|
+
rung of its own, so nothing in flight is dropped silently.
|
|
273
|
+
|
|
274
|
+
The page shows, in this order: how to read it; a table of the lanes; then each lane as a
|
|
275
|
+
table, one row per rung (id, what it brings together, what it waits for, state), with
|
|
276
|
+
its card under the table, closed until a reader opens it or selects its row; then what
|
|
277
|
+
was folded and cut. The board is drawn from the data on the page, not written.
|
|
278
|
+
|
|
279
|
+
**Link every pull request.** Wherever a rung with a pull request appears (its row, its
|
|
280
|
+
card, the board, a rung that waits for it, what was folded or cut) its number is a link
|
|
281
|
+
to the pull request. The same goes for a paired tracker item. A reader should never have
|
|
282
|
+
to search for the pull request a rung names.
|
|
283
|
+
|
|
284
|
+
**Link every rung id.** Wherever a rung id appears (in a `waitsFor` cell, on the board,
|
|
285
|
+
in another card, in what was folded) it links to that rung's row, and opens its card. A
|
|
286
|
+
reader follows a dependency with one click.
|
|
287
|
+
|
|
288
|
+
**Link a branch only where it lasts.** Many teams delete a branch once its pull request
|
|
289
|
+
merges, and a link to it then leads nowhere. Link a branch while no pull request exists,
|
|
290
|
+
or where the team keeps its branches; otherwise the pull request is the link.
|
|
291
|
+
|
|
292
|
+
Where the output is committed, that repository's rules and the `git` standards apply
|
|
293
|
+
(`pragma standard categories` lists the current set).
|
|
294
|
+
|
|
295
|
+
## The seven steps
|
|
296
|
+
|
|
297
|
+
### 1. Read what is decided, and what is in flight
|
|
298
|
+
|
|
299
|
+
Read the decisions: the desk's Info, the decision records, the Domain model and Blocks
|
|
300
|
+
tabs. For an existing product, list every open pull request and branch in the
|
|
301
|
+
repositories involved, with its size and what it touches:
|
|
302
|
+
|
|
303
|
+
```bash
|
|
304
|
+
gh pr list --repo <owner/repo> --state open --json number,title,headRefName,additions,deletions,updatedAt
|
|
305
|
+
```
|
|
306
|
+
|
|
307
|
+
Do not plan what is not decided. A rung that would decide something becomes a
|
|
308
|
+
`decision` rung, or goes back to the tab that owns the question.
|
|
309
|
+
|
|
310
|
+
Outcome gate: **the decisions are read; every open pull request and branch is listed.**
|
|
311
|
+
|
|
312
|
+
### 2. The top
|
|
313
|
+
|
|
314
|
+
Write the top in one sentence, how to tell it is reached, and what is out of the ladder.
|
|
315
|
+
|
|
316
|
+
Outcome gate: **the operator has agreed the top and what is out.**
|
|
317
|
+
|
|
318
|
+
### 3. The lanes
|
|
319
|
+
|
|
320
|
+
Draft the lanes by what each delivers. Count, per lane, the new pull requests and those
|
|
321
|
+
already open. A lane with one rung may belong in another; a lane with fifteen may be two.
|
|
322
|
+
|
|
323
|
+
Outcome gate: **the operator has agreed the lanes.**
|
|
324
|
+
|
|
325
|
+
### 4. The rungs and their cards
|
|
326
|
+
|
|
327
|
+
For each lane, write its rungs in order and a card for each. Fold work in flight into
|
|
328
|
+
the rungs where it belongs; list what is folded and what is cut, with why. Measure every
|
|
329
|
+
size you can. Bring every open question to the operator with options and a
|
|
330
|
+
recommendation, one at a time.
|
|
331
|
+
|
|
332
|
+
A rung that builds a block names its row on the Blocks tab. A rung that builds a view
|
|
333
|
+
names the view.
|
|
334
|
+
|
|
335
|
+
Outcome gate: **every rung has a card; every open pull request is a rung, folded or cut;
|
|
336
|
+
every open question is ruled or recorded as open.**
|
|
337
|
+
|
|
338
|
+
### 5. What waits for what
|
|
339
|
+
|
|
340
|
+
Fill every `waitsFor` with ids. Check there is no cycle. Draw the board and the longest
|
|
341
|
+
path from the facts, and show them to the operator: they are where a wrong dependency
|
|
342
|
+
shows.
|
|
343
|
+
|
|
344
|
+
Outcome gate: **no rung waits for prose; no cycle; the board and the longest path are
|
|
345
|
+
drawn from the facts.**
|
|
346
|
+
|
|
347
|
+
### 6. Approval
|
|
348
|
+
|
|
349
|
+
Bring each card to the owner. An approved card gets its date in `approved` and its state
|
|
350
|
+
becomes `approved`. Work starts only from an approved card. A card that changes after
|
|
351
|
+
approval goes back for approval.
|
|
352
|
+
|
|
353
|
+
Outcome gate: **every rung in Now has an approved card.**
|
|
354
|
+
|
|
355
|
+
### 7. Write the ladder
|
|
356
|
+
|
|
357
|
+
Write the page and its data. Read every outcome gate again against the rungs.
|
|
358
|
+
|
|
359
|
+
Outcome gate: **the ladder is written; its edition and sources are stated.**
|
|
360
|
+
|
|
361
|
+
## Paired with a tracker (optional)
|
|
362
|
+
|
|
363
|
+
A ladder can be mirrored where the team already follows its work: Jira, Linear, GitHub
|
|
364
|
+
issues or a GitHub project, or nothing at all. The pairing is optional and loose. The
|
|
365
|
+
ladder leads; the tracker is a convenience for the people who live there, not a second
|
|
366
|
+
plan to keep in step line by line.
|
|
367
|
+
|
|
368
|
+
**Use whatever access the operator has.** An Atlassian or Linear connector in the
|
|
369
|
+
session, the `gh` command, the team's own command line, or the operator pasting links by
|
|
370
|
+
hand: each is fine. This skill requires none of them, and never asks for a token. If
|
|
371
|
+
nothing is available, the pairing is simply the links recorded on the rungs.
|
|
372
|
+
|
|
373
|
+
**What to pair, by default.** Match the team's habits before proposing anything:
|
|
374
|
+
|
|
375
|
+
| Ladder | Jira | Linear | GitHub |
|
|
376
|
+
|---|---|---|---|
|
|
377
|
+
| The top, or a lane | An epic | A project, or a milestone | A milestone, or a project |
|
|
378
|
+
| A rung | A story or task | An issue | An issue, or the pull request itself |
|
|
379
|
+
| `waitsFor` a rung | "is blocked by" | "blocked by" | A line "Waits for #n" in the body |
|
|
380
|
+
|
|
381
|
+
A rung's id goes at the start of the item's title (`A1 · The data layer, with slots`),
|
|
382
|
+
and the item links back to the card on the desk. The card stays on the desk; the
|
|
383
|
+
tracker gets the goal and the done-when list at most.
|
|
384
|
+
|
|
385
|
+
**Light rules:**
|
|
386
|
+
|
|
387
|
+
- **Read first.** Look for items that already match rungs, by id, by pull request link
|
|
388
|
+
or by title, and pair those before proposing new ones.
|
|
389
|
+
- **Ask before writing.** Show what would be created or changed, and send it on the
|
|
390
|
+
operator's word. How much to mirror is theirs to choose: everything, only Now, or
|
|
391
|
+
just the links.
|
|
392
|
+
- **Record the link.** A paired rung keeps the item's key and URL in `tracker`.
|
|
393
|
+
- **Differences are mentioned, not chased.** On an update, say where the two disagree
|
|
394
|
+
(an item closed while its rung is open, a rung merged while its item is open) and let
|
|
395
|
+
the operator decide. The ladder changes only on their word.
|
|
396
|
+
|
|
397
|
+
## Running as an update
|
|
398
|
+
|
|
399
|
+
Most ladders are updated more often than they are written.
|
|
400
|
+
|
|
401
|
+
**Start every update by finding what moved.** Read the state of every linked pull
|
|
402
|
+
request; never mark a rung merged by guess:
|
|
403
|
+
|
|
404
|
+
```bash
|
|
405
|
+
gh pr view <number> --repo <owner/repo> --json state,mergedAt,additions,deletions
|
|
406
|
+
```
|
|
407
|
+
|
|
408
|
+
Then compare: rulings made since the edition, rungs merged, pull requests opened that are
|
|
409
|
+
not rungs, a rung grown past the band. Tell the operator what you found before changing
|
|
410
|
+
anything.
|
|
411
|
+
|
|
412
|
+
| What moved | What to do |
|
|
413
|
+
|---|---|
|
|
414
|
+
| A rung merged | State `merged`, with its link kept; the board is drawn again, and what waited for it may move to Next |
|
|
415
|
+
| A ruling was made | Every rung that waited for it is checked; a card it changes goes back for approval |
|
|
416
|
+
| A pull request opened that is not a rung | Fold it, make it a rung, or record it as cut, with the operator; link it either way |
|
|
417
|
+
| A rung grew past the band | Bring a split to the operator |
|
|
418
|
+
| The direction changed | Reopen the lanes (step 3); never rewrite the top silently |
|
|
419
|
+
|
|
420
|
+
A new edition gets the date. Nothing is removed: a rung that is no longer wanted is
|
|
421
|
+
`cut`, with why.
|
|
422
|
+
|
|
423
|
+
## Response format
|
|
424
|
+
|
|
425
|
+
```markdown
|
|
426
|
+
Situation: <new | existing> product, <create | update>
|
|
427
|
+
Top: <one sentence>; out: …
|
|
428
|
+
Output: <form> at <place>; tracker: <none | Jira, Linear or GitHub, and where>
|
|
429
|
+
|
|
430
|
+
- [ ] 1. Read: <n> decisions, <n> open pull requests, <n> branches
|
|
431
|
+
- [ ] 2. Top agreed
|
|
432
|
+
- [ ] 3. Lanes: <n> (<letters>)
|
|
433
|
+
- [ ] 4. Rungs: <n> (<n> pull requests, <n> experiments, <n> decisions, <n> reviews, <n> acts); folded <n>, cut <n>
|
|
434
|
+
- [ ] 5. waitsFor: all named, no cycle; longest path: <ids>
|
|
435
|
+
- [ ] 6. Approved: <n> of <n>; Now holds only approved cards
|
|
436
|
+
- [ ] 7. Written; edition <date>
|
|
437
|
+
|
|
438
|
+
Board: Now <ids> · Next <ids> · Later <ids>
|
|
439
|
+
Waiting on the owner: <ruling ids>
|
|
440
|
+
Tracker: <n> paired, <n> proposed, differences: …
|
|
441
|
+
Judgment calls made without the operator: …
|
|
442
|
+
```
|
|
443
|
+
|
|
444
|
+
## Worked example: the adoption tracker
|
|
445
|
+
|
|
446
|
+
This continues the example of `desk-model-domains` and `desk-map-blocks`: Apps,
|
|
447
|
+
Components and Runs, a usages list shared by three views, and two parts kept in the
|
|
448
|
+
application.
|
|
449
|
+
|
|
450
|
+
**The top.** "Every app's nightly run is visible in the tracker, and a number on any
|
|
451
|
+
page can be traced to its evidence." Out: alerts, and apps outside the four.
|
|
452
|
+
|
|
453
|
+
**Three lanes.**
|
|
454
|
+
|
|
455
|
+
| Lane | Delivers | Rungs |
|
|
456
|
+
|---|---|---|
|
|
457
|
+
| N, the nightly run | The run and its stored results | N1, N2 |
|
|
458
|
+
| V, the views | The three domains' views | V1, V2, V3 |
|
|
459
|
+
| D, the design system | What the Blocks tab proposed | D1 |
|
|
460
|
+
|
|
461
|
+
**A card, shortened:**
|
|
462
|
+
|
|
463
|
+
> **V2 · The usages list.** Goal: one list of usages, filtered by the address, shown on
|
|
464
|
+
> its own path and pre-filtered on a component and a folder. Brings together: the list
|
|
465
|
+
> on the data list pattern, its filters in the address, its two pre-filtered uses. Left
|
|
466
|
+
> out: the usage bar, kept in the application, which comes in V3. Waits for: `N2` (the
|
|
467
|
+
> stored results), `V1` (the apps list's layout). Done when: the three paths show the
|
|
468
|
+
> same rows for the same filter; the gates pass. Rough size: estimated 1,200 lines, no
|
|
469
|
+
> code yet. Open: does a folder filter match subfolders? Recommendation: yes.
|
|
470
|
+
|
|
471
|
+
**What the tutorial should bring out:**
|
|
472
|
+
|
|
473
|
+
- **Waits for names things.** An early draft had V2 "after the data is ready". Named, it
|
|
474
|
+
became `N2`, and the board showed V2 could not be in Now.
|
|
475
|
+
- **A decision is a rung.** "Does a folder match subfolders" waits on the owner, so it is
|
|
476
|
+
on Info and V2 names it.
|
|
477
|
+
- **Folding.** A separate "add filters to the address" rung was folded into V2: alone it
|
|
478
|
+
was a 60-line pull request.
|
|
479
|
+
- **The board is a view.** Merging N2 moved V2 to Next without anyone editing the board.
|
|
480
|
+
- **A tracker, if paired.** The team followed its work in GitHub, so each rung that is a
|
|
481
|
+
pull request was paired with the pull request itself, and the three lanes became
|
|
482
|
+
milestones. Nothing was created until the operator said so.
|
|
483
|
+
|
|
484
|
+
## Related skills
|
|
485
|
+
|
|
486
|
+
- `desk-model-domains`: the views most rungs build
|
|
487
|
+
- `desk-map-blocks`: the blocks a rung builds, reuses or proposes
|
|
488
|
+
- `specify-component` and `specify-pattern`: where a proposed block is specified before
|
|
489
|
+
its rung is built
|
|
490
|
+
- `desk-run-studio`: where a question a rung waits for may be explored
|
|
491
|
+
- `desk-assemble`: gives the page its tab when the product has a desk, and holds the
|
|
492
|
+
rulings rungs wait for
|
|
493
|
+
|
|
494
|
+
## Support
|
|
495
|
+
|
|
496
|
+
If this skill leads somewhere broken (a command that errors, guidance that contradicts
|
|
497
|
+
what the live system answers, a gap the flow cannot cover) you are not stuck:
|
|
498
|
+
|
|
499
|
+
- Raise an issue in the pragma-core repo: https://github.com/canonical/pragma-core/issues,
|
|
500
|
+
with the skill name, what was run, and expected vs. actual outcome.
|
|
501
|
+
- Or contact the design-system team owners directly through your organization's
|
|
502
|
+
professional messaging channels for assistance.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../desk-assemble/tab.schema.json",
|
|
3
|
+
"id": "ladder",
|
|
4
|
+
"title": "Ladder",
|
|
5
|
+
"file": "ladder.html",
|
|
6
|
+
"rank": 80,
|
|
7
|
+
"kind": "shared",
|
|
8
|
+
"purpose": "How the product gets built: the work in lanes, each rung one pull request or one decision, with a card that says what it brings together, what it leaves out, what it waits for and how to tell it is done.",
|
|
9
|
+
"filledFrom": "what the other tabs decided, the rulings on Info, and the work already in flight",
|
|
10
|
+
"empty": {
|
|
11
|
+
"headline": "No ladder yet.",
|
|
12
|
+
"until": "The ladder starts once enough is decided to build: the views on the Domain model tab, and the blocks they need. Work already in flight is brought onto it first."
|
|
13
|
+
},
|
|
14
|
+
"rules": [
|
|
15
|
+
"No rung is built from its title: work starts only from a card the owner approved.",
|
|
16
|
+
"A rung waits for named things: another rung's id, a ruling's id, or one outside event. The board and the order are drawn from that, never by hand.",
|
|
17
|
+
"A pull request is one concern someone can review. Small work is folded into the rung that touches the same area; what cannot be reviewed is split on the owner's word.",
|
|
18
|
+
"Every pull request a rung names is a link to it. If the ladder is mirrored into a tracker (Jira, Linear, GitHub), the ladder leads, and nothing is written there without the operator's word."
|
|
19
|
+
]
|
|
20
|
+
}
|
|
@@ -101,7 +101,7 @@ Work out three things before step 1, and say what you took them to be in one lin
|
|
|
101
101
|
This is the decision that goes wrong most often, so it has a rule.
|
|
102
102
|
|
|
103
103
|
**The rules below are proposals, and the studio's page holds the ones in force.** A
|
|
104
|
-
desk's Studio tab starts with them in a section "
|
|
104
|
+
desk's Studio tab starts with them in a section "The rules of this tab", marked as
|
|
105
105
|
proposed. The operator may change them there, and from then on the page's rules win
|
|
106
106
|
over the ones in this skill: read that section before anything else, and never change
|
|
107
107
|
it without the operator's word.
|