kitskill 0.0.0-stage → 0.1.1

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 (41) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +397 -2
  3. package/THIRD-PARTY-NOTICES.md +24 -0
  4. package/banner.jpeg +0 -0
  5. package/bin/cli.mjs +464 -0
  6. package/lib/fs-safe.mjs +136 -0
  7. package/lib/hook.mjs +79 -0
  8. package/lib/installer.mjs +449 -0
  9. package/lib/manifest.mjs +47 -0
  10. package/lib/permissions.mjs +175 -0
  11. package/lib/profile.mjs +124 -0
  12. package/lib/project-scan.mjs +186 -0
  13. package/lib/validator.mjs +72 -0
  14. package/logo.png +0 -0
  15. package/logohead.png +0 -0
  16. package/package.json +54 -4
  17. package/templates/core/memory/PROJECT.md +33 -0
  18. package/templates/core/memory/decisions/ADR.md +22 -0
  19. package/templates/core/profile.json +17 -0
  20. package/templates/core/router.md +89 -0
  21. package/templates/core/state/STATE.md +32 -0
  22. package/templates/opencode/policy-plugin.js +66 -0
  23. package/templates/scripts/graph-client.mjs +231 -0
  24. package/templates/scripts/review-packet.mjs +250 -0
  25. package/templates/scripts/shrink-output.mjs +159 -0
  26. package/templates/scripts/ui-audit.mjs +639 -0
  27. package/templates/scripts/verify.mjs +293 -0
  28. package/templates/skills/ks-api/SKILL.md +87 -0
  29. package/templates/skills/ks-api/references/api-contract.md +131 -0
  30. package/templates/skills/ks-build/SKILL.md +92 -0
  31. package/templates/skills/ks-data/SKILL.md +81 -0
  32. package/templates/skills/ks-data/references/data-migrations.md +120 -0
  33. package/templates/skills/ks-deliver/SKILL.md +99 -0
  34. package/templates/skills/ks-deliver/references/doc-patterns.md +180 -0
  35. package/templates/skills/ks-design/SKILL.md +147 -0
  36. package/templates/skills/ks-design/references/app-models.md +216 -0
  37. package/templates/skills/ks-design/references/design-contract.md +98 -0
  38. package/templates/skills/ks-design/references/visual-directions.md +159 -0
  39. package/templates/skills/ks-plan/SKILL.md +84 -0
  40. package/templates/skills/ks-review/SKILL.md +71 -0
  41. package/templates/skills/ks-secure/SKILL.md +55 -0
