@canonical/product-design 0.47.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/LICENSE +166 -0
- package/README.md +2 -0
- package/package.json +6 -5
- 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
|
@@ -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.
|