diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md new file mode 100644 index 0000000..3151d35 --- /dev/null +++ b/.github/copilot-instructions.md @@ -0,0 +1,87 @@ +# GitHub Copilot Instructions: UI/UX Pro Max + +These workspace instructions guide GitHub Copilot (VS Code Copilot Chat, Copilot Edits, and Copilot coding agents) when designing, styling, building, reviewing, or refactoring user interfaces in this workspace. + +For GitHub Copilot documentation on agent skills and customization, see: +- [About agent skills](https://docs.github.com/en/copilot/concepts/agents/about-agent-skills) +- [Creating agent skills](https://docs.github.com/en/copilot/how-tos/use-copilot-agents/coding-agent/create-skills) +- [Custom instructions for GitHub Copilot](https://docs.github.com/en/copilot/customizing-copilot/adding-custom-instructions-for-github-copilot) + +--- + +## Skill Architecture & Locations + +GitHub Copilot automatically discovers and activates skills configured for the workspace or user: + +1. **Project Skills (installed via `uipro init --ai copilot`):** + - Located at `.github/skills//SKILL.md` + - Data and search scripts are collocated within `.github/skills//` +2. **Personal / Global Skills (installed via `uipro init --ai copilot --global`):** + - Located at `~/.copilot/skills//SKILL.md` +3. **Repository Development (working inside this repository):** + - Source-of-truth files reside in `src/ui-ux-pro-max/` and `.claude/skills/` + +--- + +## Skill Routing Matrix + +When addressing UI/UX requests, route to the relevant skill domain before generating code: + +| Skill | Primary Focus | Triggers / Use Cases | +| :--- | :--- | :--- | +| **`ui-ux-pro-max`** | Core UI/UX intelligence & strategy | Full interface design, product styling, style recommendations (51 active styles), 194 product palettes, 74 font pairings, 141 UX guidelines, 22 technology stacks | +| **`ui-styling`** | Component styling & tokens | shadcn/ui component integration, Tailwind CSS customization, responsive layout rules, dark mode theming, and micro-interactions | +| **`design-system`** | Systematic design tokens & specs | Design tokens (primitive, semantic, component), CSS variables, token architecture, and design token validation | +| **`brand`** | Visual brand identity & consistency | Brand guideline creation, brand color palettes, typography specifications, logo rules, and tone/voice frameworks | +| **`slides`** | Presentation & slide design | Pitch decks, slide layouts, copywriting formulas, and data presentation strategies | +| **`banner-design`** | Marketing & ad creatives | Hero banners, promotional ad sizes, display banners, social graphics, and layout safe zones | +| **`design`** | Multi-domain creative generation | Logo design, CIP (Corporate Identity Pack), SVG icon design, and mockup contexts | + +--- + +## Searching Design Data + +When searching for recommendations, use the bundled search scripts: + +```bash +# In projects initialized with `uipro init --ai copilot`: +python3 .github/skills/ui-ux-pro-max/scripts/search.py "" --domain [-n ] + +# In repository development checkout: +python3 src/ui-ux-pro-max/scripts/search.py "" --domain [-n ] +``` + +Available domains: +- `product`: Product type recommendations (SaaS, e-commerce, mobile app, dashboard) +- `style`: Visual style guidelines (minimalism, glassmorphism, brutalism, bento-grid, etc.) +- `color`: Curated color palettes with semantic role definitions +- `typography`: Font pairings with Google Fonts import links +- `ux`: Interaction patterns, usability heuristics, and anti-patterns +- `chart`: Data visualization and charting recommendations +- `landing`: High-conversion page structures and CTA strategies + +Stack-specific guidance: +```bash +python3 .github/skills/ui-ux-pro-max/scripts/search.py "" --stack +``` +Supported stacks include: `html-tailwind`, `react`, `nextjs`, `astro`, `vue`, `nuxtjs`, `nuxt-ui`, `svelte`, `swiftui`, `react-native`, `flutter`, `shadcn`, `jetpack-compose`. + +--- + +## UI/UX Quality Guidelines + +1. **Accessibility by Default:** + - Maintain WCAG AA minimum contrast ratio (4.5:1 for normal text, 3:1 for large text and UI components). + - Ensure full keyboard navigation (`Tab`, `Shift+Tab`, `Enter`, `Space`, `Escape`) with visible, distinct `:focus-visible` outlines. + - Handle IME composition gracefully for text inputs to avoid prematurely intercepting `Enter`. + - Include ARIA attributes (`aria-label`, `aria-expanded`, `aria-hidden`) where semantic HTML elements alone are insufficient. + +2. **Responsive & Mobile-First:** + - Design fluid layouts using CSS Grid and Flexbox across mobile, tablet, and desktop breakpoints. + - Avoid fixed-width elements that cause horizontal overflow. + - Touch targets must be at least 44×44px on mobile viewports. + +3. **Systematic Design Decisions:** + - Prefer design tokens (colors, spacing scale, font sizes) over arbitrary ad-hoc hex codes or magic pixel values. + - Maintain visual hierarchy: 1 primary CTA per viewport, clear heading progression (h1 → h2 → h3), and consistent spacing rhythms. + - Provide concrete, production-ready code with clean file structure. diff --git a/README.md b/README.md index 418b18c..712d5ce 100755 --- a/README.md +++ b/README.md @@ -318,6 +318,7 @@ The npm package is `ui-ux-pro-max-cli`; it still installs the `uipro` command. O ```bash uipro init --ai claude --global # Install to ~/.claude/skills/ uipro init --ai cursor --global # Install to ~/.cursor/skills/ +uipro init --ai copilot --global # Install to ~/.copilot/skills/ uipro init --ai zcode --global # Install to ~/.zcode/skills/ uipro init --ai kimi --global # Install to ~/.kimi-code/skills/ uipro init --ai universal --global # Install to ~/.agents/skills/ @@ -361,6 +362,7 @@ Build a landing page for my SaaS product ``` > **Trae**: Switch to **SOLO** mode first. The skill will activate for UI/UX requests. +> **GitHub Copilot**: Discovers Agent Skills from `.github/skills/*/SKILL.md` (or `~/.copilot/skills/` globally). Workspace-level guidance is provided via `.github/copilot-instructions.md`. ### Workflow Mode (Slash Command) @@ -765,6 +767,8 @@ rm -rf .claude/skills/ui-ux-pro-max # Claude Code rm -rf .cursor/skills/ui-ux-pro-max # Cursor rm -rf .windsurf/skills/ui-ux-pro-max # Windsurf rm -rf .agents/skills/ui-ux-pro-max # Antigravity / Codex +rm -rf .github/skills/ui-ux-pro-max # GitHub Copilot (project) +rm -rf ~/.copilot/skills/ui-ux-pro-max # GitHub Copilot (global) ``` ### Claude.ai's "Upload a skill" dialog says "Zip contains too many files (maximum 200)"