foundry-design 0.2.0-beta.16 → 0.2.0-beta.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,11 +2,15 @@
2
2
 
3
3
  Foundry is a local-first precision design workbench for Codex, Cursor, and Claude Code. It lets design engineers manipulate rendered interface elements, resolve each gesture to the right project-native source intent, review one structured change batch, and verify the rebuilt result across recorded states.
4
4
 
5
+ Responsive Design Lab links one live selection across native mobile, tablet, desktop, current, and custom viewport contexts. It exposes real breakpoint transitions, overflow, clipping, awkward wrapping, and temporary browser zoom, text-scale, and long-content stress tests without changing saved product state.
6
+
7
+ Design Branches keeps parallel visual directions isolated inside one local session. Teams can switch and compare rendered alternatives, combine selected decisions, preserve rejection rationale, and explicitly promote one direction into Review and apply without changing source early.
8
+
5
9
  ## Beta installation
6
10
 
7
11
  Foundry is distributed through npm, so testers do not need GitHub access.
8
12
 
9
- > **Release candidate:** `0.2.0-beta.16`. The commands below are prepared for this release and must not be promoted to npm `latest` until the full installation matrix passes.
13
+ > **Current public beta:** `0.2.0-beta.17`. Both npm `latest` and `beta` resolve to this release.
10
14
 
