You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .agent/memory/semantic/DECISIONS.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,3 +14,9 @@
14
14
**Rationale:** Each layer has different retention and retrieval needs. Flat memory breaks at ~6 weeks.
15
15
**Alternatives considered:** Flat directory (fails at scale), vector store (over-engineered for single user).
16
16
**Status:** active
17
+
18
+
## 2026-04-26: Add `design-md` seed skill (DESIGN.md / Google Stitch)
19
+
**Decision:** Ship a sixth seed skill, `design-md`, that points coding agents at a root `DESIGN.md` (Google Stitch format) as the visual-system source of truth. Loads only when `DESIGN.md` exists at the project root, default behavior is read-only on the contract file, and validation prefers `npx @google/design.md lint DESIGN.md` over hand-checks.
20
+
**Rationale:**`DESIGN.md` is becoming a de facto contract for AI-driven UI work; without an explicit skill, agents invent ad-hoc tokens that drift from the user's design system. Gating on `DESIGN.md`-existence keeps the skill silent on projects that don't use the format.
21
+
**Alternatives considered:** Bundle the rules into `git-proxy` or `skillforge` (wrong scope, wrong triggers); leave it to per-project `.agent/skills/` overrides (loses the cross-harness benefit); broader triggers like "UI"/"frontend"/"components"/"styling" (too generic, loads on every UI task even without DESIGN.md).
Copy file name to clipboardExpand all lines: .agent/skills/_manifest.jsonl
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -4,3 +4,4 @@
4
4
{"name":"debug-investigator","version":"2026-01-01","triggers":["debug","why is this failing","investigate","stack trace","bug"],"tools":["bash","memory_reflect"],"preconditions":[],"constraints":["reproduce before fixing","fix root cause, not symptoms"],"category":"engineering"}
5
5
{"name":"deploy-checklist","version":"2026-01-01","triggers":["deploy","ship","release","go live"],"tools":["bash"],"preconditions":[],"constraints":["all tests passing","no unresolved TODOs in diff","requires human approval for production"],"category":"operations"}
6
6
{"name":"data-layer","version":"2026-04-25","triggers":["data layer","dashboard","agent analytics","resource usage","cron monitoring","daily report","tokens"],"tools":["bash","git"],"preconditions":[".agent exists"],"constraints":["local-only by default","no screenshot delivery without explicit user approval","do not commit private .agent/data-layer exports"],"category":"operations"}
7
+
{"name":"design-md","version":"2026-04-26","triggers":["DESIGN.md","design.md","Google Stitch","Stitch","design tokens","design system","visual design"],"tools":["bash","memory_reflect"],"preconditions":["DESIGN.md exists at project root"],"constraints":["prefer DESIGN.md tokens over invented values","do not modify DESIGN.md unless the user explicitly asks","preserve unknown sections when an edit IS authorised","validate when tooling is available"],"category":"design"}
preconditions: ["DESIGN.md exists at project root"]
7
+
constraints: ["prefer DESIGN.md tokens over invented values", "do not modify DESIGN.md unless the user explicitly asks", "preserve unknown sections when an edit IS authorised", "validate when tooling is available"]
8
+
---
9
+
10
+
# DESIGN.md — portable visual system contract
11
+
12
+
Use this skill when a task touches Google Stitch's `DESIGN.md` format or
13
+
the project explicitly references its design system / design tokens. The
14
+
skill loads only when `DESIGN.md` exists at the project root (see
15
+
`preconditions` above), so general UI / frontend / component work that
16
+
isn't tied to a `DESIGN.md` won't trip it.
17
+
18
+
## Source of truth
19
+
-`DESIGN.md` is a contract file. Read it before changing visual UI.
20
+
- Treat YAML front matter tokens as normative values: colors, typography,
21
+
spacing, radius, and component tokens are exact inputs to code.
22
+
- Treat the Markdown body as design rationale: it explains mood, hierarchy,
23
+
interaction intent, and where tokens should or should not be used.
24
+
- If no `DESIGN.md` exists this skill is inactive; for new UI, offer to
25
+
create one or ask for a brand/reference, but don't generate one
26
+
unprompted.
27
+
28
+
## Default: read-only
29
+
**Do not modify `DESIGN.md` unless the user explicitly asks for a design
30
+
system change.** Implementation work consumes the contract; it does not
31
+
edit it. Token additions, renames, or section restructures land in their
32
+
own commit with a clear message and (ideally) a Stitch round-trip.
33
+
34
+
## Implementation rules
35
+
1. Map tokens into the local styling system already in use: CSS variables,
36
+
Tailwind theme values, design-token JSON, component props, or native
37
+
styles.
38
+
2. Use token references and component patterns from `DESIGN.md` instead of
39
+
hard-coded one-off values.
40
+
3. Keep accessibility constraints intact. Do not weaken contrast, focus,
41
+
reduced-motion, or touch-target guidance unless the user explicitly
42
+
asks.
43
+
44
+
## When an edit IS authorised
45
+
1. Preserve unknown headings and extra prose; other agents or Stitch may
46
+
own them.
47
+
2. Express component variants as related entries
48
+
(`button-primary`, `button-primary-hover`, etc.).
49
+
3. Land token / structure changes in their own commit, separate from the
0 commit comments