@musashishao/agent-kit 1.0.0
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/.agent/.shared/ui-ux-pro-max/data/charts.csv +26 -0
- package/.agent/.shared/ui-ux-pro-max/data/colors.csv +97 -0
- package/.agent/.shared/ui-ux-pro-max/data/icons.csv +101 -0
- package/.agent/.shared/ui-ux-pro-max/data/landing.csv +31 -0
- package/.agent/.shared/ui-ux-pro-max/data/products.csv +97 -0
- package/.agent/.shared/ui-ux-pro-max/data/prompts.csv +24 -0
- package/.agent/.shared/ui-ux-pro-max/data/react-performance.csv +45 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/jetpack-compose.csv +53 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/nuxt-ui.csv +51 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/nuxtjs.csv +59 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/react.csv +54 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/shadcn.csv +61 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
- package/.agent/.shared/ui-ux-pro-max/data/stacks/vue.csv +50 -0
- package/.agent/.shared/ui-ux-pro-max/data/styles.csv +59 -0
- package/.agent/.shared/ui-ux-pro-max/data/typography.csv +58 -0
- package/.agent/.shared/ui-ux-pro-max/data/ui-reasoning.csv +101 -0
- package/.agent/.shared/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
- package/.agent/.shared/ui-ux-pro-max/data/web-interface.csv +31 -0
- package/.agent/.shared/ui-ux-pro-max/scripts/core.py +258 -0
- package/.agent/.shared/ui-ux-pro-max/scripts/design_system.py +487 -0
- package/.agent/.shared/ui-ux-pro-max/scripts/search.py +76 -0
- package/.agent/ARCHITECTURE.md +225 -0
- package/.agent/CONTEXT.md +229 -0
- package/.agent/FEATURE_ROADMAP.md +435 -0
- package/.agent/PROMPT_TEMPLATES.md +261 -0
- package/.agent/agents/backend-specialist.md +263 -0
- package/.agent/agents/database-architect.md +226 -0
- package/.agent/agents/debugger.md +225 -0
- package/.agent/agents/devops-engineer.md +242 -0
- package/.agent/agents/documentation-writer.md +104 -0
- package/.agent/agents/explorer-agent.md +73 -0
- package/.agent/agents/frontend-specialist.md +556 -0
- package/.agent/agents/game-developer.md +162 -0
- package/.agent/agents/mobile-developer.md +377 -0
- package/.agent/agents/orchestrator.md +416 -0
- package/.agent/agents/penetration-tester.md +188 -0
- package/.agent/agents/performance-optimizer.md +187 -0
- package/.agent/agents/project-planner.md +403 -0
- package/.agent/agents/security-auditor.md +170 -0
- package/.agent/agents/seo-specialist.md +111 -0
- package/.agent/agents/test-engineer.md +158 -0
- package/.agent/rules/GEMINI.md +251 -0
- package/.agent/skills/api-patterns/SKILL.md +81 -0
- package/.agent/skills/api-patterns/api-style.md +42 -0
- package/.agent/skills/api-patterns/auth.md +24 -0
- package/.agent/skills/api-patterns/documentation.md +26 -0
- package/.agent/skills/api-patterns/graphql.md +41 -0
- package/.agent/skills/api-patterns/rate-limiting.md +31 -0
- package/.agent/skills/api-patterns/response.md +37 -0
- package/.agent/skills/api-patterns/rest.md +40 -0
- package/.agent/skills/api-patterns/scripts/api_validator.py +211 -0
- package/.agent/skills/api-patterns/security-testing.md +122 -0
- package/.agent/skills/api-patterns/trpc.md +41 -0
- package/.agent/skills/api-patterns/versioning.md +22 -0
- package/.agent/skills/app-builder/SKILL.md +75 -0
- package/.agent/skills/app-builder/agent-coordination.md +71 -0
- package/.agent/skills/app-builder/feature-building.md +53 -0
- package/.agent/skills/app-builder/project-detection.md +34 -0
- package/.agent/skills/app-builder/scaffolding.md +118 -0
- package/.agent/skills/app-builder/tech-stack.md +40 -0
- package/.agent/skills/app-builder/templates/SKILL.md +39 -0
- package/.agent/skills/app-builder/templates/astro-static/TEMPLATE.md +76 -0
- package/.agent/skills/app-builder/templates/chrome-extension/TEMPLATE.md +92 -0
- package/.agent/skills/app-builder/templates/cli-tool/TEMPLATE.md +88 -0
- package/.agent/skills/app-builder/templates/electron-desktop/TEMPLATE.md +88 -0
- package/.agent/skills/app-builder/templates/express-api/TEMPLATE.md +83 -0
- package/.agent/skills/app-builder/templates/flutter-app/TEMPLATE.md +90 -0
- package/.agent/skills/app-builder/templates/monorepo-turborepo/TEMPLATE.md +90 -0
- package/.agent/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +82 -0
- package/.agent/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +100 -0
- package/.agent/skills/app-builder/templates/nextjs-static/TEMPLATE.md +106 -0
- package/.agent/skills/app-builder/templates/nuxt-app/TEMPLATE.md +101 -0
- package/.agent/skills/app-builder/templates/python-fastapi/TEMPLATE.md +83 -0
- package/.agent/skills/app-builder/templates/react-native-app/TEMPLATE.md +93 -0
- package/.agent/skills/architecture/SKILL.md +55 -0
- package/.agent/skills/architecture/context-discovery.md +43 -0
- package/.agent/skills/architecture/examples.md +94 -0
- package/.agent/skills/architecture/pattern-selection.md +68 -0
- package/.agent/skills/architecture/patterns-reference.md +50 -0
- package/.agent/skills/architecture/trade-off-analysis.md +77 -0
- package/.agent/skills/bash-linux/SKILL.md +199 -0
- package/.agent/skills/behavioral-modes/SKILL.md +242 -0
- package/.agent/skills/brainstorming/SKILL.md +163 -0
- package/.agent/skills/brainstorming/dynamic-questioning.md +350 -0
- package/.agent/skills/clean-code/SKILL.md +201 -0
- package/.agent/skills/code-review-checklist/SKILL.md +109 -0
- package/.agent/skills/database-design/SKILL.md +52 -0
- package/.agent/skills/database-design/database-selection.md +43 -0
- package/.agent/skills/database-design/indexing.md +39 -0
- package/.agent/skills/database-design/migrations.md +48 -0
- package/.agent/skills/database-design/optimization.md +36 -0
- package/.agent/skills/database-design/orm-selection.md +30 -0
- package/.agent/skills/database-design/schema-design.md +56 -0
- package/.agent/skills/database-design/scripts/schema_validator.py +172 -0
- package/.agent/skills/deployment-procedures/SKILL.md +241 -0
- package/.agent/skills/doc.md +177 -0
- package/.agent/skills/docker-expert/SKILL.md +409 -0
- package/.agent/skills/documentation-templates/SKILL.md +194 -0
- package/.agent/skills/frontend-design/SKILL.md +396 -0
- package/.agent/skills/frontend-design/animation-guide.md +331 -0
- package/.agent/skills/frontend-design/color-system.md +311 -0
- package/.agent/skills/frontend-design/decision-trees.md +418 -0
- package/.agent/skills/frontend-design/motion-graphics.md +306 -0
- package/.agent/skills/frontend-design/scripts/accessibility_checker.py +183 -0
- package/.agent/skills/frontend-design/scripts/ux_audit.py +722 -0
- package/.agent/skills/frontend-design/typography-system.md +345 -0
- package/.agent/skills/frontend-design/ux-psychology.md +541 -0
- package/.agent/skills/frontend-design/visual-effects.md +383 -0
- package/.agent/skills/game-development/2d-games/SKILL.md +119 -0
- package/.agent/skills/game-development/3d-games/SKILL.md +135 -0
- package/.agent/skills/game-development/SKILL.md +167 -0
- package/.agent/skills/game-development/game-art/SKILL.md +185 -0
- package/.agent/skills/game-development/game-audio/SKILL.md +190 -0
- package/.agent/skills/game-development/game-design/SKILL.md +129 -0
- package/.agent/skills/game-development/mobile-games/SKILL.md +108 -0
- package/.agent/skills/game-development/multiplayer/SKILL.md +132 -0
- package/.agent/skills/game-development/pc-games/SKILL.md +144 -0
- package/.agent/skills/game-development/vr-ar/SKILL.md +123 -0
- package/.agent/skills/game-development/web-games/SKILL.md +150 -0
- package/.agent/skills/geo-fundamentals/SKILL.md +156 -0
- package/.agent/skills/geo-fundamentals/scripts/geo_checker.py +289 -0
- package/.agent/skills/i18n-localization/SKILL.md +154 -0
- package/.agent/skills/i18n-localization/scripts/i18n_checker.py +241 -0
- package/.agent/skills/lint-and-validate/SKILL.md +45 -0
- package/.agent/skills/lint-and-validate/scripts/lint_runner.py +172 -0
- package/.agent/skills/lint-and-validate/scripts/type_coverage.py +173 -0
- package/.agent/skills/mcp-builder/SKILL.md +176 -0
- package/.agent/skills/mobile-design/SKILL.md +394 -0
- package/.agent/skills/mobile-design/decision-trees.md +516 -0
- package/.agent/skills/mobile-design/mobile-backend.md +491 -0
- package/.agent/skills/mobile-design/mobile-color-system.md +420 -0
- package/.agent/skills/mobile-design/mobile-debugging.md +122 -0
- package/.agent/skills/mobile-design/mobile-design-thinking.md +357 -0
- package/.agent/skills/mobile-design/mobile-navigation.md +458 -0
- package/.agent/skills/mobile-design/mobile-performance.md +767 -0
- package/.agent/skills/mobile-design/mobile-testing.md +356 -0
- package/.agent/skills/mobile-design/mobile-typography.md +433 -0
- package/.agent/skills/mobile-design/platform-android.md +666 -0
- package/.agent/skills/mobile-design/platform-ios.md +561 -0
- package/.agent/skills/mobile-design/scripts/mobile_audit.py +670 -0
- package/.agent/skills/mobile-design/touch-psychology.md +537 -0
- package/.agent/skills/nestjs-expert/SKILL.md +552 -0
- package/.agent/skills/nextjs-best-practices/SKILL.md +203 -0
- package/.agent/skills/nodejs-best-practices/SKILL.md +333 -0
- package/.agent/skills/parallel-agents/SKILL.md +175 -0
- package/.agent/skills/performance-profiling/SKILL.md +143 -0
- package/.agent/skills/performance-profiling/scripts/lighthouse_audit.py +76 -0
- package/.agent/skills/plan-writing/SKILL.md +152 -0
- package/.agent/skills/powershell-windows/SKILL.md +167 -0
- package/.agent/skills/prisma-expert/SKILL.md +355 -0
- package/.agent/skills/python-patterns/SKILL.md +441 -0
- package/.agent/skills/react-patterns/SKILL.md +198 -0
- package/.agent/skills/red-team-tactics/SKILL.md +199 -0
- package/.agent/skills/seo-fundamentals/SKILL.md +129 -0
- package/.agent/skills/seo-fundamentals/scripts/seo_checker.py +219 -0
- package/.agent/skills/server-management/SKILL.md +161 -0
- package/.agent/skills/systematic-debugging/SKILL.md +109 -0
- package/.agent/skills/tailwind-patterns/SKILL.md +269 -0
- package/.agent/skills/tdd-workflow/SKILL.md +149 -0
- package/.agent/skills/testing-patterns/SKILL.md +178 -0
- package/.agent/skills/testing-patterns/scripts/test_runner.py +219 -0
- package/.agent/skills/typescript-expert/SKILL.md +429 -0
- package/.agent/skills/typescript-expert/references/tsconfig-strict.json +92 -0
- package/.agent/skills/typescript-expert/references/typescript-cheatsheet.md +383 -0
- package/.agent/skills/typescript-expert/references/utility-types.ts +335 -0
- package/.agent/skills/typescript-expert/scripts/ts_diagnostic.py +203 -0
- package/.agent/skills/ui-ux-pro-max/SKILL.md +351 -0
- package/.agent/skills/ui-ux-pro-max/data/charts.csv +26 -0
- package/.agent/skills/ui-ux-pro-max/data/colors.csv +97 -0
- package/.agent/skills/ui-ux-pro-max/data/icons.csv +101 -0
- package/.agent/skills/ui-ux-pro-max/data/landing.csv +31 -0
- package/.agent/skills/ui-ux-pro-max/data/products.csv +97 -0
- package/.agent/skills/ui-ux-pro-max/data/prompts.csv +24 -0
- package/.agent/skills/ui-ux-pro-max/data/react-performance.csv +45 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/nuxt-ui.csv +51 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/nuxtjs.csv +59 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/react.csv +54 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/shadcn.csv +61 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/vue.csv +50 -0
- package/.agent/skills/ui-ux-pro-max/data/styles.csv +59 -0
- package/.agent/skills/ui-ux-pro-max/data/typography.csv +58 -0
- package/.agent/skills/ui-ux-pro-max/data/ui-reasoning.csv +101 -0
- package/.agent/skills/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
- package/.agent/skills/ui-ux-pro-max/data/web-interface.csv +31 -0
- package/.agent/skills/ui-ux-pro-max/scripts/core.py +257 -0
- package/.agent/skills/ui-ux-pro-max/scripts/design_system.py +487 -0
- package/.agent/skills/ui-ux-pro-max/scripts/search.py +76 -0
- package/.agent/skills/vulnerability-scanner/SKILL.md +276 -0
- package/.agent/skills/vulnerability-scanner/checklists.md +121 -0
- package/.agent/skills/vulnerability-scanner/scripts/security_scan.py +458 -0
- package/.agent/skills/webapp-testing/SKILL.md +187 -0
- package/.agent/skills/webapp-testing/scripts/playwright_runner.py +173 -0
- package/.agent/workflows/brainstorm.md +113 -0
- package/.agent/workflows/create.md +59 -0
- package/.agent/workflows/debug.md +103 -0
- package/.agent/workflows/deploy.md +176 -0
- package/.agent/workflows/enhance.md +63 -0
- package/.agent/workflows/orchestrate.md +237 -0
- package/.agent/workflows/plan.md +89 -0
- package/.agent/workflows/preview.md +80 -0
- package/.agent/workflows/status.md +86 -0
- package/.agent/workflows/test.md +144 -0
- package/.agent/workflows/ui-ux-pro-max.md +231 -0
- package/LICENSE +21 -0
- package/README.md +101 -0
- package/bin/cli.js +235 -0
- package/index.js +1 -0
- package/package.json +43 -0
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: documentation-templates
|
|
3
|
+
description: Documentation templates and structure guidelines. README, API docs, code comments, and AI-friendly documentation.
|
|
4
|
+
allowed-tools: Read, Glob, Grep
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Documentation Templates
|
|
8
|
+
|
|
9
|
+
> Templates and structure guidelines for common documentation types.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## 1. README Structure
|
|
14
|
+
|
|
15
|
+
### Essential Sections (Priority Order)
|
|
16
|
+
|
|
17
|
+
| Section | Purpose |
|
|
18
|
+
|---------|---------|
|
|
19
|
+
| **Title + One-liner** | What is this? |
|
|
20
|
+
| **Quick Start** | Running in <5 min |
|
|
21
|
+
| **Features** | What can I do? |
|
|
22
|
+
| **Configuration** | How to customize |
|
|
23
|
+
| **API Reference** | Link to detailed docs |
|
|
24
|
+
| **Contributing** | How to help |
|
|
25
|
+
| **License** | Legal |
|
|
26
|
+
|
|
27
|
+
### README Template
|
|
28
|
+
|
|
29
|
+
```markdown
|
|
30
|
+
# Project Name
|
|
31
|
+
|
|
32
|
+
Brief one-line description.
|
|
33
|
+
|
|
34
|
+
## Quick Start
|
|
35
|
+
|
|
36
|
+
[Minimum steps to run]
|
|
37
|
+
|
|
38
|
+
## Features
|
|
39
|
+
|
|
40
|
+
- Feature 1
|
|
41
|
+
- Feature 2
|
|
42
|
+
|
|
43
|
+
## Configuration
|
|
44
|
+
|
|
45
|
+
| Variable | Description | Default |
|
|
46
|
+
|----------|-------------|---------|
|
|
47
|
+
| PORT | Server port | 3000 |
|
|
48
|
+
|
|
49
|
+
## Documentation
|
|
50
|
+
|
|
51
|
+
- [API Reference](./docs/api.md)
|
|
52
|
+
- [Architecture](./docs/architecture.md)
|
|
53
|
+
|
|
54
|
+
## License
|
|
55
|
+
|
|
56
|
+
MIT
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
## 2. API Documentation Structure
|
|
62
|
+
|
|
63
|
+
### Per-Endpoint Template
|
|
64
|
+
|
|
65
|
+
```markdown
|
|
66
|
+
## GET /users/:id
|
|
67
|
+
|
|
68
|
+
Get a user by ID.
|
|
69
|
+
|
|
70
|
+
**Parameters:**
|
|
71
|
+
| Name | Type | Required | Description |
|
|
72
|
+
|------|------|----------|-------------|
|
|
73
|
+
| id | string | Yes | User ID |
|
|
74
|
+
|
|
75
|
+
**Response:**
|
|
76
|
+
- 200: User object
|
|
77
|
+
- 404: User not found
|
|
78
|
+
|
|
79
|
+
**Example:**
|
|
80
|
+
[Request and response example]
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
---
|
|
84
|
+
|
|
85
|
+
## 3. Code Comment Guidelines
|
|
86
|
+
|
|
87
|
+
### JSDoc/TSDoc Template
|
|
88
|
+
|
|
89
|
+
```typescript
|
|
90
|
+
/**
|
|
91
|
+
* Brief description of what the function does.
|
|
92
|
+
*
|
|
93
|
+
* @param paramName - Description of parameter
|
|
94
|
+
* @returns Description of return value
|
|
95
|
+
* @throws ErrorType - When this error occurs
|
|
96
|
+
*
|
|
97
|
+
* @example
|
|
98
|
+
* const result = functionName(input);
|
|
99
|
+
*/
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
### When to Comment
|
|
103
|
+
|
|
104
|
+
| ✅ Comment | ❌ Don't Comment |
|
|
105
|
+
|-----------|-----------------|
|
|
106
|
+
| Why (business logic) | What (obvious) |
|
|
107
|
+
| Complex algorithms | Every line |
|
|
108
|
+
| Non-obvious behavior | Self-explanatory code |
|
|
109
|
+
| API contracts | Implementation details |
|
|
110
|
+
|
|
111
|
+
---
|
|
112
|
+
|
|
113
|
+
## 4. Changelog Template (Keep a Changelog)
|
|
114
|
+
|
|
115
|
+
```markdown
|
|
116
|
+
# Changelog
|
|
117
|
+
|
|
118
|
+
## [Unreleased]
|
|
119
|
+
### Added
|
|
120
|
+
- New feature
|
|
121
|
+
|
|
122
|
+
## [1.0.0] - 2025-01-01
|
|
123
|
+
### Added
|
|
124
|
+
- Initial release
|
|
125
|
+
### Changed
|
|
126
|
+
- Updated dependency
|
|
127
|
+
### Fixed
|
|
128
|
+
- Bug fix
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
---
|
|
132
|
+
|
|
133
|
+
## 5. Architecture Decision Record (ADR)
|
|
134
|
+
|
|
135
|
+
```markdown
|
|
136
|
+
# ADR-001: [Title]
|
|
137
|
+
|
|
138
|
+
## Status
|
|
139
|
+
Accepted / Deprecated / Superseded
|
|
140
|
+
|
|
141
|
+
## Context
|
|
142
|
+
Why are we making this decision?
|
|
143
|
+
|
|
144
|
+
## Decision
|
|
145
|
+
What did we decide?
|
|
146
|
+
|
|
147
|
+
## Consequences
|
|
148
|
+
What are the trade-offs?
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
---
|
|
152
|
+
|
|
153
|
+
## 6. AI-Friendly Documentation (2025)
|
|
154
|
+
|
|
155
|
+
### llms.txt Template
|
|
156
|
+
|
|
157
|
+
For AI crawlers and agents:
|
|
158
|
+
|
|
159
|
+
```markdown
|
|
160
|
+
# Project Name
|
|
161
|
+
> One-line objective.
|
|
162
|
+
|
|
163
|
+
## Core Files
|
|
164
|
+
- [src/index.ts]: Main entry
|
|
165
|
+
- [src/api/]: API routes
|
|
166
|
+
- [docs/]: Documentation
|
|
167
|
+
|
|
168
|
+
## Key Concepts
|
|
169
|
+
- Concept 1: Brief explanation
|
|
170
|
+
- Concept 2: Brief explanation
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
### MCP-Ready Documentation
|
|
174
|
+
|
|
175
|
+
For RAG indexing:
|
|
176
|
+
- Clear H1-H3 hierarchy
|
|
177
|
+
- JSON/YAML examples for data structures
|
|
178
|
+
- Mermaid diagrams for flows
|
|
179
|
+
- Self-contained sections
|
|
180
|
+
|
|
181
|
+
---
|
|
182
|
+
|
|
183
|
+
## 7. Structure Principles
|
|
184
|
+
|
|
185
|
+
| Principle | Why |
|
|
186
|
+
|-----------|-----|
|
|
187
|
+
| **Scannable** | Headers, lists, tables |
|
|
188
|
+
| **Examples first** | Show, don't just tell |
|
|
189
|
+
| **Progressive detail** | Simple → Complex |
|
|
190
|
+
| **Up to date** | Outdated = misleading |
|
|
191
|
+
|
|
192
|
+
---
|
|
193
|
+
|
|
194
|
+
> **Remember:** Templates are starting points. Adapt to your project's needs.
|
|
@@ -0,0 +1,396 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: frontend-design
|
|
3
|
+
description: Design thinking and decision-making for web UI. Use when designing components, layouts, color schemes, typography, or creating aesthetic interfaces. Teaches principles, not fixed values.
|
|
4
|
+
allowed-tools: Read, Write, Edit, Glob, Grep, Bash
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Frontend Design System
|
|
8
|
+
|
|
9
|
+
> **Philosophy:** Every pixel has purpose. Restraint is luxury. User psychology drives decisions.
|
|
10
|
+
> **Core Principle:** THINK, don't memorize. ASK, don't assume.
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## 🎯 Selective Reading Rule (MANDATORY)
|
|
15
|
+
|
|
16
|
+
**Read REQUIRED files always, OPTIONAL only when needed:**
|
|
17
|
+
|
|
18
|
+
| File | Status | When to Read |
|
|
19
|
+
|------|--------|--------------|
|
|
20
|
+
| [ux-psychology.md](ux-psychology.md) | 🔴 **REQUIRED** | Always read first! |
|
|
21
|
+
| [color-system.md](color-system.md) | ⚪ Optional | Color/palette decisions |
|
|
22
|
+
| [typography-system.md](typography-system.md) | ⚪ Optional | Font selection/pairing |
|
|
23
|
+
| [visual-effects.md](visual-effects.md) | ⚪ Optional | Glassmorphism, shadows, gradients |
|
|
24
|
+
| [animation-guide.md](animation-guide.md) | ⚪ Optional | Animation needed |
|
|
25
|
+
| [motion-graphics.md](motion-graphics.md) | ⚪ Optional | Lottie, GSAP, 3D |
|
|
26
|
+
| [decision-trees.md](decision-trees.md) | ⚪ Optional | Context templates |
|
|
27
|
+
|
|
28
|
+
> 🔴 **ux-psychology.md = ALWAYS READ. Others = only if relevant.**
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## 🔧 Runtime Scripts
|
|
33
|
+
|
|
34
|
+
**Execute these for audits (don't read, just run):**
|
|
35
|
+
|
|
36
|
+
| Script | Purpose | Usage |
|
|
37
|
+
|--------|---------|-------|
|
|
38
|
+
| `scripts/ux_audit.py` | UX Psychology & Accessibility Audit | `python scripts/ux_audit.py <project_path>` |
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
## ⚠️ CRITICAL: ASK BEFORE ASSUMING (MANDATORY)
|
|
43
|
+
|
|
44
|
+
> **STOP! If the user's request is open-ended, DO NOT default to your favorites.**
|
|
45
|
+
|
|
46
|
+
### When User Prompt is Vague, ASK:
|
|
47
|
+
|
|
48
|
+
**Color not specified?** Ask:
|
|
49
|
+
> "What color palette do you prefer? (blue/green/orange/neutral/other?)"
|
|
50
|
+
|
|
51
|
+
**Style not specified?** Ask:
|
|
52
|
+
> "What style are you going for? (minimal/bold/retro/futuristic/organic?)"
|
|
53
|
+
|
|
54
|
+
**Layout not specified?** Ask:
|
|
55
|
+
> "Do you have a layout preference? (single column/grid/asymmetric/full-width?)"
|
|
56
|
+
|
|
57
|
+
### ⛔ DEFAULT TENDENCIES TO AVOID (ANTI-SAFE HARBOR):
|
|
58
|
+
|
|
59
|
+
| AI Default Tendency | Why It's Bad | Think Instead |
|
|
60
|
+
|---------------------|--------------|---------------|
|
|
61
|
+
| **Bento Grids (Modern Cliché)** | Used in every AI design | Why does this content NEED a grid? |
|
|
62
|
+
| **Hero Split (Left/Right)** | Predictable & Boring | How about Massive Typography or Vertical Narrative? |
|
|
63
|
+
| **Mesh/Aurora Gradients** | The "new" lazy background | What's a radical color pairing? |
|
|
64
|
+
| **Glassmorphism** | AI's idea of "premium" | How about solid, high-contrast flat? |
|
|
65
|
+
| **Deep Cyan / Fintech Blue** | Safe harbor from purple ban | Why not Red, Black, or Neon Green? |
|
|
66
|
+
| **"Orchestrate / Empower"** | AI-generated copywriting | How would a human say this? |
|
|
67
|
+
| Dark background + neon glow | Overused, "AI look" | What does the BRAND actually need? |
|
|
68
|
+
| **Rounded everything** | Generic/Safe | Where can I use sharp, brutalist edges? |
|
|
69
|
+
|
|
70
|
+
> 🔴 **"Every 'safe' structure you choose brings you one step closer to a generic template. TAKE RISKS."**
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
## 1. Constraint Analysis (ALWAYS FIRST)
|
|
75
|
+
|
|
76
|
+
Before any design work, ANSWER THESE or ASK USER:
|
|
77
|
+
|
|
78
|
+
| Constraint | Question | Why It Matters |
|
|
79
|
+
|------------|----------|----------------|
|
|
80
|
+
| **Timeline** | How much time? | Determines complexity |
|
|
81
|
+
| **Content** | Ready or placeholder? | Affects layout flexibility |
|
|
82
|
+
| **Brand** | Existing guidelines? | May dictate colors/fonts |
|
|
83
|
+
| **Tech** | What stack? | Affects capabilities |
|
|
84
|
+
| **Audience** | Who exactly? | Drives all visual decisions |
|
|
85
|
+
|
|
86
|
+
### Audience → Design Approach
|
|
87
|
+
|
|
88
|
+
| Audience | Think About |
|
|
89
|
+
|----------|-------------|
|
|
90
|
+
| **Gen Z** | Bold, fast, mobile-first, authentic |
|
|
91
|
+
| **Millennials** | Clean, minimal, value-driven |
|
|
92
|
+
| **Gen X** | Familiar, trustworthy, clear |
|
|
93
|
+
| **Boomers** | Readable, high contrast, simple |
|
|
94
|
+
| **B2B** | Professional, data-focused, trust |
|
|
95
|
+
| **Luxury** | Restrained elegance, whitespace |
|
|
96
|
+
|
|
97
|
+
---
|
|
98
|
+
|
|
99
|
+
## 2. UX Psychology Principles
|
|
100
|
+
|
|
101
|
+
### Core Laws (Internalize These)
|
|
102
|
+
|
|
103
|
+
| Law | Principle | Application |
|
|
104
|
+
|-----|-----------|-------------|
|
|
105
|
+
| **Hick's Law** | More choices = slower decisions | Limit options, use progressive disclosure |
|
|
106
|
+
| **Fitts' Law** | Bigger + closer = easier to click | Size CTAs appropriately |
|
|
107
|
+
| **Miller's Law** | ~7 items in working memory | Chunk content into groups |
|
|
108
|
+
| **Von Restorff** | Different = memorable | Make CTAs visually distinct |
|
|
109
|
+
| **Serial Position** | First/last remembered most | Key info at start/end |
|
|
110
|
+
|
|
111
|
+
### Emotional Design Levels
|
|
112
|
+
|
|
113
|
+
```
|
|
114
|
+
VISCERAL (instant) → First impression: colors, imagery, overall feel
|
|
115
|
+
BEHAVIORAL (use) → Using it: speed, feedback, efficiency
|
|
116
|
+
REFLECTIVE (memory) → After: "I like what this says about me"
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
### Trust Building
|
|
120
|
+
|
|
121
|
+
- Security indicators on sensitive actions
|
|
122
|
+
- Social proof where relevant
|
|
123
|
+
- Clear contact/support access
|
|
124
|
+
- Consistent, professional design
|
|
125
|
+
- Transparent policies
|
|
126
|
+
|
|
127
|
+
---
|
|
128
|
+
|
|
129
|
+
## 3. Layout Principles
|
|
130
|
+
|
|
131
|
+
### Golden Ratio (φ = 1.618)
|
|
132
|
+
|
|
133
|
+
```
|
|
134
|
+
Use for proportional harmony:
|
|
135
|
+
├── Content : Sidebar = roughly 62% : 38%
|
|
136
|
+
├── Each heading size = previous × 1.618 (for dramatic scale)
|
|
137
|
+
├── Spacing can follow: sm → md → lg (each × 1.618)
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
### 8-Point Grid Concept
|
|
141
|
+
|
|
142
|
+
```
|
|
143
|
+
All spacing and sizing in multiples of 8:
|
|
144
|
+
├── Tight: 4px (half-step for micro)
|
|
145
|
+
├── Small: 8px
|
|
146
|
+
├── Medium: 16px
|
|
147
|
+
├── Large: 24px, 32px
|
|
148
|
+
├── XL: 48px, 64px, 80px
|
|
149
|
+
└── Adjust based on content density
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
### Key Sizing Principles
|
|
153
|
+
|
|
154
|
+
| Element | Consideration |
|
|
155
|
+
|---------|---------------|
|
|
156
|
+
| **Touch targets** | Minimum comfortable tap size |
|
|
157
|
+
| **Buttons** | Height based on importance hierarchy |
|
|
158
|
+
| **Inputs** | Match button height for alignment |
|
|
159
|
+
| **Cards** | Consistent padding, breathable |
|
|
160
|
+
| **Reading width** | 45-75 characters optimal |
|
|
161
|
+
|
|
162
|
+
---
|
|
163
|
+
|
|
164
|
+
## 4. Color Principles
|
|
165
|
+
|
|
166
|
+
### 60-30-10 Rule
|
|
167
|
+
|
|
168
|
+
```
|
|
169
|
+
60% → Primary/Background (calm, neutral base)
|
|
170
|
+
30% → Secondary (supporting areas)
|
|
171
|
+
10% → Accent (CTAs, highlights, attention)
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
### Color Psychology (For Decision Making)
|
|
175
|
+
|
|
176
|
+
| If You Need... | Consider Hues | Avoid |
|
|
177
|
+
|----------------|---------------|-------|
|
|
178
|
+
| Trust, calm | Blue family | Aggressive reds |
|
|
179
|
+
| Growth, nature | Green family | Industrial grays |
|
|
180
|
+
| Energy, urgency | Orange, red | Passive blues |
|
|
181
|
+
| Luxury, creativity | Deep Teal, Gold, Emerald | Cheap-feeling brights |
|
|
182
|
+
| Clean, minimal | Neutrals | Overwhelming color |
|
|
183
|
+
|
|
184
|
+
### Selection Process
|
|
185
|
+
|
|
186
|
+
1. **What's the industry?** (narrows options)
|
|
187
|
+
2. **What's the emotion?** (picks primary)
|
|
188
|
+
3. **Light or dark mode?** (sets foundation)
|
|
189
|
+
4. **ASK USER** if not specified
|
|
190
|
+
|
|
191
|
+
For detailed color theory: [color-system.md](color-system.md)
|
|
192
|
+
|
|
193
|
+
---
|
|
194
|
+
|
|
195
|
+
## 5. Typography Principles
|
|
196
|
+
|
|
197
|
+
### Scale Selection
|
|
198
|
+
|
|
199
|
+
| Content Type | Scale Ratio | Feel |
|
|
200
|
+
|--------------|-------------|------|
|
|
201
|
+
| Dense UI | 1.125-1.2 | Compact, efficient |
|
|
202
|
+
| General web | 1.25 | Balanced (most common) |
|
|
203
|
+
| Editorial | 1.333 | Readable, spacious |
|
|
204
|
+
| Hero/display | 1.5-1.618 | Dramatic impact |
|
|
205
|
+
|
|
206
|
+
### Pairing Concept
|
|
207
|
+
|
|
208
|
+
```
|
|
209
|
+
Contrast + Harmony:
|
|
210
|
+
├── DIFFERENT enough for hierarchy
|
|
211
|
+
├── SIMILAR enough for cohesion
|
|
212
|
+
└── Usually: display + neutral, or serif + sans
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
### Readability Rules
|
|
216
|
+
|
|
217
|
+
- **Line length**: 45-75 characters optimal
|
|
218
|
+
- **Line height**: 1.4-1.6 for body text
|
|
219
|
+
- **Contrast**: Check WCAG requirements
|
|
220
|
+
- **Size**: 16px+ for body on web
|
|
221
|
+
|
|
222
|
+
For detailed typography: [typography-system.md](typography-system.md)
|
|
223
|
+
|
|
224
|
+
---
|
|
225
|
+
|
|
226
|
+
## 6. Visual Effects Principles
|
|
227
|
+
|
|
228
|
+
### Glassmorphism (When Appropriate)
|
|
229
|
+
|
|
230
|
+
```
|
|
231
|
+
Key properties:
|
|
232
|
+
├── Semi-transparent background
|
|
233
|
+
├── Backdrop blur
|
|
234
|
+
├── Subtle border for definition
|
|
235
|
+
└── ⚠️ **WARNING:** Standard blue/white glassmorphism is a modern cliché. Use it radically or not at all.
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
### Shadow Hierarchy
|
|
239
|
+
|
|
240
|
+
```
|
|
241
|
+
Elevation concept:
|
|
242
|
+
├── Higher elements = larger shadows
|
|
243
|
+
├── Y-offset > X-offset (light from above)
|
|
244
|
+
├── Multiple layers = more realistic
|
|
245
|
+
└── Dark mode: may need glow instead
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
### Gradient Usage
|
|
249
|
+
|
|
250
|
+
```
|
|
251
|
+
Harmonious gradients:
|
|
252
|
+
├── Adjacent colors on wheel (analogous)
|
|
253
|
+
├── OR same hue, different lightness
|
|
254
|
+
├── Avoid harsh complementary pairs
|
|
255
|
+
├── 🚫 **NO Mesh/Aurora Gradients** (floating blobs)
|
|
256
|
+
└── VARY from project to project radically
|
|
257
|
+
```
|
|
258
|
+
|
|
259
|
+
For complete effects guide: [visual-effects.md](visual-effects.md)
|
|
260
|
+
|
|
261
|
+
---
|
|
262
|
+
|
|
263
|
+
## 7. Animation Principles
|
|
264
|
+
|
|
265
|
+
### Timing Concept
|
|
266
|
+
|
|
267
|
+
```
|
|
268
|
+
Duration based on:
|
|
269
|
+
├── Distance (further = longer)
|
|
270
|
+
├── Size (larger = slower)
|
|
271
|
+
├── Importance (critical = clear)
|
|
272
|
+
└── Context (urgent = fast, luxury = slow)
|
|
273
|
+
```
|
|
274
|
+
|
|
275
|
+
### Easing Selection
|
|
276
|
+
|
|
277
|
+
| Action | Easing | Why |
|
|
278
|
+
|--------|--------|-----|
|
|
279
|
+
| Entering | Ease-out | Decelerate, settle in |
|
|
280
|
+
| Leaving | Ease-in | Accelerate, exit |
|
|
281
|
+
| Emphasis | Ease-in-out | Smooth, deliberate |
|
|
282
|
+
| Playful | Bounce | Fun, energetic |
|
|
283
|
+
|
|
284
|
+
### Performance
|
|
285
|
+
|
|
286
|
+
- Animate only transform and opacity
|
|
287
|
+
- Respect reduced-motion preference
|
|
288
|
+
- Test on low-end devices
|
|
289
|
+
|
|
290
|
+
For animation patterns: [animation-guide.md](animation-guide.md), for advanced: [motion-graphics.md](motion-graphics.md)
|
|
291
|
+
|
|
292
|
+
---
|
|
293
|
+
|
|
294
|
+
## 8. "Wow Factor" Checklist
|
|
295
|
+
|
|
296
|
+
### Premium Indicators
|
|
297
|
+
|
|
298
|
+
- [ ] Generous whitespace (luxury = breathing room)
|
|
299
|
+
- [ ] Subtle depth and dimension
|
|
300
|
+
- [ ] Smooth, purposeful animations
|
|
301
|
+
- [ ] Attention to detail (alignment, consistency)
|
|
302
|
+
- [ ] Cohesive visual rhythm
|
|
303
|
+
- [ ] Custom elements (not all defaults)
|
|
304
|
+
|
|
305
|
+
### Trust Builders
|
|
306
|
+
|
|
307
|
+
- [ ] Security cues where appropriate
|
|
308
|
+
- [ ] Social proof / testimonials
|
|
309
|
+
- [ ] Clear value proposition
|
|
310
|
+
- [ ] Professional imagery
|
|
311
|
+
- [ ] Consistent design language
|
|
312
|
+
|
|
313
|
+
### Emotional Triggers
|
|
314
|
+
|
|
315
|
+
- [ ] Hero that evokes intended emotion
|
|
316
|
+
- [ ] Human elements (faces, stories)
|
|
317
|
+
- [ ] Progress/achievement indicators
|
|
318
|
+
- [ ] Moments of delight
|
|
319
|
+
|
|
320
|
+
---
|
|
321
|
+
|
|
322
|
+
## 9. Anti-Patterns (What NOT to Do)
|
|
323
|
+
|
|
324
|
+
### ❌ Lazy Design Indicators
|
|
325
|
+
|
|
326
|
+
- Default system fonts without consideration
|
|
327
|
+
- Stock imagery that doesn't match
|
|
328
|
+
- Inconsistent spacing
|
|
329
|
+
- Too many competing colors
|
|
330
|
+
- Walls of text without hierarchy
|
|
331
|
+
- Inaccessible contrast
|
|
332
|
+
|
|
333
|
+
### ❌ AI Tendency Patterns (AVOID!)
|
|
334
|
+
|
|
335
|
+
- **Same colors every project**
|
|
336
|
+
- **Dark + neon as default**
|
|
337
|
+
- **Purple/violet everything (PURPLE BAN ✅)**
|
|
338
|
+
- **Bento grids for simple landing pages**
|
|
339
|
+
- **Mesh Gradients & Glow Effects**
|
|
340
|
+
- **Same layout structure / Vercel clone**
|
|
341
|
+
- **Not asking user preferences**
|
|
342
|
+
|
|
343
|
+
### ❌ Dark Patterns (Unethical)
|
|
344
|
+
|
|
345
|
+
- Hidden costs
|
|
346
|
+
- Fake urgency
|
|
347
|
+
- Forced actions
|
|
348
|
+
- Deceptive UI
|
|
349
|
+
- Confirmshaming
|
|
350
|
+
|
|
351
|
+
---
|
|
352
|
+
|
|
353
|
+
## 10. Decision Process Summary
|
|
354
|
+
|
|
355
|
+
```
|
|
356
|
+
For EVERY design task:
|
|
357
|
+
|
|
358
|
+
1. CONSTRAINTS
|
|
359
|
+
└── What's the timeline, brand, tech, audience?
|
|
360
|
+
└── If unclear → ASK
|
|
361
|
+
|
|
362
|
+
2. CONTENT
|
|
363
|
+
└── What content exists?
|
|
364
|
+
└── What's the hierarchy?
|
|
365
|
+
|
|
366
|
+
3. STYLE DIRECTION
|
|
367
|
+
└── What's appropriate for context?
|
|
368
|
+
└── If unclear → ASK (don't default!)
|
|
369
|
+
|
|
370
|
+
4. EXECUTION
|
|
371
|
+
└── Apply principles above
|
|
372
|
+
└── Check against anti-patterns
|
|
373
|
+
|
|
374
|
+
5. REVIEW
|
|
375
|
+
└── "Does this serve the user?"
|
|
376
|
+
└── "Is this different from my defaults?"
|
|
377
|
+
└── "Would I be proud of this?"
|
|
378
|
+
```
|
|
379
|
+
|
|
380
|
+
---
|
|
381
|
+
|
|
382
|
+
## Reference Files
|
|
383
|
+
|
|
384
|
+
For deeper guidance on specific areas:
|
|
385
|
+
|
|
386
|
+
- [color-system.md](color-system.md) - Color theory and selection process
|
|
387
|
+
- [typography-system.md](typography-system.md) - Font pairing and scale decisions
|
|
388
|
+
- [visual-effects.md](visual-effects.md) - Effects principles and techniques
|
|
389
|
+
- [animation-guide.md](animation-guide.md) - Motion design principles
|
|
390
|
+
- [motion-graphics.md](motion-graphics.md) - Advanced: Lottie, GSAP, SVG, 3D, Particles
|
|
391
|
+
- [decision-trees.md](decision-trees.md) - Context-specific templates
|
|
392
|
+
- [ux-psychology.md](ux-psychology.md) - User psychology deep dive
|
|
393
|
+
|
|
394
|
+
---
|
|
395
|
+
|
|
396
|
+
> **Remember:** Design is THINKING, not copying. Every project deserves fresh consideration based on its unique context and users. **Avoid the Modern SaaS Safe Harbor!**
|