@reqvire-org/ads 0.3.26 → 0.3.27
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 +21 -10
- package/dist/bootstrap-ds/README.md +7 -5
- package/dist/bootstrap-ds/ds.config.json +1 -1
- package/dist/bootstrap-ds/scripts/build-mcp-previews.mjs +1 -1
- package/dist/capture.mjs +1 -1
- package/dist/development-runtime.mjs +17 -0
- package/dist/index.mjs +1 -1
- package/dist/init.mjs +14 -12
- package/dist/mcp/apps.mjs +1 -1
- package/dist/mcp/context.mjs +5 -4
- package/dist/mcp/mutations.mjs +3 -2
- package/dist/mcp/preview-watch.mjs +2 -1
- package/dist/mcp/server.mjs +4 -1
- package/dist/mcp/widget.bundle.js +1 -1
- package/dist/preview-files.mjs +33 -0
- package/dist/preview-inputs.mjs +6 -5
- package/dist/scenarios-compiler.mjs +7 -7
- package/dist/showcase/sandbox.bundle.js +1 -1
- package/dist/skills/README.md +7 -1
- package/dist/skills/ads-break-ui/SKILL.md +6 -2
- package/dist/skills/ads-break-ui/references/behaviors.md +6 -3
- package/dist/skills/ads-break-ui/references/layers.md +16 -0
- package/dist/skills/ads-break-ui/references/runtimes.md +110 -0
- package/dist/skills/ads-designer/README.md +6 -0
- package/dist/skills/ads-designer/SKILL.md +10 -5
- package/dist/skills/ads-designer/assets/bootstrap-ds/README.md +7 -5
- package/dist/skills/ads-designer/assets/bootstrap-ds/ds.config.json +1 -1
- package/dist/skills/ads-designer/assets/bootstrap-ds/scripts/build-mcp-previews.mjs +1 -1
- package/dist/skills/ads-designer/references/behaviors.md +6 -3
- package/dist/skills/ads-designer/references/cli.md +10 -7
- package/dist/skills/ads-designer/references/design-craft.md +31 -0
- package/dist/skills/ads-designer/references/layers.md +16 -0
- package/dist/skills/ads-designer/references/runtimes.md +110 -0
- package/dist/skills/ads-import/SKILL.md +23 -3
- package/dist/skills/ads-import/agents/openai.yaml +2 -2
- package/dist/skills/ads-import/references/behaviors.md +6 -3
- package/dist/skills/ads-import/references/cli.md +10 -7
- package/dist/skills/ads-import/references/compatibility.md +113 -0
- package/dist/skills/ads-import/references/implementation.md +6 -0
- package/dist/skills/ads-import/references/layers.md +16 -0
- package/dist/skills/ads-import/references/runtimes.md +110 -0
- package/dist/skills/ads-motion/SKILL.md +6 -2
- package/dist/skills/ads-motion/references/behaviors.md +6 -3
- package/dist/skills/ads-motion/references/layers.md +16 -0
- package/dist/skills/ads-motion/references/runtimes.md +110 -0
- package/dist/skills/ads-port/SKILL.md +6 -2
- package/dist/skills/ads-port/references/behaviors.md +6 -3
- package/dist/skills/ads-port/references/cli.md +10 -7
- package/dist/skills/ads-port/references/layers.md +16 -0
- package/dist/skills/ads-port/references/runtimes.md +110 -0
- package/dist/verification.mjs +4 -3
- package/docs/ADS.md +17 -0
- package/docs/ARCHITECTURE.md +19 -0
- package/docs/BEHAVIORS.md +6 -3
- package/docs/CHANGELOG.md +21 -1
- package/docs/COMPARISON.md +63 -0
- package/docs/GUIDE.md +20 -10
- package/docs/MCP.md +44 -6
- package/package.json +5 -4
package/dist/skills/README.md
CHANGED
|
@@ -17,6 +17,12 @@ includes an empty bootstrap scaffold, so starting from zero needs no example
|
|
|
17
17
|
repository. Skills operate on a project's local ADS; they do not install a UI
|
|
18
18
|
catalogue or replace the project's theme values.
|
|
19
19
|
|
|
20
|
+
Build and adapt UI through the same public APIs for websites and MCP Apps.
|
|
21
|
+
Application adapters own routing, stores, MCP communication, tool-result mapping,
|
|
22
|
+
mounting and serving. Use the real ADS showcase and relevant application checks;
|
|
23
|
+
reuse existing verification and add targeted checks for uncovered behavior.
|
|
24
|
+
Report the states and environments actually verified.
|
|
25
|
+
|
|
20
26
|
The [stdio MCP server](../docs/MCP.md#skills) also serves these skills and supporting
|
|
21
27
|
files from the npm distribution. Native Skills discovery is available on the
|
|
22
28
|
newer protocol; ordinary tools/resources provide explicit access on older
|
|
@@ -35,7 +41,7 @@ the browser, and provides a running URL or exact command for review. See the
|
|
|
35
41
|
| Skill | Use | Example |
|
|
36
42
|
|-------|-----|---------|
|
|
37
43
|
| [ads-designer](ads-designer/SKILL.md) | Bootstrap or build UI using the local ADS, with craft/mobile guidance | `$ads-designer build a settings page using this project's ADS` |
|
|
38
|
-
| [ads-import](ads-import/SKILL.md) |
|
|
44
|
+
| [ads-import](ads-import/SKILL.md) | Check destination compatibility, then integrate selected ADS source, artwork or theme values | `$ads-import /path/to/source-repo component Toast` |
|
|
39
45
|
| [ads-port](ads-port/SKILL.md) | Port library capabilities into a coherent ADS using shared tokens and primitives | `$ads-port https://github.com/emilkowalski/sonner` |
|
|
40
46
|
| [ads-break-ui](ads-break-ui/SKILL.md) | Stress-test real components/patterns; optionally fix demonstrated failures | `$ads-break-ui AppShell +fix` |
|
|
41
47
|
| [ads-motion](ads-motion/SKILL.md) | Implement, review, audit, or profile motion | `$ads-motion review Toast` |
|
|
@@ -3,6 +3,9 @@ name: ads-break-ui
|
|
|
3
3
|
description: Stress-test a project's local design-system components or patterns with extreme realistic content, empty and failure states, narrow containers, and accessibility settings. Build development fixtures, report layout failures, and fix them when requested.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
+
For Node/Bun setup, MCP launch and compiler workers, read
|
|
7
|
+
[runtimes.md](references/runtimes.md).
|
|
8
|
+
|
|
6
9
|
Exercise the real component through its public API. Accept an item name, screen,
|
|
7
10
|
file, or local project path; discover the relevant exports and usage when the
|
|
8
11
|
request already identifies the target.
|
|
@@ -67,8 +70,9 @@ renderers, build aliases or `review-import` / `review-contract` diagnostics, rea
|
|
|
67
70
|
|
|
68
71
|
A component provides one cohesive UI capability; a pattern arranges capabilities
|
|
69
72
|
into reusable structures or workflows. Components may compose components/controllers;
|
|
70
|
-
layout patterns may arrange slots. Do not classify by component count. For
|
|
71
|
-
|
|
73
|
+
layout patterns may arrange slots. Do not classify by component count. For shared
|
|
74
|
+
website/MCP App use, owner selection, or `component-dependency`,
|
|
75
|
+
`component-contract` or `component-style` diagnostics, read
|
|
72
76
|
[layer responsibilities and contracts](references/layers.md), also served as
|
|
73
77
|
`ads://guides/layers`. Preserve public APIs and documented non-state styling hooks.
|
|
74
78
|
|
|
@@ -142,8 +142,8 @@ command. For a project with an installed Playwright test runner:
|
|
|
142
142
|
"behaviorProfiles": {
|
|
143
143
|
"widget": {
|
|
144
144
|
"runner": "playwright",
|
|
145
|
-
"command": "
|
|
146
|
-
"args": ["
|
|
145
|
+
"command": "runtime",
|
|
146
|
+
"args": ["node_modules/@playwright/test/cli.js", "test"],
|
|
147
147
|
"mode": "browser",
|
|
148
148
|
"timeoutMs": 60000
|
|
149
149
|
}
|
|
@@ -152,7 +152,10 @@ command. For a project with an installed Playwright test runner:
|
|
|
152
152
|
}
|
|
153
153
|
```
|
|
154
154
|
|
|
155
|
-
Here `
|
|
155
|
+
Here `runtime` uses the Node or Bun interpreter that launched ADS, and the
|
|
156
|
+
project supplies the installed Playwright entry. Explicit executable commands
|
|
157
|
+
retain their meaning. A Bun package-script profile can use `command: "bun"`
|
|
158
|
+
with `args: ["--bun", "run", "test:behavior", "--"]`. The Playwright
|
|
156
159
|
configuration must discover colocated spec files. Configure browser installation
|
|
157
160
|
and any required test setup in that project. The ADS tooling host gains no
|
|
158
161
|
framework or browser dependency from a profile.
|
|
@@ -30,6 +30,22 @@ Do not classify by import count, JSX element count, names or file length. Review
|
|
|
30
30
|
the capability and its consumer contract. Preserve valid APIs when tracing is
|
|
31
31
|
inconclusive; do not make an export private or add a product prop just to pass.
|
|
32
32
|
|
|
33
|
+
## Share UI across websites and MCP Apps
|
|
34
|
+
|
|
35
|
+
Build and adapt UI through the project's public design-system APIs. Websites
|
|
36
|
+
and MCP Apps use the same components, patterns, controllers, tokens and styles.
|
|
37
|
+
Application adapters supply data and actions and own mounting, routing, stores,
|
|
38
|
+
MCP communication, tool-result mapping and serving. Keep those integrations out
|
|
39
|
+
of reusable UI implementations. ADS's own MCP server supports design-system
|
|
40
|
+
development, inspection and rendered review.
|
|
41
|
+
|
|
42
|
+
The ADS showcase renders the real public implementation inside an MCP App.
|
|
43
|
+
Its previews and registered checks provide evidence for the exercised states,
|
|
44
|
+
themes, sizes and environment. Relevant application checks verify website
|
|
45
|
+
integration. Reuse existing verification; add targeted checks when a change
|
|
46
|
+
exposes an uncovered requirement. Record what was actually verified, including
|
|
47
|
+
any remaining host or integration assumptions.
|
|
48
|
+
|
|
33
49
|
## Demonstrate the production implementation
|
|
34
50
|
|
|
35
51
|
Product patterns are reusable application UI, not showcase replicas. A scenario
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
# Node and Bun development runtimes
|
|
2
|
+
|
|
3
|
+
ADS supports Node 22.12+ and Bun 1.3.13+. A Bun project does not need Node or npm.
|
|
4
|
+
The launcher selects the interpreter; package manager and UI framework are
|
|
5
|
+
separate concerns. Preserve the target project's choices.
|
|
6
|
+
|
|
7
|
+
For a Node/npm project, run inside its package root:
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
npx @reqvire-org/ads init --framework react
|
|
11
|
+
npm install
|
|
12
|
+
npm run build
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
For Bun:
|
|
16
|
+
|
|
17
|
+
```sh
|
|
18
|
+
bunx --bun @reqvire-org/ads init --framework react
|
|
19
|
+
bun install
|
|
20
|
+
bun --bun run build
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Use `--framework preact` for native Preact. Init detects an existing package
|
|
24
|
+
manager or infers Bun from its launcher when no project choice exists. Use
|
|
25
|
+
`--package-manager bun` only for an explicit override; existing project metadata
|
|
26
|
+
and lockfiles take precedence over the launcher.
|
|
27
|
+
Use the installed/pinned ADS version. Never substitute an unrelated bare package.
|
|
28
|
+
|
|
29
|
+
`--bun` is essential to an explicit Bun runtime choice: many JavaScript tools
|
|
30
|
+
have a `#!/usr/bin/env node` shebang. Bun can otherwise launch Node when it is
|
|
31
|
+
available. Generated ADS scripts force Bun, including Oxlint and its JavaScript
|
|
32
|
+
plugins. Existing application scripts and lockfiles are preserved; translate
|
|
33
|
+
nested `npm` commands when intentionally converting an application to Bun.
|
|
34
|
+
Dependency packages and custom build commands must support the chosen runtime.
|
|
35
|
+
|
|
36
|
+
For ordinary `bun run build` commands to always select Bun, the project may
|
|
37
|
+
set its own `bunfig.toml`:
|
|
38
|
+
|
|
39
|
+
```toml
|
|
40
|
+
[run]
|
|
41
|
+
bun = true
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
This is equivalent to passing `--bun` for script execution. ADS does not replace
|
|
45
|
+
an existing Bun configuration. Keep the explicit flag in MCP launch settings.
|
|
46
|
+
|
|
47
|
+
## MCP connection
|
|
48
|
+
|
|
49
|
+
For Bun, use these values in Claude's `.mcp.json` or Codex's MCP configuration:
|
|
50
|
+
|
|
51
|
+
```json
|
|
52
|
+
{
|
|
53
|
+
"command": "bunx",
|
|
54
|
+
"args": ["--bun", "@reqvire-org/ads", "mcp"]
|
|
55
|
+
}
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
Add `--mutations` to enable guarded source changes and `--port 4191` when the
|
|
59
|
+
project pins its showcase port. Append a project directory when the client
|
|
60
|
+
does not launch in the package root. For a local installed tool, use the
|
|
61
|
+
generated `ads-mcp` or `ads-read-mcp` package script. Keep stdout for JSON-RPC.
|
|
62
|
+
|
|
63
|
+
## Compiler and browser workers
|
|
64
|
+
|
|
65
|
+
Use the portable command in `ds.config.json`:
|
|
66
|
+
|
|
67
|
+
```json
|
|
68
|
+
{
|
|
69
|
+
"mcp": {
|
|
70
|
+
"previewWatch": {
|
|
71
|
+
"command": "runtime",
|
|
72
|
+
"args": ["scripts/build-mcp-previews.mjs", "--watch"]
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
`runtime` means the interpreter that launched ADS, including its absolute
|
|
79
|
+
executable when available through an environment manager. It also works in
|
|
80
|
+
registered behavior profiles, with the project's installed runner entry file in
|
|
81
|
+
`args`. Explicit `node`, `bun` and custom executable commands retain their meaning;
|
|
82
|
+
ADS never silently substitutes another interpreter for them. Node-specific
|
|
83
|
+
commands still need Node, even in a Bun-managed package.
|
|
84
|
+
|
|
85
|
+
Mandatory architecture/Oxlint validation, ownership guards and screenshot workers
|
|
86
|
+
inherit ADS's interpreter. Browser tests remain project-owned Playwright specs;
|
|
87
|
+
Chromium/WebKit is a separate browser dependency, not a Node requirement. Runtime
|
|
88
|
+
identity participates in behavior evidence freshness.
|
|
89
|
+
|
|
90
|
+
For diagnosis, inspect `ads_status.project.runtime`: `name`, `version`,
|
|
91
|
+
`executable` and `binDir`. `project.commands` contains the discovered package
|
|
92
|
+
commands with the appropriate Bun flags. The MCP process and agent shell may
|
|
93
|
+
have different PATHs; use these reported values instead of scanning the machine
|
|
94
|
+
or installing another runtime without evidence.
|
|
95
|
+
|
|
96
|
+
Preview watching excludes standard output trees by default, including nested
|
|
97
|
+
Cargo `target/` directories, without allocating watches inside them. Explicit
|
|
98
|
+
`sourceDir` and `dsDir` take priority over those default output names. Register
|
|
99
|
+
custom outputs in `assets.generatedPaths`; do not copy the default list into a
|
|
100
|
+
new project's config. `ENOSPC` from `fs.watch` can mean the OS watch limit rather
|
|
101
|
+
than disk space: inspect the failing path and generated-tree traversal before
|
|
102
|
+
raising system limits or deleting files. Generated churn must not mark previews
|
|
103
|
+
stale; actual source changes must still rebuild.
|
|
104
|
+
|
|
105
|
+
Bundled binary renderers may load their forwarded `blob:` resources. ADS's
|
|
106
|
+
showcase/explorer permits WebAssembly compilation while keeping JavaScript eval
|
|
107
|
+
and undeclared network requests blocked. External MCP hosts control their CSP.
|
|
108
|
+
Test the actual renderer inside the App; a successful website build does not
|
|
109
|
+
establish binary-resource or WebAssembly support. Keep transport and resource
|
|
110
|
+
loading in explicit injected adapters or declared renderer dependencies.
|
|
@@ -13,6 +13,12 @@ The adaptations preserve project-owned token values and styles, public APIs,
|
|
|
13
13
|
component/pattern ownership, and application responsibility for document-level
|
|
14
14
|
setup. They do not impose upstream numeric/brand defaults or native app tooling.
|
|
15
15
|
|
|
16
|
+
The design-intent, information hierarchy, interface wording, and visual critique
|
|
17
|
+
guidance also draws on ideas in
|
|
18
|
+
[Anthropic's frontend-design skill](https://github.com/anthropics/skills/blob/main/skills/frontend-design/SKILL.md).
|
|
19
|
+
This ADS-specific guidance follows the project's shared tokens, ownership
|
|
20
|
+
boundaries, and design brief.
|
|
21
|
+
|
|
16
22
|
[LICENSE.upstream](LICENSE.upstream) retains the complete MIT license and
|
|
17
23
|
Copyright (c) 2026 Emil Kowalski for copied/adapted upstream guidance. Retain it
|
|
18
24
|
on redistribution of that material. It does not declare a license for unrelated
|
|
@@ -3,6 +3,9 @@ name: ads-designer
|
|
|
3
3
|
description: Bootstrap an empty local React design system from bundled scaffolding, or build UI using a project's existing design system. Covers shared token contracts, local ownership, public APIs, external source integration, showcase inspection, and validation.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
+
For Node/Bun setup, MCP launch and compiler workers, read
|
|
7
|
+
[runtimes.md](references/runtimes.md).
|
|
8
|
+
|
|
6
9
|
Inspect the target before editing. Read its `README.md`, `docs/ARCHITECTURE.md`
|
|
7
10
|
and `docs/ADS.md` when present (or existing project guides), public exports, and relevant
|
|
8
11
|
component guides. Preserve its
|
|
@@ -98,8 +101,9 @@ renderers, build aliases or `review-import` / `review-contract` diagnostics, rea
|
|
|
98
101
|
|
|
99
102
|
A component provides one cohesive UI capability; a pattern arranges capabilities
|
|
100
103
|
into reusable structures or workflows. Components may compose components/controllers;
|
|
101
|
-
layout patterns may arrange slots. Do not classify by component count. For
|
|
102
|
-
|
|
104
|
+
layout patterns may arrange slots. Do not classify by component count. For shared
|
|
105
|
+
website/MCP App use, owner selection, or `component-dependency`,
|
|
106
|
+
`component-contract` or `component-style` diagnostics, read
|
|
103
107
|
[layer responsibilities and contracts](references/layers.md), also served as
|
|
104
108
|
`ads://guides/layers`. Preserve public APIs and documented non-state styling hooks.
|
|
105
109
|
|
|
@@ -275,9 +279,10 @@ artwork replacement and token-value adoption are explicit selections.
|
|
|
275
279
|
|
|
276
280
|
## Design craft and mobile behavior
|
|
277
281
|
|
|
278
|
-
For
|
|
279
|
-
|
|
280
|
-
|
|
282
|
+
For design direction, content/layout decisions, interface wording, component
|
|
283
|
+
polish, or visual review, read
|
|
284
|
+
[references/design-craft.md](references/design-craft.md). For touch, small
|
|
285
|
+
screens, browser chrome, safe areas, or mobile forms, read
|
|
281
286
|
[references/mobile.md](references/mobile.md). Load these when relevant rather
|
|
282
287
|
than imposing mobile application setup on every component task.
|
|
283
288
|
|
|
@@ -12,8 +12,8 @@ Read the local [contract](ADS.md) and the
|
|
|
12
12
|
|
|
13
13
|
Copy the contents of `bootstrap-ds/`, including dotfiles, into a new project.
|
|
14
14
|
The installed `ads-designer` skill contains the same files in
|
|
15
|
-
`assets/bootstrap-ds/`. Set the project name in `package.json`. Use Node 22.12
|
|
16
|
-
|
|
15
|
+
`assets/bootstrap-ds/`. Set the project name in `package.json`. Use Node 22.12+
|
|
16
|
+
or Bun 1.3.13+ with a current ADS release.
|
|
17
17
|
|
|
18
18
|
```sh
|
|
19
19
|
npx @reqvire-org/ads init --framework react
|
|
@@ -32,10 +32,12 @@ npm run build
|
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
For a new Bun workspace, declare Bun in `packageManager`, omit the copied npm
|
|
35
|
-
lockfile and translate nested npm scripts to `bun run`.
|
|
35
|
+
lockfile and translate nested npm scripts to `bun --bun run`. Initialize with
|
|
36
|
+
`bunx --bun @reqvire-org/ads init`. Init detects existing
|
|
36
37
|
Bun projects and preserves their scripts/lockfiles. Use `bun install` and
|
|
37
|
-
`bun run build`/`bun run dev:showcase`.
|
|
38
|
-
|
|
38
|
+
`bun --bun run build`/`bun --bun run dev:showcase`. Node is unnecessary with Bun
|
|
39
|
+
1.3.13+. The supplied preview watcher's `command: "runtime"` inherits the
|
|
40
|
+
interpreter that launched ADS and runs the project's installed checks.
|
|
39
41
|
|
|
40
42
|
For an existing application, merge only the ADS source and required extraction,
|
|
41
43
|
aliases and preview adapter. Preserve its framework, entry points and build.
|
|
@@ -17,7 +17,7 @@ await runScenarioCompiler(root, {
|
|
|
17
17
|
watched: process.argv.includes("--watch"),
|
|
18
18
|
compilerFiles: [import.meta.filename],
|
|
19
19
|
async validate() {
|
|
20
|
-
try { await runScript(manager, ["run", "lint"], { cwd: root }); }
|
|
20
|
+
try { await runScript(manager, [...(manager === "bun" ? ["--bun"] : []), "run", "lint"], { cwd: root }); }
|
|
21
21
|
catch (error) { throw new Error([error.stdout, error.stderr].map(value => value?.toString() ?? "").join("\n") || error.message); }
|
|
22
22
|
},
|
|
23
23
|
async buildGraph(entries, options, track) {
|
|
@@ -142,8 +142,8 @@ command. For a project with an installed Playwright test runner:
|
|
|
142
142
|
"behaviorProfiles": {
|
|
143
143
|
"widget": {
|
|
144
144
|
"runner": "playwright",
|
|
145
|
-
"command": "
|
|
146
|
-
"args": ["
|
|
145
|
+
"command": "runtime",
|
|
146
|
+
"args": ["node_modules/@playwright/test/cli.js", "test"],
|
|
147
147
|
"mode": "browser",
|
|
148
148
|
"timeoutMs": 60000
|
|
149
149
|
}
|
|
@@ -152,7 +152,10 @@ command. For a project with an installed Playwright test runner:
|
|
|
152
152
|
}
|
|
153
153
|
```
|
|
154
154
|
|
|
155
|
-
Here `
|
|
155
|
+
Here `runtime` uses the Node or Bun interpreter that launched ADS, and the
|
|
156
|
+
project supplies the installed Playwright entry. Explicit executable commands
|
|
157
|
+
retain their meaning. A Bun package-script profile can use `command: "bun"`
|
|
158
|
+
with `args: ["--bun", "run", "test:behavior", "--"]`. The Playwright
|
|
156
159
|
configuration must discover colocated spec files. Configure browser installation
|
|
157
160
|
and any required test setup in that project. The ADS tooling host gains no
|
|
158
161
|
framework or browser dependency from a profile.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# Run ADS tooling
|
|
1
|
+
# Run ADS tooling with Node or Bun
|
|
2
2
|
|
|
3
|
-
Use
|
|
3
|
+
Use the project's runtime for setup or ad hoc checks alongside this skill's research,
|
|
4
4
|
implementation, documentation, and verification workflow. ADS must be a project
|
|
5
5
|
development dependency, and its checks must run before the project's build.
|
|
6
6
|
Routine builds use the local CLI.
|
|
@@ -27,11 +27,14 @@ Use `--framework preact` for native Preact. A saved `framework` in
|
|
|
27
27
|
required, including for an older config. Init preserves existing framework
|
|
28
28
|
tooling and rejects conflicting saved/JSX settings instead of converting it.
|
|
29
29
|
|
|
30
|
-
Use the confirmed package name/version if different. For
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
30
|
+
Use the confirmed package name/version if different. For a Bun project, use
|
|
31
|
+
`bunx --bun @reqvire-org/ads init --framework react`, `bun install` and
|
|
32
|
+
`bun --bun run build`. Bun 1.3.13+ suffices; Node is unnecessary. Init detects
|
|
33
|
+
`packageManager` or `bun.lock`/`bun.lockb`, then defaults to Bun when launched
|
|
34
|
+
with Bun. See [runtimes.md](runtimes.md)
|
|
35
|
+
for MCP configuration and portable compiler/behavior commands.
|
|
36
|
+
Use `--package-manager bun` only for an explicit override. Preserve the project's
|
|
37
|
+
existing package-manager policy and lockfile.
|
|
35
38
|
|
|
36
39
|
`init` accepts no directory argument and requires an existing `package.json`.
|
|
37
40
|
For starting from zero, copy the bundled `ads-designer` application scaffold
|
|
@@ -5,6 +5,19 @@ Preserve the project's typography, density, spacing, icon vocabulary, and themes
|
|
|
5
5
|
The upstream advice is a craft reference, not authorization to replace brand
|
|
6
6
|
values or add a new UI library.
|
|
7
7
|
|
|
8
|
+
## Establish the design intent
|
|
9
|
+
|
|
10
|
+
Identify who uses the screen, what they need to accomplish, and which action or
|
|
11
|
+
decision matters most. Let that purpose guide hierarchy, density, imagery, and
|
|
12
|
+
tone. Use the product's real subject matter and representative content to choose
|
|
13
|
+
the structure. For a substantial new screen or redesign, a few sentences of
|
|
14
|
+
design intent are enough to make those choices reviewable.
|
|
15
|
+
|
|
16
|
+
In an established ADS, express that intent through its shared roles and owned
|
|
17
|
+
APIs. When starting a new ADS, establish a coherent vocabulary in shared tokens
|
|
18
|
+
and carry it across consumers. Respect the brief's visual choices; deliberate
|
|
19
|
+
restraint and expressive styling can both serve the right product.
|
|
20
|
+
|
|
8
21
|
## Shape the interaction
|
|
9
22
|
|
|
10
23
|
Make the primary action and current state legible. Components should expose
|
|
@@ -35,6 +48,11 @@ button labels, truncation, contrast, and focus treatment consistent with the
|
|
|
35
48
|
owner. Stabilize a loading control's dimensions where content replacement would
|
|
36
49
|
otherwise cause distracting layout changes.
|
|
37
50
|
|
|
51
|
+
Give visual boundaries a purpose: group related content, separate decisions, or
|
|
52
|
+
show hierarchy. Number items when their order matters. Choose cards, dividers,
|
|
53
|
+
labels, and emphasis according to the information they communicate. Typography
|
|
54
|
+
should distinguish reading roles through the project's shared scale.
|
|
55
|
+
|
|
38
56
|
Check realistic long names, translated labels, unbroken identifiers, absent
|
|
39
57
|
descriptions, and empty/single/many states when they matter to the component.
|
|
40
58
|
Choose wrapping/truncation based on what users need to read or retrieve. Preserve
|
|
@@ -52,6 +70,14 @@ exit cleanup, and reduced motion. Established component-specific durations and
|
|
|
52
70
|
measured geometry can be deliberate choices; diagnose their effect before
|
|
53
71
|
changing them to a generic default.
|
|
54
72
|
|
|
73
|
+
## Write for the next action
|
|
74
|
+
|
|
75
|
+
Use the user's vocabulary and name actions precisely: "Save changes" tells more
|
|
76
|
+
than "Submit". Keep the action's name consistent through progress, confirmation,
|
|
77
|
+
and recovery. Explain what went wrong and how to proceed; give empty states a
|
|
78
|
+
useful next step. Fit wording to the audience and task, including concise labels
|
|
79
|
+
for repeated work and enough explanation for unfamiliar decisions.
|
|
80
|
+
|
|
55
81
|
## Document and verify
|
|
56
82
|
|
|
57
83
|
Keep typed props, examples, state behavior, token hooks, and important tradeoffs
|
|
@@ -61,5 +87,10 @@ adapted implementation as independent solely because it uses native primitives.
|
|
|
61
87
|
|
|
62
88
|
Run the actual project's checks after changes and inspect the real consumer
|
|
63
89
|
showcase. Verify keyboard/focus and supported themes alongside visual states.
|
|
90
|
+
Review the rendered result against the design intent: is the main task obvious,
|
|
91
|
+
does the hierarchy survive realistic content and smaller containers, and does
|
|
92
|
+
each visual treatment help understanding? Use current/candidate captures when
|
|
93
|
+
comparing a change; inspect interactions separately. Resolve visual mismatches
|
|
94
|
+
in their owning tokens, styles, or APIs. Keep review framing development-only.
|
|
64
95
|
Only introduce component-local lint for a demonstrated, statically provable
|
|
65
96
|
misuse; token and ownership checks remain general tooling concerns.
|
|
@@ -30,6 +30,22 @@ Do not classify by import count, JSX element count, names or file length. Review
|
|
|
30
30
|
the capability and its consumer contract. Preserve valid APIs when tracing is
|
|
31
31
|
inconclusive; do not make an export private or add a product prop just to pass.
|
|
32
32
|
|
|
33
|
+
## Share UI across websites and MCP Apps
|
|
34
|
+
|
|
35
|
+
Build and adapt UI through the project's public design-system APIs. Websites
|
|
36
|
+
and MCP Apps use the same components, patterns, controllers, tokens and styles.
|
|
37
|
+
Application adapters supply data and actions and own mounting, routing, stores,
|
|
38
|
+
MCP communication, tool-result mapping and serving. Keep those integrations out
|
|
39
|
+
of reusable UI implementations. ADS's own MCP server supports design-system
|
|
40
|
+
development, inspection and rendered review.
|
|
41
|
+
|
|
42
|
+
The ADS showcase renders the real public implementation inside an MCP App.
|
|
43
|
+
Its previews and registered checks provide evidence for the exercised states,
|
|
44
|
+
themes, sizes and environment. Relevant application checks verify website
|
|
45
|
+
integration. Reuse existing verification; add targeted checks when a change
|
|
46
|
+
exposes an uncovered requirement. Record what was actually verified, including
|
|
47
|
+
any remaining host or integration assumptions.
|
|
48
|
+
|
|
33
49
|
## Demonstrate the production implementation
|
|
34
50
|
|
|
35
51
|
Product patterns are reusable application UI, not showcase replicas. A scenario
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
# Node and Bun development runtimes
|
|
2
|
+
|
|
3
|
+
ADS supports Node 22.12+ and Bun 1.3.13+. A Bun project does not need Node or npm.
|
|
4
|
+
The launcher selects the interpreter; package manager and UI framework are
|
|
5
|
+
separate concerns. Preserve the target project's choices.
|
|
6
|
+
|
|
7
|
+
For a Node/npm project, run inside its package root:
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
npx @reqvire-org/ads init --framework react
|
|
11
|
+
npm install
|
|
12
|
+
npm run build
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
For Bun:
|
|
16
|
+
|
|
17
|
+
```sh
|
|
18
|
+
bunx --bun @reqvire-org/ads init --framework react
|
|
19
|
+
bun install
|
|
20
|
+
bun --bun run build
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Use `--framework preact` for native Preact. Init detects an existing package
|
|
24
|
+
manager or infers Bun from its launcher when no project choice exists. Use
|
|
25
|
+
`--package-manager bun` only for an explicit override; existing project metadata
|
|
26
|
+
and lockfiles take precedence over the launcher.
|
|
27
|
+
Use the installed/pinned ADS version. Never substitute an unrelated bare package.
|
|
28
|
+
|
|
29
|
+
`--bun` is essential to an explicit Bun runtime choice: many JavaScript tools
|
|
30
|
+
have a `#!/usr/bin/env node` shebang. Bun can otherwise launch Node when it is
|
|
31
|
+
available. Generated ADS scripts force Bun, including Oxlint and its JavaScript
|
|
32
|
+
plugins. Existing application scripts and lockfiles are preserved; translate
|
|
33
|
+
nested `npm` commands when intentionally converting an application to Bun.
|
|
34
|
+
Dependency packages and custom build commands must support the chosen runtime.
|
|
35
|
+
|
|
36
|
+
For ordinary `bun run build` commands to always select Bun, the project may
|
|
37
|
+
set its own `bunfig.toml`:
|
|
38
|
+
|
|
39
|
+
```toml
|
|
40
|
+
[run]
|
|
41
|
+
bun = true
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
This is equivalent to passing `--bun` for script execution. ADS does not replace
|
|
45
|
+
an existing Bun configuration. Keep the explicit flag in MCP launch settings.
|
|
46
|
+
|
|
47
|
+
## MCP connection
|
|
48
|
+
|
|
49
|
+
For Bun, use these values in Claude's `.mcp.json` or Codex's MCP configuration:
|
|
50
|
+
|
|
51
|
+
```json
|
|
52
|
+
{
|
|
53
|
+
"command": "bunx",
|
|
54
|
+
"args": ["--bun", "@reqvire-org/ads", "mcp"]
|
|
55
|
+
}
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
Add `--mutations` to enable guarded source changes and `--port 4191` when the
|
|
59
|
+
project pins its showcase port. Append a project directory when the client
|
|
60
|
+
does not launch in the package root. For a local installed tool, use the
|
|
61
|
+
generated `ads-mcp` or `ads-read-mcp` package script. Keep stdout for JSON-RPC.
|
|
62
|
+
|
|
63
|
+
## Compiler and browser workers
|
|
64
|
+
|
|
65
|
+
Use the portable command in `ds.config.json`:
|
|
66
|
+
|
|
67
|
+
```json
|
|
68
|
+
{
|
|
69
|
+
"mcp": {
|
|
70
|
+
"previewWatch": {
|
|
71
|
+
"command": "runtime",
|
|
72
|
+
"args": ["scripts/build-mcp-previews.mjs", "--watch"]
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
`runtime` means the interpreter that launched ADS, including its absolute
|
|
79
|
+
executable when available through an environment manager. It also works in
|
|
80
|
+
registered behavior profiles, with the project's installed runner entry file in
|
|
81
|
+
`args`. Explicit `node`, `bun` and custom executable commands retain their meaning;
|
|
82
|
+
ADS never silently substitutes another interpreter for them. Node-specific
|
|
83
|
+
commands still need Node, even in a Bun-managed package.
|
|
84
|
+
|
|
85
|
+
Mandatory architecture/Oxlint validation, ownership guards and screenshot workers
|
|
86
|
+
inherit ADS's interpreter. Browser tests remain project-owned Playwright specs;
|
|
87
|
+
Chromium/WebKit is a separate browser dependency, not a Node requirement. Runtime
|
|
88
|
+
identity participates in behavior evidence freshness.
|
|
89
|
+
|
|
90
|
+
For diagnosis, inspect `ads_status.project.runtime`: `name`, `version`,
|
|
91
|
+
`executable` and `binDir`. `project.commands` contains the discovered package
|
|
92
|
+
commands with the appropriate Bun flags. The MCP process and agent shell may
|
|
93
|
+
have different PATHs; use these reported values instead of scanning the machine
|
|
94
|
+
or installing another runtime without evidence.
|
|
95
|
+
|
|
96
|
+
Preview watching excludes standard output trees by default, including nested
|
|
97
|
+
Cargo `target/` directories, without allocating watches inside them. Explicit
|
|
98
|
+
`sourceDir` and `dsDir` take priority over those default output names. Register
|
|
99
|
+
custom outputs in `assets.generatedPaths`; do not copy the default list into a
|
|
100
|
+
new project's config. `ENOSPC` from `fs.watch` can mean the OS watch limit rather
|
|
101
|
+
than disk space: inspect the failing path and generated-tree traversal before
|
|
102
|
+
raising system limits or deleting files. Generated churn must not mark previews
|
|
103
|
+
stale; actual source changes must still rebuild.
|
|
104
|
+
|
|
105
|
+
Bundled binary renderers may load their forwarded `blob:` resources. ADS's
|
|
106
|
+
showcase/explorer permits WebAssembly compilation while keeping JavaScript eval
|
|
107
|
+
and undeclared network requests blocked. External MCP hosts control their CSP.
|
|
108
|
+
Test the actual renderer inside the App; a successful website build does not
|
|
109
|
+
establish binary-resource or WebAssembly support. Keep transport and resource
|
|
110
|
+
loading in explicit injected adapters or declared renderer dependencies.
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: ads-import
|
|
3
|
-
description: "Import selected components, patterns, styles,
|
|
3
|
+
description: "Import selected source ADS components, patterns, styles, brand artwork or theme values into a project's design system. Check compatibility with the destination's framework, dependencies, APIs and token policy before applying. Preserve behavior, credits and license notices."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
+
For Node/Bun setup, MCP launch and compiler workers, read
|
|
7
|
+
[runtimes.md](references/runtimes.md).
|
|
8
|
+
|
|
6
9
|
# ADS Import
|
|
7
10
|
|
|
8
11
|
When ADS MCP is connected, use `ads_status`/`ads_catalog` to inspect the destination
|
|
@@ -62,8 +65,9 @@ renderers, build aliases or `review-import` / `review-contract` diagnostics, rea
|
|
|
62
65
|
|
|
63
66
|
A component provides one cohesive UI capability; a pattern arranges capabilities
|
|
64
67
|
into reusable structures or workflows. Components may compose components/controllers;
|
|
65
|
-
layout patterns may arrange slots. Do not classify by component count. For
|
|
66
|
-
|
|
68
|
+
layout patterns may arrange slots. Do not classify by component count. For shared
|
|
69
|
+
website/MCP App use, owner selection, or `component-dependency`,
|
|
70
|
+
`component-contract` or `component-style` diagnostics, read
|
|
67
71
|
[layer responsibilities and contracts](references/layers.md), also served as
|
|
68
72
|
`ads://guides/layers`. Preserve public APIs and documented non-state styling hooks.
|
|
69
73
|
|
|
@@ -191,6 +195,22 @@ Build a working import inventory: selected items, their transitive runtime/style
|
|
|
191
195
|
dependencies, assets, external packages, source guides, and relevant tests/rules.
|
|
192
196
|
Use source exports and dependency edges to distinguish public items from helpers.
|
|
193
197
|
|
|
198
|
+
## Establish destination compatibility
|
|
199
|
+
|
|
200
|
+
Before preparing changes, read [compatibility.md](references/compatibility.md)
|
|
201
|
+
and compare the selected source with the destination's actual contracts. Identify
|
|
202
|
+
what fits, what needs scoped adaptation, and what remains unresolved. The source
|
|
203
|
+
using ADS or passing its own checks does not establish destination compatibility.
|
|
204
|
+
Preserve destination policy while resolving framework/dependency requirements,
|
|
205
|
+
public API collisions, token meanings, styling ownership and runtime assumptions.
|
|
206
|
+
Resolve source differences within the import, including scoped reimplementation
|
|
207
|
+
when needed; the user need not restart with another skill. Use source/destination
|
|
208
|
+
versions to investigate changed contracts, not as a patch/minor/major acceptance
|
|
209
|
+
filter. Keep destination policy and requested capabilities intact. Resolve material
|
|
210
|
+
conflicts before applying the affected import. Verify the integrated candidate
|
|
211
|
+
with destination checks and rendered evidence, then report what was established
|
|
212
|
+
and any remaining limits.
|
|
213
|
+
|
|
194
214
|
## Shared token contract and theme values
|
|
195
215
|
|
|
196
216
|
Read [tokens.md](references/tokens.md). Shared token names, meanings, and value
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
interface:
|
|
2
2
|
display_name: "ADS Import"
|
|
3
|
-
short_description: "Import ADS
|
|
4
|
-
default_prompt: "Use $ads-import
|
|
3
|
+
short_description: "Import ADS source after checking destination compatibility"
|
|
4
|
+
default_prompt: "Use $ads-import to check selected source ADS items, artwork or theme values against the destination's contracts, integrate compatible source and verify the result in the destination."
|
|
@@ -142,8 +142,8 @@ command. For a project with an installed Playwright test runner:
|
|
|
142
142
|
"behaviorProfiles": {
|
|
143
143
|
"widget": {
|
|
144
144
|
"runner": "playwright",
|
|
145
|
-
"command": "
|
|
146
|
-
"args": ["
|
|
145
|
+
"command": "runtime",
|
|
146
|
+
"args": ["node_modules/@playwright/test/cli.js", "test"],
|
|
147
147
|
"mode": "browser",
|
|
148
148
|
"timeoutMs": 60000
|
|
149
149
|
}
|
|
@@ -152,7 +152,10 @@ command. For a project with an installed Playwright test runner:
|
|
|
152
152
|
}
|
|
153
153
|
```
|
|
154
154
|
|
|
155
|
-
Here `
|
|
155
|
+
Here `runtime` uses the Node or Bun interpreter that launched ADS, and the
|
|
156
|
+
project supplies the installed Playwright entry. Explicit executable commands
|
|
157
|
+
retain their meaning. A Bun package-script profile can use `command: "bun"`
|
|
158
|
+
with `args: ["--bun", "run", "test:behavior", "--"]`. The Playwright
|
|
156
159
|
configuration must discover colocated spec files. Configure browser installation
|
|
157
160
|
and any required test setup in that project. The ADS tooling host gains no
|
|
158
161
|
framework or browser dependency from a profile.
|