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,216 @@
1
+ # App opening models
2
+
3
+ Choose the experience that solves the user's job first; choose the visual
4
+ language after. Category, intent, architecture, navigation, layout, visual
5
+ direction, and design system are separate decisions. A category does not
6
+ determine a style, and a style does not determine the architecture.
7
+
8
+ ## Seven layers
9
+
10
+ 1. **Functional category:** what the product lets the user do.
11
+ 2. **Session intent:** why the user opens it now.
12
+ 3. **Home architecture:** what appears first.
13
+ 4. **Navigation:** how the user moves between areas.
14
+ 5. **Layout:** how elements are distributed.
15
+ 6. **Visual direction:** personality, color, type, imagery, shape, motion.
16
+ 7. **Design system:** tokens and components that keep every screen consistent.
17
+
18
+ ## Twelve intents
19
+
20
+ Use one, or at most two: execute now, consult/monitor, discover/explore,
21
+ compare/select, transact, create/edit, organize/plan, communicate, learn,
22
+ present/promote, play/experience, navigate/move.
23
+
24
+ The dominant intent predicts the home better than the industry. A service
25
+ company may need a booking flow, not an institutional portal.
26
+
27
+ ## Eight opening models
28
+
29
+ | Model | First element | Fits | Main risk |
30
+ |---|---|---|---|
31
+ | Dashboard | Status summary and priority actions | Banking, health, CRM, IoT, admin, productivity | A pile of cards without priority |
32
+ | Direct tool / Workspace | The tool, file, or open project | Calculator, scanner, converter, editor | Adding features until a utility becomes a suite |
33
+ | Catalog | Search, categories, filters, items | E-commerce, marketplace, library, menu | Images hiding the data needed to choose |
34
+ | Feed | Recommended or chronological content | Social, news, community, streaming | Infinite feed hiding specific goals |
35
+ | Inbox | Conversations or a work queue | Messaging, email, support, operations | Unclear states and hidden actions |
36
+ | Landing | Identity, offer, evidence, CTA | Event, campaign, profile, portfolio, one-off product | Image-heavy page with little practical information |
37
+ | Map-first | Map plus search and contextual panel | Mobility, local services, geolocated classifieds | Overlaid controls and map-only dependence |
38
+ | Player / immersive | Media and essential controls | Video, music, podcast, audiobook, 3D | Controls hard to find; poor accessibility |
39
+
40
+ ## Ten additional home patterns
41
+
42
+ | Pattern | First content | Use when |
43
+ |---|---|---|
44
+ | Agenda-first | Next appointment and calendar | Health, bookings, teams |
45
+ | Task-first | Pending tasks and add action | Productivity, field work |
46
+ | Search-first | Dominant search and suggestions | Large catalogs and directories |
47
+ | Profile-first | Photo, name, bio, links | Personal brand and creator |
48
+ | Event-first | Identity, date, venue, CTA, program | Defined event |
49
+ | Progress-first | Current step, goal, next action | Education, fitness, habits |
50
+ | Project-first | Recent projects and create | Editors and authoring tools |
51
+ | Alert-first | Critical alerts and system status | Monitoring, IoT, operations |
52
+ | Map + bottom sheet | Map with results panel | Local search and transport |
53
+ | Hub | Shortcuts to independent tasks | Portals with low simultaneous use |
54
+
55
+ ## Task versus message
56
+
57
+ - **Task models** — direct tool, workspace, catalog, feed, inbox, map, dashboard —
58
+ start on the action or content. A page head, slogan, or explanatory paragraph
59
+ before the first control is the default failure.
60
+ - **Single-purpose utility:** one action, no header, no pricing or plans unless
61
+ the brief asks, secondary functions minimal or absent. Scanner opens the
62
+ camera; converter opens “load image”. A tool noun (compress, scan, convert,
63
+ calculate) defaults here unless the brief says product or service.
64
+ - **Multi-function task:** main action first, but a header with logo, name,
65
+ menu, settings, or help is allowed; secondary functions stay subordinate.
66
+ - **Message models** — landing, campaign, event, institutional page — start on the
67
+ message. The headline, slogan, explanation, story, and call to action are the
68
+ product; removing them would remove the content.
69
+
70
+ A family-health awareness campaign is a message model: text-heavy is correct. A
71
+ PDF converter is a task model: the tool comes first. A commercial site can combine
72
+ both: a landing entry and a catalog once the user starts shopping.
73
+
74
+ ## Category catalog
75
+
76
+ Categories are context, not templates. A product can have one primary category
77
+ and up to two secondary ones.
78
+
79
+ ### A. Commercial, transactional, and services
80
+
81
+ | Category | Usual opening |
82
+ |---|---|
83
+ | A1 Institutional / company | Hub or dashboard |
84
+ | A2 E-commerce / store | Catalog |
85
+ | A3 Marketplace / supplier directory | Catalog + search |
86
+ | A4 On-demand service / booking | Form, map, or schedule |
87
+ | A5 Bank / wallet / payments | Dashboard |
88
+ | A6 Investments / brokerage / trading | Dashboard |
89
+ | A7 Subscription / club / loyalty | Dashboard or catalog |
90
+ | A8 Restaurant / delivery | Catalog |
91
+ | A9 Travel / lodging / airline | Search + catalog |
92
+ | A10 Real estate / vehicles / classifieds | Catalog + map |
93
+ | A11 CRM / sales / B2B relationship | Dashboard |
94
+
95
+ ### B. Utilities, productivity, and tools
96
+
97
+ | Category | Usual opening |
98
+ |---|---|
99
+ | B1 Single-function utility | Direct tool |
100
+ | B2 Scanner / OCR / PDF / documents | Workspace or direct tool |
101
+ | B3 Converter / file processing | Direct tool or workspace |
102
+ | B4 Creative editor (image, video, audio, design) | Workspace |
103
+ | B5 Personal productivity / notes / tasks | Task-first or dashboard |
104
+ | B6 Project management / collaboration | Board, list, or dashboard |
105
+ | B7 Admin / ERP / BI / analytics | Dashboard |
106
+ | B8 Calendar / agenda / personal booking | Agenda |
107
+ | B9 Clinical health / patients | Agenda or dashboard |
108
+ | B10 Fitness / personal health | Dashboard |
109
+ | B11 Meditation / sleep / wellness | Player or feed |
110
+ | B12 Maps / navigation / mobility | Map-first |
111
+ | B13 Smart home / IoT | Dashboard |
112
+ | B14 Communication / email / inbox | Inbox |
113
+
114
+ ### C. Content, community, presence, and entertainment
115
+
116
+ | Category | Usual opening |
117
+ |---|---|
118
+ | C1 Social network / content sharing | Feed |
119
+ | C2 Forum / community / professional network | Feed |
120
+ | C3 News / information portal | Feed or editorial |
121
+ | C4 Video streaming / films / series | Player or feed |
122
+ | C5 Music / podcasts / audio | Player or feed |
123
+ | C6 Reading / library / digital publishing | Catalog or library |
124
+ | C7 Education / courses / e-learning | Progress or catalog |
125
+ | C8 Events / conferences / festivals | Landing or event hub |
126
+ | C9 Personal profile / portfolio / personal brand | Landing or profile |
127
+ | C10 Campaign / cause / nonprofit | Landing |
128
+ | C11 Government / public services / civic utility | Hub or catalog |
129
+ | C12 Games | Menu + play/continue |
130
+ | C13 Children's education / entertainment | Playful activity |
131
+ | C14 Sports / teams / fan community | Dashboard or feed |
132
+ | C15 Local tourism / guides / place discovery | Map or catalog |
133
+
134
+ ## Navigation patterns
135
+
136
+ | Pattern | Use for | Avoid |
137
+ |---|---|---|
138
+ | Bottom navigation | 3–5 frequent global destinations on mobile | Momentary actions or many unequal items |
139
+ | Top bar / tabs | Related views in the same context | Replacing global navigation |
140
+ | Sidebar / drawer | Many areas, desktop/tablet hierarchy | Hiding the most-used destination on mobile |
141
+ | Hub | Independent tasks chosen one per session | Deep hierarchies with frequent switching |
142
+ | Contextual navigation | Actions attached to an item: menu, toolbar, sheet | Gestures as the only discovery path |
143
+ | Stepper / wizard | Checkout, booking, complex setup | Splitting a simple task into artificial steps |
144
+ | Search as navigation | Large catalogs, files, services, knowledge | Search without filters, suggestions, or empty state |
145
+
146
+ Principles: distinguish global destinations from contextual actions; use
147
+ predictable labels; keep position and behavior consistent; show current location;
148
+ preserve context on back; do not hide essential functions behind gestures.
149
+ Mobile favors bottom navigation and vertical hierarchy; desktop can use sidebar,
150
+ tables, and simultaneous panels. Responsive is re-architecture, not stretching.
151
+
152
+ ## Output template
153
+
154
+ 1. **Product class:** primary category, up to two secondary, dominant intent,
155
+ frequency, density.
156
+ 2. **Experience:** opening model, above-the-fold content, main action, secondary
157
+ actions, states.
158
+ 3. **Navigation:** primary pattern, 3–5 destinations, secondary navigation, why.
159
+ 4. **Visual direction:** style, personality, palette roles, type, shapes,
160
+ imagery, theme, density.
161
+ 5. **Alternatives:** up to two with a real trade-off, not a recolored copy.
162
+ 6. **Execution summary:** one sentence combining home, navigation, identity, and
163
+ primary task.
164
+
165
+ ## Decision rules
166
+
167
+ - The task beats the industry: a company that needs conversion gets a tool, not a
168
+ portal.
169
+ - Frequency changes the home: recurring use favors dashboard, history, and
170
+ personalization; one-off use favors landing, guided flow, or a simple hub.
171
+ - Density changes the layout: many attributes need list/table; visual discovery
172
+ needs grid; authoring needs canvas.
173
+ - Device changes navigation, not just size.
174
+ - Trust changes language: finance, health, and government need clarity, explicit
175
+ states, and transparency.
176
+ - Conversion needs hierarchy: one clear CTA, without hiding decision information.
177
+ - Aesthetics follow content: large imagery fits tourism, portfolio, and visual
178
+ retail; not a converter or an operations dashboard.
179
+ - Do not prescribe functions the user did not ask for; mark suggestions as
180
+ optional.
181
+ - Do not treat categories as stereotypes: no neon because it is Web3, no blue
182
+ because it is corporate, no pastel because it is health.
183
+
184
+ ## Anti-patterns
185
+
186
+ - Generic home with logo, banner, and shortcuts unrelated to the priority task.
187
+ - Bottom navigation with too many items or mixed hierarchy levels.
188
+ - Hamburger hiding essential functions.
189
+ - Cards, shadows, gradients, and borders on everything.
190
+ - Palette chosen by taste without semantic roles and contrast.
191
+ - Many fonts, radii, icon styles, and component shapes mixed.
192
+ - Icon-only actions for non-universal functions.
193
+ - Several equally strong CTAs.
194
+ - Promotional banner occupying the most frequent task.
195
+ - Dashboard metrics without unit, period, legend, or priority.
196
+ - Map/editor panel that covers the context it is meant to support. Keep the map
197
+ visible or make the panel smaller/movable when visibility matters; a full-screen
198
+ map can be correct. Do not impose one map layout across apps.
199
+ - Primary task hidden below secondary functions or explanatory copy.
200
+ - Long form without grouping, progress, validation, or data preservation.
201
+ - Dark/neon because it looks technical, without context.
202
+ - Glassmorphism or neumorphism with insufficient contrast or boundaries.
203
+ - Mobile layout simply stretched to desktop.
204
+ - Gesture, animation, or color as the only interaction/information channel.
205
+
206
+ ## Incomplete brief
207
+
208
+ 1. Infer the most functional style from audience, purpose, content, and trust.
209
+ 2. Present one recommendation and at most two genuinely different alternatives.
210
+ 3. State assumptions.
211
+ 4. Ask one objective question only if a decision is blocked.
212
+ 5. Do not invent a logo, official color, persona, or content; use placeholders or
213
+ label them as suggestions.
214
+
215
+ When the user asks for creative freedom, propose an authored direction and
216
+ justify how it supports the product.
@@ -0,0 +1,98 @@
1
+ # Design contract template
2
+
3
+ Use this to create or update `DESIGN.md`. Keep only the sections the project
4
+ needs; do not leave empty headings.
5
+
6
+ ## Product
7
+
8
+ - What the product does, in one paragraph.
9
+ - Who uses it and in what context.
10
+ - The single most important task.
11
+
12
+ ## Mode
13
+
14
+ `Persuade` | `Operate` | `Read` | `Experience`
15
+
16
+ One sentence explaining why this mode fits the surface.
17
+
18
+ ## Direction
19
+
20
+ - Two or three concrete directions considered, with a one-line rationale each.
21
+ - The chosen direction and why it fits the product.
22
+ - What this direction deliberately avoids.
23
+ - The identity it preserves, for a refinement.
24
+
25
+ ## Tokens
26
+
27
+ | Token | Value | Role |
28
+ |---|---|---|
29
+ | `--bg` | | Page background |
30
+ | `--surface` | | Cards, panels |
31
+ | `--text` | | Primary text |
32
+ | `--muted` | | Secondary text |
33
+ | `--accent` | | One functional accent |
34
+ | `--danger` | | Errors and destructive actions |
35
+ | `--space-*` | | Spacing scale |
36
+ | `--radius-*` | | Corner scale |
37
+ | `--shadow-*` | | Elevation |
38
+ | `--font-*` | | Type roles and scale |
39
+
40
+ Rules:
41
+
42
+ - One accent, used for one job.
43
+ - Text and background pairs must reach 4.5:1.
44
+ - No raw hex in components; use tokens.
45
+
46
+ ## Components
47
+
48
+ For each core component: purpose, states, and constraints.
49
+
50
+ - States: default, hover, focus, active, disabled, loading.
51
+ - Data states: empty, partial, error, success.
52
+ - Do not create a component for a single use.
53
+
54
+ ## Platform
55
+
56
+ ### Web
57
+
58
+ - Breakpoints and what changes at each.
59
+ - Keyboard order and focus management.
60
+ - No horizontal scroll at 320px.
61
+
62
+ ### Desktop
63
+
64
+ - Information density and panel behavior.
65
+ - Shortcuts and native conventions.
66
+
67
+ ### Mobile
68
+
69
+ - 44px minimum targets.
70
+ - Thumb reach and one-handed navigation.
71
+ - Safe areas and orientation.
72
+
73
+ ## States
74
+
75
+ - Empty: what the user sees and what action is offered.
76
+ - Loading: skeleton or progress, no layout shift.
77
+ - Error: what failed, what to do next, no stack trace.
78
+ - Success: confirmation without blocking.
79
+ - Partial: what is missing and how to recover.
80
+
81
+ ## Accessibility floor
82
+
83
+ - 4.5:1 text contrast; 3:1 for large text and UI boundaries.
84
+ - Visible focus; no focus trap.
85
+ - Labels for every input; errors linked to fields.
86
+ - Keyboard reaches every action.
87
+ - `prefers-reduced-motion` respected.
88
+ - Icons have text or accessible names.
89
+
90
+ ## Validation
91
+
92
+ - Static findings: `file:line — problem — fix`.
93
+ - Functional checks: form submit, validation, error path, keyboard.
94
+ - Rendered captures: viewport sizes and result.
95
+ - Local HTML: `node .kitskill/scripts/ui-audit.mjs <file>` checks 320/375/1280
96
+ overflow, names, labels, alt, lang, and title. It does not check contrast or real
97
+ keyboard traversal.
98
+ - Anything not checked is `UNVERIFIED` with a reason.
@@ -0,0 +1,159 @@
1
+ # Visual directions
2
+
3
+ Structure and identity are independent. Two products can share the same opening
4
+ model and look nothing alike; two products can share a palette and still need
5
+ different composition. A recolor is not a new direction.
6
+
7
+ ## Five dimensions
8
+
9
+ 1. **Palette:** color roles, contrast, surfaces, light/dark theme.
10
+ 2. **Layout:** distribution, proportion, alignment, whitespace, section order.
11
+ 3. **Components:** buttons, cards, inputs, menus, icons, borders, radii, states.
12
+ 4. **Typography:** family, weight, scale, personality, hierarchy.
13
+ 5. **Imagery and motion:** photography, illustration, texture, gradient, animation.
14
+
15
+ A direction is coherent across all five. Changing only the accent color leaves
16
+ the same product.
17
+
18
+ ## Twenty style families
19
+
20
+ | Style | Palette | Type and forms | Layout and imagery | Feeling / use |
21
+ |---|---|---|---|---|
22
+ | Corporate classic | Navy, institutional blue, white, gray, one accent | Professional sans; restrained radii, thin borders | Predictable grid, clear header, aligned sections; real places and people | Trust, stability; traditional companies, insurance, B2B, public systems |
23
+ | Corporate premium / luxury | Black, off-white, graphite, beige, brown, restrained gold | Refined serif + neutral sans; fine lines, little elevation | Editorial margins, few sections, wide images; architecture, materials, lifestyle | Exclusivity, tradition; wealth, hotels, high-end property, fashion |
24
+ | Technological / modern SaaS | White or graphite, blue, violet, cyan, moderate gradients | Geometric/humanist sans; medium radii, linear icons, visible states | Modules, cards, charts, sidebar, dashboards; devices and data | Innovation, efficiency; SaaS, AI, enterprise software, Web3 |
25
+ | Friendly commercial | Two or three brand colors, warm neutrals, visible accent | Accessible sans, friendlier headings; rounded buttons, large targets | Cards, service blocks, shortcuts, illustration; people and daily situations | Proximity, ease; local business, family services, delivery, mass consumer |
26
+ | Minimalist | Neutrals and one accent | Clean, legible; no unnecessary borders or shadows | Generous whitespace, few elements, clear hierarchy; imagery only when informative | Focus, clarity; utilities, productivity, fintech, premium products |
27
+ | Editorial / Swiss | Black, white, neutrals, one accent | Serif and/or sans with strong scale; dividers, restrained links | Grid, columns, typographic hierarchy, photography | Culture, intelligence; news, magazines, portfolios, fashion, cultural events |
28
+ | Promotional / high-stimulus retail | Orange, red, yellow, strong brand colors; neutrals for reading | Bold, large prices; strong CTA, badges | Banners, showcases, offers, product grids; campaign photography | Energy, urgency; retail, temporary campaigns, sales |
29
+ | Financial / data terminal | Black/graphite or institutional white; semantic colors | Highly legible, tabular numerals; compact controls, tabs | Dense panels, charts, tables, watchlists | Precision, control; trading, analytics, advanced finance |
30
+ | Fitness / sport | Black, white, lime, orange, red, electric blue | Bold/condensed metrics; rings, bars, badges | Metrics, goals, progress, activity graphs; athletes and equipment | Energy, performance; sport, running, training |
31
+ | Wellness / natural / organic | Sage, olive, sand, terracotta, soft blue, cream | Friendly, legible; soft radii, discrete illustration | Airy, organic forms, natural imagery; nature, water, people | Calm, care; wellness, sustainability, food, therapy |
32
+ | Gamified / playful | Vibrant primaries/secondaries or pastels | Rounded, bold, expressive; large buttons, badges | Paths, levels, goals, rewards, mascots, 3D objects | Fun, achievement; education, habits, children, casual games |
33
+ | Futuristic / sci-fi / cyberpunk | Black, graphite, cyan, violet, magenta, neon green | Geometric, condensed, mono details; angular geometry, controlled glow | Layers, panels, HUD, dark surfaces; holograms, circuits, maps | Advanced technology, intensity; games, Web3, crypto, immersive tools |
34
+ | Vintage / retro | Cream, sepia, brown, mustard, olive, terracotta | Serif, display retro, typewriter; ornaments, frames | Poster/editorial composition, paper texture, grain | Nostalgia, authenticity; artisan food, historical tourism, culture |
35
+ | Brutalist / neo-brutalist | Strong contrasting blocks | Large, bold, expressive; thick borders, hard shadows | Asymmetric, rigid blocks, collage; expressive imagery | Irreverence, impact; creative portfolios, experimental brands, campaigns |
36
+ | Glassmorphism | Gradients or soft images; translucent surfaces | Simple, high-contrast text; blur, transparency, light borders | Floating layers and frosted panels | Depth, lightness, technology; stylized dashboards and presentations |
37
+ | Neumorphism / soft UI | One base with nearby tones | Soft light/dark shadows, rounded forms | Embossed or inset elements | Softness; details and prototypes, not a universal default |
38
+ | Flat / Flat 2.0 | Solid blocks or moderate combinations | Vector icons, minimal borders, subtle shadows in 2.0 | Clean shapes without realistic depth | Simplicity, speed; consumer apps, education, tools |
39
+ | 3D / claymorphism | Pastel or vibrant | Volume, soft shadows, object-like icons | Rounded, tactile elements; 3D illustrations | Playfulness, accessibility; children, casual games, creative apps |
40
+ | Skeuomorphism | Colors from real materials | Textures, physical buttons, dials, depth | Controls that imitate objects | Familiarity, physical metaphor; instruments, specialized panels |
41
+ | Native platform / design system | Platform roles and semantic colors | HIG, Material 3, Fluent, Carbon conventions | Platform navigation, spacing, components, adaptation | Familiarity and consistency; prefer over invented chrome |
42
+
43
+ These are starting points, not costumes. A bank can be brutalist; a portfolio can
44
+ be corporate classic. The identity must fit the audience and the task.
45
+
46
+ ## Palette families
47
+
48
+ | Family | Composition | Common use |
49
+ |---|---|---|
50
+ | Monochromatic | One hue in several tones | Fintech, tools, minimal brands |
51
+ | Analogous | Neighboring hues | Wellness, travel, content |
52
+ | Complementary | Opposite hues | Retail, sport, campaigns |
53
+ | Triadic | Three balanced hues | Education, games, creative apps |
54
+ | Neutral | White, black, gray, beige | Corporate, premium, utilities |
55
+ | Pastel | Light, softened tones | Wellness, children, lifestyle |
56
+ | Neon | Highly saturated or luminous | Games, cyberpunk, events |
57
+ | Earthy | Olive, sand, brown, terracotta | Food, sustainability, craft |
58
+ | Cool | Blue, violet, blue-green | Health, technology, services |
59
+ | Warm | Red, orange, yellow, pink | Food, retail, entertainment |
60
+ | High contrast | Strongly distinct background/elements | Tools, accessibility, critical information |
61
+ | Duotone | Two dominant colors applied to images | Music, campaigns, portfolios |
62
+
63
+ Color meanings vary by culture, context, combination, and lightness. Do not assign
64
+ universal meanings to a single hue.
65
+
66
+ ## Color roles
67
+
68
+ Primary, on-primary, secondary, tertiary/accent, background, surface, surface
69
+ variant, text primary, text secondary, border/divider, success, warning,
70
+ error/destructive, info, disabled.
71
+
72
+ Semantic colors keep their meaning across screens and are reinforced with text,
73
+ icon, or shape. A neutral surface usually dominates; identity color highlights the
74
+ relevant action; accents stay rare. The 60/30/10 proportion is an exercise, not a
75
+ technical rule.
76
+
77
+ Light theme suits long reading, forms, documents, data, and bright environments.
78
+ Dark theme suits identity, night/immersive contexts, and media; it is not
79
+ automatically better for comfort or battery. Offer both when the app is frequent
80
+ and the platform favors the system preference.
81
+
82
+ ## Layout compositions
83
+
84
+ | Composition | Shape | Fits | Care |
85
+ |---|---|---|---|
86
+ | Single column | Stacked vertical content | Forms, reading, simple utilities | Do not stretch related blocks |
87
+ | Split screen | Two functional areas | Login, onboarding, editor, presentation | Stack or switch on mobile |
88
+ | Bento grid | Modules of different sizes | Dashboard, profile, service home | Size differences need real hierarchy |
89
+ | Modular grid | Regular cells | Products, galleries, panels | Consistent proportion and spacing |
90
+ | Masonry | Variable-height columns | Inspiration, photography, visual content | Comparison and metadata alignment suffer |
91
+ | Card-based | Content grouped in cards | Services, dashboards, lists | Do not card every small element |
92
+ | Editorial grid | Columns and title/photo hierarchy | News, magazines, portfolios | Requires type and image consistency |
93
+ | Sidebar + content | Persistent menu and work area | SaaS, ERP, desktop tools | Collapse or convert on mobile |
94
+ | Top navigation | Sections in a top bar | Sites, catalogs, few areas | Do not accumulate unprioritized options |
95
+ | Bottom navigation | 3–5 global destinations | Recurring mobile areas | Not for every action |
96
+ | Vertical feed | Flowing content | Social, news, activity | Keep search/filters and context findable |
97
+ | Horizontal carousels | Sliding rows | Streaming, media, showcases | Do not hide important options |
98
+ | List view | Rows with summary | Messages, files, transactions, results | Strong title/metadata/action hierarchy |
99
+ | Product grid | Image-led product cells | E-commerce, visual catalogs | Cards must support comparison |
100
+ | Map-first | Map with overlaid controls | Navigation, local services | Provide list alternative and accessible controls |
101
+ | Full-bleed hero | Image/video dominates | Events, destinations, portfolios, campaigns | Keep text contrast over media |
102
+ | Immersive canvas | Central work area | Editors, games, 3D viewers | Navigation must remain findable |
103
+ | Master–detail | List plus selected detail | Email, CRM, files, admin | Switch list/detail on mobile |
104
+ | Kanban | Status columns and cards | Projects and pipelines | Offer alternatives to drag |
105
+ | Timeline | Events over time | History, project, health, travel | Scale and dates must be clear |
106
+ | Calendar grid | Days and times | Agenda, bookings, shifts | Avoid overloading cells |
107
+ | Wizard / stepper | Sequential steps | Checkout, setup, booking | Show progress, allow back, preserve data |
108
+ | Form-first | Fields and CTA as core | Signup, request, quote | Group fields and explain errors inline |
109
+ | Card stack | Sequential/stacked cards | Quick selection, onboarding | Do not rely on gesture alone |
110
+ | Tabbed content | Related areas at one level | Profile, product detail, settings | Do not hide global destinations |
111
+ | Dashboard + drill-down | Summary leading to detail | Analytics, finance, monitoring | Every metric needs definition, unit, period |
112
+
113
+ ## Typography, imagery, components
114
+
115
+ - Pair a display face with a readable body face, or use one family with a strong
116
+ scale. Avoid many families and weights.
117
+ - Use a clear hierarchy: display, title, section, body, label, caption. Numbers in
118
+ dashboards and finance benefit from tabular figures.
119
+ - Imagery must carry information or identity. Product, people, place, user content,
120
+ illustration, or none are all valid choices; decorative stock is not.
121
+ - Icons need consistent stroke/fill, size, and meaning. Label non-universal
122
+ actions.
123
+ - Components need states: default, hover, focus, active, disabled, loading, error,
124
+ success, empty, partial. Borders, radii, shadows, and density should follow the
125
+ identity, not be sprinkled everywhere.
126
+ - Keep target sizes comfortable: 44–48 px on touch; visible focus; labels; reduced
127
+ motion; contrast 4.5:1 for normal text and 3:1 for large text.
128
+ - Responsive is re-architecture: reflow columns, hide secondary metadata, switch
129
+ master–detail to two screens, adapt grids, make sidebars collapsible.
130
+
131
+ ## Combination rule
132
+
133
+ Choose one or more from each dimension independently:
134
+
135
+ - **Opening model:** dashboard, direct tool/workspace, catalog, feed, inbox,
136
+ landing, map, player.
137
+ - **Identity:** one of the twenty, or a documented hybrid.
138
+ - **Palette structure:** mono, analogous, complementary, triadic, neutral, pastel,
139
+ neon, earthy, cool, warm, high contrast, duotone.
140
+ - **Layout composition:** from the table above.
141
+ - **Components:** shape, radius, border, elevation, density.
142
+
143
+ This prevents ten “models” that are the same screen with different accent colors.
144
+ A corporate classic and a futuristic dashboard should differ in type, components,
145
+ imagery, and composition, not only hue.
146
+
147
+ ## Guardrails
148
+
149
+ - Contrast and semantics survive the style. Status colors keep their meaning.
150
+ - The style never hides the task. A decorative menu may be expressive; a game HUD
151
+ or trading panel stays functional.
152
+ - Do not choose neon for Web3, blue for corporate, or pastel for health without a
153
+ product reason.
154
+ - Glassmorphism and neumorphism need extra contrast and boundary checks.
155
+ - A page that could belong to any product in the category is not yet a direction.
156
+ - If the developer has not chosen, offer two or three concrete combinations from
157
+ different identities, not three tints of one.
158
+ - Accessibility and responsive behavior are part of the direction, not a final
159
+ cosmetic pass.
@@ -0,0 +1,84 @@
1
+ ---
2
+ name: ks-plan
3
+ description: "Clarify requirements, acceptance criteria, risk, and alternatives before non-trivial work. Use when a request is ambiguous, spans several files, touches auth/data/contracts, or starts a new module. Skip for trivial local edits."
4
+ license: MIT
5
+ ---
6
+
7
+ # ks-plan
8
+
9
+ Turn a request into a small, verifiable contract before implementation.
10
+
11
+ ## When to use
12
+
13
+ - The request is ambiguous or missing acceptance criteria.
14
+ - The change spans several files or modules.
15
+ - It touches auth, secrets, persistence, public contracts, migrations, payments,
16
+ or agent configuration.
17
+ - A new module, service, or integration is starting.
18
+
19
+ Do not use for typos, copy changes, or isolated edits with an obvious result.
20
+
21
+ ## Procedure
22
+
23
+ 1. **Restate the request** in one paragraph. State the user, the outcome, and the
24
+ trigger. If the restatement is wrong, stop here.
25
+ 2. **Inspect the relevant code and contracts.** Find the current behavior, the
26
+ callers, the tests, and any prior decision. Never plan from assumption.
27
+ 3. **Classify risk** on impact, risk, uncertainty, and reversibility. Apply the
28
+ escalation floor from the router. Name the mode: Direct, Planned, or
29
+ Structural.
30
+ 4. **Ask 3–5 high-impact questions.** Cover only what changes the implementation:
31
+ edge cases, what must fail or be blocked, existing contracts, and what is out
32
+ of scope. Offer recommendations. If the runtime cannot answer, state
33
+ assumptions and proceed; never end with no deliverable.
34
+ 5. **Write acceptance criteria.** Each one must be observable and testable. Use
35
+ the form: given / when / then, or a concrete command and expected result.
36
+ 6. **Offer alternatives** only when the requested path is fragile, duplicated, or
37
+ clearly suboptimal. At most two, each with a trade-off and a recommendation.
38
+ 7. **Run a short pre-mortem** for Planned and Structural work: "If this fails in
39
+ three months, what is the most likely cause?" Add the answer to the criteria
40
+ or the ADR.
41
+ 8. **Record the outcome.** Planned work goes into `.kitskill/state/STATE.md`.
42
+ Hard-to-reverse choices go into `.kitskill/memory/decisions/`.
43
+
44
+ ## Comparison contract
45
+
46
+ If the request claims cheaper, faster, better, or fewer tokens, name all four
47
+ before planning:
48
+
49
+ - comparator: which stack, arm, or baseline;
50
+ - unit: cost per accepted task, not cost per reply;
51
+ - quality gate: equal or better, and how it is measured;
52
+ - falsification: what result would prove the claim false.
53
+
54
+ If any is missing, stop and ask. A comparative claim without a comparator is a
55
+ direction, not a requirement.
56
+
57
+ ## Output
58
+
59
+ ```text
60
+ Mode: Direct | Planned | Structural
61
+ Goal:
62
+ Acceptance criteria:
63
+ - [ ] ...
64
+ Out of scope:
65
+ Open questions:
66
+ Recommended approach:
67
+ Risks:
68
+ ```
69
+
70
+ Keep it to 10 lines for Planned work. Structural work may add one ADR.
71
+
72
+ ## Exit criteria
73
+
74
+ - Every acceptance criterion is observable.
75
+ - The mode matches the risk, including the escalation floor.
76
+ - Open questions that block implementation are resolved or explicitly deferred.
77
+ - The next action is unambiguous.
78
+
79
+ ## Anti-patterns
80
+
81
+ - Asking questions the code already answers.
82
+ - Writing acceptance criteria that restate the implementation.
83
+ - Turning a one-line fix into an architecture review.
84
+ - Presenting alternatives with no meaningful difference.
@@ -0,0 +1,71 @@
1
+ ---
2
+ name: ks-review
3
+ description: "Review a change and its evidence: does it satisfy the request, is it safe and well built, and does every criterion have proof? Use before commit or PR."
4
+ license: MIT
5
+ ---
6
+
7
+ # ks-review
8
+
9
+ Review the change, not the author.
10
+
11
+ ## When to use
12
+
13
+ - At the close of Planned or Structural work.
14
+ - Before commit, PR, or handoff.
15
+ - After a large fix or refactor.
16
+
17
+ For Direct and Planned-light work, a self-check is enough.
18
+
19
+ ## Prepare
20
+
21
+ 1. Collect the change: diff from the merge base, staged, unstaged, and untracked
22
+ files. For a small change, review the diff only; do not re-read the tree.
23
+ 2. Give the reviewer the request, the acceptance criteria, and relevant decisions.
24
+ Do not give it the implementation reasoning.
25
+ 3. Prefer a clean-context reviewer when the runtime supports it.
26
+
27
+ ## Pass 1 — spec conformance
28
+
29
+ - Does the change satisfy each acceptance criterion?
30
+ - Is anything missing, partial, or out of scope?
31
+ - Does it preserve existing contracts and conventions?
32
+
33
+ ## Pass 2 — quality
34
+
35
+ - Logic bugs, race conditions, state leaks, error handling.
36
+ - Coupling, duplication, premature abstraction, overengineering.
37
+ - Security surface: input handling, auth, secrets, data access.
38
+ - Tests: do they prove behavior, or only the implementation?
39
+ - Migration and rollback risk.
40
+
41
+ ## Evidence
42
+
43
+ - Map each acceptance criterion to a command, test, or observation.
44
+ - Run `node .kitskill/scripts/verify.mjs` when present; record the result.
45
+ - Mark each criterion `PASS`, `FAIL`, or `UNVERIFIED`; never infer `PASS` from a
46
+ green suite alone.
47
+ - State what was not run and why.
48
+
49
+ ## Report
50
+
51
+ Only real findings, in this form:
52
+
53
+ `file:line — severity (blocker/high/medium/low) — problem — fix`
54
+
55
+ Include reproducible evidence. No praise, no cosmetic noise, no restating the diff.
56
+ If there are no findings, say so and state what was reviewed.
57
+
58
+ ## Rules
59
+
60
+ - Review the diff for Direct and Planned work; the full tree only for
61
+ Structural or security-sensitive changes.
62
+ - Do not trust a green suite; check what it covers.
63
+ - Do not ask for unrelated refactors.
64
+ - Separate blockers from suggestions.
65
+ - If the reviewer lacks context, ask for it instead of guessing.
66
+
67
+ ## Exit criteria
68
+
69
+ - Every acceptance criterion was checked.
70
+ - Blockers are fixed or explicitly accepted by the developer.
71
+ - The verdict is explicit: ship, fix, or stop.