feat: add GitHub Copilot support (#17)
- Add .github/prompts/ui-ux-pro-max.prompt.md for Copilot - Add 'copilot' as new AI type in CLI - Update detect utility to recognize .github folder - Update CLAUDE.md sync rules with .github - Update README with Copilot installation and usage - Bump version to 1.2.0 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -12,7 +12,7 @@ const program = new Command();
|
||||
program
|
||||
.name('uipro')
|
||||
.description('CLI to install UI/UX Pro Max skill for AI coding assistants')
|
||||
.version('1.1.1');
|
||||
.version('1.2.0');
|
||||
|
||||
program
|
||||
.command('init')
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export type AIType = 'claude' | 'cursor' | 'windsurf' | 'antigravity' | 'all';
|
||||
export type AIType = 'claude' | 'cursor' | 'windsurf' | 'antigravity' | 'copilot' | 'all';
|
||||
|
||||
export interface Release {
|
||||
tag_name: string;
|
||||
@@ -20,11 +20,12 @@ export interface InstallConfig {
|
||||
force?: boolean;
|
||||
}
|
||||
|
||||
export const AI_TYPES: AIType[] = ['claude', 'cursor', 'windsurf', 'antigravity', 'all'];
|
||||
export const AI_TYPES: AIType[] = ['claude', 'cursor', 'windsurf', 'antigravity', 'copilot', 'all'];
|
||||
|
||||
export const AI_FOLDERS: Record<Exclude<AIType, 'all'>, string[]> = {
|
||||
claude: ['.claude'],
|
||||
cursor: ['.cursor', '.shared'],
|
||||
windsurf: ['.windsurf', '.shared'],
|
||||
antigravity: ['.agent', '.shared'],
|
||||
copilot: ['.github', '.shared'],
|
||||
};
|
||||
|
||||
@@ -22,6 +22,9 @@ export function detectAIType(cwd: string = process.cwd()): DetectionResult {
|
||||
if (existsSync(join(cwd, '.agent'))) {
|
||||
detected.push('antigravity');
|
||||
}
|
||||
if (existsSync(join(cwd, '.github'))) {
|
||||
detected.push('copilot');
|
||||
}
|
||||
|
||||
// Suggest based on what's detected
|
||||
let suggested: AIType | null = null;
|
||||
@@ -44,6 +47,8 @@ export function getAITypeDescription(aiType: AIType): string {
|
||||
return 'Windsurf (.windsurf/workflows/ + .shared/)';
|
||||
case 'antigravity':
|
||||
return 'Antigravity (.agent/workflows/ + .shared/)';
|
||||
case 'copilot':
|
||||
return 'GitHub Copilot (.github/prompts/ + .shared/)';
|
||||
case 'all':
|
||||
return 'All AI assistants';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user