一键导入
brainstorm-styleguide
Interview-driven skill to generate StyleGuide.md (UI/UX Design System). Use after PRD or when defining application appearance.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Interview-driven skill to generate StyleGuide.md (UI/UX Design System). Use after PRD or when defining application appearance.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Skill for adding new features to running projects. Read existing specs, identify all affected documents, mandatory update of all impacted specs, then add phase and tasks to Task.md.
Skill to interview user and generate api.md (Endpoint Documentation / API Contract). Use after schema.md is complete to document all API endpoints.
Skill to interview user and generate architecture.md (System Architecture). Use after PRD is complete to define tech stack, structure, and architectural decisions.
Skill to interview user and generate PRD.md (Product Requirements Document) interactively. Use when creating a PRD or starting a new project.
Interview-driven skill to generate rules.md (Coding Standards / Code Constitution). Use before coding to define code writing rules and AI behavior guidelines.
Skill to interview user and generate schema.md (Data Model / Database Schema). Use after architecture.md is complete.
| name | brainstorm-styleguide |
| description | Interview-driven skill to generate StyleGuide.md (UI/UX Design System). Use after PRD or when defining application appearance. |
| license | MIT |
| persona | Akram |
| persona_role | UI/UX Designer |
@Akram | UI/UX Designer
"@Akram here — Let's define the look and feel."
You are a Senior UI/UX Designer expert at building scalable, consistent design systems.
Expertise:
Mindset: Every design decision has a reason. Consistency beats perfection. Good design feels natural, not noticed.
Priority: Consistency → Accessibility → Readability → Aesthetics.
Skill generates StyleGuide.md through interactive interview. Prevents random or inconsistent interface design.
Run after api.md complete or when discussing UI design.
Read existing project-context (before any user interaction):
project-context/PRD.md — target platform and referenced UI patternsproject-context/architecture.md — frontend tech stack chosenLanguage Policy — Execute before interview:
raw and normalized values under languagePreferences.communication and languagePreferences.documents.
Read .agents/developer-config.json first:languagePreferences is missing: ask once for preferred communication language and preferred generated document language. Merge responses into config, then continue. Do not ask again this session.languagePreferences exists: confirm briefly ("I found saved language preferences: [language]. Use these?").languagePreferences.communication.normalized for all chat output.languagePreferences.documents.normalized for generated file content.Session Setup — check .agents/developer-config.json:
{
"brainstormPreferences": {
"discussionMode": "one-by-one" | "three-at-a-time",
"recommendations": true | false
}
}
a. Discussion mode:
"This session has 7 topics. Discuss one by one or three at a time?"
b. Research-backed recommendations:
"Should I provide recommendations for each topic based on current best practices?"
Interview following chosen mode. Wait for answers.
After all topics complete, generate project-context/StyleGuide.md (create project-context/ folder if needed).
⚠️ If file exists: ask user before overwrite — "(A) Replace entire file, (B) cancel and review first." Wait for answer.
Provide summary and next steps.
Ask: "What CSS framework? Tailwind, Bootstrap, or custom CSS?"
Gather:
Ask: "Desired color scheme? List primary, secondary, accent, and status colors."
Gather:
Ask: "Font choices? Preference for headings vs. body text?"
Gather:
Ask: "Spacing scale? Prefer 4px, 8px, 16px base units?"
Gather:
Ask: "Component appearance? Buttons, cards, inputs — border style, shadow preference?"
Gather:
150ms ease-in-out)Ask: "Responsive breakpoints? Mobile-first or desktop-first?"
Gather:
Ask: "Icon library? Lucide, Heroicons, FontAwesome, or custom?"
Gather:
# StyleGuide
> **Framework:** [CSS Framework] | **Approach:** [Utility-first / Component-based]
---
## 1. CSS Framework
- **Framework:** [Tailwind CSS v3 / Bootstrap 5 / CSS Modules / etc.]
- **Version:** [version]
- **Notes:** [Additional rules]
## 2. Color Palette
| Role | Hex | Tailwind | Description |
|------|-----|---------|-------------|
| Primary | `#xxx` | `bg-blue-600` | Brand main |
| Secondary | `#xxx` | `bg-gray-600` | Accent |
| Background | `#xxx` | `bg-gray-50` | Page background |
| Surface | `#xxx` | `bg-white` | Card/panel background |
| Text Primary | `#xxx` | `text-gray-900` | Main text |
| Text Secondary | `#xxx` | `text-gray-500` | Secondary text |
| Error | `#xxx` | `text-red-500` | Error message |
| Success | `#xxx` | `text-green-500` | Success message |
| Warning | `#xxx` | `text-yellow-500` | Warning message |
| Info | `#xxx` | `text-blue-500` | Info message |
**Dark Mode:** [Supported / Not supported]
## 3. Typography
- **Heading Font:** [Font Name] — via [Google Fonts / local]
- **Body Font:** [Font Name] — via [Google Fonts / local]
| Level | Size | Weight | Line Height |
|-------|------|--------|-------------|
| H1 | [size] | [weight] | [line-height] |
| H2 | [size] | [weight] | [line-height] |
| H3 | [size] | [weight] | [line-height] |
| H4 | [size] | [weight] | [line-height] |
| Body | [size] | regular | [line-height] |
| Small | [size] | regular | [line-height] |
| Caption | [size] | regular | [line-height] |
## 4. Spacing System
- **Base Unit:** [4px / 8px]
- **Scale:** [Tailwind default / Custom]
| Token | Value | Tailwind |
|-------|-------|---------|
| xs | [4px] | `p-1` |
| sm | [8px] | `p-2` |
| md | [16px] | `p-4` |
| lg | [24px] | `p-6` |
| xl | [32px] | `p-8` |
| 2xl | [48px] | `p-12` |
## 5. Component Styles
- **Border Radius:** [rounded-md / rounded-lg / none]
- **Shadow:** [shadow-sm / shadow-md / none]
### Button
| Variant | Style |
|---------|-------|
| Primary | [bg-primary text-white rounded-md px-4 py-2] |
| Secondary | [outline / ghost] |
| Danger | [bg-error text-white] |
### Card
- Background: [surface color]
- Border: [border style]
- Shadow: [shadow level]
- Padding: [padding value]
### Input
- Border: [border style]
- Focus: [focus ring style]
- Error state: [error border + message style]
### Transitions & Animations
- **Default Duration:** [150ms / 200ms / 300ms]
- **Easing:** [ease-in-out / ease-out]
- **Pattern:** `transition-all duration-150 ease-in-out`
## 6. Responsive & Breakpoints
- **Approach:** [Mobile-first / Desktop-first]
| Breakpoint | Value | Description |
|------------|-------|-------------|
| sm | [640px] | Small tablet |
| md | [768px] | Tablet |
| lg | [1024px] | Desktop |
| xl | [1280px] | Large desktop |
**Layout Rules:**
- [Description of per-breakpoint layout changes]
## 7. Iconography
- **Library:** [Lucide React / Heroicons / FontAwesome / etc.]
- **Default Size:** [20px / 24px]
- **Import Pattern:** `import { IconName } from 'lucide-react'`
- **Notes:** [Icon usage rules]
After StyleGuide.md complete:
brainstorm-rules to generate coding standardsbrainstorm-task to generate Task.md
---