@ethlete/agent-rules 0.1.0-next.50 → 0.1.0-next.52

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.
Files changed (65) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/README.md +20 -53
  3. package/content/hooks/away-mode.py +90 -7
  4. package/content/hooks/{background-design-commands.py → background-commands.py} +14 -65
  5. package/content/hooks/builder-idle-check.py +101 -13
  6. package/content/mods/plugins/codex-runs/.claude-plugin/plugin.json +1 -1
  7. package/content/mods/plugins/codex-runs/hooks/agent-runs.ts +310 -0
  8. package/content/mods/plugins/codex-runs/hooks/register.tsx +171 -12
  9. package/content/mods/plugins/codex-runs/types/index.d.ts +18 -0
  10. package/content/mods/plugins/e2e-progress/.claude-plugin/plugin.json +1 -1
  11. package/content/mods/plugins/e2e-progress/hooks/progress.ts +12 -4
  12. package/content/mods/plugins/e2e-progress/hooks/register.tsx +2 -2
  13. package/content/mods/plugins/status-line/.claude-plugin/plugin.json +1 -1
  14. package/content/mods/plugins/usage-line/.claude-plugin/plugin.json +1 -1
  15. package/content/mods/plugins/usage-line/hooks/rate-limits.ts +23 -0
  16. package/content/mods/plugins/usage-line/hooks/register.tsx +16 -0
  17. package/content/skills/agent-sessions/SKILL.md +1 -1
  18. package/content/skills/codex-subagent/SKILL.md +8 -2
  19. package/content/skills/codex-subagent/codex-agent.mjs +33 -2
  20. package/content/skills/design-exploration/SKILL.md +22 -104
  21. package/content/skills/design-exploration/reference-shots.md +1 -11
  22. package/content/skills/theming/SKILL.md +22 -20
  23. package/migrations/studio-claude-plugin.md +27 -0
  24. package/migrations.json +8 -0
  25. package/package.json +1 -1
  26. package/src/index.js +0 -6
  27. package/src/index.js.map +1 -1
  28. package/src/lib/config.d.ts +8 -8
  29. package/src/lib/config.js +13 -9
  30. package/src/lib/config.js.map +1 -1
  31. package/src/lib/filter.d.ts +1 -0
  32. package/src/lib/filter.js +3 -1
  33. package/src/lib/filter.js.map +1 -1
  34. package/src/lib/plan.js +15 -6
  35. package/src/lib/plan.js.map +1 -1
  36. package/src/lib/report-command.js +8 -2
  37. package/src/lib/report-command.js.map +1 -1
  38. package/src/lib/targets/claude-hooks.d.ts +3 -0
  39. package/src/lib/targets/claude-hooks.js +21 -3
  40. package/src/lib/targets/claude-hooks.js.map +1 -1
  41. package/src/lib/targets/hooks-shared.d.ts +5 -0
  42. package/src/lib/targets/hooks-shared.js +12 -10
  43. package/src/lib/targets/hooks-shared.js.map +1 -1
  44. package/src/lib/targets/mcp.d.ts +10 -1
  45. package/src/lib/targets/mcp.js +43 -1
  46. package/src/lib/targets/mcp.js.map +1 -1
  47. package/src/lib/timetrack.d.ts +0 -591
  48. package/src/lib/timetrack.js +3 -139
  49. package/src/lib/timetrack.js.map +1 -1
  50. package/content/hooks/design-live-check.py +0 -136
  51. package/content/skills/design-exploration/reference-check-and-notes.md +0 -100
  52. package/content/skills/design-exploration/reference-flows.md +0 -38
  53. package/content/skills/design-exploration/reference-inbox-and-mcp.md +0 -54
  54. package/content/skills/design-exploration/reference-order-and-design-system.md +0 -120
  55. package/content/skills/design-exploration/reference-products-and-sketches.md +0 -250
  56. package/content/skills/timetrack/SKILL.md +0 -324
  57. package/src/lib/peer-path.d.ts +0 -12
  58. package/src/lib/peer-path.js +0 -39
  59. package/src/lib/peer-path.js.map +0 -1
  60. package/src/lib/timetrack-command.d.ts +0 -11
  61. package/src/lib/timetrack-command.js +0 -1262
  62. package/src/lib/timetrack-command.js.map +0 -1
  63. package/src/lib/timetrack-snapshot.d.ts +0 -66
  64. package/src/lib/timetrack-snapshot.js +0 -146
  65. package/src/lib/timetrack-snapshot.js.map +0 -1
@@ -4,6 +4,7 @@ import type { EngineInterface, Register } from 'claude-code';
4
4
  import { latestCodexSample, formatCodex } from './codex';
5
5
  import type { CodexSample } from './codex';
