Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ uipro init --ai droid # Droid (Factory)
uipro init --ai kilocode # KiloCode
uipro init --ai warp # Warp
uipro init --ai augment # Augment
uipro init --ai pi # Pi Coding Agent (https://pi.dev)
uipro init --ai all # All assistants
```

Expand Down
21 changes: 21 additions & 0 deletions cli/assets/templates/platforms/pi.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"platform": "pi",
"displayName": "Pi Coding Agent",
"installType": "full",
"folderStructure": {
"root": ".pi",
"skillPath": "agent/skills/ui-ux-pro-max",
"filename": "SKILL.md"
},
"scriptPath": "agent/skills/ui-ux-pro-max/scripts/search.py",
"frontmatter": {
"name": "ui-ux-pro-max",
"description": "UI/UX design intelligence. 67 styles, 96 palettes, 57 font pairings, 25 charts, 13 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind, shadcn/ui). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient. Integrations: shadcn/ui MCP for component search and examples."
},
"sections": {
"quickReference": true
},
"title": "UI/UX Pro Max - Design Intelligence",
"description": "Comprehensive design guide for web and mobile applications. Contains 67 styles, 96 color palettes, 57 font pairings, 99 UX guidelines, and 25 chart types across 13 technology stacks. Searchable database with priority-based recommendations.",
"skillOrWorkflow": "Skill"
}
10 changes: 8 additions & 2 deletions cli/src/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export type AIType = 'claude' | 'cursor' | 'windsurf' | 'antigravity' | 'copilot' | 'kiro' | 'roocode' | 'codex' | 'qoder' | 'gemini' | 'trae' | 'opencode' | 'continue' | 'codebuddy' | 'droid' | 'kilocode' | 'warp' | 'augment' | 'all';
export type AIType = 'claude' | 'cursor' | 'windsurf' | 'antigravity' | 'copilot' | 'kiro' | 'roocode' | 'codex' | 'qoder' | 'gemini' | 'trae' | 'opencode' | 'continue' | 'codebuddy' | 'droid' | 'kilocode' | 'warp' | 'augment' | 'pi' | 'all';

export type InstallType = 'full' | 'reference';

Expand Down Expand Up @@ -41,7 +41,7 @@ export interface PlatformConfig {
skillOrWorkflow: string;
}

export const AI_TYPES: AIType[] = ['claude', 'cursor', 'windsurf', 'antigravity', 'copilot', 'roocode', 'kiro', 'codex', 'qoder', 'gemini', 'trae', 'opencode', 'continue', 'codebuddy', 'droid', 'kilocode', 'warp', 'augment', 'all'];
export const AI_TYPES: AIType[] = ['claude', 'cursor', 'windsurf', 'antigravity', 'copilot', 'roocode', 'kiro', 'codex', 'qoder', 'gemini', 'trae', 'opencode', 'continue', 'codebuddy', 'droid', 'kilocode', 'warp', 'augment', 'pi', 'all'];

// Legacy folder mapping for backward compatibility with ZIP-based installs.
// Note: .shared is included for platforms that used ZIP installs. Post-ZIP platforms
Expand All @@ -65,4 +65,10 @@ export const AI_FOLDERS: Record<Exclude<AIType, 'all'>, string[]> = {
kilocode: ['.kilocode', '.shared'],
warp: ['.warp', '.shared'],
augment: ['.augment', '.shared'],
// Pi installs into ~/.pi/agent/skills/<name>/SKILL.md. The
// `.pi` folder is the conventional root for both project-local
// (.pi/skills/) and user-global (~/.pi/agent/skills/) skill discovery.
// The cli writes the skill under agent/skills/ to match the user
// global location; project-local discovery also picks this up.
pi: ['.pi'],
};
6 changes: 6 additions & 0 deletions cli/src/utils/detect.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { existsSync } from 'node:fs';
import { join } from 'node:path';
import { homedir } from 'node:os';
import type { AIType } from '../types/index.js';

interface DetectionResult {
Expand Down Expand Up @@ -64,6 +65,9 @@ export function detectAIType(cwd: string = process.cwd()): DetectionResult {
if (existsSync(join(cwd, '.augment'))) {
detected.push('augment');
}
if (existsSync(join(cwd, '.pi')) || existsSync(join(homedir(), '.pi'))) {
detected.push('pi');
}

// Suggest based on what's detected
let suggested: AIType | null = null;
Expand Down Expand Up @@ -114,6 +118,8 @@ export function getAITypeDescription(aiType: AIType): string {
return 'Warp (.warp/skills/)';
case 'augment':
return 'Augment (.augment/skills/)';
case 'pi':
return 'Pi Coding Agent (.pi/agent/skills/)';
case 'all':
return 'All AI assistants';
}
Expand Down
1 change: 1 addition & 0 deletions cli/src/utils/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ const AI_TO_PLATFORM: Record<string, string> = {
kilocode: 'kilocode',
warp: 'warp',
augment: 'augment',
pi: 'pi',
};

async function exists(path: string): Promise<boolean> {
Expand Down
3 changes: 2 additions & 1 deletion skill.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
"droid",
"warp",
"augment",
"antigravity"
"antigravity",
"pi"
],
"install": "npx uipro-cli init --ai {{platform}}"
}
21 changes: 21 additions & 0 deletions src/ui-ux-pro-max/templates/platforms/pi.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"platform": "pi",
"displayName": "Pi Coding Agent",
"installType": "full",
"folderStructure": {
"root": ".pi",
"skillPath": "agent/skills/ui-ux-pro-max",
"filename": "SKILL.md"
},
"scriptPath": "agent/skills/ui-ux-pro-max/scripts/search.py",
"frontmatter": {
"name": "ui-ux-pro-max",
"description": "UI/UX design intelligence. 67 styles, 96 palettes, 57 font pairings, 25 charts, 13 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind, shadcn/ui). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient. Integrations: shadcn/ui MCP for component search and examples."
},
"sections": {
"quickReference": true
},
"title": "UI/UX Pro Max - Design Intelligence",
"description": "Comprehensive design guide for web and mobile applications. Contains 67 styles, 96 color palettes, 57 font pairings, 99 UX guidelines, and 25 chart types across 13 technology stacks. Searchable database with priority-based recommendations.",
"skillOrWorkflow": "Skill"
}