@@ -0,0 +1,120 @@
1
+ # Data and migration reference
2
+
3
+ Use this after `ks-data` has named access patterns and constraints.
4
+
5
+ ## Store choice
6
+
7
+ | Need | Default | Use something else when |
8
+ |---|---|---|
9
+ | Relations, transactions, constraints | PostgreSQL | Embedded/single-user: SQLite |
10
+ | Simple cache / ephemeral counters | Redis | Durable truth: SQL |
11
+ | Document-shaped, variable fields | PostgreSQL JSONB | A measured document workload justifies MongoDB |
12
+ | Massive simple key access | SQL first | DynamoDB/Cassandra only with measured scale |
13
+ | Full-text search | PostgreSQL FTS | A dedicated search engine when relevance/scale demands it |
14
+ | Time series | PostgreSQL partitioned tables | A time-series engine when volume/retention demand it |
15
+
16
+ Do not add polyglot persistence without an owner, a backup plan, and a measured
17
+ reason.
18
+
19
+ ## Modeling and types
20
+
21
+ - Conceptual → logical → physical; name business entities.
22
+ - Primary keys: UUID/opaque string unless a safe natural key exists.
23
+ - Money: `NUMERIC(precision, scale)`, never `FLOAT`.
24
+ - Time: `TIMESTAMPTZ`/UTC; store the zone when the domain needs it.
25
+ - Status: constrained enum/check; not free text.
26
+ - Constraints: `NOT NULL`, `UNIQUE`, foreign keys, checks. Validate at the
27
+ boundary too.
28
+ - Normalize for integrity; denormalize only for measured read patterns.
29
+ - Do not expose table columns directly as API fields; translate.
30
+
31
+ ## Migration safety
32
+
33
+ | Change | Safer pattern |
34
+ |---|---|
35
+ | Add nullable column | Add first; backfill; add constraint later |
36
+ | Add NOT NULL/default | Add nullable/default; backfill; validate; enforce |
37
+ | Add index on large table | `CREATE INDEX CONCURRENTLY` (PostgreSQL) or online DDL (MySQL) |
38
+ | Add FK/check | Add `NOT VALID` where supported; validate in background |
39
+ | Rename column | Add new; dual-write/read; migrate; remove old |
40
+ | Change type | New column; backfill; swap; remove old |
41
+ | Drop column/table | Stop reads/writes first; backup; drop later |
42
+
43
+ Rules: versioned scripts, deterministic order, no manual prod DDL, test on
44
+ realistic volume, separate schema migration from backfill, and know the lock
45
+ behavior of your engine.
46
+
47
+ ## Expand-contract
48
+
49
+ 1. **Expand:** add the new nullable column/table/index; old and new code work.
50
+ 2. **Migrate:** deploy code that writes both or reads the new source; backfill.
51
+ 3. **Switch:** make the new path authoritative; verify counts/checksums.
52
+ 4. **Contract:** remove the old column/table/index after no code uses it.
53
+
54
+ Use when old and new app versions must coexist. A solo app with a short deploy
55
+ window may use a simpler additive migration.
56
+
57
+ ## Backfill
58
+
59
+ - Separate job/script from the schema migration.
60
+ - Batch by stable key/time range, not offset on a changing table.
61
+ - Idempotent upserts; checkpoint after each batch; resume after failure.
62
+ - Throttle I/O; pause if replication lag/latency rises.
63
+ - Validate row counts, checksums, nulls, uniqueness, and business invariants.
64
+ - Do not run two backfills on the same table concurrently.
65
+ - Keep a dry-run/count mode and a rollback/compensation plan.
66
+
67
+ ## Indexes
68
+
69
+ - Use `EXPLAIN (ANALYZE, BUFFERS)` before and after.
70
+ - B-tree: equality/range/order; GIN: arrays/JSONB/full-text; GiST/SP-GiST:
71
+ geometry; BRIN: huge correlated ranges.
72
+ - Index selective filters and joins; avoid low-cardinality-only indexes.
73
+ - Avoid functions/leading wildcards on the indexed side.
74
+ - Every index costs writes and space; remove unused ones.
75
+ - Create large indexes concurrently/online; monitor build impact.
76
+
77
+ ## Backup, rollback, recovery
78
+
79
+ - Backup before destructive work; verify the backup; test restore.
80
+ - Prefer roll-forward/compensating migrations over destructive down-migrations.
81
+ - Define RPO/RTO for the project; a daily backup is not a restore test.
82
+ - Record the abort signal (errors, latency, locks, mismatch) and the recovery
83
+ command.
84
+ - For failed backfills, resume from checkpoint; do not duplicate side effects.
85
+
86
+ ## Tests
87
+
88
+ - Migration on an empty database and on representative data.
89
+ - Constraints and invalid data.
90
+ - Backfill idempotency and checkpoint resume.
91
+ - Query plans for critical queries.
92
+ - Restore drill in a staging/local environment.
93
+ - Data quality: counts, nulls, uniqueness, referential integrity, freshness.
94
+
95
+ ## Security and retention
96
+
97
+ - Least-privilege database users; app user cannot run DDL in production.
98
+ - TLS in transit, encryption at rest, secrets outside code.
99
+ - Classify PII; define retention, deletion, and masked test data.
100
+ - Audit destructive operations; never copy production PII into tests.
101
+
102
+ ## Review checklist
103
+
104
+ - [ ] Access patterns, volume, consistency, and retention are named.
105
+ - [ ] Store choice is justified; no unnecessary second store.
106
+ - [ ] Types and constraints protect money, time, status, and relations.
107
+ - [ ] Migration order is safe for the deployed app; locks are understood.
108
+ - [ ] Backfill is idempotent, batched, checkpointed, and validated.
109
+ - [ ] Indexes are based on query plans, not guesses.
110
+ - [ ] Backup/restore and rollback/roll-forward are defined.
111
+ - [ ] Tests cover empty, representative, invalid, and restore cases.
112
+ - [ ] PII, privileges, TLS, and retention are addressed.
113
+ - [ ] Runbook and owner are recorded.
114
+
115
+ ## Small-project defaults
116
+
117
+ PostgreSQL/SQLite, one schema, versioned migrations, additive changes, batched
118
+ backfill only when needed, measured indexes, daily backup with a tested restore.
119
+ No sharding, data mesh, lakehouse, or streaming platform unless the product
120
+ actually needs it.
@@ -0,0 +1,99 @@
1
+ ---
2
+ name: ks-deliver
3
+ description: "Write documentation or ship a change: README, quickstart, guides, reference, ADR, runbook, changelog, migration guide, release, rollback, and handoff. Use when docs are missing or a change is ready to deliver."
4
+ license: MIT
5
+ ---
6
+
7
+ # ks-deliver
8
+
9
+ Write for the reader's task, not for the author's memory. Docs ship with the
10
+ change that makes them true.
11
+
12
+ ## When to use
13
+
14
+ - A README, quickstart, user guide, how-to, reference, explanation, ADR,
15
+ runbook, changelog, or migration guide.
16
+ - A change that alters setup, behavior, commands, screenshots, contracts, or
17
+ operation.
18
+ - Documentation that is missing, stale, too long, or hard to follow.
19
+ - A change that is ready to release or hand off, including changelog, runbook,
20
+ rollback, and evidence.
21
+
22
+ Skip for a code comment that belongs beside the code.
23
+
24
+ ## Procedure
25
+
26
+ 1. **Name the reader and the type.** Use the Diátaxis split: tutorial, how-to,
27
+ reference, explanation; add README, ADR, runbook, changelog, or migration
28
+ guide when needed. Do not mix types.
29
+ 2. **Find the source of truth.** Code, OpenAPI, schema, config, tests, or
30
+ decisions. Link to it; do not duplicate it in prose.
31
+ 3. **Outline before writing.** A README starts with what/why, install, executable
32
+ quickstart, usage, docs links, support, license. A how-to starts with
33
+ prerequisites, numbered steps, and the expected result.
34
+ 4. **Write the shortest useful version.** Short sentences, active voice, second
35
+ person, descriptive headings, concrete commands, and expected output. Define
36
+ jargon on first use.
37
+ 5. **Test the examples.** Run every command and snippet on a clean state. If it
38
+ cannot be run, say so and mark it `UNVERIFIED`.
39
+ 6. **Use docs-as-code.** Keep docs in the repo, review them in the same change,
40
+ and update them with the code. Use relative links and versioned assets.
41
+ 7. **Make it accessible and translatable.** Alt text on images, descriptive link
42
+ text, heading hierarchy, no color-only meaning, and short sentences. Write in
43
+ the project's language; package artifacts remain English.
44
+ 8. **Keep it fresh.** Remove or archive superseded pages; update changelog and
45
+ deprecation notes; check links and screenshots.
46
+
47
+ ## Document types
48
+
49
+ - **README:** what it is, why, install, quickstart, usage, docs, support,
50
+ license, maintainers.
51
+ - **Tutorial:** guided learning; one path; working result.
52
+ - **How-to:** solve a real task; prerequisites, steps, result, common errors.
53
+ - **Reference:** exact facts: commands, options, endpoints, fields, limits.
54
+ - **Explanation:** context, trade-offs, architecture, why.
55
+ - **ADR:** context, decision, alternatives, consequences.
56
+ - **Runbook:** trigger, checks, commands, rollback, escalation.
57
+ - **Changelog:** added, changed, deprecated, removed, fixed, security.
58
+ - **Migration guide:** who is affected, before/after, steps, rollback.
59
+
60
+ ## Small-project defaults
61
+
62
+ - One README, one quickstart, one how-to per core task.
63
+ - API reference generated from the contract when one exists.
64
+ - One changelog; one ADR per hard-to-reverse choice.
65
+ - No docs portal, CMS, or metrics program until the docs exist.
66
+
67
+ ## Delivery
68
+
69
+ At close, ship the smallest evidence-backed handoff:
70
+
71
+ - changelog entry for behavior, contract, or operation changes;
72
+ - runbook step for new setup, migration, backup/restore, or rollback;
73
+ - one short ADR only for a hard-to-reverse choice;
74
+ - verification evidence: checks run, results, and anything `UNVERIFIED`;
75
+ - known limitations and the next action.
76
+
77
+ Do not automate deployment unless asked. Do not claim a release is ready without
78
+ the evidence.
79
+
80
+ ## Output
81
+
82
+ - Reader, document type, and source of truth.
83
+ - Files changed and what was verified.
84
+ - Commands/examples run; anything `UNVERIFIED`.
85
+
86
+ ## Anti-patterns
87
+
88
+ - README that describes the project but never shows how to run it.
89
+ - Quickstart that only works on the author's machine.
90
+ - Mixing tutorial, reference, and explanation in one page.
91
+ - Stale screenshots or commands.
92
+ - Absolute links that break in a clone or fork.
93
+ - Documenting an API twice by hand.
94
+ - Long introductions before the first useful instruction.
95
+
96
+ ## Reference
97
+
98
+ `references/doc-patterns.md` has the type matrix, README/quickstart/how-to/
99
+ reference/ADR/runbook/changelog templates, style rules, and review checklist.
@@ -0,0 +1,180 @@
1
+ # Documentation patterns
2
+
3
+ Choose the document by the reader's need, not by the folder name.
4
+
5
+ ## Type matrix
6
+
7
+ | Type | Reader need | Shape | Avoid |
8
+ |---|---|---|---|
9
+ | README | Decide and start | What/why, install, quickstart, usage, links, support, license | Long tutorial, full API reference |
10
+ | Tutorial | Learn by doing | One path, prerequisites, steps, working result | Options, reference tables, digressions |
11
+ | How-to | Solve a real task | Goal, prerequisites, numbered steps, result, common errors | Teaching from zero |
12
+ | Reference | Look up exact facts | Commands, options, fields, limits, status codes | Narrative teaching |
13
+ | Explanation | Understand why | Context, trade-offs, architecture, alternatives | Step-by-step instructions |
14
+ | ADR | Preserve a decision | Context, decision, alternatives, consequences | Meeting notes |
15
+ | Runbook | Operate and recover | Trigger, checks, commands, rollback, escalation | Design rationale |
16
+ | Changelog | Track change | Added, changed, deprecated, removed, fixed, security | Marketing copy |
17
+ | Migration guide | Move safely | Who is affected, before/after, steps, rollback | Vague "update your code" |
18
+
19
+ ## README template
20
+
21
+ ```markdown
22
+ # Project name
23
+
24
+ One or two sentences: what it does and who it is for.
25
+
26
+ ![build](...) ![license](...)
27
+
28
+ ## Why use it
29
+ ## Requirements
30
+ ## Install
31
+ ## Quickstart
32
+ ## Usage
33
+ ## Documentation
34
+ ## Support
35
+ ## Contributing
36
+ ## License
37
+ ```
38
+
39
+ Rules: the quickstart must run from a clean clone; show expected output; link to
40
+ detailed docs instead of pasting them; use relative links; keep it under 500 KiB.
41
+
42
+ ## Quickstart template
43
+
44
+ ```markdown
45
+ ## Quickstart
46
+
47
+ Requires: Node.js 20+, PostgreSQL 16.
48
+
49
+ 1. `cp .env.example .env`
50
+ 2. `npm install`
51
+ 3. `npm run db:migrate`
52
+ 4. `npm run dev`
53
+ 5. Open http://localhost:3000 and sign in with `demo@example.com` / `demo`.
54
+
55
+ Expected: the dashboard shows "No projects yet".
56
+ ```
57
+
58
+ Every command is copyable. Every version is explicit. Every result is observable.
59
+
60
+ ## How-to template
61
+
62
+ ```markdown
63
+ # How to export a project
64
+
65
+ Use this when you need a portable copy.
66
+
67
+ ## Before you start
68
+ - You are an owner of the project.
69
+ - The project has at least one saved version.
70
+
71
+ ## Steps
72
+ 1. Open **Settings → Export**.
73
+ 2. Choose **JSON**.
74
+ 3. Select **Download**.
75
+
76
+ ## Expected result
77
+ A file named `project-<date>.json` downloads.
78
+
79
+ ## Troubleshooting
80
+ - **Export disabled:** you are not an owner.
81
+ - **Empty file:** the project has no saved version.
82
+ ```
83
+
84
+ ## Reference template
85
+
86
+ - Group by object or command, not by tutorial order.
87
+ - One row per field/flag: name, type, required, default, constraints, example.
88
+ - State limits explicitly (page size, payload, rate).
89
+ - Link to how-tos and explanations; do not teach inside reference.
90
+ - Generate from OpenAPI/schema when possible; do not hand-maintain duplicates.
91
+
92
+ ## Explanation template
93
+
94
+ - Start with the problem and the constraint.
95
+ - Compare at most two or three alternatives.
96
+ - State the chosen trade-off and what it costs.
97
+ - Link to the decision/ADR and the practical how-to.
98
+
99
+ ## ADR template
100
+
101
+ ```markdown
102
+ # ADR-0001: Choose PostgreSQL
103
+
104
+ ## Context
105
+ ## Decision
106
+ ## Alternatives
107
+ ## Consequences
108
+ ## Status
109
+ ```
110
+
111
+ Use one ADR per hard-to-reverse choice. Supersede rather than rewrite history.
112
+
113
+ ## Runbook template
114
+
115
+ ```markdown
116
+ # Runbook: API latency above 1s
117
+
118
+ ## Trigger
119
+ ## First checks
120
+ ## Mitigation
121
+ ## Rollback
122
+ ## Escalation
123
+ ## After the incident
124
+ ```
125
+
126
+ Commands must be exact; include expected output and a stop condition.
127
+
128
+ ## Changelog template
129
+
130
+ ```markdown
131
+ ## [1.2.0] - 2026-11-30
132
+ ### Added
133
+ ### Changed
134
+ ### Deprecated
135
+ ### Removed
136
+ ### Fixed
137
+ ### Security
138
+ ```
139
+
140
+ Link the version to the diff/tag. Do not list internal refactors with no user
141
+ effect unless the project needs that history.
142
+
143
+ ## Style and accessibility
144
+
145
+ - Active voice, second person, short sentences, descriptive headings.
146
+ - Define jargon on first use; expand acronyms.
147
+ - Code in monospace; UI labels in bold; commands in copyable blocks.
148
+ - Alt text for every meaningful image; decorative images empty alt.
149
+ - Descriptive link text, not "click here".
150
+ - Heading hierarchy without skipped levels.
151
+ - Do not use color alone to convey state.
152
+ - Write in the project's language; package artifacts stay English.
153
+
154
+ ## Freshness and docs-as-code
155
+
156
+ - Docs live with the code and are reviewed in the same change.
157
+ - Update docs when setup, behavior, commands, screenshots, contracts, or
158
+ operations change.
159
+ - Remove or archive superseded pages; keep one source of truth.
160
+ - Add a short "last verified" date only if the project will maintain it.
161
+ - Check relative links and images in CI when available.
162
+ - Prefer generated API reference over manually duplicated endpoint lists.
163
+
164
+ ## Review checklist
165
+
166
+ - [ ] Reader, type, and source of truth are named.
167
+ - [ ] The first useful instruction appears early.
168
+ - [ ] Commands and examples were run on a clean state.
169
+ - [ ] Prerequisites and expected results are explicit.
170
+ - [ ] Links are relative and work after clone.
171
+ - [ ] Images have alt text and are current.
172
+ - [ ] Reference is exact; how-to is task-oriented; explanation is separate.
173
+ - [ ] Changelog/deprecation/migration notes are updated when needed.
174
+ - [ ] Language matches the project; no stale claims or screenshots.
175
+
176
+ ## Small-project defaults
177
+
178
+ One README, one quickstart, one how-to per core task, one reference generated from
179
+ the contract, one changelog, one ADR per hard choice, one runbook for production.
180
+ No portal, CMS, or doc-metrics program until the content exists.
@@ -0,0 +1,147 @@
1
+ ---
2
+ name: ks-design
3
+ description: "Design or refactor a user interface with a deliberate visual direction. Use when creating a page, screen, dashboard, form, or component set, or when a UI looks generic or broken."
4
+ license: MIT
5
+ ---
6
+
7
+ # ks-design
8
+
9
+ Design around the product and task, then prove it renders and works.
10
+
11
+ ## When to use
12
+
13
+ - A new page, screen, dashboard, form, settings surface, or component set.
14
+ - A redesign, or a UI that looks generic, cluttered, or inconsistent.
15
+ - A visual change that affects hierarchy, navigation, or interaction.
16
+
17
+ Skip for backend-only work or a copy change with no visual effect.
18
+
19
+ ## Fast path (bounded UI)
20
+
21
+ When the task names the files, sections, or a stop condition, follow it exactly:
22
+
23
+ - use exactly the named sections and files; do not add the full contract;
24
+ - run a one-line brief (user, outcome, first screen); never skip it;
25
+ - pick one direction and state why in one line;
26
+ - write each file once; do not iterate on polish;
27
+ - run only the checks the task names; do not open a browser or capture screenshots
28
+ unless asked;
29
+ - aim for 8 tool calls; if you pass 12, stop and report what is missing.
30
+
31
+ A bounded task is done when the named files and sections exist and the named checks
32
+ pass. Keep the final answer to 3–5 lines.
33
+
34
+ ## 1. Minimal brief (always)
35
+
36
+ Ask before layout; 3–5 lines:
37
+
38
+ - Product, role, context, opening intent.
39
+ - Why they open it.
40
+ - First screen, secondary actions, navigation (each tab/shortcut: label,
41
+ destination, what it is not), session, tone.
42
+
43
+ If one-shot, state assumptions and proceed.
44
+
45
+ ## 2. Choose the opening model
46
+
47
+ Pick one or more: dashboard, direct tool/workspace, catalog, feed, inbox,
48
+ landing, map, player. Segment is context, not the model; products can combine
49
+ them. Use the seven layers in `references/app-models.md` when unsure.
50
+
51
+ ## 3. Read or create DESIGN.md
52
+
53
+ Read `DESIGN.md` if present; load only the sections needed. If absent, create it
54
+ from `references/design-contract.md` before editing UI.
55
+
56
+ Required: Product, Mode, Direction, Tokens, Components, Platform, States. If the
57
+ task names another set, use it and add nothing.
58
+
59
+ ## 4. Choose a direction
60
+
61
+ - Read `references/visual-directions.md`; name one of its 20 styles, one palette,
62
+ one layout. A recolor or default cream/paper is not a direction.
63
+ - Unbounded or asked: propose two or three directions. Otherwise choose one and
64
+ state why in one line. Do not name a preset.
65
+ - **Refinement:** preserve identity, behavior, and copy; change only the scope.
66
+
67
+ A direction: type, color, spacing, surfaces, motion.
68
+
69
+ ## 5. Implement in order
70
+
71
+ 1. Tokens: color roles, type scale, spacing, radius, shadow, motion.
72
+ 2. Layout and hierarchy.
73
+ 3. Components and states: empty, loading, error, success, partial.
74
+ 4. Platform behavior.
75
+ 5. Accessibility floor.
76
+
77
+ ## First screen and layout
78
+
79
+ - By model: one-task tool action-first, no header/plans; multi-function tasks
80
+ main action first, header ok; campaigns message-first. Brief wins.
81
+ - Home is a destination; navigation is separate. Keep 3–5 global destinations,
82
+ not every action.
83
+ - First element follows the model: catalog→search, feed→content, inbox→
84
+ conversations, map→map, tool→tool, player→play; no gate before it. Brand leads
85
+ only on landing.
86
+ - Pick the layout for the goal (rows, cards, map, grid); no default. Validate with
87
+ dev or justify.
88
+ - Filters/tabs wrap or scroll per the brief; keep compact, show affordance, keep
89
+ labels. Check 320.
90
+ - Derive palette/type/shape from the product; generic fails.
91
+
92
+ ## 6. Platform notes
93
+
94
+ - **Web:** breakpoints, keyboard order, real viewports, no unintended page
95
+ scroll; contained scroll is allowed.
96
+ - **Desktop:** information density, shortcuts, stable panels, native feel.
97
+ - **Mobile:** 44px targets, thumb reach, one-handed navigation, safe areas,
98
+ orientation.
99
+
100
+ ## 7. Validate
101
+
102
+ - **Static:** contrast, hierarchy (primary before secondary/copy; overlays keep
103
+ context), spacing, states, consistency with `DESIGN.md`, `file:line`.
104
+ - **Horizontal scroll:** every scroller has a visible cue at 320; wrap it or add
105
+ a mask/arrow.
106
+ - **Functional:** forms submit, buttons act, validation and error paths work,
107
+ keyboard navigation works.
108
+ - **Rendered:** only when the task asks for it and a capture tool is available.
109
+ If the task forbids a browser or no tool exists, mark it out of scope or
110
+ `UNVERIFIED` and stop.
111
+
112
+ Never add rendered validation the task did not ask for. When the task asks for
113
+ visual proof and a capture tool exists, do not declare done from static review
114
+ alone.
115
+
116
+ ## Rules
117
+
118
+ - Banned clichés are a floor, not a generator: no gratuitous purple/blue
119
+ gradients, glassmorphism without purpose, identical card grids, emoji as icons,
120
+ or fonts with no hierarchy.
121
+ - Accessibility: 4.5:1 text contrast, visible focus, labels, target size, reduced
122
+ motion.
123
+ - Prefer real content over lorem ipsum; include long, empty, and error states.
124
+ - Do not add a dependency for a visual effect CSS can do.
125
+ - Do not restyle outside the requested surface.
126
+
127
+ ## Output
128
+
129
+ - Mode and direction, with the rationale.
130
+ - `DESIGN.md` changes.
131
+ - Files changed.
132
+ - Validation evidence, including anything `UNVERIFIED`.
133
+ - For a bounded task, 3–5 lines: files, checks, and gaps. No design essay.
134
+
135
+ ## Exit criteria
136
+
137
+ - The direction is stated and fits the product.
138
+ - Bounded task: the named files and sections exist and the named checks pass.
139
+ - Tokens and components are consistent with `DESIGN.md`.
140
+ - Critical flows work, not just render.
141
+ - The accessibility floor is met.
142
+ - Rendered validation was performed or explicitly marked `UNVERIFIED`.
143
+
144
+ ## Anti-patterns
145
+
146
+ - Choosing an aesthetic before understanding the task.
147
+ - Shipping a beautiful form that does not submit.