6
6
  import { formatUsage, statusTextOf } from './format';
7
+ import { RATE_LIMITS_FILE, rateLimitsFileOf, rateLimitsKey } from './rate-limits';
7
8
 
8
9
  const usage = atom({ plugin: 'usage-line', key: 'usage' } as const, null);
9
10
 
@@ -13,6 +14,7 @@ const CODEX_SCAN_FILES = 3;
13
14
 
14
15
  let codexSample: CodexSample | undefined;
15
16
  let codexCheckedAt = 0;
17
+ let writtenLimits = '';
16
18
 
17
19
  async function newestDirectory($: EngineInterface, path: string) {
18
20
  const entries = await $.fs.list(path).catch(() => []);
@@ -50,9 +52,23 @@ async function refreshCodex($: EngineInterface, now: number) {
50
52
  codexSample = latest ?? codexSample;
51
53
  }
52
54
 
55
+ async function writeRateLimits($: EngineInterface, limits: Parameters<typeof rateLimitsFileOf>[0], now: number) {
56
+ const key = rateLimitsKey(limits);
57
+ if (limits.length === 0 || key === writtenLimits) return;
58
+ const home = await $.env.get('HOME');
59
+ const configDir = (await $.env.get('CLAUDE_CONFIG_DIR')) ?? (home ? `${home}/.claude` : '');
60
+ if (!configDir) return;
61
+ const path = `${configDir.replace(/\/$/, '')}/${RATE_LIMITS_FILE}`;
62
+ const temp = `${path}.${now}.tmp`;
63
+ await $.fs.write(temp, `${JSON.stringify(rateLimitsFileOf(limits, now), null, 2)}\n`);
64
+ const moved = await $.process.run(['mv', '-f', temp, path], { timeoutMs: 2000 });
65
+ if (moved.exitCode === 0) writtenLimits = key;
66
+ }
67
+
53
68
  export const register: Register = (on) => {
54
69
  on('session.measure', async ($, e, next) => {
55
70
  const now = await $.clock.now();
71
+ await writeRateLimits($, e.rateLimits, now).catch(() => undefined);
56
72
  await refreshCodex($, now).catch(() => undefined);
57
73
  const parts = [formatUsage(e.rateLimits), formatCodex(codexSample, now)].filter(Boolean);
58
74
  const text = parts.length > 0 ? parts.join(' · ') : null;
@@ -97,4 +97,4 @@ A claim is advisory, not a lock. `--force` claims over another agent: use it onl
97
97
 
98
98
  ## Stop own processes
99
99
 
100
- `stop-own [--dry-run]` stops what a session leaves behind, with no raw `kill`: processes that carry the caller's `CLAUDE_PID` but are reparented (no longer below that Claude process), and orphans of a dead session whose cwd lies in this checkout or its scratch dir, each with its whole subtree. Background tasks still attached to a live Claude process always stay: stop those with TaskStop first. Subagents share their session's `CLAUDE_PID`, so a process below the live session is never touched, and a reparented process counts as own only when its `ET_AGENT_ID` (stamped on every subagent Bash call by the `background-design-commands` hook) equals the caller's: a subagent never stops a sibling's runs, and the main session never stops a subagent's. `--dry-run` lists without signalling; otherwise SIGTERM, up to 5 s, then SIGKILL. Linux only, same uid.
100
+ `stop-own [--dry-run]` stops what a session leaves behind, with no raw `kill`: processes that carry the caller's `CLAUDE_PID` but are reparented (no longer below that Claude process), and orphans of a dead session whose cwd lies in this checkout or its scratch dir, each with its whole subtree. Background tasks still attached to a live Claude process always stay: stop those with TaskStop first. Subagents share their session's `CLAUDE_PID`, so a process below the live session is never touched, and a reparented process counts as own only when its `ET_AGENT_ID` (stamped on every subagent Bash call by the `background-commands` hook) equals the caller's: a subagent never stops a sibling's runs, and the main session never stops a subagent's. `--dry-run` lists without signalling; otherwise SIGTERM, up to 5 s, then SIGKILL. Linux only, same uid.
@@ -39,6 +39,12 @@ Options: `-m` model, `-e` effort (`low`, `medium`, `high`, `xhigh`), `-C` workin
39
39
  `--write`, `--resume <thread>`, `--prompt-file <file>`, `--schema <json-schema-file>`,
40
40
  `--timeout <seconds>`, `--trace`. Run it with `--help` for the full list.
41
41
 
42
+ Start every run with the Bash tool's `run_in_background`, even a short lookup. The answer comes
43
+ back as the task's notification, and the user watches the run while it works: the `codex-runs`
44
+ mod draws a progress line under the call, `/codex-runs` opens the Codex pane with every run and
45
+ its trace, and the status line counts the running runs. The wrapper writes the trace to
46
+ `$TMPDIR/codex-agent/<stamp>.jsonl` and the run's state to `<stamp>.run.json` beside it.
47
+
42
48
  The run prints a footer with the model, the sandbox, the time, the output tokens, the resume
43
49
  id and the log path. Read the log only when a run fails.
44
50
 
@@ -69,8 +75,8 @@ started read-only stays read-only, so start a new run when you need write access
69
75
 
70
76
  ## Run several at once
71
77
 
72
- The wrapper blocks until the agent is done, which takes minutes for real work. Start each run
73
- as a background command, and collect the answers when they arrive. Give each run its own
78
+ The wrapper blocks until the agent is done, which takes minutes for real work. Each run is a
79
+ background command already, so start several and collect the answers when they arrive. Give each run its own
74
80
  question. Two agents on one question waste a model.
75
81
 
76
82
  ## Write the prompt for a stranger
@@ -9,7 +9,7 @@
9
9
  */
10
10
 
11
11
  import { spawn } from 'node:child_process';
12
- import { createWriteStream, mkdirSync, readFileSync, rmSync } from 'node:fs';
12
+ import { createWriteStream, mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from 'node:fs';
13
13
  import { tmpdir } from 'node:os';
14
14
  import { join } from 'node:path';
15
15
  import { createInterface } from 'node:readline';
@@ -118,6 +118,15 @@ const duration = (milliseconds) => {
118
118
  return seconds < 60 ? `${seconds}s` : `${Math.floor(seconds / 60)}m${String(seconds % 60).padStart(2, '0')}s`;
119
119
  };
120
120
 
121
+ const writeIndex = (file, index) => {
122
+ try {
123
+ writeFileSync(`${file}.tmp`, `${JSON.stringify(index)}\n`);
124
+ renameSync(`${file}.tmp`, file);
125
+ } catch {
126
+ // The index only feeds the codex-runs mod; a run never fails over it.
127
+ }
128
+ };
129
+
121
130
  const run = async () => {
122
131
  const options = parseArgs(process.argv.slice(2));
123
132
 
@@ -139,6 +148,7 @@ const run = async () => {
139
148
  const stamp = new Date().toISOString().replace(/[:.]/g, '-');
140
149
  const logFile = join(logDir, `${stamp}.jsonl`);
141
150
  const lastMessageFile = join(logDir, `${stamp}.last.md`);
151
+ const indexFile = join(logDir, `${stamp}.run.json`);
142
152
  const log = createWriteStream(logFile);
143
153
  const started = Date.now();
144
154
 
@@ -149,6 +159,19 @@ const run = async () => {
149
159
 
150
160
  child.stdin.end(options.prompt);
151
161
 
162
+ const index = {
163
+ pid: process.pid,
164
+ session: process.env.CLAUDE_CODE_SESSION_ID ?? '',
165
+ cwd: options.cd,
166
+ model: options.model,
167
+ effort: options.effort,
168
+ sandbox: options.write ? 'workspace-write' : 'read-only',
169
+ prompt: options.prompt.trim().split('\n')[0].slice(0, 160),
170
+ startedAt: started,
171
+ log: logFile,
172
+ };
173
+ writeIndex(indexFile, index);
174
+
152
175
  const state = { thread: '', usage: null, errors: [], trace: [], failed: false };
153
176
 
154
177
  createInterface({ input: child.stdout }).on('line', (line) => {
@@ -194,12 +217,20 @@ const run = async () => {
194
217
  }
195
218
 
196
219
  const failed = code !== 0 || state.failed || (!finalMessage && state.errors.length > 0);
220
+ const reason = state.errors.join('\n') || stderrText.trim() || `codex exited with code ${code}`;
221
+
222
+ writeIndex(indexFile, {
223
+ ...index,
224
+ endedAt: Date.now(),
225
+ exitCode: code,
226
+ failed,
227
+ error: failed ? reason.split('\n')[0].slice(0, 300) : '',
228
+ });
197
229
 
198
230
  if (options.trace && state.trace.length > 0) process.stdout.write(`${state.trace.join('\n')}\n\n`);
199
231
  if (finalMessage) process.stdout.write(`${finalMessage}\n`);
200
232
 
201
233
  if (failed) {
202
- const reason = state.errors.join('\n') || stderrText.trim() || `codex exited with code ${code}`;
203
234
  process.stdout.write(`\ncodex agent FAILED: ${reason}\n`);
204
235
  }
205
236
 
@@ -53,9 +53,7 @@ Confirm the step size once, at the start. A task is not finished while the user
53
53
  - Nothing else. No next step, no second finding.
54
54
 
55
55
  **Do not send a screenshot.** The user keeps the call open. Screenshot only for your own check that a
56
- variant renders: `et design shot <layer>/<name> --states [--variants]` draws one contact sheet. Every
57
- flag, the motion shots and the raw screenshot script are in {%resource:reference-shots.md%}. Do not
58
- write a scratch script for batch shots.
56
+ variant renders. Do not write a scratch script for batch shots.
59
57
 
60
58
  If a second defect appears, add it to the open list and give it one line. Do not draw it.
61
59
 
@@ -63,121 +61,41 @@ If a second defect appears, add it to the open list and give it one line. Do not
63
61
 
64
62
  The exploration's plan file names the tool. Two shapes exist.
65
63
 
66
- **A repository with a `.ethlete/design` folder** keeps one design system per **product**, and the
67
- user reads and decides in Ethlete Studio. The tool is `et design`, from `@ethlete/cli`; run
68
- `et design --help` for every command, `et design <command> [<subcommand>] --help` for one.
69
- In the SDK checkout, `yarn design` builds the CLI before each call; in a check-and-shot loop,
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.
64
+ **A repository with a `.ethlete/design` folder** keeps one design system per product, drawn and decided in Ethlete
65
+ Studio. Use the Studio design MCP server (`ethlete-design`): its server instructions and its `design_guide` tool
66
+ carry the commands, the rules for products and sketches, the checks and the shots. Without that server in your tool
67
+ list, ask the user to add it.
74
68
 
75
- ```
76
- .ethlete/design/
77
- config.json the port and one `products` entry each
78
- <product>/<layer>/<part>/ layer: foundations, components, elements, pages
79
- <product>/flows/<name>.json a flow: pages and their states joined by lines
80
- <product>/sketches/<layer>-<name>/ an open sketch: sketch.json and one folder per variant
81
- <product>/comments/<id>.json a comment the user wrote in Studio
82
- calls/ old calls: Legacy, read-only
83
- ```
84
-
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
-
88
- ## Hard rules for products and sketches
89
-
90
- - A change to a merged part, also a small one, is a **sketch**; never edit a merged part directly. When
91
- nothing is to choose, the sketch has one variant (`--variants a`). Variants are alternatives, never a state
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; discarding the mood sketch is the one exception.** Studio merges on the user's
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 waits on anything; otherwise `sketch hold`. The pick of another
96
- sketch is not a wait: draw with the part as merged now.
97
- - Every write command takes `--by <model id>`. **Never guess your id**: use the one your prompt names, or ask
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/`.
101
- - A user comment to combine variants is a new variant in a new round (`sketch variant --from --round --note`).
102
- - Read the inbox at the start of a session and after each `ready`. Answer with `inbox done <id> --note`,
103
- ask with `comment reply --question` only when you cannot go on. Only the user resolves a thread.
104
- - Use the `ethlete-design` MCP tools when they are in your tool list, and call `sketch_report` before every
105
- variant edit.
106
- - Draw from the design system, never invent a button or field: the product's parts, then SDK components via
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.
133
-
134
- Details, commands and examples, read on demand:
135
-
136
- - {%resource:reference-products-and-sketches.md%}: creating a product, every `sketch` command, shared code,
137
- assets, rounds, `--by`, the merge and accept flow. Read before the first sketch command.
138
- - {%resource:reference-inbox-and-mcp.md%}: reading and answering comments, thread states, the MCP tools.
139
- - {%resource:reference-flows.md%}: flow JSON, `embedPage`, the shell.
140
- - {%resource:reference-check-and-notes.md%}: `design check` rules and warnings, drawing-file constraints,
141
- `setup`, `ngStates`, notes.
142
- - {%resource:reference-order-and-design-system.md%}: the stage order, component states and
143
- `interactionRows`, `ng()` and form fields, theming rules.
144
- - {%resource:reference-shots.md%}: every `shot` flag, motion shots, the screenshot script.
145
-
146
- ## Check before you look
69
+ **A repository with a sketch Storybook** draws every variant in the **same** story, side by side, under the real
70
+ geometry the thing ships in. The default Storybook is {%storybookUrl%}; an app with its own sketch Storybook names its
71
+ port in the plan file.
147
72
 
148
- A broken build draws an overlay, so a screenshot of it looks like a design. **One check
149
- covers that, and it is the whole gate.** Name the files you changed, never a whole project,
150
- which is far slower and can fight the user's own editor.
73
+ Details, read on demand:
151
74
 
152
- With `et design`, run the checker from the checkout it draws:
75
+ - {%resource:reference-shots.md%}: screenshots of a Storybook story, with forced pseudo-states.
153
76
 
154
- ```bash
155
- et design check --lint <changed files> --tsconfig
156
- ```
157
-
158
- `--tsconfig` with no path types every call of the checkout. `--tsconfig` also types each variant of
159
- an open sketch and prints the tsc output of a failing one. `--checkout <path>` names another
160
- one.
77
+ ## Check before you look
161
78
 
162
- With a Storybook, copy {%resource:check-story.mjs%} to the **repository root** first:
79
+ A broken build draws an overlay, so a screenshot of it looks like a design. **One check covers that, and it is the
80
+ whole gate.** Name the files you changed, never a whole project, which is far slower and can fight the user's own
81
+ editor. In a Studio repository, run the check the MCP server describes. With a Storybook, copy
82
+ {%resource:check-story.mjs%} to the **repository root** first:
163
83
 
164
84
  ```bash
165
85
  node check-story.mjs --lint <changed files> --tsconfig apps/<app>/.storybook/tsconfig.json
166
86
  ```
167
87
 
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:
88
+ It takes about four seconds and needs no dev server. Open a browser only when the check passes and the drawing still
89
+ does not appear:
170
90
 
171
91
  ```bash
172
- et design check --call <slug> # every variant of the call
173
- et design check --call <slug> --variant b # one of them
174
92
  node check-story.mjs --tsconfig <path> --story <story-id>
175
93
  ```
176
94
 
177
- A passing check says the variant builds, not that it looks good. Before `sketch ready`, look at
178
- each variant at a readable scale and in its whole host page, and critique its hierarchy, spacing,
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":
180
- the user decides that.
95
+ A passing check says the variant builds, not that it looks good. Before the user sees a variant, look at it at a
96
+ readable scale and in its whole host page, and critique its hierarchy, spacing, nesting and host context together.
97
+ Drop a visually weak variant before the user sees it. In your summary, say "renders correctly", never "good" or
98
+ "approved": the user decides that.
181
99
 
182
100
  ## Delegating a sketch
183
101
 
@@ -193,7 +111,7 @@ command." You know the id because you chose the model; the sub-agent does not, a
193
111
  2. **One check-and-fix agent, after the drawing agents return.** Give it the changed files
194
112
  and the call slug. It runs the check above, fixes what it reports, and repeats until the
195
113
  check says `ok`. It may not change what a variant draws, only what stops it rendering.
196
- 3. **One write-up agent, once the user settles the sketch in Studio.** Give it the verdict in the
114
+ 3. **One write-up agent, once the user settles the sketch.** Give it the verdict in the
197
115
  user's own words and the plan file. It records what won, what lost and why, it sets each
198
116
  variant's `verdict` in an old call's `call.ts` (a product sketch needs none; the merge sets the note). It runs while you open
199
117
  the next call.
@@ -1,14 +1,4 @@
1
- # Design exploration: shots and screenshots
2
-
3
- **Do not send a screenshot.** The user keeps the call open. Screenshot only for your own
4
- check that a variant renders. In a repository with `et design`, take it with
5
- `et design shot <layer>/<name> --states [--variants]`: one contact sheet of every state, and
6
- every variant of the open sketch, with a label per cell; below each variant row, a diff row marks
7
- the pixels that differ from the merged state in red, or says "no pixel change" (with ", but the markup differs" when only the markup changed, e.g. both sides miss the same content). It prints the PNG path last. `--scale 2` enlarges a small part; `--crop x,y,w,h` cuts each cell to that CSS-pixel box, to judge hairlines. `--interaction hover` forces an interaction on every cell. `--state a,b` draws only those states, to compare them side by side. With `--variants`, `--round r2` or `--variant i,j` draws only those variants next to the merged row, so the current round stays readable; it filters the picture, never the checks. With `--variants`, `--diff-props` compares each variant with the merged part drawn with the variant's state props, so changed props do not paint the diff red. It draws
8
- undimmed, whatever Studio shows. Do not write a scratch script for batch shots.
9
- `et design motion shots <layer>/<name> <motion>` draws a motion at its keyframes, in full and reduced motion, into one sheet, and writes its tracks (element, properties, start, duration, easing) as JSON next to it.
10
-
11
- ## Screenshots
1
+ # Design exploration: screenshots
12
2
 
13
3
  **Off by default.** The user has the call open and sends you a picture when something looks
14
4
  wrong. Take one only when the code cannot tell you whether two variants really differ, and
@@ -13,11 +13,11 @@ vars: [docsBaseUrl]
13
13
  Two **independent** systems in `@ethlete/core`; most components consume both:
14
14
 
15
15
  - **Surface theming** - the neutral, elevation-aware colors of the box a component
16
- sits on: background, text, muted/subtle text, borders, and a neutral
17
- "interaction" color for hover/active tints. Set via `[etProvideSurface]`.
18
- - **Color theming** - semantic accent palettes (brand/primary, success, warning,
19
- error): a primary color, an on-primary contrast color, and an "ink" color for
20
- text/borders on transparent fills. Set via `[etProvideColor]`.
16
+ sits on: background, text, muted/subtle text, borders, and a neutral tint
17
+ for hover/pressed states. Set via `[etProvideSurface]` / `[etAutoSurface]`.
18
+ - **Color theming (tones)** - semantic accent palettes (brand, success,
19
+ warning, error): a fill, the text on that fill, and the tone as text or
20
+ border on the surface (`--et-tone-*`). Set via `[etProvideColor]`.
21
21
 
22
22
  Full reference: {%docsBaseUrl%}/core/theming.
23
23
 
@@ -49,22 +49,22 @@ A static fallback inside `var(--token, <fallback>)` is permitted, but not requir
49
49
 
50
50
  Surface:
51
51
 
52
- | Token | Use for |
53
- | -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
54
- | `--et-surface-background` | component/panel background |
55
- | `--et-surface-text` | text |
56
- | `--et-surface-text-muted` | secondary text, placeholders, group labels |
57
- | `--et-surface-text-subtle` | tertiary text |
58
- | `--et-surface-border` | borders, separators |
59
- | `--et-surface-interaction` | neutral hover/active tint source - mix it: `color-mix(in srgb, var(--et-surface-interaction) 12%, transparent)` (12/16/20% for hover/focus/active, 6–8% for subtle fills) |
52
+ | Token | Use for |
53
+ | -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
54
+ | `--et-surface-background` | component/panel background |
55
+ | `--et-surface-text` | text |
56
+ | `--et-surface-text-muted` | secondary text, placeholders, group labels |
57
+ | `--et-surface-text-subtle` | tertiary text |
58
+ | `--et-surface-border` | borders, separators |
59
+ | `--et-surface-tint` | neutral hover/pressed tint source (set by the theme's `tint`, emitted only then) - always mix it with the surface-text fallback: `color-mix(in srgb, var(--et-surface-tint, var(--et-surface-text, gray)) 12%, transparent)`; `--et-surface-control-text[-<state>]` is the text of a neutral control, never a background |
60
60
 
61
61
  Color (from the nearest `[etProvideColor]` scope):
62
62
 
63
63
  | Token | Use for |
64
64
  | ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
65
65
  | `--et-tone-fill` | filled backgrounds and accents at full strength: focus borders, selected marks, spinners. To tint per state, compose it yourself: `color-mix(in srgb, var(--et-tone-fill) calc(var(--_et-tone-fill-opacity, 1) * 100%), transparent)` |
66
- | `--et-tone-on-fill` | text/icons on a primary-filled background |
67
- | `--et-tone-text` | primary-tinted text/border on transparent/tonal fills |
66
+ | `--et-tone-on-fill` | text/icons on a filled background |
67
+ | `--et-tone-text` | the tone as text/border on transparent/tonal fills |
68
68
 
69
69
  `[etColorInteractive]` re-resolves the color tokens per CSS state. Put it on the
70
70
  interactive element itself, never on a wrapper. Neutral hover and pressed feedback mixes
@@ -74,6 +74,10 @@ interactive element itself, never on a wrapper. Neutral hover and pressed feedba
74
74
  full-strength text colour, so in dark mode it gives a light row with near-white text. Mix
75
75
  the tint instead: `hover:bg-et-surface-tint/9 active:bg-et-surface-tint/15`.
76
76
 
77
+ `--et-surface-next-background` / `bg-et-surface-next-background` is the background of the next
78
+ level (the tint mixed over the background on the topmost level): use it for a "hover = next
79
+ level" row instead of a tint.
80
+
77
81
  ## Providing context
78
82
 
79
83
  - `[etProvideSurface]="surfaceThemeName"` / `[etAutoSurface]` (auto-picks the next
@@ -83,7 +87,7 @@ the tint instead: `hover:bg-et-surface-tint/9 active:bg-et-surface-tint/15`.
83
87
  - **Detached overlay panes (menu, dialog, tooltip…) do not inherit DOM context.**
84
88
  Re-apply it: inject `COLOR_PROVIDER` / `SURFACE_PROVIDER` with
85
89
  `{ optional: true, skipSelf: true }`, then `ownProvider.syncWithProvider(ctx)` for
86
- color and `resolveSurfaceByElevation(themes, type, elevation + 1)` for the surface.
90
+ color, and re-apply the surface one elevation above the trigger's for the surface.
87
91
  - **Semantic colors come through DI, not CSS.** There is no global "error color"
88
92
  variable - error/warning/success are just color themes. To render something in the
89
93
  error color, `injectSemanticColorTheme('error')` (reading it throws if the app
@@ -98,10 +102,8 @@ the tint instead: `hover:bg-et-surface-tint/9 active:bg-et-surface-tint/15`.
98
102
  variants registered without a `type`) swaps it; an accent without an entry stays the
99
103
  same on every surface. With no surface above, the root surface swaps, and
100
104
  `provideColorScheme()` paints its swap of the default accent on `<html>`. A neutral that follows the surface is `color="surface"`
101
- (`controlText`), not a variant. `colorTheme` and `semanticColorThemes` are
102
- deprecated. Never add per-surface logic to a color theme or new CSS vars for it.
103
- `injectErrorTheme()`, `injectWarningTheme()` and `injectSuccessTheme()` are
104
- deprecated: they ignore the surface.
105
+ (`controlText`), not a variant. Never add per-surface logic to a color theme or new
106
+ CSS vars for it.
105
107
 
106
108
  ## Pitfalls
107
109
 
@@ -0,0 +1,27 @@
1
+ # Install the Ethlete Studio Claude plugin
2
+
3
+ The design hooks `background-design-commands` and `design-live-check` moved out of `@ethlete/agent-rules`
4
+ into the `ethlete-studio` Claude Code plugin that Ethlete Studio ships. `ethlete-agents sync` removes the old
5
+ hook scripts and their settings entries and keeps the generic `background-commands` hook.
6
+
7
+ A checkout without a `.ethlete/design` folder needs nothing: delete this task file.
8
+
9
+ ## What to do
10
+
11
+ 1. Open the checkout in Ethlete Studio, press Ctrl+K and run **Agent verbinden**.
12
+ 2. Run the **Claude Code** line in a terminal. It has this form:
13
+
14
+ ```sh
15
+ cd <checkout> && claude plugin install ethlete-studio --marketplace "<Studio resources>/claude-plugin" --scope local
16
+ ```
17
+
18
+ It adds Studio's marketplace to the user settings and enables the plugin for this checkout only.
19
+
20
+ 3. Remove a hand-added `ethlete-design` server from `claude mcp` (`claude mcp remove ethlete-design`) when the
21
+ checkout had one: the plugin brings its own.
22
+
23
+ ## Done when
24
+
25
+ - A new Claude Code session in the checkout lists the `mcp__plugin_ethlete-studio_ethlete-design__*` tools.
26
+
27
+ Then delete this task file.
package/migrations.json CHANGED
@@ -34,6 +34,14 @@
34
34
  "level": "optional",
35
35
  "description": "Compare the workspace with the Nx layout rule, and decide whether any project moves.",
36
36
  "instructions": "./migrations/nx-layout.md"
37
+ },
38
+ {
39
+ "name": "studio-claude-plugin",
40
+ "version": "0.1.0-next.52",
41
+ "kind": "manual",
42
+ "level": "recommended",
43
+ "description": "The design hooks left agent-rules: a checkout that uses Ethlete Studio installs its Claude plugin to keep them.",
44
+ "instructions": "./migrations/studio-claude-plugin.md"
37
45
  }
38
46
  ]
39
47
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethlete/agent-rules",
3
- "version": "0.1.0-next.50",
3
+ "version": "0.1.0-next.52",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/ethlete-io/ethdk",
package/src/index.js CHANGED
@@ -29,7 +29,6 @@ const package_runner_1 = require("./lib/package-runner");
29
29
  const plain_text_1 = require("./lib/plain-text");
30
30
  const report_command_1 = require("./lib/report-command");
31
31
  const sync_1 = require("./lib/sync");
32
- const timetrack_command_1 = require("./lib/timetrack-command");
33
32
  const USAGE = `ethlete-agents — compile @ethlete agent rules and skills into your repo
34
33
 
35
34
  ethlete-agents sync Write the generated rules/skills for every detected agent
@@ -40,9 +39,6 @@ const USAGE = `ethlete-agents — compile @ethlete agent rules and skills into y
40
39
  ethlete-agents output-style
41
40
  Install an Ethlete output style into this machine's Claude Code
42
41
  config and switch to it (Claude Code only)
43
- ethlete-agents timetrack Ask the running Timetrack app about Jira - it holds this
44
- machine's credentials, so no repo needs a token
45
- (status, instance, issue, search, project, create, log)
46
42
  ethlete-agents sessions Run agents in tmux sessions of one checkout: message them, wake idle
47
43
  ones, restart one with a prompt, claim paths (run, up, down, restart,
48
44
  send, inbox, claim). The old name "mailbox" works too
@@ -128,8 +124,6 @@ const run = (argv) => {
128
124
  return (0, output_style_command_1.outputStyleCommand)({ argv: argv.slice(1) });
129
125
  case 'report':
130
126
  return (0, report_command_1.reportCommand)({ root, argv: argv.slice(1) });
131
- case 'timetrack':
132
- return (0, timetrack_command_1.timetrackCommand)({ root, argv: argv.slice(1) });
133
127
  default:
134
128
  console.log(USAGE);
135
129
  return command === undefined || command === '--help' || command === '-h' ? 0 : 1;
package/src/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/agent-rules/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,2BAAgC;AAChC,6CAA+C;AAC/C,+BAA4B;AAC5B,6CAA+D;AAC/D,yCAA+F;AAC/F,6DAAwD;AACxD,qDAAqD;AACrD,6DAAyD;AACzD,2CAAwC;AACxC,qEAAgE;AAChE,yDAA+E;AAC/E,iDAAyC;AACzC,yDAA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,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;SACpC,KAAK,CAAC,CAAC,KAAc,EAAE,EAAE;QACxB,OAAO,CAAC,KAAK,CAAC,IAAA,kBAAK,EAAC,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAC7E,cAAc,CAAC,CAAC,CAAC,CAAC;IACpB,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -25,10 +25,7 @@ export type SyncConfig = {
25
25
  * `AGENTS.md` marker block, and a second copy would load twice.
26
26
  */
27
27
  claudeMdImportsAgentsMd: boolean;
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
- */
28
+ /** Opt-in agent hooks: they run commands on the developer's machine, so never default. */
32
29
  hooks: string[];
33
30
  /** Opt-in git hooks, appended to the repo's own husky hooks. Same reason they never default. */
34
31
  gitHooks: string[];
@@ -64,17 +61,19 @@ export type BuilderIdleConfig = {
64
61
  };
65
62
  /**
66
63
  * The gitignored local config holds per-machine values, read at runtime — by the generated hook
67
- * scripts, and by the agent while following a skill — never by `sync`. Sync output must be
64
+ * scripts, and by the agent while following a skill — never by `sync`, except `mods`. Sync output must be
68
65
  * identical on every machine and in CI (the generated files are committed and `check` diffs them),
69
66
  * so nothing here may change what gets emitted:
70
67
  *
71
68
  * - `disableHooks: true` silences every generated hook, `["context-warning"]` just the named ones.
69
+ * - `mods` enables Claude Code mods on this machine only. It is the one key `sync` reads: it writes them
70
+ * into the gitignored `.claude/settings.local.json`, never into the committed `settings.json`.
72
71
  * - `disableAutoHandoffSave: true` keeps the context-warning hook's normal tiered messages (including
73
72
  * in auto mode), but at the critical tier in auto mode it falls back to just recommending
74
73
  * a handoff instead of writing the handoff file automatically.
75
74
  *
76
75
  * Where the sibling checkouts live (`sdkSourcePath`, `apiRepoPaths`, `apiRepoBranches`) is not here:
77
- * it moved to `@ethlete/cli`'s `ethlete.config.local.json`, because `et` reads the same values.
76
+ * it moved to `ethlete.config.local.json`, which the `et` CLI owns, because `et` reads the same values.
78
77
  *
79
78
  * No secret belongs here any more. Jira is reached through the Timetrack app, which holds the token
80
79
  * in the machine's keychain — one secret per machine rather than one per checkout.
@@ -85,6 +84,7 @@ export type LocalConfig = {
85
84
  awayMode?: AwayModeConfig;
86
85
  builderSlots?: number;
87
86
  builderIdle?: BuilderIdleConfig;
87
+ mods?: string[];
88
88
  };
89
89
  export type LocalConfigState = {
90
90
  exists: false;
@@ -100,12 +100,12 @@ export type LocalConfigState = {
100
100
  };
101
101
  export declare const LOCAL_CONFIG_KEYS: (keyof LocalConfig)[];
102
102
  /**
103
- * Repo topology moved to `@ethlete/cli`'s `ethlete.config.local.json`, because `et` needs it too.
103
+ * Repo topology moved to `ethlete.config.local.json`, which the `et` CLI owns, because `et` needs it too.
104
104
  * Still recognised here so a checkout that has not moved them yet gets told where they went
105
105
  * instead of an "unsupported key" warning.
106
106
  */
107
107
  export declare const MOVED_LOCAL_CONFIG_KEYS: string[];
108
- /** Named only to point a migration at it. `@ethlete/cli` owns the file and validates its values. */
108
+ /** Named only to point a migration at it. The `et` CLI owns the file and validates its values. */
109
109
  export declare const TOPOLOGY_CONFIG_FILE_NAME = "ethlete.config.local.json";
110
110
  export declare const readLocalConfig: (root: string) => LocalConfigState;
111
111
  /**