@ethlete/agent-rules 0.1.0-next.43 → 0.1.0-next.45
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/AGENTS.md +2 -2
- package/CHANGELOG.md +51 -0
- package/README.md +9 -8
- package/THIRD-PARTY-LICENSES.md +3 -3
- package/content/hooks/builder-idle-check.py +253 -0
- package/content/hooks/design-live-check.py +136 -0
- package/content/mods/plugins/e2e-progress/.claude-plugin/plugin.json +1 -1
- package/content/mods/plugins/status-line/.claude-plugin/plugin.json +1 -1
- package/content/skills/agent-sessions/agent-sessions.mjs +39 -18
- package/content/skills/codex-subagent/SKILL.md +5 -7
- package/content/skills/codex-subagent/codex-agent.mjs +1 -1
- package/content/skills/design-exploration/SKILL.md +49 -36
- package/content/skills/design-exploration/reference-check-and-notes.md +5 -1
- package/content/skills/design-exploration/reference-flows.md +38 -0
- package/content/skills/design-exploration/reference-order-and-design-system.md +17 -25
- package/content/skills/design-exploration/reference-products-and-sketches.md +40 -1
- package/content/skills/domain-modeling/SKILL.md +13 -22
- package/content/skills/grill-with-docs/SKILL.md +1 -1
- package/package.json +1 -1
- package/src/lib/config.d.ts +4 -1
- package/src/lib/config.js +7 -1
- package/src/lib/config.js.map +1 -1
- package/src/lib/targets/hooks-shared.js +12 -6
- package/src/lib/targets/hooks-shared.js.map +1 -1
- package/content/hooks/builder-chat-words.py +0 -269
- package/content/skills/design-exploration/reference-flows-and-wireframes.md +0 -76
- package/content/skills/domain-modeling/ADR-FORMAT.md +0 -48
|
@@ -24,7 +24,7 @@ only the final message, so one run costs you a few hundred tokens instead of the
|
|
|
24
24
|
Below, `<skill-dir>` is the directory this file sits in.
|
|
25
25
|
|
|
26
26
|
```bash
|
|
27
|
-
node <skill-dir>/codex-agent.mjs -m gpt-6.
|
|
27
|
+
node <skill-dir>/codex-agent.mjs -m gpt-6.2-sol -e medium "<prompt>"
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
Options: `-m` model, `-e` effort (`low`, `medium`, `high`, `xhigh`), `-C` working root,
|
|
@@ -36,12 +36,10 @@ id and the log path. Read the log only when a run fails.
|
|
|
36
36
|
|
|
37
37
|
## Pick the model
|
|
38
38
|
|
|
39
|
-
| Model | The work it fits
|
|
40
|
-
| --------------- |
|
|
41
|
-
| `gpt-6-
|
|
42
|
-
| `gpt-6.
|
|
43
|
-
| `gpt-6.1-sol` | A reliable workhorse for a straight task. Its usage limit runs out fast, so ask the user before you pick it. |
|
|
44
|
-
| `gpt-6-astra` | Complex, demanding work. The most expensive of the four, so ask the user before you pick it. |
|
|
39
|
+
| Model | The work it fits |
|
|
40
|
+
| --------------- | --------------------------------------------------------------------------------------- |
|
|
41
|
+
| `gpt-6.2-sol` | The default for real work, lookups included, and the wrapper's default. No need to ask. |
|
|
42
|
+
| `gpt-6.2-astra` | The hardest work. Ask the user (through the doc session) before you pick it. |
|
|
45
43
|
|
|
46
44
|
Effort follows both the flag and the prompt. Pass `-e low` for a lookup and `-e high` for a
|
|
47
45
|
hard bug. Say "keep it brief" in the prompt when you want a short answer.
|
|
@@ -14,7 +14,7 @@ import { tmpdir } from 'node:os';
|
|
|
14
14
|
import { join } from 'node:path';
|
|
15
15
|
import { createInterface } from 'node:readline';
|
|
16
16
|
|
|
17
|
-
const DEFAULT_MODEL = 'gpt-6.
|
|
17
|
+
const DEFAULT_MODEL = 'gpt-6.2-sol';
|
|
18
18
|
const DEFAULT_TIMEOUT_SECONDS = 900;
|
|
19
19
|
|
|
20
20
|
const USAGE = `Usage: node codex-agent.mjs [options] "<prompt>"
|
|
@@ -23,12 +23,11 @@ or loses only against the other variants of its question.
|
|
|
23
23
|
1. **One open call at a time.** Take one question. Draw its variants. Stop.
|
|
24
24
|
2. **Put the variants in the call, then name your pick.** Two to four variants, drawn for
|
|
25
25
|
real, side by side, labelled, with what each one costs. Your pick is a proposal. Never ask
|
|
26
|
-
a yes/no question about content
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
the next focused question automatically, within the user's original scope. Stop only when the
|
|
26
|
+
the user what they want or a yes/no question about content: deliver strong variants.
|
|
27
|
+
3. **Commit only when the user says commit.** A merge in Ethlete Studio counts as
|
|
28
|
+
that word for the merged part: commit the part, not open sketches.
|
|
29
|
+
4. **A clear rejection starts the next call.** Settle and record it, then draw
|
|
30
|
+
the next focused question, within the user's original scope. Stop only when the
|
|
32
31
|
user asks to pause or end the exploration, or when their feedback leaves no grounded next
|
|
33
32
|
question.
|
|
34
33
|
5. **Keep the answer short.** 120 words at most.
|
|
@@ -43,8 +42,7 @@ or loses only against the other variants of its question.
|
|
|
43
42
|
"regression" items are no exception. Without a picked sketch, build data and specs only and
|
|
44
43
|
stop at the UI.
|
|
45
44
|
|
|
46
|
-
Confirm the step size once, at the start.
|
|
47
|
-
finished while the user is still talking about it.
|
|
45
|
+
Confirm the step size once, at the start. A task is not finished while the user is still talking about it.
|
|
48
46
|
|
|
49
47
|
## What one stop looks like
|
|
50
48
|
|
|
@@ -69,7 +67,10 @@ The exploration's plan file names the tool. Two shapes exist.
|
|
|
69
67
|
user reads and decides in Ethlete Studio. The tool is `et design`, from `@ethlete/cli`; run
|
|
70
68
|
`et design --help` for every command, `et design <command> [<subcommand>] --help` for one.
|
|
71
69
|
In the SDK checkout, `yarn design` builds the CLI before each call; in a check-and-shot loop,
|
|
72
|
-
build once and call `node dist/libs/cli/src/index.js design
|
|
70
|
+
build once and call `node dist/libs/cli/src/index.js design`.
|
|
71
|
+
Ask the user, then run `et design studio open` to show your checkout in Studio. If it is not
|
|
72
|
+
running, the request is kept for 7 days and Studio adds the checkout at its next start (exit 3, queued). In a client run (`CLEAN_SLATE_SANDBOX` is set) the
|
|
73
|
+
command refuses: a run must not write the user's Studio roots, so the user opens the run's checkout.
|
|
73
74
|
|
|
74
75
|
```
|
|
75
76
|
.ethlete/design/
|
|
@@ -81,43 +82,61 @@ build once and call `node dist/libs/cli/src/index.js design` instead.
|
|
|
81
82
|
calls/ old calls: Legacy, read-only
|
|
82
83
|
```
|
|
83
84
|
|
|
84
|
-
Studio no
|
|
85
|
-
|
|
86
|
-
product. They take no picks and no new variants.
|
|
85
|
+
Studio takes no new calls. **New work goes to a product**, never `et design new`. Old calls stay in
|
|
86
|
+
the Legacy tab as reference for moving them into a product, with no picks and no new variants.
|
|
87
87
|
|
|
88
88
|
## Hard rules for products and sketches
|
|
89
89
|
|
|
90
90
|
- A change to a merged part, also a small one, is a **sketch**; never edit a merged part directly. When
|
|
91
91
|
nothing is to choose, the sketch has one variant (`--variants a`). Variants are alternatives, never a state
|
|
92
92
|
of another variant. Two to four variants, each with its cost; run `sketch check` before `sketch ready`.
|
|
93
|
-
- **Never run `sketch merge` or `sketch discard`, and never pick a variant, unless your role has its own picks.** Studio merges on the user's
|
|
93
|
+
- **Never run `sketch merge` or `sketch discard`, and never pick a variant, unless your role has its own picks; discarding the mood sketch is the one exception.** Studio merges on the user's
|
|
94
94
|
click. After a pick or discard, do not merge. Run `sketch reject` or `reopen` only when the user did.
|
|
95
|
-
- Mark a sketch `ready` only when no change
|
|
95
|
+
- Mark a sketch `ready` only when no change waits on anything; otherwise `sketch hold`. The pick of another
|
|
96
|
+
sketch is not a wait: draw with the part as merged now.
|
|
96
97
|
- Every write command takes `--by <model id>`. **Never guess your id**: use the one your prompt names, or ask
|
|
97
|
-
|
|
98
|
-
-
|
|
99
|
-
|
|
100
|
-
- Studio takes no new calls: never run `et design new`. New work goes to a product.
|
|
101
|
-
- Share code between variants in the sketch's `shared/` folder only; no shared parameter or branch for one
|
|
102
|
-
variant. An asset is one file in `<product>/assets/`, never inlined.
|
|
98
|
+
before you write.
|
|
99
|
+
- `design check` opens an edit sketch for a direct edit of a merged part; the user picks in Studio. Remove a part only with `et design part remove`, never `git rm`.
|
|
100
|
+
- Share code between variants in the sketch's `shared/` folder only. An asset is one file in `<product>/assets/`.
|
|
103
101
|
- A user comment to combine variants is a new variant in a new round (`sketch variant --from --round --note`).
|
|
104
102
|
- Read the inbox at the start of a session and after each `ready`. Answer with `inbox done <id> --note`,
|
|
105
103
|
ask with `comment reply --question` only when you cannot go on. Only the user resolves a thread.
|
|
106
104
|
- Use the `ethlete-design` MCP tools when they are in your tool list, and call `sketch_report` before every
|
|
107
105
|
variant edit.
|
|
108
106
|
- Draw from the design system, never invent a button or field: the product's parts, then SDK components via
|
|
109
|
-
`ng()`, then new. Colours come from the SDK theming systems
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
107
|
+
`ng()`, then new. Colours come from the SDK theming systems. A part exists only because the user picked a sketch.
|
|
108
|
+
- **A new product starts with one real screen** (a film app: the overview) in two or three finished moods:
|
|
109
|
+
real colours, real type, real content from the product's data. The user picks no mood and nothing merges:
|
|
110
|
+
he collects by commenting on what he likes. Wait for his "collected enough", then draw the first real
|
|
111
|
+
page from his comments as a new sketch and discard the mood sketch. Menu, navigation
|
|
112
|
+
and layout are your call, shown only inside the finished screen: draw the masthead, menu and navigation as
|
|
113
|
+
`elements/shell-<purpose>` inside each mood's variant folder, and let the page import it, never an inline
|
|
114
|
+
`<header>` or `<nav>` in the page. Never draw a wireframe or a layout round of grey boxes.
|
|
115
|
+
- Do not start a design stage before the one above it is settled: foundations, logo and
|
|
116
|
+
CI, components, elements, pages, prototype.
|
|
117
|
+
- A logo is explored small and elaborated after the pick: a logo sketch variant shows only the mark, at one size,
|
|
118
|
+
so ten variants stay ten quick looks. Only after the merge of the picked variant, draw the six sections of
|
|
119
|
+
`foundations/logo`: anatomy, clear space, minimum size, colour variants, misuse and motion (one state each:
|
|
120
|
+
`anatomy`, `clear-space`, `minimum-size`, `colour-variants`, `misuse`, `motion`). The design check reports a missing section on a merged logo.
|
|
121
|
+
- Mark a sketch `ready` only after you looked at a shot of each variant ({%resource:reference-shots.md%}).
|
|
122
|
+
- Talk to the user about the product: screens, moods, content. Never name tools, commands or file paths.
|
|
123
|
+
A variant note is at most two short sentences in the words of the screen, never a field or prop name.
|
|
124
|
+
- Work only from your repo and what the user hands you; never search the machine or other folders for
|
|
125
|
+
material. When an image or other material is missing, ask for it in one plain sentence.
|
|
126
|
+
- Every interactive part (a poster card, a search field, a chip, a button) draws its own hover and focus-visible
|
|
127
|
+
states next to rest. A page has none: it imports those parts and shows theirs, so never write a hover or
|
|
128
|
+
focus rule only in a page's CSS.
|
|
129
|
+
- A state must read as different from rest at a glance: change colour, surface, outline or shadow. A lift or move
|
|
130
|
+
of a few px alone barely differs, and `sketch check` and `sketch ready` warn about it.
|
|
131
|
+
- The app shell (masthead, menu, navigation, and any header or footer every page shares) is one element each
|
|
132
|
+
page imports, never drawn inside a page. This holds in the first sketch too.
|
|
114
133
|
|
|
115
134
|
Details, commands and examples, read on demand:
|
|
116
135
|
|
|
117
136
|
- {%resource:reference-products-and-sketches.md%}: creating a product, every `sketch` command, shared code,
|
|
118
137
|
assets, rounds, `--by`, the merge and accept flow. Read before the first sketch command.
|
|
119
138
|
- {%resource:reference-inbox-and-mcp.md%}: reading and answering comments, thread states, the MCP tools.
|
|
120
|
-
- {%resource:reference-flows
|
|
139
|
+
- {%resource:reference-flows.md%}: flow JSON, `embedPage`, the shell.
|
|
121
140
|
- {%resource:reference-check-and-notes.md%}: `design check` rules and warnings, drawing-file constraints,
|
|
122
141
|
`setup`, `ngStates`, notes.
|
|
123
142
|
- {%resource:reference-order-and-design-system.md%}: the stage order, component states and
|
|
@@ -146,10 +165,8 @@ With a Storybook, copy {%resource:check-story.mjs%} to the **repository root** f
|
|
|
146
165
|
node check-story.mjs --lint <changed files> --tsconfig apps/<app>/.storybook/tsconfig.json
|
|
147
166
|
```
|
|
148
167
|
|
|
149
|
-
Both take about four seconds and need no dev server.
|
|
150
|
-
|
|
151
|
-
transpile without type checking, so the render reports `ok` on a file that does not
|
|
152
|
-
compile. Open it only when the check passes and the drawing still does not appear:
|
|
168
|
+
Both take about four seconds and need no dev server. Open a browser only when the check passes and
|
|
169
|
+
the drawing still does not appear:
|
|
153
170
|
|
|
154
171
|
```bash
|
|
155
172
|
et design check --call <slug> # every variant of the call
|
|
@@ -159,8 +176,7 @@ node check-story.mjs --tsconfig <path> --story <story-id>
|
|
|
159
176
|
|
|
160
177
|
A passing check says the variant builds, not that it looks good. Before `sketch ready`, look at
|
|
161
178
|
each variant at a readable scale and in its whole host page, and critique its hierarchy, spacing,
|
|
162
|
-
nesting and host context together. Drop a variant
|
|
163
|
-
before the user sees it. In your summary, say "renders correctly", never "good" or "approved":
|
|
179
|
+
nesting and host context together. Drop a visually weak variant before the user sees it. In your summary, say "renders correctly", never "good" or "approved":
|
|
164
180
|
the user decides that.
|
|
165
181
|
|
|
166
182
|
## Delegating a sketch
|
|
@@ -184,7 +200,4 @@ command." You know the id because you chose the model; the sub-agent does not, a
|
|
|
184
200
|
|
|
185
201
|
## Writing it down
|
|
186
202
|
|
|
187
|
-
Every settled call goes in the exploration's plan file: what won, what lost, and why.
|
|
188
|
-
an **Open** list for the calls not yet made. A rejected variant written down stops the next
|
|
189
|
-
session from drawing it again. After a clear rejection, use that record to frame and draw the
|
|
190
|
-
next call; do not wait for the user to type “continue”.
|
|
203
|
+
Every settled call goes in the exploration's plan file: what won, what lost, and why, plus an **Open** list. After a clear rejection, draw the next call from that record without waiting.
|
|
@@ -17,7 +17,11 @@ Once the other rules pass, the check draws every state in a headless Chromium on
|
|
|
17
17
|
`sketch check` does the same for the open variants and the pages they show in. Each line names
|
|
18
18
|
product, part, state, size and a selector path:
|
|
19
19
|
|
|
20
|
-
- `OVERFLOW` - the frame scrolls: content wider than the frame
|
|
20
|
+
- `OVERFLOW` - the frame scrolls sideways: content wider than the frame. A page taller than its preset
|
|
21
|
+
height is fine: it scrolls, so draw the whole list, not the films that fit.
|
|
22
|
+
- `FONT-FACE` - a font the design names did not load in the shot (an `@font-face` that fails, or a family no
|
|
23
|
+
stylesheet delivers, e.g. a Google Fonts link the sandbox blocks). Self-host it: a woff2 file in the product's
|
|
24
|
+
`assets/` and an `@font-face` rule, never a CDN link.
|
|
21
25
|
- `CLIPPED` - an element with `overflow: hidden|clip` cuts its content, unless it sets
|
|
22
26
|
`text-overflow: ellipsis` or a line clamp.
|
|
23
27
|
- `WRAP` - text in a button, tab, badge, chip or `white-space: nowrap` box runs onto a second line.
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Design exploration: flows
|
|
2
|
+
|
|
3
|
+
### Draw a flow
|
|
4
|
+
|
|
5
|
+
A flow joins states of pages into a path the user reads left to right in Studio's Flows view.
|
|
6
|
+
It is `<product>/flows/<name>.json`; `position` and `label` are optional:
|
|
7
|
+
|
|
8
|
+
```json
|
|
9
|
+
{
|
|
10
|
+
"frames": [{ "part": "pages/projects", "state": "empty", "position": { "x": 0, "y": 0 } }],
|
|
11
|
+
"lines": [
|
|
12
|
+
{
|
|
13
|
+
"from": { "part": "pages/projects", "state": "empty" },
|
|
14
|
+
"to": { "part": "pages/project-detail", "state": "default" },
|
|
15
|
+
"label": "user adds a project"
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
}
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Every flow line is labelled, and the element the label names is visible in the frame before it: a line
|
|
22
|
+
labelled "user clicks 'Log in'" starts from a frame that shows a "Log in" button. A line that names
|
|
23
|
+
nothing the reader can see, or a label for a control the page lacks, is a defect.
|
|
24
|
+
|
|
25
|
+
A line may join two states of one page. A frame may name a page that exists only as an open sketch;
|
|
26
|
+
the flow then shows its first variant. Lines hold for every preset. Without `position`, Studio
|
|
27
|
+
lays the frames out along the lines.
|
|
28
|
+
|
|
29
|
+
A page may not import another page. To show a page inside a page ("in context"), embed it:
|
|
30
|
+
`embedPage('pages/system', { state, width, height, scale })` from `@design-system` answers a
|
|
31
|
+
drawing whose `body` is a frame of that page, drawn in the same product, sketch variant and theme
|
|
32
|
+
as the embedding frame. `width` and `height` are the viewport the page is drawn at (default
|
|
33
|
+
1280 x 800; `height: 'auto'` fits its content), `scale` shrinks the frame. Never rebuild a page
|
|
34
|
+
from its elements to show it.
|
|
35
|
+
|
|
36
|
+
The app shell (menu, navigation) is one element named by purpose (`elements/shell-primary`) that each page
|
|
37
|
+
imports, so a shell pick lands in one file. Never draw the shell inside a page, and never as a state of one.
|
|
38
|
+
A dialog without its own URL is an element that a page state shows ("login open").
|
|
@@ -2,41 +2,28 @@
|
|
|
2
2
|
|
|
3
3
|
## The order of a design
|
|
4
4
|
|
|
5
|
-
A product design runs in this order. Each stage settles in calls before the next starts, and
|
|
6
|
-
each stage draws with what the stages before it settled
|
|
5
|
+
A product design runs in this order, after the first real screen of a new product (see `SKILL.md`), which draws its own colours, type and parts first. Each stage settles in calls before the next starts, and
|
|
6
|
+
each stage draws with what the stages before it settled:
|
|
7
7
|
|
|
8
|
-
1. **
|
|
9
|
-
in a product, draw them with the wireframe kit, see "Draw a wireframe"). They show
|
|
10
|
-
which components the product needs, not how they look. The stage ends with an inventory in
|
|
11
|
-
the wireframe call: every part the wireframes need, each mapped to the SDK component it
|
|
12
|
-
starts from, or marked new with the component call that draws it. The inventory is the
|
|
13
|
-
queue of component calls:
|
|
14
|
-
|
|
15
|
-
```ts
|
|
16
|
-
inventory: [
|
|
17
|
-
{ part: 'Search field', sdk: 'et-input' },
|
|
18
|
-
{ part: 'Match card', new: true, call: 'my-app/components/match-card' },
|
|
19
|
-
],
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
2. **Foundations**: colours, colour themes and surface themes (the project's `themes` in
|
|
8
|
+
1. **Foundations**: colours, colour themes and surface themes (the project's `themes` in
|
|
23
9
|
`config.json`), plus the type scale, spacing and radius.
|
|
24
|
-
|
|
25
|
-
|
|
10
|
+
2. **Logo and CI**, if the project needs them. A logo sketch variant shows only the mark at one size; the six sections
|
|
11
|
+
(anatomy, clear space, minimum size, colour variants, misuse, motion) come after the merge of the picked variant.
|
|
12
|
+
3. **Components**, from the SDK ones rendered with `ng()`, themed and set up for the project.
|
|
26
13
|
Each accepted one becomes a design-system entry.
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
14
|
+
4. **Larger elements**: the shell, the navigation, headers, lists, built from the entries.
|
|
15
|
+
5. **Pages**, built from the elements and the entries.
|
|
16
|
+
6. **The working prototype**: the pages joined with `ngStates` and `flow.on`.
|
|
30
17
|
|
|
31
18
|
Do not start a stage before the one above it is settled, and do not draw a page from parts that
|
|
32
19
|
are not in the design system. If the user asks for a later stage first, say which earlier stage
|
|
33
20
|
is missing, and draw that first.
|
|
34
21
|
|
|
35
|
-
The stages map onto the layers of a product:
|
|
22
|
+
The stages map onto the layers of a product: foundations, components, elements, pages. A settled
|
|
36
23
|
Legacy call with a stage counts for that stage in this order.
|
|
37
24
|
|
|
38
25
|
A later stage can show that an earlier one is incomplete. If a page needs a part that the system
|
|
39
|
-
does not have, add it to the
|
|
26
|
+
does not have, add it to the components queue. A part becomes a component only when at least two hosts
|
|
40
27
|
draw the same case. Until then it stays in the one element or page that draws it. When a second
|
|
41
28
|
host draws it, open a component sketch, and list in its brief every host and every case each one
|
|
42
29
|
draws, so the component covers them all.
|
|
@@ -49,6 +36,9 @@ not a component.
|
|
|
49
36
|
When each of several cases is drawn at rest and in the same interactions, build the states and their grid with
|
|
50
37
|
`interactionRows(rows, { interactions: ['hover', 'active'], force: (props, interaction) => ({ ...props, interaction }) })`
|
|
51
38
|
from `@design-system` and spread the result into `definePart`; never write those states and the grid by hand.
|
|
39
|
+
Draw the interactions once, on the first row. A row that only changes content, such as a badge, a longer title or a
|
|
40
|
+
missing logo, is drawn only at rest: name it in `restOnly: ['series']`. `sketch ready` refuses a content row whose
|
|
41
|
+
interactions look the same as the first row's as `INTERACTION-REPEAT`.
|
|
52
42
|
`sketch check` prints `grid <rows> x <columns> ok`, or the states the grid leaves out; a state in two cells
|
|
53
43
|
fails it as `GRID`, in `design check` too.
|
|
54
44
|
Interaction states (a state name whose last word is hover, focus, pressed, active or selected, such as `row-hover`) live only on a control
|
|
@@ -115,7 +105,9 @@ stylesheet. Give a raised or floating area `data-et-auto-surface` and an interac
|
|
|
115
105
|
`data-et-surface-interactive`, never a picked `et-surface--<name>` class: the frame resolves them by elevation like
|
|
116
106
|
`etAutoSurface` and `etSurfaceInteractive`. Give a warning, error or success accent
|
|
117
107
|
`data-et-semantic-color="<type>"`, never a picked `et-color--<name>` class: the frame resolves it by type like
|
|
118
|
-
`injectSemanticColorTheme`.
|
|
108
|
+
`injectSemanticColorTheme`. A generated colors foundation registers one theme per type, named after it
|
|
109
|
+
(`et-color--error`, `et-color--warning`); an SDK drawing input that takes a theme name, like the button's `color`,
|
|
110
|
+
takes that name, since no other name resolves. `sketch check` warns when a state uses an `et-color--<name>` no foundation of the product defines, naming the defined ones. Read the theming skill of the SDK before the first colour in a drawing. `et design check` reports
|
|
119
111
|
a denied class from the product's `deniedClasses` list in `config.json`.
|
|
120
112
|
|
|
121
113
|
A part is one folder, `<product>/<layer>/<part>/`, with its drawing and states. Read the parts of
|
|
@@ -76,6 +76,39 @@ draw that first.
|
|
|
76
76
|
A section of an app is a page under `pages/`, never a state of the shell. An element holds its
|
|
77
77
|
own chrome only. A sketch on an element adds no state whose difference is page content in a slot.
|
|
78
78
|
|
|
79
|
+
The variants of a composition (an element or a page) differ only in arrangement and use the same
|
|
80
|
+
sub-parts. A sub-part the composition needs (a tab bar, a search field) is a part of its own under
|
|
81
|
+
`components/`: open a sketch on it and import it as `@system/components/<name>`. `sketch check` and
|
|
82
|
+
`design check` fail a composition whose variants hold different copies of a part they import. While
|
|
83
|
+
that sub-part is new in its open sketch, record the variant you recommend with
|
|
84
|
+
`sketch recommend <layer>/<name> --variant <key> --by <model id>`: every sketch that imports it
|
|
85
|
+
draws that variant, or the user's pick once there is one, with no hint in Studio. The composition
|
|
86
|
+
cannot merge before the sub-part does; the merge of the sub-part rebases the composition sketch onto
|
|
87
|
+
the merged part.
|
|
88
|
+
|
|
89
|
+
A new part one variant builds for its own arrangement (a hero's poster strip) is a marked sub-part:
|
|
90
|
+
`sketch sub-part <target> <layer>/<name>[,…] --variant <key> --by <model id>` (`--remove` drops it).
|
|
91
|
+
Marked sub-parts may differ between variants; the check fails every new part a composition variant
|
|
92
|
+
builds without a mark, and every mark on an existing part. A new part whose name matches an existing
|
|
93
|
+
component or element (`hero-badges` and `badge`) must embed it, or state the difference:
|
|
94
|
+
`sketch sub-part … <part> "<what it is that the other is not>" --not-rebuild-of sdk:badge`. The same holds
|
|
95
|
+
for markup a variant draws inline: a value named like an existing part as an element's text
|
|
96
|
+
(`<span>${FIXTURE.badge}</span>`), or an element with content in an existing part's root class or tag under
|
|
97
|
+
another prefix (`<span class="tsh-badge">Serie</span>` for `et-badge`), must become that part, or the target states the difference with itself as
|
|
98
|
+
`<part>`. Never rename a part or value to dodge the match. Studio shows the marks at the variant header; a mark change on a ready
|
|
99
|
+
sketch moves it back to in progress.
|
|
100
|
+
|
|
101
|
+
A pick of a variant with marked sub-parts merges nothing: it opens one sub-sketch per sub-part, seeded from
|
|
102
|
+
that variant. Draw each and mark it ready with `sketch ready` first: `sketch approve` refuses a sub-sketch
|
|
103
|
+
in progress. Once the user approves it, record that with
|
|
104
|
+
`sketch approve <sub-part> --variant <key> --decided-by <their words> --by <model id>`; a sub-sketch never
|
|
105
|
+
merges on its own. The parent merge waits until every sub-sketch is approved and names the open ones;
|
|
106
|
+
then one merge writes the parent and every approved sub-part with its `shared/` and asset changes, and closes
|
|
107
|
+
the sub-sketches. Two of them changing the same `shared/` or asset file refuse the merge, naming the file.
|
|
108
|
+
A pick of another variant while the parent is unmerged discards the sub-sketches the new variant does not
|
|
109
|
+
mark, approved ones too, keeps those it marks again and opens its new ones; `sketch pick` names them and
|
|
110
|
+
needs `--discard-sub-sketches` to confirm.
|
|
111
|
+
|
|
79
112
|
A variant mirrors the product layout and holds only the parts it changes. Draw two to four
|
|
80
113
|
variants, each with what it costs, and run `sketch check` before `ready`. A variant with problems
|
|
81
114
|
cannot be picked. A part in a variant keeps every state the part has in the product: `sketch check`
|
|
@@ -128,7 +161,9 @@ import { flows } from '@shared/flow-data';
|
|
|
128
161
|
An asset (a mark, logo, icon, picture or font) is one file in `.ethlete/design/<product>/assets/`,
|
|
129
162
|
never a copy inlined into parts. A part imports it as `@assets/<file>`: the default import is a URL
|
|
130
163
|
for `<img src>`; an SVG that must follow tokens (`currentColor`, `var(--accent)`) imports with
|
|
131
|
-
`?raw` and goes inline, for example `@assets/icons/<name>.svg?raw`. A
|
|
164
|
+
`?raw` and goes inline, for example `@assets/icons/<name>.svg?raw`. A picture with the title baked in
|
|
165
|
+
(a poster, key art) gets `data-et-carries-title` on its `<img>`; `sketch check` warns when a heading or an
|
|
166
|
+
`<img>` with alt text draws the title again next to it. A backdrop without the title gets no marker. A stylesheet, the product's
|
|
132
167
|
`styles.css` or a part's, uses `url('@assets/<file>')`, for example in an `@font-face`. A foundation
|
|
133
168
|
part may wrap an asset in a named export. A product finds its base product's assets too. A sketch
|
|
134
169
|
variant adds or changes an asset in its own `<variant>/assets/` folder (`sketch new` and `sketch variant`
|
|
@@ -184,6 +219,10 @@ merge queue: ask first, make the change, then mark it `ready`. Record the wait w
|
|
|
184
219
|
`et design sketch hold <layer>/<name> --until "<what it waits on>" --by <model id>` (a `ready` sketch goes back
|
|
185
220
|
in progress) and `sketch release` it once the change is in.
|
|
186
221
|
|
|
222
|
+
The pick of another sketch is not a wait. A sketch that uses a part another open sketch changes draws that part
|
|
223
|
+
as merged now, and goes `ready`. When the user merges the other sketch, the next design commit rebases this one.
|
|
224
|
+
A hold on it leaves the user nothing to choose until the other pick.
|
|
225
|
+
|
|
187
226
|
### Your model id: `--by`
|
|
188
227
|
|
|
189
228
|
Every command that writes takes `--by <model id>` and fails without it: `sketch new`, `variant`, `report`,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: domain-modeling
|
|
3
|
-
description: Build and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing a CONTEXT.md, or recording
|
|
3
|
+
description: Build and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing a CONTEXT.md, or recording a design decision.
|
|
4
4
|
kind: skill
|
|
5
5
|
scope: both
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# Domain Modeling
|
|
9
9
|
|
|
10
|
-
Actively build and sharpen the project's domain model as you design. This is the _active_ discipline: challenging terms, inventing edge-case scenarios, and writing the glossary and decisions
|
|
10
|
+
Actively build and sharpen the project's domain model as you design. This is the _active_ discipline: challenging terms, inventing edge-case scenarios, and writing the glossary down and turning decisions into tests the moment they crystallise. (Merely _reading_ `CONTEXT.md` for vocabulary is not this skill: that's a one-line habit any skill can do. This skill is for when you're changing the model, not just consuming it.)
|
|
11
11
|
|
|
12
12
|
## File structure
|
|
13
13
|
|
|
@@ -16,10 +16,6 @@ Most repos have a single context:
|
|
|
16
16
|
```
|
|
17
17
|
/
|
|
18
18
|
├── CONTEXT.md
|
|
19
|
-
├── docs/
|
|
20
|
-
│ └── adr/
|
|
21
|
-
│ ├── 0001-event-sourced-orders.md
|
|
22
|
-
│ └── 0002-postgres-for-write-model.md
|
|
23
19
|
└── src/
|
|
24
20
|
```
|
|
25
21
|
|
|
@@ -28,18 +24,14 @@ If a `CONTEXT-MAP.md` exists at the root, the repo has multiple contexts. The ma
|
|
|
28
24
|
```
|
|
29
25
|
/
|
|
30
26
|
├── CONTEXT-MAP.md
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
│ │ └── docs/adr/ ← context-specific decisions
|
|
37
|
-
│ └── billing/
|
|
38
|
-
│ ├── CONTEXT.md
|
|
39
|
-
│ └── docs/adr/
|
|
27
|
+
└── src/
|
|
28
|
+
├── ordering/
|
|
29
|
+
│ └── CONTEXT.md
|
|
30
|
+
└── billing/
|
|
31
|
+
└── CONTEXT.md
|
|
40
32
|
```
|
|
41
33
|
|
|
42
|
-
Create files lazily: only when you have something to write. If no `CONTEXT.md` exists, create one when the first term is resolved.
|
|
34
|
+
Create files lazily: only when you have something to write. If no `CONTEXT.md` exists, create one when the first term is resolved.
|
|
43
35
|
|
|
44
36
|
## During the session
|
|
45
37
|
|
|
@@ -65,15 +57,14 @@ When a term is resolved, update `CONTEXT.md` right there. Don't batch these up:
|
|
|
65
57
|
|
|
66
58
|
`CONTEXT.md` should be totally devoid of implementation details. Do not treat `CONTEXT.md` as a spec, a scratch pad, or a repository for implementation decisions. It is a glossary and nothing else.
|
|
67
59
|
|
|
68
|
-
###
|
|
60
|
+
### Record a decision as a test or a tool
|
|
69
61
|
|
|
70
|
-
|
|
62
|
+
Never write an ADR. A decision becomes one of these, in the same change:
|
|
71
63
|
|
|
72
|
-
1. **
|
|
73
|
-
2. **
|
|
74
|
-
3. **The result of a real trade-off**: there were genuine alternatives and you picked one for specific reasons
|
|
64
|
+
1. **A test** that fails when the code goes against the decision, with a one-sentence comment that states the decision.
|
|
65
|
+
2. **A tool**: a live check that runs while the agent writes, or a generator for the base the agent then extends.
|
|
75
66
|
|
|
76
|
-
|
|
67
|
+
A decision that fits neither is not settled yet: keep asking. Existing ADRs stay until a cleanup pass turns each one into a test or deletes it.
|
|
77
68
|
|
|
78
69
|
---
|
|
79
70
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: grill-with-docs
|
|
3
|
-
description: A relentless interview to sharpen a plan or design, which also
|
|
3
|
+
description: A relentless interview to sharpen a plan or design, which also updates the glossary and turns each decision into a test as we go.
|
|
4
4
|
kind: skill
|
|
5
5
|
scope: both
|
|
6
6
|
modelInvocation: false
|
package/package.json
CHANGED
package/src/lib/config.d.ts
CHANGED
|
@@ -25,7 +25,10 @@ export type SyncConfig = {
|
|
|
25
25
|
* `AGENTS.md` marker block, and a second copy would load twice.
|
|
26
26
|
*/
|
|
27
27
|
claudeMdImportsAgentsMd: boolean;
|
|
28
|
-
/**
|
|
28
|
+
/**
|
|
29
|
+
* Opt-in agent hooks (they run commands on the developer's machine, so never default), plus
|
|
30
|
+
* `DESIGN_SYSTEM_HOOKS` in a repo with a design system.
|
|
31
|
+
*/
|
|
29
32
|
hooks: string[];
|
|
30
33
|
/** Opt-in git hooks, appended to the repo's own husky hooks. Same reason they never default. */
|
|
31
34
|
gitHooks: string[];
|
package/src/lib/config.js
CHANGED
|
@@ -166,6 +166,12 @@ const gitFlowVars = (gitFlow) => ({
|
|
|
166
166
|
gitFlowEnforcement: gitFlow.enforcement,
|
|
167
167
|
gitFlowSubPrefix: gitFlow.subPrefix,
|
|
168
168
|
});
|
|
169
|
+
const DESIGN_SYSTEM_HOOKS = ['design-live-check'];
|
|
170
|
+
const resolveHooks = (root, configured) => {
|
|
171
|
+
if (!(0, fs_1.existsSync)((0, path_1.join)(root, '.ethlete/design/config.json')))
|
|
172
|
+
return configured;
|
|
173
|
+
return [...configured, ...DESIGN_SYSTEM_HOOKS.filter((hook) => !configured.includes(hook))];
|
|
174
|
+
};
|
|
169
175
|
const loadConfig = (options) => {
|
|
170
176
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
171
177
|
const { root, targetOverride } = options;
|
|
@@ -181,7 +187,7 @@ const loadConfig = (options) => {
|
|
|
181
187
|
vars: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (0, package_runner_1.followPackageManager)(root, (0, load_content_1.loadDefaultVars)())), (0, package_runner_1.detectCommandVars)(root)), { packageRunner: (0, package_runner_1.detectPackageRunner)(root) }), gitFlowVars(gitFlow)), (0, commitlint_1.commitMessageVars)((0, commitlint_1.findCommitlintConfig)(root))), ((_b = raw.vars) !== null && _b !== void 0 ? _b : {})),
|
|
182
188
|
exclude: (_c = raw.exclude) !== null && _c !== void 0 ? _c : [],
|
|
183
189
|
claudeMdImportsAgentsMd: (_d = raw.claudeMdImportsAgentsMd) !== null && _d !== void 0 ? _d : false,
|
|
184
|
-
hooks: (_e = raw.hooks) !== null && _e !== void 0 ? _e : [],
|
|
190
|
+
hooks: resolveHooks(root, (_e = raw.hooks) !== null && _e !== void 0 ? _e : []),
|
|
185
191
|
gitHooks: (_f = raw.gitHooks) !== null && _f !== void 0 ? _f : [],
|
|
186
192
|
mods: (_g = raw.mods) !== null && _g !== void 0 ? _g : [],
|
|
187
193
|
gitFlow,
|
package/src/lib/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../../libs/agent-rules/src/lib/config.ts"],"names":[],"mappings":";;;AAAA,2BAA8C;AAC9C,+BAAqC;AACrC,6CAAuE;AAEvE,yCAAmF;AACnF,iDAAiD;AACjD,qDAAgG;AAEnF,QAAA,aAAa,GAAG,CAAC,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,CAAU,CAAC;AAIlE,QAAA,gBAAgB,GAAG,4BAA4B,CAAC;AAEhD,QAAA,sBAAsB,GAAG,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../../libs/agent-rules/src/lib/config.ts"],"names":[],"mappings":";;;AAAA,2BAA8C;AAC9C,+BAAqC;AACrC,6CAAuE;AAEvE,yCAAmF;AACnF,iDAAiD;AACjD,qDAAgG;AAEnF,QAAA,aAAa,GAAG,CAAC,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,CAAU,CAAC;AAIlE,QAAA,gBAAgB,GAAG,4BAA4B,CAAC;AAEhD,QAAA,sBAAsB,GAAG,kCAAkC,CAAC;AAkEzE,uGAAuG;AAChG,MAAM,eAAe,GAAG,CAAC,KAAa,EAAE,EAAE;IAC/C,IAAI,OAAO,GAAG,KAAK,CAAC;IAEpB,OAAO,CAAC,IAAA,eAAU,EAAC,IAAA,WAAI,EAAC,OAAO,EAAE,wBAAgB,CAAC,CAAC,EAAE,CAAC;QACpD,MAAM,MAAM,GAAG,IAAA,cAAO,EAAC,OAAO,CAAC,CAAC;QAEhC,IAAI,MAAM,KAAK,OAAO;YAAE,OAAO,KAAK,CAAC;QAErC,OAAO,GAAG,MAAM,CAAC;IACnB,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAZW,QAAA,eAAe,mBAY1B;AA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I,mCAAI,EAAE;QACpB,cAAc,EAAE,wBAAwB,CAAC,GAAG,CAAC;KAC9C,CAAC;AACJ,CAAC,CAAC;AA9BW,QAAA,UAAU,cA8BrB"}
|
|
@@ -42,15 +42,21 @@ exports.KNOWN_HOOKS = {
|
|
|
42
42
|
timeout: 10,
|
|
43
43
|
agents: ['claude'],
|
|
44
44
|
},
|
|
45
|
-
'
|
|
46
|
-
events: [{ event: '
|
|
47
|
-
file: '
|
|
48
|
-
timeout:
|
|
45
|
+
'design-live-check': {
|
|
46
|
+
events: [{ event: 'PostToolUse', matcher: 'Edit|Write|MultiEdit' }],
|
|
47
|
+
file: 'design-live-check.py',
|
|
48
|
+
timeout: 60,
|
|
49
49
|
agents: ['claude'],
|
|
50
50
|
},
|
|
51
|
-
'builder-
|
|
51
|
+
'builder-idle-check': {
|
|
52
52
|
events: [{ event: 'Stop' }],
|
|
53
|
-
file: 'builder-
|
|
53
|
+
file: 'builder-idle-check.py',
|
|
54
|
+
timeout: 10,
|
|
55
|
+
agents: ['claude'],
|
|
56
|
+
},
|
|
57
|
+
'git-safety': {
|
|
58
|
+
events: [{ event: 'PreToolUse', matcher: 'Bash' }],
|
|
59
|
+
file: 'git-safety.py',
|
|
54
60
|
timeout: 10,
|
|
55
61
|
agents: ['claude'],
|
|
56
62
|
},
|