docs(agents): move preview showcase rule to root AGENTS.md

Refs #9167
This commit is contained in:
Turtle committed 2026-11-25 12:35:06 +08:00
1 parent 9dee11e36b
commit 2ee08e0abd
3 files changed
+2 -5

No files matched your search

-4
View File
@@ -37,10 +37,6 @@ Before handoff, review or push, check only new cumulative interactions, missing
These effort levels change only the additional design-review procedure. Existing [client test requirements](../../../packages/client/AGENTS.md), [GUI PR GIF requirements](../record-browser-gif/SKILL.md#every-gui-pull-request-includes-a-gif), and [designer/product approval](#design-review-escalation) still apply, including to local changes when their original triggers are met.
### PR preview coverage
Each pull request publishes a WebWorker preview ([workflow](../../../.github/workflows/build-preview-cloudflare.yml)) so reviewers can inspect its UI changes in the preview's built-in showcase, the `vfs-example` fixture. When a PR changes how Session content renders and the showcase Sessions lack that content, such as one kind of message content or a very long table, add showcase messages in the same PR so the changed part appears there. Change [the fixture generator](../../../packages/experimental/webworker-runtime/tests/vfs-example-fixture.ts) after its 28-turn history prefix, then update the current-generation files in [the committed fixture tree](../../../packages/experimental/webworker-runtime/tests/fixtures/vfs-example) to its output; [its spec](../../../packages/experimental/webworker-runtime/tests/vfs-example-fixture.spec.ts) requires them to match. Never edit the committed `session.v2.jsonl` or `session.v3.jsonl` predecessors.
## Select the rule owners
For layout changes, read the alignment and spacing references. Read the icon reference when selecting, drawing or reviewing artwork, or when adding, changing or reviewing icon buttons, icon-only actions or informational icons, including reuse without artwork changes. Other tasks use the relevant sections below. Do not load all references by default. Existing responsive and official-artwork skills retain their scopes; numeric scales stay with their implementation owners.
+1
View File
@@ -159,6 +159,7 @@ Real-API tests/demos read `DEEPSEEK_API_KEY`, optional `DEEPSEEK_BASE_URL`, and
- **Official plugin artwork:** use [dsh-official-plugin-artwork](.agents/skills/dsh-official-plugin-artwork/SKILL.md) for official and official experimental plugin icons; obtain designer approval before landing new glyphs.
- **Client UI copy is locale-owned.** Route product text through typed dictionaries and `t` or localized primitive props; `verify-client-ui-i18n` rejects hardcoded copy ([decision](.agents/notes/implemented/architecture/2026-08-23-locale-owned-client-ui-copy.md)). English copy, including plugin titles, uses sentence case ([rule](.agents/skills/dsh-prose-standard/SKILL.md#required-coverage-by-prose-location)).
- **UI changes:** use [dsh-client-ui-ux](.agents/skills/dsh-client-ui-ux/SKILL.md) as the design and review entry point; load its references only as needed.
- **PR previews show the change:** when a PR changes Session content rendering, such as a message kind or a very long table, that the preview showcase lacks, add that content to [its generator](packages/experimental/webworker-runtime/tests/vfs-example-fixture.ts) and current fixture files.
- **Testing policy** — [docs/testing.md](docs/testing.md). Every non-trivial model- or product-user-visible change updates a keyless recorded-session snapshot; [snapshot ownership](snapshots/AGENTS.md) reserves the top-level tree for session-driven cases and keeps other expected output owner-local. Fixtures replay on macOS/Linux; fix fixtures, not normalizers.
- **Design each tool's UI presentation up front.** Host presenters stay pure; Web cards derive from raw events and persisted result metadata ([cookbook](docs/cookbook/adding-a-tool.md)).
- **Plan unit, e2e, and snapshot coverage** for capability seams, lifecycle paths, and transcript output; include missing snapshot-harness support in the same change.
+1 -1
View File
@@ -1,5 +1,5 @@
{
"AGENTS.md": 2080,
"AGENTS.md": 2120,
"docs/AGENTS.md": 1430,
"docs/architecture.md": 2410,
"docs/cordis-primer.md": 600,