11
15
  Full documentation is available at [withfoundry.ai](https://withfoundry.ai).
12
16
 
@@ -137,7 +141,7 @@ If an npm mirror or existing `npx` cache reports an old tag, bypass it with a te
137
141
 
138
142
  ```bash
139
143
  FOUNDRY_NPX_CACHE="$(mktemp -d)"
140
- npx --yes --prefer-online --registry=https://registry.npmjs.org --cache "$FOUNDRY_NPX_CACHE" --package=foundry-design@0.2.0-beta.16 foundry-design
144
+ npx --yes --prefer-online --registry=https://registry.npmjs.org --cache "$FOUNDRY_NPX_CACHE" --package=foundry-design@0.2.0-beta.17 foundry-design
141
145
  ```
142
146
 
143
147
  The beta supports Node.js 20 or newer. Read the [local-first safety model](https://withfoundry.ai/#safety) before using it with sensitive work.
@@ -154,7 +158,7 @@ Foundry remains local-first. Installing the plugin does not create an account, e
154
158
 
155
159
  ### Cursor one-click connection
156
160
 
157
- [Add the Foundry MCP bridge to Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=foundry-design-control&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIi0tcHJlZmVyLW9ubGluZSIsImZvdW5kcnktZGVzaWduLW1jcC1zZXJ2ZXJAMC4yLjAtYmV0YS4xNSJdLCJlbnYiOnsiRk9VTkRSWV9ERVNJR05fUlVOVElNRV9VUkwiOiJodHRwOi8vMTI3LjAuMC4xOjQzODcifX0%3D), then run `npx foundry-design` inside the project. The repository's Cursor plugin additionally bundles the Foundry skill and session-start hook for marketplace distribution.
161
+ [Add the Foundry MCP bridge to Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=foundry-design-control&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIi0tcHJlZmVyLW9ubGluZSIsImZvdW5kcnktZGVzaWduLW1jcC1zZXJ2ZXJAMC4yLjAtYmV0YS4xNiJdLCJlbnYiOnsiRk9VTkRSWV9ERVNJR05fUlVOVElNRV9VUkwiOiJodHRwOi8vMTI3LjAuMC4xOjQzODcifX0%3D), then run `npx foundry-design` inside the project. The repository's Cursor plugin additionally bundles the Foundry skill and session-start hook for marketplace distribution.
158
162
 
159
163
  ## Current capabilities
160
164
 
@@ -163,13 +167,16 @@ Foundry remains local-first. Installing the plugin does not create an account, e
163
167
  - A searchable, collapsible, virtualized live layer hierarchy with mapped-source context, Shadow DOM traversal, drag reordering, and selection persistence across HMR
164
168
  - Multi-selection, measured spacing annotations, sibling-aware resize snapping, keyboard nudging, alignment, distribution, and preview undo/redo
165
169
  - A revisioned local design graph for CSS tokens, components, Storybook variants, breakpoints, themes, states, and motion presets
170
+ - A Design System workspace that traces native tokens from definition to indexed usages, previews source blast radius, detects near-duplicates and literal/component drift, and explains every recommendation without changing source automatically
166
171
  - Semantic source-mapping choices that block ambiguous changes until the user selects the intended implementation
167
172
  - Fixed, hug, fill, and min/max sizing; flex and grid flow; linked spacing; aspect ratio; overflow; and positional controls
168
- - Project-native spacing, radius, typography, and color choices with token-only filtering, exact token suggestions, component variants, type presets, gradients, opacity, and live contrast guidance
173
+ - Project-native spacing, radius, typography, and color choices with token-only filtering, exact and nearest-token ranking, component variants, type presets, gradients, opacity, and live contrast guidance
169
174
  - Layout, typography, color, content, asset, accessibility, responsive, and motion controls
170
175
  - Before/after toggles, continuous comparison scrubbing, side-by-side source comparison, isolation, per-element reset, keyboard shortcuts, and a searchable command palette
171
176
  - Design Health scans for contrast, overflow and clipping, touch targets, accessible names, reduced-motion coverage, and project spacing consistency, with evidence, intentional-issue ignores, and safe corrections routed into review
172
177
  - An in-app state workbench with real viewport frames, theme switching, forced interaction states, motion controls, and contextual verification
178
+ - A dedicated Motion Studio for live CSS and Web Animation discovery, preview-only transport, timeline scrubbing, keyframe editing, complete timing controls, performance classification, and reduced-motion review
179
+ - Isolated Design Branches with fixed-viewport comparison, selective composition, rejection notes, and explicit promotion into the source-ready review ledger
173
180
  - Persistent, coalescing change ledger with JSON and consolidated prompt export
174
181
  - Center-workspace review with editable approved batches, grouped targets, and unresolved-target blocking
175
182
  - Persistent Apply with agent runs across Codex, Cursor, and Claude Code through MCP
@@ -1 +1 @@
1
- {"version":3,"file":"indexer.d.ts","sourceRoot":"","sources":["../src/indexer.ts"],"names":[],"mappings":"AAGA,OAAO,EAML,KAAK,kBAAkB,EACxB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AA+D3D,wBAAsB,kBAAkB,CACtC,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,oBAAoB,GAAG,SAAS,EACxC,QAAQ,CAAC,EAAE,MAAM,GAChB,OAAO,CAAC,kBAAkB,CAAC,CAyI7B"}
1
+ {"version":3,"file":"indexer.d.ts","sourceRoot":"","sources":["../src/indexer.ts"],"names":[],"mappings":"AAGA,OAAO,EAQL,KAAK,kBAAkB,EACxB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAuG3D,wBAAsB,kBAAkB,CACtC,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,oBAAoB,GAAG,SAAS,EACxC,QAAQ,CAAC,EAAE,MAAM,GAChB,OAAO,CAAC,kBAAkB,CAAC,CAqR7B"}
package/dist/indexer.js CHANGED
@@ -39,6 +39,46 @@ function tokenCategory(name, value) {
39
39
  return 'size';
40
40
  return 'other';
41
41
  }
42
+ function declarationCategory(property, value) {
43
+ const name = property.toLowerCase();
44
+ if (/shadow/.test(name))
45
+ return 'shadow';
46
+ if (/border.*radius|radius/.test(name))
47
+ return 'radius';
48
+ if (/font|line-height|letter-spacing|tracking/.test(name))
49
+ return 'typography';
50
+ if (/transition|animation|duration|easing/.test(name))
51
+ return 'motion';
52
+ if (/gap|padding|margin|inset/.test(name))
53
+ return 'spacing';
54
+ if (/color|background|fill|stroke/.test(name) && /#|rgb|hsl|oklch|color\(/i.test(value))
55
+ return 'color';
56
+ if (/width|height|size/.test(name) && /-?[\d.]+(?:px|rem|em|%|vh|vw)/i.test(value))
57
+ return 'size';
58
+ return null;
59
+ }
60
+ function comparable(value) {
61
+ return value
62
+ .trim()
63
+ .toLowerCase()
64
+ .replace(/\s*!important\s*$/, '')
65
+ .replaceAll(' ', '');
66
+ }
67
+ function numericValue(value) {
68
+ const match = /^(-?[\d.]+)(px|rem|em|ms|s|%)$/i.exec(comparable(value));
69
+ return match ? { amount: Number(match[1]), unit: match[2].toLowerCase() } : null;
70
+ }
71
+ function closeNumericToken(value, tokens) {
72
+ const parsed = numericValue(value);
73
+ if (!parsed)
74
+ return undefined;
75
+ return tokens
76
+ .map((token) => ({ token, parsed: numericValue(token.value) }))
77
+ .filter((entry) => entry.parsed?.unit === parsed.unit)
78
+ .map((entry) => ({ ...entry, distance: Math.abs(entry.parsed.amount - parsed.amount) }))
79
+ .filter((entry) => entry.distance > 0 && entry.distance <= Math.max(2, Math.abs(parsed.amount) * 0.25))
80
+ .sort((a, b) => a.distance - b.distance)[0]?.token;
81
+ }
42
82
  async function sourceFiles(root, exclusions) {
43
83
  const files = [];
44
84
  const excluded = new Set([
@@ -77,9 +117,11 @@ export async function indexProjectDesign(root, config, revision) {
77
117
  const themes = new Set();
78
118
  const motion = new Map();
79
119
  const storyVariants = new Map();
120
+ const documents = [];
80
121
  for (const path of files) {
81
122
  const content = await readFile(path, 'utf8').catch(() => '');
82
123
  const file = relative(root, path).replaceAll('\\', '/');
124
+ documents.push({ file, content });
83
125
  for (const match of content.matchAll(/(--[\w-]+)\s*:\s*([^;}\n]+)/g)) {
84
126
  const name = match[1];
85
127
  const value = match[2].trim();
@@ -123,6 +165,7 @@ export async function indexProjectDesign(root, config, revision) {
123
165
  label: story[1],
124
166
  property: 'story',
125
167
  value: story[1],
168
+ props: { story: story[1] },
126
169
  source: { file, line: lineAt(content, story.index ?? 0) },
127
170
  }));
128
171
  storyVariants.set(componentName, variants);
@@ -161,6 +204,133 @@ export async function indexProjectDesign(root, config, revision) {
161
204
  });
162
205
  }
163
206
  }
207
+ const tokenList = [...tokens.values()];
208
+ const tokenUsages = [];
209
+ const findings = [];
210
+ const componentForSource = (file, line) => [...components.values()]
211
+ .filter((component) => component.source?.file === file && (component.source.line ?? 0) <= line)
212
+ .sort((a, b) => (b.source?.line ?? 0) - (a.source?.line ?? 0))[0];
213
+ for (const { file, content } of documents) {
214
+ for (const match of content.matchAll(/var\(\s*(--[\w-]+)(?:\s*,[^)]*)?\)/g)) {
215
+ const token = tokens.get(match[1]);
216
+ if (!token)
217
+ continue;
218
+ const line = lineAt(content, match.index ?? 0);
219
+ const lineStart = content.lastIndexOf('\n', match.index ?? 0) + 1;
220
+ const declarationPrefix = content.slice(lineStart, match.index ?? 0);
221
+ const alias = /--[\w-]+\s*:\s*$/.test(declarationPrefix);
222
+ const component = componentForSource(file, line);
223
+ tokenUsages.push({
224
+ id: stableId('use', `${file}:${match.index}:${token.id}`),
225
+ tokenId: token.id,
226
+ tokenName: token.name,
227
+ value: token.value,
228
+ category: token.category,
229
+ kind: alias ? 'alias' : 'reference',
230
+ componentId: component?.id,
231
+ source: { file, line },
232
+ evidence: [alias ? 'Token aliases this project value' : 'CSS variable reference'],
233
+ });
234
+ }
235
+ for (const match of content.matchAll(/([a-zA-Z][\w-]*)\s*:\s*([^;\n},]+)[;},]/g)) {
236
+ const property = match[1];
237
+ const value = match[2].trim();
238
+ if (property.startsWith('--') || value.includes('var('))
239
+ continue;
240
+ const category = declarationCategory(property, value);
241
+ if (!category)
242
+ continue;
243
+ const categoryTokens = tokenList.filter((token) => token.category === category);
244
+ const exact = categoryTokens.find((token) => comparable(token.value) === comparable(value));
245
+ const suggested = exact ?? closeNumericToken(value, categoryTokens);
246
+ if (!suggested)
247
+ continue;
248
+ const line = lineAt(content, match.index ?? 0);
249
+ const component = componentForSource(file, line);
250
+ const usage = {
251
+ id: stableId('use', `${file}:${match.index}:${suggested.id}:literal`),
252
+ tokenId: suggested.id,
253
+ tokenName: suggested.name,
254
+ value,
255
+ category,
256
+ kind: 'literal',
257
+ property,
258
+ componentId: component?.id,
259
+ source: { file, line },
260
+ evidence: [
261
+ exact
262
+ ? 'Literal equals an existing project token'
263
+ : 'Literal is close to a project token',
264
+ ],
265
+ };
266
+ tokenUsages.push(usage);
267
+ findings.push({
268
+ id: stableId('finding', usage.id),
269
+ kind: component ? 'component-drift' : 'literal-drift',
270
+ severity: exact ? 'info' : 'warning',
271
+ title: exact ? `Use ${suggested.name}` : `${value} is close to ${suggested.name}`,
272
+ detail: exact
273
+ ? `${property} repeats ${suggested.value} as a literal instead of its project token.`
274
+ : `${property} uses ${value}; the nearest ${category} token is ${suggested.name} at ${suggested.value}.`,
275
+ category,
276
+ tokenIds: [suggested.id],
277
+ usageIds: [usage.id],
278
+ componentIds: component ? [component.id] : [],
279
+ suggestedTokenId: suggested.id,
280
+ source: usage.source,
281
+ evidence: usage.evidence,
282
+ });
283
+ }
284
+ }
285
+ for (let index = 0; index < tokenList.length; index += 1) {
286
+ const token = tokenList[index];
287
+ const near = tokenList.slice(index + 1).find((candidate) => {
288
+ if (candidate.category !== token.category)
289
+ return false;
290
+ const first = numericValue(token.value);
291
+ const second = numericValue(candidate.value);
292
+ return Boolean(first &&
293
+ second &&
294
+ first.unit === second.unit &&
295
+ Math.abs(first.amount - second.amount) > 0 &&
296
+ Math.abs(first.amount - second.amount) <= Math.max(2, Math.abs(first.amount) * 0.2));
297
+ });
298
+ if (near) {
299
+ const relatedUsages = tokenUsages.filter((usage) => usage.tokenId === token.id || usage.tokenId === near.id);
300
+ findings.push({
301
+ id: stableId('finding', `near:${token.id}:${near.id}`),
302
+ kind: 'near-duplicate',
303
+ severity: 'warning',
304
+ title: `${token.name} and ${near.name} are unusually close`,
305
+ detail: `${token.value} and ${near.value} may represent the same ${token.category} decision.`,
306
+ category: token.category,
307
+ tokenIds: [token.id, near.id],
308
+ usageIds: relatedUsages.map((usage) => usage.id),
309
+ componentIds: [
310
+ ...new Set(relatedUsages
311
+ .map((usage) => usage.componentId)
312
+ .filter((componentId) => Boolean(componentId))),
313
+ ],
314
+ source: near.source ?? token.source,
315
+ evidence: ['Same category', 'Values fall within the project drift threshold'],
316
+ });
317
+ }
318
+ if (!tokenUsages.some((usage) => usage.tokenId === token.id)) {
319
+ findings.push({
320
+ id: stableId('finding', `unused:${token.id}`),
321
+ kind: 'unused-token',
322
+ severity: 'info',
323
+ title: `${token.name} has no indexed references`,
324
+ detail: 'Confirm whether this token is intentionally reserved before removing it.',
325
+ category: token.category,
326
+ tokenIds: [token.id],
327
+ usageIds: [],
328
+ componentIds: [],
329
+ source: token.source,
330
+ evidence: ['No references were found in indexed project files'],
331
+ });
332
+ }
333
+ }
164
334
  const configuredViewports = config?.design?.viewports ?? [];
