@canonical/product-design 0.0.0-stage → 0.48.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 +50 -2
- package/package.json +52 -4
- package/skills/desk-animate-frames/SKILL.md +276 -0
- package/skills/desk-animate-frames/tab.json +14 -0
- package/skills/desk-assemble/SKILL.md +414 -0
- package/skills/desk-assemble/desk.schema.json +74 -0
- package/skills/desk-assemble/starter/README.md +53 -0
- package/skills/desk-assemble/starter/desk.css +283 -0
- package/skills/desk-assemble/starter/desk.js +97 -0
- package/skills/desk-assemble/starter/index.html +62 -0
- package/skills/desk-assemble/starter/journeys.html +27 -0
- package/skills/desk-assemble/starter/release-notes.html +29 -0
- package/skills/desk-assemble/tab.schema.json +78 -0
- package/skills/desk-design-signage/SKILL.md +271 -0
- package/skills/desk-design-signage/tab.json +14 -0
- package/skills/desk-draw-frames/SKILL.md +339 -0
- package/skills/desk-draw-frames/tab.json +14 -0
- package/skills/desk-map-journeys/SKILL.md +406 -0
- package/skills/desk-map-journeys/journey-graph.example.html +298 -0
- package/skills/desk-map-journeys/tab.json +14 -0
- package/skills/desk-model-domains/SKILL.md +512 -0
- package/skills/desk-model-domains/tab.json +14 -0
- package/skills/desk-model-settings/SKILL.md +269 -0
- package/skills/desk-model-settings/tab.json +14 -0
- package/skills/desk-run-studio/SKILL.md +383 -0
- package/skills/desk-run-studio/keyboard.md +136 -0
- package/skills/desk-run-studio/tab.json +23 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
GNU LESSER GENERAL PUBLIC LICENSE
|
|
2
|
+
Version 3, 29 June 2007
|
|
3
|
+
|
|
4
|
+
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
|
5
|
+
Everyone is permitted to copy and distribute verbatim copies
|
|
6
|
+
of this license document, but changing it is not allowed.
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
This version of the GNU Lesser General Public License incorporates
|
|
10
|
+
the terms and conditions of version 3 of the GNU General Public
|
|
11
|
+
License, supplemented by the additional permissions listed below.
|
|
12
|
+
|
|
13
|
+
0. Additional Definitions.
|
|
14
|
+
|
|
15
|
+
As used herein, "this License" refers to version 3 of the GNU Lesser
|
|
16
|
+
General Public License, and the "GNU GPL" refers to version 3 of the GNU
|
|
17
|
+
General Public License.
|
|
18
|
+
|
|
19
|
+
"The Library" refers to a covered work governed by this License,
|
|
20
|
+
other than an Application or a Combined Work as defined below.
|
|
21
|
+
|
|
22
|
+
An "Application" is any work that makes use of an interface provided
|
|
23
|
+
by the Library, but which is not otherwise based on the Library.
|
|
24
|
+
Defining a subclass of a class defined by the Library is deemed a mode
|
|
25
|
+
of using an interface provided by the Library.
|
|
26
|
+
|
|
27
|
+
A "Combined Work" is a work produced by combining or linking an
|
|
28
|
+
Application with the Library. The particular version of the Library
|
|
29
|
+
with which the Combined Work was made is also called the "Linked
|
|
30
|
+
Version".
|
|
31
|
+
|
|
32
|
+
The "Minimal Corresponding Source" for a Combined Work means the
|
|
33
|
+
Corresponding Source for the Combined Work, excluding any source code
|
|
34
|
+
for portions of the Combined Work that, considered in isolation, are
|
|
35
|
+
based on the Application, and not on the Linked Version.
|
|
36
|
+
|
|
37
|
+
The "Corresponding Application Code" for a Combined Work means the
|
|
38
|
+
object code and/or source code for the Application, including any data
|
|
39
|
+
and utility programs needed for reproducing the Combined Work from the
|
|
40
|
+
Application, but excluding the System Libraries of the Combined Work.
|
|
41
|
+
|
|
42
|
+
1. Exception to Section 3 of the GNU GPL.
|
|
43
|
+
|
|
44
|
+
You may convey a covered work under sections 3 and 4 of this License
|
|
45
|
+
without being bound by section 3 of the GNU GPL.
|
|
46
|
+
|
|
47
|
+
2. Conveying Modified Versions.
|
|
48
|
+
|
|
49
|
+
If you modify a copy of the Library, and, in your modifications, a
|
|
50
|
+
facility refers to a function or data to be supplied by an Application
|
|
51
|
+
that uses the facility (other than as an argument passed when the
|
|
52
|
+
facility is invoked), then you may convey a copy of the modified
|
|
53
|
+
version:
|
|
54
|
+
|
|
55
|
+
a) under this License, provided that you make a good faith effort to
|
|
56
|
+
ensure that, in the event an Application does not supply the
|
|
57
|
+
function or data, the facility still operates, and performs
|
|
58
|
+
whatever part of its purpose remains meaningful, or
|
|
59
|
+
|
|
60
|
+
b) under the GNU GPL, with none of the additional permissions of
|
|
61
|
+
this License applicable to that copy.
|
|
62
|
+
|
|
63
|
+
3. Object Code Incorporating Material from Library Header Files.
|
|
64
|
+
|
|
65
|
+
The object code form of an Application may incorporate material from
|
|
66
|
+
a header file that is part of the Library. You may convey such object
|
|
67
|
+
code under terms of your choice, provided that, if the incorporated
|
|
68
|
+
material is not limited to numerical parameters, data structure
|
|
69
|
+
layouts and accessors, or small macros, inline functions and templates
|
|
70
|
+
(ten or fewer lines in length), you do both of the following:
|
|
71
|
+
|
|
72
|
+
a) Give prominent notice with each copy of the object code that the
|
|
73
|
+
Library is used in it and that the Library and its use are
|
|
74
|
+
covered by this License.
|
|
75
|
+
|
|
76
|
+
b) Accompany the object code with a copy of the GNU GPL and this license
|
|
77
|
+
document.
|
|
78
|
+
|
|
79
|
+
4. Combined Works.
|
|
80
|
+
|
|
81
|
+
You may convey a Combined Work under terms of your choice that,
|
|
82
|
+
taken together, effectively do not restrict modification of the
|
|
83
|
+
portions of the Library contained in the Combined Work and reverse
|
|
84
|
+
engineering for debugging such modifications, if you also do each of
|
|
85
|
+
the following:
|
|
86
|
+
|
|
87
|
+
a) Give prominent notice with each copy of the Combined Work that
|
|
88
|
+
the Library is used in it and that the Library and its use are
|
|
89
|
+
covered by this License.
|
|
90
|
+
|
|
91
|
+
b) Accompany the Combined Work with a copy of the GNU GPL and this license
|
|
92
|
+
document.
|
|
93
|
+
|
|
94
|
+
c) For a Combined Work that displays copyright notices during
|
|
95
|
+
execution, include the copyright notice for the Library among
|
|
96
|
+
these notices, as well as a reference directing the user to the
|
|
97
|
+
copies of the GNU GPL and this license document.
|
|
98
|
+
|
|
99
|
+
d) Do one of the following:
|
|
100
|
+
|
|
101
|
+
0) Convey the Minimal Corresponding Source under the terms of this
|
|
102
|
+
License, and the Corresponding Application Code in a form
|
|
103
|
+
suitable for, and under terms that permit, the user to
|
|
104
|
+
recombine or relink the Application with a modified version of
|
|
105
|
+
the Linked Version to produce a modified Combined Work, in the
|
|
106
|
+
manner specified by section 6 of the GNU GPL for conveying
|
|
107
|
+
Corresponding Source.
|
|
108
|
+
|
|
109
|
+
1) Use a suitable shared library mechanism for linking with the
|
|
110
|
+
Library. A suitable mechanism is one that (a) uses at run time
|
|
111
|
+
a copy of the Library already present on the user's computer
|
|
112
|
+
system, and (b) will operate properly with a modified version
|
|
113
|
+
of the Library that is interface-compatible with the Linked
|
|
114
|
+
Version.
|
|
115
|
+
|
|
116
|
+
e) Provide Installation Information, but only if you would otherwise
|
|
117
|
+
be required to provide such information under section 6 of the
|
|
118
|
+
GNU GPL, and only to the extent that such information is
|
|
119
|
+
necessary to install and execute a modified version of the
|
|
120
|
+
Combined Work produced by recombining or relinking the
|
|
121
|
+
Application with a modified version of the Linked Version. (If
|
|
122
|
+
you use option 4d0, the Installation Information must accompany
|
|
123
|
+
the Minimal Corresponding Source and Corresponding Application
|
|
124
|
+
Code. If you use option 4d1, you must provide the Installation
|
|
125
|
+
Information in the manner specified by section 6 of the GNU GPL
|
|
126
|
+
for conveying Corresponding Source.)
|
|
127
|
+
|
|
128
|
+
5. Combined Libraries.
|
|
129
|
+
|
|
130
|
+
You may place library facilities that are a work based on the
|
|
131
|
+
Library side by side in a single library together with other library
|
|
132
|
+
facilities that are not Applications and are not covered by this
|
|
133
|
+
License, and convey such a combined library under terms of your
|
|
134
|
+
choice, if you do both of the following:
|
|
135
|
+
|
|
136
|
+
a) Accompany the combined library with a copy of the same work based
|
|
137
|
+
on the Library, uncombined with any other library facilities,
|
|
138
|
+
conveyed under the terms of this License.
|
|
139
|
+
|
|
140
|
+
b) Give prominent notice with the combined library that part of it
|
|
141
|
+
is a work based on the Library, and explaining where to find the
|
|
142
|
+
accompanying uncombined form of the same work.
|
|
143
|
+
|
|
144
|
+
6. Revised Versions of the GNU Lesser General Public License.
|
|
145
|
+
|
|
146
|
+
The Free Software Foundation may publish revised and/or new versions
|
|
147
|
+
of the GNU Lesser General Public License from time to time. Such new
|
|
148
|
+
versions will be similar in spirit to the present version, but may
|
|
149
|
+
differ in detail to address new problems or concerns.
|
|
150
|
+
|
|
151
|
+
Each version is given a distinguishing version number. If the
|
|
152
|
+
Library as you received it specifies that a certain numbered version
|
|
153
|
+
of the GNU Lesser General Public License "or any later version"
|
|
154
|
+
applies to it, you have the option of following the terms and
|
|
155
|
+
conditions either of that published version or of any later version
|
|
156
|
+
published by the Free Software Foundation. If the Library as you
|
|
157
|
+
received it does not specify a version number of the GNU Lesser
|
|
158
|
+
General Public License, you may choose any version of the GNU Lesser
|
|
159
|
+
General Public License ever published by the Free Software Foundation.
|
|
160
|
+
|
|
161
|
+
If the Library as you received it specifies that a proxy can decide
|
|
162
|
+
whether future versions of the GNU Lesser General Public License shall
|
|
163
|
+
apply, that proxy's public statement of acceptance of any version is
|
|
164
|
+
permanent authorization for you to choose that version for the
|
|
165
|
+
Library.
|
|
166
|
+
|
package/README.md
CHANGED
|
@@ -1,3 +1,51 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @canonical/product-design
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Skills for designing a product before it is built. Each skill fills one subject of a product's design, and the subjects can sit together on a desk: a folder of plain HTML pages, one tab per subject, that the product's people and agents both read.
|
|
4
|
+
|
|
5
|
+
The package holds skills and the files they start from. It carries no ontology: what the skills write is HTML and JSON beside the pages, and how that relates to the design-system graph is an open question that `desk-design-signage` states for its own part.
|
|
6
|
+
|
|
7
|
+
## The skills
|
|
8
|
+
|
|
9
|
+
| Skill | Produces | Tab |
|
|
10
|
+
|---|---|---|
|
|
11
|
+
| `desk-map-journeys` | Personas, jobs and journeys | `journeys` |
|
|
12
|
+
| `desk-model-domains` | Domains, paths, views and layouts, judged against the journeys | `domain` |
|
|
13
|
+
| `desk-model-settings` | One settings schema: who holds each setting, what it takes, its default, what it depends on | `settings` |
|
|
14
|
+
| `desk-draw-frames` | A catalogue of frames: one per view and state, in real HTML | `frames` |
|
|
15
|
+
| `desk-animate-frames` | Clips of interactions, played over the frames | `motion` |
|
|
16
|
+
| `desk-design-signage` | A register of signs and the rules they obey (a working draft) | `signage` |
|
|
17
|
+
| `desk-run-studio` | Rounds of explorations that commit to nothing, and a ledger of their questions | `studio` |
|
|
18
|
+
| `desk-assemble` | The desk: its manifest, its build, and Info with the rulings | `info` |
|
|
19
|
+
|
|
20
|
+
Read them through the CLI:
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
pragma skill list
|
|
24
|
+
pragma skill lookup desk-assemble
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## How the skills fit together
|
|
28
|
+
|
|
29
|
+
- **A tab stands alone.** Every skill's page opens by itself, from disk. No skill needs a desk; without one, it writes its page wherever the operator says.
|
|
30
|
+
- **A skill finds the desk.** A desk exists where a file named `desk.js` sets `window.desk` with a `tabs` list. A skill that finds one reads Info and its own tab's head first, adds its tab to the list if it is new, and writes its page.
|
|
31
|
+
- **Every tab explains itself.** A tab opens with a head that says what it is for, how far it is (`empty`, `draft`, `settled`) and who fills it, even before it holds anything. Each skill declares its tab's words once, in `tab.json` beside its `SKILL.md`.
|
|
32
|
+
- **Info keeps the rulings.** Every decision has an identifier and a state (`ruled`, `proposed`, `open`), so the next session can cite it and the next agent can read where things stand.
|
|
33
|
+
- **One list orders the tabs.** The order of `tabs` in `desk.js` is the order of the tabs. Info is first and the studio last; a new tab lands by its skill's rank. A product adds tabs of its own about anything.
|
|
34
|
+
- **The studio commits to nothing.** What is drawn in a round reaches the frames only once it is ruled.
|
|
35
|
+
|
|
36
|
+
- **No build, no server.** A desk is plain files: every page loads `desk.js` beside it and draws its line of tabs from the list there, so it opens from disk with a double-click.
|
|
37
|
+
|
|
38
|
+
`skills/desk-assemble/starter/` is a complete desk to start from. `desk.schema.json` describes its list of tabs, and `tab.schema.json` what each skill declares about its tab.
|
|
39
|
+
|
|
40
|
+
## Development
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
bun run check
|
|
44
|
+
bun run test
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
The tests read the skills themselves: every skill names itself as its folder, refers only to skills that exist, ships the files it tells its reader to start from, declares its tab, and agrees with the others about how a desk is found. They also read the starter desk's list of tabs and check that its pages carry the words their skills declare.
|
|
48
|
+
|
|
49
|
+
## License
|
|
50
|
+
|
|
51
|
+
LGPL-3.0
|
package/package.json
CHANGED
|
@@ -1,6 +1,54 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@canonical/product-design",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
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.48.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"files": [
|
|
7
|
+
"skills"
|
|
8
|
+
],
|
|
9
|
+
"publishConfig": {
|
|
10
|
+
"access": "public"
|
|
11
|
+
},
|
|
12
|
+
"author": {
|
|
13
|
+
"email": "webteam@canonical.com",
|
|
14
|
+
"name": "Canonical Webteam"
|
|
15
|
+
},
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "https://github.com/canonical/pragma-core"
|
|
19
|
+
},
|
|
20
|
+
"license": "LGPL-3.0",
|
|
21
|
+
"bugs": {
|
|
22
|
+
"url": "https://github.com/canonical/pragma-core/issues"
|
|
23
|
+
},
|
|
24
|
+
"homepage": "https://github.com/canonical/pragma-core#readme",
|
|
25
|
+
"scripts": {
|
|
26
|
+
"build": "echo 'No build needed'",
|
|
27
|
+
"build:all": "bun run build",
|
|
28
|
+
"check": "bun run check:biome && bun run check:ts",
|
|
29
|
+
"check:fix": "bun run check:biome:fix && bun run check:ts",
|
|
30
|
+
"check:biome": "biome check",
|
|
31
|
+
"check:biome:fix": "biome check --write",
|
|
32
|
+
"check:ts": "tsc --noEmit",
|
|
33
|
+
"test": "vitest run"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@biomejs/biome": "2.6.9",
|
|
37
|
+
"@canonical/biome-config": "^0.48.0",
|
|
38
|
+
"@canonical/typescript-config": "^0.48.0",
|
|
39
|
+
"@types/node": "^26.4.1",
|
|
40
|
+
"typescript": "^7.0.2",
|
|
41
|
+
"vitest": "^5.0.0"
|
|
42
|
+
},
|
|
43
|
+
"engines": {
|
|
44
|
+
"bun": ">=1.3",
|
|
45
|
+
"node": ">=22"
|
|
46
|
+
},
|
|
47
|
+
"keywords": [
|
|
48
|
+
"product-design",
|
|
49
|
+
"journeys",
|
|
50
|
+
"frames",
|
|
51
|
+
"skills"
|
|
52
|
+
],
|
|
53
|
+
"gitHead": "a50e4c6e4650b13babf846f706398fff62954055"
|
|
54
|
+
}
|
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: desk-animate-frames
|
|
3
|
+
description: Show an interaction over a product's drawn frames as a short clip (a tap, a slide, a scroll, typed words), one clip per journey, with a symbol per kind of interaction and a caption per step; also runs as a guided tutorial on a worked example
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Animate Frames
|
|
7
|
+
|
|
8
|
+
Show what happens between two frames. A clip plays over the frames `desk-draw-frames`
|
|
9
|
+
produced: it shows a frame, draws the interaction on it (a finger, a pointer, a key),
|
|
10
|
+
then cuts to the frame that results. The result is a page of clips, each tied to the
|
|
11
|
+
journey it shows.
|
|
12
|
+
|
|
13
|
+
**A clip adds no design.** Every frame in it exists in the catalogue already, and the
|
|
14
|
+
clip only says which interaction leads from one to the next. When a clip needs a frame
|
|
15
|
+
that does not exist, the frame is missing. Draw it, or take the question to the studio;
|
|
16
|
+
never hide the gap behind a quick cut.
|
|
17
|
+
|
|
18
|
+
In a fresh session, orient first:
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
pragma capabilities
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
The design-system graph holds no clips. The clips are played by `@canonical/motion-control`, a
|
|
25
|
+
small player with no dependencies; its own skill, `design-motion-frames`, ships inside
|
|
26
|
+
that package and is the reference for the cast format and the player's options. This
|
|
27
|
+
skill is the method around it: which clips to make, and what each must prove.
|
|
28
|
+
|
|
29
|
+
## Working mode: assistant to a design authority
|
|
30
|
+
|
|
31
|
+
Most of the time this skill runs with an operator who owns the design. They are the
|
|
32
|
+
authority. You are the assistant whose job is to make them successful:
|
|
33
|
+
|
|
34
|
+
- Say which step comes next and why.
|
|
35
|
+
- Do the legwork yourself. Write the casts, check them, look at the moments.
|
|
36
|
+
- Bring each decision as a recommendation plus a question, never as a fait accompli.
|
|
37
|
+
Which interaction a view answers to is a design decision, not a detail of the clip.
|
|
38
|
+
|
|
39
|
+
Full autonomy is the exception. Run the whole flow alone only when explicitly asked to.
|
|
40
|
+
Then the final report lists each judgment call.
|
|
41
|
+
|
|
42
|
+
Decision gates — pause at each and resolve it WITH the operator:
|
|
43
|
+
|
|
44
|
+
1. Create or update, whenever the signs leave any doubt.
|
|
45
|
+
2. Which journeys get a clip.
|
|
46
|
+
3. Any interaction the frames do not already settle: a tap or a hold, how far a slide
|
|
47
|
+
goes.
|
|
48
|
+
4. Any frame a clip needs that the catalogue lacks.
|
|
49
|
+
|
|
50
|
+
## When to Use
|
|
51
|
+
|
|
52
|
+
- A journey passes through frames and a reader cannot tell how one leads to the next
|
|
53
|
+
- A gesture is the design: a slide, a drag, a scroll that keeps something in place
|
|
54
|
+
- A studio round explores movement, and a still cannot show it
|
|
55
|
+
|
|
56
|
+
## When NOT to Use
|
|
57
|
+
|
|
58
|
+
- The frames are not drawn — use `desk-draw-frames` first
|
|
59
|
+
- The question is what the view should be — use `desk-run-studio`
|
|
60
|
+
- Polished transitions and easing — a clip cuts from frame to frame on purpose; the
|
|
61
|
+
product's motion design is separate work
|
|
62
|
+
- A demo of the built product — record the product
|
|
63
|
+
|
|
64
|
+
## Opening move: ask, or offer the tutorial
|
|
65
|
+
|
|
66
|
+
Unless the first message already names the work, ask for the starting point as a
|
|
67
|
+
suggestion carrying an example, not as a form to fill in:
|
|
68
|
+
|
|
69
|
+
> To get started, tell me which journey to show and where the frames are. Something
|
|
70
|
+
> like "the app owner finding why an app stalled; the frames are in `frames.html`".
|
|
71
|
+
|
|
72
|
+
If the message already carries the starting point, say what you took it to be, and go.
|
|
73
|
+
|
|
74
|
+
Offer the tutorial in the same breath:
|
|
75
|
+
|
|
76
|
+
> Or if you'd rather see the flow first, I can run it as a tutorial on a worked
|
|
77
|
+
> example: one clip of the app owner's journey through the adoption tracker.
|
|
78
|
+
|
|
79
|
+
Tutorial mode runs the same steps on the worked example at the end of this skill, with
|
|
80
|
+
the reasoning at each gate spelled out. It writes nothing unless the operator asks to
|
|
81
|
+
keep what was built.
|
|
82
|
+
|
|
83
|
+
## Read the situation: new or existing, create or update
|
|
84
|
+
|
|
85
|
+
Work out three things before step 1, and say what you took them to be in one line.
|
|
86
|
+
|
|
87
|
+
- **Are there frames?** Look for elements with a `data-frame` attribute, or
|
|
88
|
+
`frames.json`. Without frames there is nothing to play over: say so and stop.
|
|
89
|
+
- **Are there clips already?** They exist where `casts.json` holds a list of scenes.
|
|
90
|
+
- **Is there a desk?** One exists where a file named `desk.js` sets `window.desk`
|
|
91
|
+
with a `tabs` list. If so, read its Info tab and the head of this tab first: they say
|
|
92
|
+
what is ruled and how far the tab is. The page of clips is the desk's `motion` tab: if it is new,
|
|
93
|
+
add it to the list in `desk.js` and start its page from this skill's `tab.json`;
|
|
94
|
+
write the page under its head, set the head's state, and add what the owner rules
|
|
95
|
+
to Info. Nothing needs building. If there is no desk, the page of clips stands alone, as it
|
|
96
|
+
always can.
|
|
97
|
+
|
|
98
|
+
**When in doubt about create or update, ask. Never guess.**
|
|
99
|
+
|
|
100
|
+
## Every step is narrated: outcome, path, conclusion
|
|
101
|
+
|
|
102
|
+
Open every step by telling the operator what it is FOR and how you will get there.
|
|
103
|
+
Close it with what it established and what that means for the next step. One sentence
|
|
104
|
+
each is enough. The operator can only steer a step they saw coming.
|
|
105
|
+
|
|
106
|
+
## Asked about the skill: methodology and outcomes first
|
|
107
|
+
|
|
108
|
+
Asked what this skill does, give the method and the outcome before the list of steps:
|
|
109
|
+
|
|
110
|
+
> It shows how the frames connect. Each clip follows one persona through one journey:
|
|
111
|
+
> a frame, the interaction drawn on it with a symbol you can read at a glance, then
|
|
112
|
+
> the frame that results. Every step carries a caption. You end with clips that play
|
|
113
|
+
> in a page, can be saved as GIFs, and fail a check when a frame they need is gone.
|
|
114
|
+
|
|
115
|
+
## The output
|
|
116
|
+
|
|
117
|
+
```text
|
|
118
|
+
casts.json the scenes: the source of truth for what each clip shows
|
|
119
|
+
motion.html the page of clips, with the legend of symbols
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
A scene is a list of steps. A step shows a frame, or draws an interaction on the frame
|
|
123
|
+
in view:
|
|
124
|
+
|
|
125
|
+
```json
|
|
126
|
+
{
|
|
127
|
+
"id": "stalled", "title": "Finding why an app stalled", "clip": true,
|
|
128
|
+
"about": { "kind": "journey", "name": "app owner" },
|
|
129
|
+
"steps": [
|
|
130
|
+
{ "frame": "overview.stalled", "hold": 1200, "chapter": "Notice",
|
|
131
|
+
"say": "One app is marked as stalled." },
|
|
132
|
+
{ "do": "tap", "on": ".app.stalled", "say": "A tap on its row." },
|
|
133
|
+
{ "frame": "app.reasons", "hold": 1800, "chapter": "Understand",
|
|
134
|
+
"say": "The app's page opens on the reasons." }
|
|
135
|
+
]
|
|
136
|
+
}
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
- **A scene** runs two to ten seconds and proves one thing. **A clip** (`"clip": true`)
|
|
140
|
+
runs twenty to thirty seconds and follows a journey.
|
|
141
|
+
- `about` ties the clip to what it shows. A clip of a journey names the persona.
|
|
142
|
+
- `chapter` names a part of a clip. **A clip's chapters are the journey's jobs, in the
|
|
143
|
+
journey's order.** That is what makes a clip checkable against `journeys.json`.
|
|
144
|
+
- `say` is the caption, in the reader's words: what they see, never the mechanism.
|
|
145
|
+
|
|
146
|
+
**One symbol per kind of interaction**, the same in every clip: a ring for a finger
|
|
147
|
+
(tap, hold, slide, drag), a pointer for a mouse (move, click, wheel), a keycap for a
|
|
148
|
+
key. The symbols have a colour of their own that the product uses nowhere, so nobody
|
|
149
|
+
takes them for part of the design. The page shows the legend once.
|
|
150
|
+
|
|
151
|
+
**What the page's styles do for a pointer or for focus shows in a clip.** The player
|
|
152
|
+
marks what a step hovers, presses, focuses and has visited, and mirrors the page's own
|
|
153
|
+
`:hover`, `:active`, `:focus` and `:visited` rules onto its marks. Aim a step at the
|
|
154
|
+
element the rule is written for.
|
|
155
|
+
|
|
156
|
+
Like every tab's page, the page of clips stands alone: the player and the casts are
|
|
157
|
+
inlined, so it opens from disk with a double-click.
|
|
158
|
+
|
|
159
|
+
**A clip can go into a deck.** The same clip records as a video or a GIF on a slide of
|
|
160
|
+
the deck's size: framed, the whole figure with its title and caption; bare, the screen
|
|
161
|
+
alone, as large as the slide allows, which suits a slide about one interaction. The
|
|
162
|
+
recording takes a speed, so a long clip can be shown faster, and a title and a caption
|
|
163
|
+
in the slide's own type. Record a video for a presentation and a GIF for a document or
|
|
164
|
+
a chat. A slide shows the keys as they are pressed when the clip types or presses
|
|
165
|
+
keys, so a reader of the deck sees what was typed.
|
|
166
|
+
|
|
167
|
+
## The five steps
|
|
168
|
+
|
|
169
|
+
### 1. Choose the clips
|
|
170
|
+
|
|
171
|
+
One clip per journey, starting with the journey the product exists for. Add a short
|
|
172
|
+
scene only for a gesture that a clip passes over too fast to read. List them, each with
|
|
173
|
+
what it must prove in one sentence.
|
|
174
|
+
|
|
175
|
+
Outcome gate: **the operator has agreed the list, and each entry says what it proves.**
|
|
176
|
+
|
|
177
|
+
### 2. Lay each clip on its journey
|
|
178
|
+
|
|
179
|
+
Write the journey's jobs as the clip's chapters. Under each, name the frames the
|
|
180
|
+
persona passes through. A job with no frame is a gap: it goes back to `desk-draw-frames`,
|
|
181
|
+
or to `desk-run-studio` when it needs options first.
|
|
182
|
+
|
|
183
|
+
Outcome gate: **every chapter is a job of the journey, and every frame it names is in
|
|
184
|
+
the catalogue.**
|
|
185
|
+
|
|
186
|
+
### 3. Write the steps
|
|
187
|
+
|
|
188
|
+
Between each two frames, write the interaction that leads from one to the other, aimed
|
|
189
|
+
at the element it lands on. Where the frames do not settle which interaction it is,
|
|
190
|
+
ask. Give each step its caption.
|
|
191
|
+
|
|
192
|
+
Outcome gate: **every cut between two frames has an interaction or a reason, and every
|
|
193
|
+
step has a caption.**
|
|
194
|
+
|
|
195
|
+
### 4. Check, then look
|
|
196
|
+
|
|
197
|
+
Run the cast checker; it refuses a scene of the wrong length, a step with no caption,
|
|
198
|
+
and a frame the catalogue does not hold. Then look at the moments themselves: pose each
|
|
199
|
+
step halfway and see where the symbol lands. A clip that plays is not a clip that is
|
|
200
|
+
right.
|
|
201
|
+
|
|
202
|
+
Outcome gate: **the check is clean, and every step has been looked at, at rest and
|
|
203
|
+
halfway.**
|
|
204
|
+
|
|
205
|
+
### 5. Publish and hand on
|
|
206
|
+
|
|
207
|
+
Write the page with its legend. Watch each clip once from start to end at normal speed,
|
|
208
|
+
then tell the operator what each one shows and which gaps it found.
|
|
209
|
+
|
|
210
|
+
When the operator asks for slides, record the clips they name on slides of the deck's
|
|
211
|
+
size, and look at each file once before handing it over: the first picture, one in the
|
|
212
|
+
middle of an interaction, and the last.
|
|
213
|
+
|
|
214
|
+
Outcome gate: **the page is written, and every gap is with `desk-draw-frames` or
|
|
215
|
+
`desk-run-studio`.**
|
|
216
|
+
|
|
217
|
+
## Running as an update
|
|
218
|
+
|
|
219
|
+
An update follows the frames and the journeys.
|
|
220
|
+
|
|
221
|
+
- A frame that changed inside may have moved what a step aimed at. Run the check and
|
|
222
|
+
look at the steps on that frame again.
|
|
223
|
+
- A journey whose jobs changed order changes its clip's chapters. A clip whose chapters
|
|
224
|
+
no longer match the journey is wrong, however well it plays.
|
|
225
|
+
- A clip that no longer applies is archived, not deleted.
|
|
226
|
+
|
|
227
|
+
**Say what else may now be out of date.** Writing a clip often shows that a frame is
|
|
228
|
+
missing or that a journey skips a step. Name those; do not fix them yourself.
|
|
229
|
+
|
|
230
|
+
## Response format
|
|
231
|
+
|
|
232
|
+
```markdown
|
|
233
|
+
Situation: frames <found at … | none>, clips <found | new>, desk: <found | none>
|
|
234
|
+
|
|
235
|
+
- [ ] 1. Clips chosen: <n>; scenes: <n>; each proves: …
|
|
236
|
+
- [ ] 2. Chapters match jobs: <yes | what differs>; frames missing: …
|
|
237
|
+
- [ ] 3. Steps written; interactions the operator decided: …
|
|
238
|
+
- [ ] 4. Check: <clean | findings>; moments looked at: <n> of <n>
|
|
239
|
+
- [ ] 5. Page written at <place>
|
|
240
|
+
|
|
241
|
+
Gaps handed on: … (to desk-draw-frames | to desk-run-studio)
|
|
242
|
+
Judgment calls made without the operator: …
|
|
243
|
+
```
|
|
244
|
+
|
|
245
|
+
## Worked example: why an app stalled
|
|
246
|
+
|
|
247
|
+
The app owner's journey through the adoption tracker: notice the stalled app,
|
|
248
|
+
understand why, decide what to do.
|
|
249
|
+
|
|
250
|
+
What the tutorial should bring out:
|
|
251
|
+
|
|
252
|
+
- **Step 2.** The journey has three jobs and the catalogue had frames for two. "Decide
|
|
253
|
+
what to do" had no frame. The clip was written with two chapters and the gap went to
|
|
254
|
+
the studio, instead of ending on an invented frame.
|
|
255
|
+
- **Step 3.** Nothing said whether a row opens on a tap or on a slide. The operator
|
|
256
|
+
ruled a tap; that ruling went to the record, not only into the cast.
|
|
257
|
+
- **Step 4.** The check was clean and the tap still landed on the wrong row: the
|
|
258
|
+
selector matched the first row, not the stalled one. Only looking found it.
|
|
259
|
+
|
|
260
|
+
## Related skills
|
|
261
|
+
|
|
262
|
+
- `desk-draw-frames` — the frames every clip plays over
|
|
263
|
+
- `desk-map-journeys` — the journeys whose jobs are a clip's chapters
|
|
264
|
+
- `desk-run-studio` — where a gap a clip uncovers is explored
|
|
265
|
+
- `desk-assemble` — gives the clips their tab when the product has a desk
|
|
266
|
+
|
|
267
|
+
## Support
|
|
268
|
+
|
|
269
|
+
If this skill leads somewhere broken — a command that errors, guidance that
|
|
270
|
+
contradicts what the live system answers, a gap the flow cannot cover — you are not
|
|
271
|
+
stuck:
|
|
272
|
+
|
|
273
|
+
- Raise an issue in the pragma-core repo: https://github.com/canonical/pragma-core/issues —
|
|
274
|
+
include the skill name, what was run, and expected vs. actual outcome.
|
|
275
|
+
- Or contact the design-system team owners directly through your organization's
|
|
276
|
+
professional messaging channels for assistance.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../desk-assemble/tab.schema.json",
|
|
3
|
+
"id": "motion",
|
|
4
|
+
"title": "Motion",
|
|
5
|
+
"file": "motion.html",
|
|
6
|
+
"rank": 50,
|
|
7
|
+
"kind": "method",
|
|
8
|
+
"purpose": "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.",
|
|
9
|
+
"filledFrom": "the frames on the Frames tab and the journeys they serve",
|
|
10
|
+
"empty": {
|
|
11
|
+
"headline": "No clips yet.",
|
|
12
|
+
"until": "A clip plays over frames that exist. The first one arrives once a journey's frames are drawn."
|
|
13
|
+
}
|
|
14
|
+
}
|