165
335
  const graphBreakpoints = configuredViewports.length
166
336
  ? configuredViewports.map((item) => ({ ...item, height: item.height ?? 900 }))
@@ -194,6 +364,8 @@ export async function indexProjectDesign(root, config, revision) {
194
364
  themes: graphThemes,
195
365
  states: config?.design?.states ?? [],
196
366
  motionPresets: [...motion.values()],
367
+ tokenUsages,
368
+ designSystemFindings: findings,
197
369
  indexedAt: new Date().toISOString(),
198
370
  });
199
371
  }
@@ -1 +1 @@
1
- {"version":3,"file":"indexer.js","sourceRoot":"","sources":["../src/indexer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAC9D,OAAO,EACL,gBAAgB,EAChB,wBAAwB,GAKzB,MAAM,yBAAyB,CAAC;AAGjC,MAAM,iBAAiB,GAAG,IAAI,GAAG,CAAC;IAChC,MAAM;IACN,OAAO;IACP,OAAO;IACP,OAAO;IACP,KAAK;IACL,MAAM;IACN,KAAK;IACL,MAAM;IACN,MAAM;IACN,MAAM;IACN,OAAO;CACR,CAAC,CAAC;AAEH,SAAS,QAAQ,CAAC,MAAc,EAAE,KAAa;IAC7C,OAAO,GAAG,MAAM,IAAI,UAAU,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC;AACpF,CAAC;AAED,SAAS,MAAM,CAAC,OAAe,EAAE,KAAa;IAC5C,OAAO,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC;AACpD,CAAC;AAED,SAAS,aAAa,CAAC,IAAY,EAAE,KAAa;IAChD,MAAM,IAAI,GAAG,GAAG,IAAI,IAAI,KAAK,EAAE,CAAC,WAAW,EAAE,CAAC;IAC9C,IAAI,kEAAkE,CAAC,IAAI,CAAC,IAAI,CA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AI,EAAE,CAAC;IACtD,MAAM,WAAW,GAAG,gBAAgB,CAAC,MAAM;QACzC,CAAC,CAAC,gBAAgB;QAClB,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC,CAAE,CAAC,WAAW,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAEjF,OAAO,wBAAwB,CAAC,KAAK,CAAC;QACpC,eAAe,EAAE,gBAAgB;QACjC,WAAW,EAAE,IAAI;QACjB,QAAQ;QACR,MAAM,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC;QAC5B,UAAU,EAAE,CAAC,GAAG,UAAU,CAAC,MAAM,EAAE,CAAC;QACpC,WAAW,EAAE,gBAAgB;QAC7B,MAAM,EAAE,WAAW;QACnB,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,IAAI,EAAE;QACpC,aAAa,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC;QACnC,WAAW;QACX,oBAAoB,EAAE,QAAQ;QAC9B,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;KACpC,CAAC,CAAC;AACL,CAAC"}
package/dist/release.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- export declare const FOUNDRY_VERSION = "0.2.0-beta.16";
2
- export declare const FOUNDRY_PACKAGE_SPEC = "foundry-design@0.2.0-beta.16";
3
- export declare const FOUNDRY_MCP_PACKAGE_SPEC = "foundry-design-mcp-server@0.2.0-beta.16";
1
+ export declare const FOUNDRY_VERSION = "0.2.0-beta.17";
2
+ export declare const FOUNDRY_PACKAGE_SPEC = "foundry-design@0.2.0-beta.17";
3
+ export declare const FOUNDRY_MCP_PACKAGE_SPEC = "foundry-design-mcp-server@0.2.0-beta.17";
4
4
  export declare function releasePreflight(action: string): string;
5
5
  //# sourceMappingURL=release.d.ts.map
package/dist/release.js CHANGED
@@ -1,4 +1,4 @@
1
- export const FOUNDRY_VERSION = '0.2.0-beta.16';
1
+ export const FOUNDRY_VERSION = '0.2.0-beta.17';
2
2
  export const FOUNDRY_PACKAGE_SPEC = `foundry-design@${FOUNDRY_VERSION}`;
3
3
  export const FOUNDRY_MCP_PACKAGE_SPEC = `foundry-design-mcp-server@${FOUNDRY_VERSION}`;
4
4
  export function releasePreflight(action) {
@@ -23,6 +23,18 @@ In web sessions, selection mode stays active so ordinary clicks can move continu
23
23
 
24
24
  Use the inspector controls as the user's visual editing surface, not as source truth. For sizing modes, project values, component variants, layer reordering, comparison, keyboard commands, and reset behavior, read [visual-workbench.md](references/visual-workbench.md).
25
25
 
26
+ When the user asks to explore, compare, or edit a component across its instances, variants, or interaction states, read [component-workshop.md](references/component-workshop.md). Keep state previews temporary and require an exact source mapping before using variant or component scope.
27
+
28
+ When the user asks to inspect, compare, or repair behavior across viewport widths, read [responsive-design-lab.md](references/responsive-design-lab.md). Preserve real iframe viewport dimensions, keep stress tests temporary, and require exact source mapping before promoting an edit across breakpoints.
29
+
30
+ When the user asks to audit, trace, consolidate, or extend project tokens and component conventions, read [design-system-intelligence.md](references/design-system-intelligence.md). Treat findings and impact previews as evidence, preserve semantic aliases, and route every proposed source change through review.
31
+
32
+ When the user asks to inspect, scrub, preview, or edit rendered motion, read [motion-studio.md](references/motion-studio.md). Keep transport and scrubbing preview-only, preserve exact source timing and keyframe semantics, and review every editable motion change before apply.
33
+
34
+ When the user asks to audit, preview, or change fonts, type rhythm, scale, or reusable type styles, read [typography-studio.md](references/typography-studio.md). Keep local fonts preview-only, require an explicit integration strategy for new Google Fonts, and validate reviewed typography across the recorded viewport, theme, and state contexts.
35
+
36
+ When the user asks to explore, compare, combine, reject, or choose parallel visual directions, read [design-branches.md](references/design-branches.md). Keep every direction isolated from Main, switch preview values reversibly, and require explicit promotion before anything enters Review and apply.
37
+
26
38
  When the user runs Design Health or asks to correct its findings, read [design-health.md](references/design-health.md). Preserve evidence-only findings when Foundry cannot propose a narrow, reversible preview.
27
39
 
28
40
  For web sessions, `start` indexes the local project design graph. Use `<skill-root>/scripts/foundry.sh index --project <root>` when the graph must be refreshed independently.
@@ -0,0 +1,30 @@
1
+ # Component Workshop
2
+
3
+ Use Component Workshop to inspect a project-native component as a connected system rather than editing isolated screenshots.
4
+
5
+ ## Enter the workshop
6
+
7
+ 1. Open **Components** from the workspace menu, command palette, or Components tab in Structure.
8
+ 2. Choose an indexed component. Prefer one with a live instance on the current canvas.
9
+ 3. Select the exact live instance before changing a visual property.
10
+ 4. Use the state controls to preview default, hover, focus, pressed, disabled, loading, empty, and error behavior.
11
+ 5. Use variants only when the project design graph provides variant properties. Storybook stories are indexed as variant properties.
12
+
13
+ State previews are presentation state. They must never create a design change or enter the review ledger. Return to Default before measuring or applying unrelated changes.
14
+
15
+ ## Choose scope safely
16
+
17
+ - **Instance** changes the selected rendered instance and is available when that instance is live.
18
+ - **Variant** changes the selected mapped variant definition. Keep it disabled until the variant has an exact source reference.
19
+ - **Component** changes the component source for every instance. Keep it disabled until the component itself has an exact source reference.
20
+
21
+ Do not promote an instance edit to variant or component scope by inference. If the source target is missing or ambiguous, preserve the preview and ask the user to resolve the mapping.
22
+
23
+ ## Review and verify
24
+
25
+ 1. Review each recorded change with its component, selected variant, scope, viewport, theme, and state context.
26
+ 2. Apply the narrowest source edit that satisfies the reviewed scope.
27
+ 3. Rebuild and verify the selected state at its native artboard dimensions.
28
+ 4. For variant scope, verify every rendered instance of the selected variant that is available in the session.
29
+ 5. For component scope, verify every rendered instance of that component that is available in the session.
30
+ 6. Keep unavailable combinations explicit. Never claim coverage for a state, theme, or viewport that was not rendered and measured.
@@ -0,0 +1,40 @@
1
+ # Design branches
2
+
3
+ Use Design branches when the user wants to explore materially different visual directions before choosing what should enter Review and apply.
4
+
5
+ ## Branch contract
6
+
7
+ - Main direction is the source-ready session change set.
8
+ - A branch owns an isolated list of design changes and direct-manipulation operations.
9
+ - Creating a direction from another direction copies its current decisions without linking future edits.
10
+ - Switching directions restores the previous preview values before applying the next direction.
11
+ - Branch navigation is presentation state. It must not edit source, create an Apply run, or mark changes applied.
12
+ - Keep no more than eight active directions in one session. Archive rejected or obsolete directions instead of deleting their rationale.
13
+
14
+ ## Compare and compose
15
+
16
+ 1. Compare two directions in fixed-size iframes using the recorded project viewport.
17
+ 2. Treat the branch ledgers as canonical. Never infer a viewport from overflowing content.
18
+ 3. Select individual decisions by branch and change identifier.
19
+ 4. Combine selections into a new isolated direction. Coalesce only changes with the same target, property, scope, breakpoint, theme, and state.
20
+ 5. Record a concise rejection note when a direction is rejected. Preserve that note with the session.
21
+
22
+ ## Promote a direction
23
+
24
+ Choosing a direction is an explicit boundary:
25
+
26
+ 1. Confirm there is no active Apply run.
27
+ 2. Copy the chosen direction into the main change set with fresh identifiers and draft statuses.
28
+ 3. Mark the direction as chosen and return the active editing direction to Main.
29
+ 4. Open Review and apply. The user must still approve exact changes before the agent edits source.
30
+
31
+ Never merge a direction directly into project files and never automatically retry or promote a rejected direction.
32
+
33
+ ## Verification
34
+
35
+ - Confirm edits recorded in one branch never appear in another branch or Main.
36
+ - Switch repeatedly and verify the rendered product restores exact before and after values.
37
+ - Compare at the recorded viewport and theme.
38
+ - Combine decisions from at least two branches and verify only selected changes appear in the new direction.
39
+ - Promote the combined direction and confirm Review and apply contains the expected draft changes.
40
+ - Verify Light and Dark Foundry interface themes without altering the product theme.
@@ -0,0 +1,29 @@
1
+ # Design System Intelligence
2
+
3
+ Use the Design System workspace to understand and extend the product's existing visual language without silently introducing new conventions.
4
+
5
+ ## Read the system map
6
+
7
+ 1. Open **Design system** from the workspace menu or command palette.
8
+ 2. Filter tokens by category and select the semantic token, not merely a matching raw value.
9
+ 3. Read its source of truth, aliases, indexed references, literal repetitions, component reach, and file reach.
10
+ 4. Treat impact counts as an indexed preview. Dynamic, generated, or runtime-only usage may remain outside the graph and must be reported as unavailable rather than inferred.
11
+
12
+ ## Interpret guidance
13
+
14
+ - **Literal drift** means an authored literal equals or sits close to a project token.
15
+ - **Component drift** is literal drift inside a source-mapped component.
16
+ - **Near duplicate** means two tokens in the same category fall inside the conservative numeric similarity threshold.
17
+ - **Unused token** means no indexed reference was found. It is evidence for review, not permission to delete the token.
18
+
19
+ Recommendations explain the matching category, value relationship, and source evidence. Exact token matches rank first in Inspector menus, followed by the nearest compatible project values. Never recommend a token from an unrelated category merely because its serialized value matches.
20
+
21
+ ## Change the system safely
22
+
23
+ 1. Inspect affected components and contexts before proposing a replacement or token edit.
24
+ 2. Preserve semantic aliases when they encode intent across themes, states, or component roles.
25
+ 3. Route literal replacements, consolidation, new tokens, and token-value changes into the normal review ledger.
26
+ 4. Require an exact source mapping and explicit component, theme, breakpoint, and state scope.
27
+ 5. Rebuild and verify every affected rendered context. A token definition change is complete only after its indexed consumers remain visually and functionally correct.
28
+
29
+ The Design System workspace never applies source changes automatically. Its index, guidance, selection, and impact preview are presentation and evidence state.
@@ -0,0 +1,38 @@
1
+ # Motion Studio
2
+
3
+ Use Motion Studio when a rendered interface contains motion that must be understood, tuned, or verified against its source.
4
+
5
+ ## Discover rendered motion
6
+
7
+ 1. Select the animated target on the Canvas, then open **Motion studio** from the workspace menu or command palette.
8
+ 2. Treat the live browser and timeline as views of the same registered CSS animation, CSS transition, or Web Animation.
9
+ 3. Preserve the source type, duration, delay, easing, iterations, direction, fill mode, animated properties, and keyframes exactly as reported by the adapter.
10
+ 4. Use the performance tier and reduced-motion status as evidence. Do not infer compositor safety or accessibility coverage from an animation name alone.
11
+
12
+ ## Preview without recording changes
13
+
14
+ Play, pause, replay, loop, speed, and timeline scrubbing are presentation controls. They must never enter the change ledger, modify source, or become part of an Apply run. Keep the selected motion and playhead synchronized between Motion Studio and the Inspector.
15
+
16
+ ## Edit timing and keyframes
17
+
18
+ - Timing edits may update duration, delay, easing, iterations, direction, and fill mode.
19
+ - Keyframe edits preserve the selected property, offset, value, and segment easing.
20
+ - Route edits through the normal bridge so they coalesce by target, property, scope, breakpoint, theme, and state.
21
+ - Require exact source mapping before promoting an edit beyond the selected instance.
22
+ - Never replace a project easing token or motion convention with an unexplained literal when a matching native value exists.
23
+
24
+ ## Review motion health
25
+
26
+ - Prefer transform and opacity when the intended effect can remain on the compositor.
27
+ - Flag layout- or paint-heavy properties as evidence, not as automatic rewrite instructions.
28
+ - Treat a matching `prefers-reduced-motion` rule or an intentionally short duration as reduced-motion coverage.
29
+ - Preserve unsupported or ambiguous motion as a finding and ask the user to choose the intended source behavior.
30
+
31
+ ## Verify after apply
32
+
33
+ 1. Rebuild the real application.
34
+ 2. Reopen the same target, viewport, theme, breakpoint, and state.
35
+ 3. Confirm the requested timing and keyframe values from the rendered animation snapshot.
36
+ 4. Replay the full motion and inspect the start, intermediate, and end states.
37
+ 5. Confirm transport and scrubbing still leave the change ledger untouched.
38
+ 6. Recheck performance classification and reduced-motion coverage, then report any mismatch instead of silently normalizing it.
@@ -0,0 +1,30 @@
1
+ # Responsive Design Lab
2
+
3
+ Use Responsive Design Lab when a change must remain correct across real running viewport contexts.
4
+
5
+ ## Inspect across native viewports
6
+
7
+ 1. Select the target once on the Canvas, then open **Responsive design lab** from the workspace menu or command palette.
8
+ 2. Treat each iframe's declared width and height as the browser viewport. Foundry may scale the outer frame for presentation, but must never resize the document to fit the workspace.
9
+ 3. Check the linked selection in every configured breakpoint and the session's recorded Current viewport.
10
+ 4. Scrub Custom width to reveal media-query and container-query transitions between named boundaries.
11
+ 5. Treat horizontal overflow, clipping, awkward wrapping, and large geometry jumps as findings. Do not enlarge a viewport from `scrollWidth` to conceal overflow.
12
+
13
+ ## Use stress tests safely
14
+
15
+ Browser zoom, text scale, and long-content modes are temporary presentation tests. They must not record changes, alter product source, or persist after the preview frame closes. Use them to expose brittle layout behavior, then clear the stress mode before final measurement.
16
+
17
+ ## Choose responsive scope
18
+
19
+ - **This breakpoint** records the current configured breakpoint as the change context.
20
+ - **All breakpoints** is an explicit promotion. Keep it unavailable until the selected target has exact source mapping.
21
+
22
+ Never infer a global responsive edit from a successful local preview. If a custom-width failure does not map to a configured breakpoint or source boundary, preserve the evidence and ask the user to choose the intended source scope.
23
+
24
+ ## Verify after apply
25
+
26
+ 1. Rebuild the real application.
27
+ 2. Reopen the linked selection at every approved viewport using native iframe dimensions.
28
+ 3. Compare before and after in the failing context.
29
+ 4. Confirm the original passing contexts remain stable.
30
+ 5. Report unsupported, cross-origin, or unavailable contexts explicitly rather than substituting the current viewport.
@@ -0,0 +1,14 @@
1
+ # Typography Studio
2
+
3
+ Typography Studio turns the selected rendered text into a source-accountable typography workspace.
4
+
5
+ 1. Select a text layer on Canvas, then open **Typography studio** from the workspace menu, command palette, or `0` shortcut.
6
+ 2. Use **Project** to review fonts already active or declared in the product. Choosing one creates a normal reviewed font-family change.
7
+ 3. Use **Google** to preview the live catalog. Before review, choose the project-appropriate integration strategy. Foundry records the exact family, weight, style, source actions, and verification plan as evidence.
8
+ 4. Use **Local** to preview fonts installed on the device when the browser supports local font access. Local fonts are never written to source without an explicit project asset or integration decision.
9
+ 5. Use the live specimen, rendered metrics, diagnostics, and project usage map to judge the change in context. Do not treat the specimen alone as proof that the rebuilt product is correct.
10
+ 6. Type treatments and modular or fluid scale values are temporary until added to review. Reset restores the original inline values without creating a change.
11
+ 7. Saved project styles are local design memory. Applying one still creates exact reviewed property changes; saving a style does not silently create source tokens.
12
+ 8. During apply, preserve the project-native font system, aliases, loading strategy, and framework conventions. Verify the rebuilt family, weight, style, axes, size, line height, tracking, wrapping, clipping, and load status across every recorded viewport, theme, and state.
13
+
14
+ Do not claim that a local preview is portable. Do not add a Google or self-hosted font without its recorded source plan. Do not hide overflow or clipping by changing the viewport.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "foundry-design",
3
- "version": "0.2.0-beta.16",
3
+ "version": "0.2.0-beta.17",
4
4
  "description": "Install and run the local-first Foundry visual design control plane",
5
5
  "type": "module",
6
6
  "files": [
@@ -34,8 +34,8 @@
34
34
  "inspector"
35
35
  ],
36
36
  "dependencies": {
37
- "foundry-design-protocol": "0.2.0-beta.16",
38
- "foundry-design-runtime": "0.2.0-beta.16"
37
+ "foundry-design-protocol": "0.2.0-beta.17",
38
+ "foundry-design-runtime": "0.2.0-beta.17"
39
39
  },
40
40
  "scripts": {
41
41
  "build": "tsc -p tsconfig.json && node ../../scripts/copy-cli-skill.mjs",