diff --git a/README.md b/README.md index 6a0cd0c..5744329 100755 --- a/README.md +++ b/README.md @@ -289,6 +289,7 @@ uipro init --ai warp # Warp uipro init --ai augment # Augment uipro init --ai codewhale # CodeWhale uipro init --ai zcode # ZCode +uipro init --ai amazonq # Amazon Q Developer uipro init --ai universal # Universal / Agent Standard (.agents/skills/) uipro init --ai all # All assistants ``` @@ -333,7 +334,7 @@ If it is missing, install it yourself from [python.org](https://www.python.org/d ### Skill Mode (Auto-activate) -**Supported:** Claude Code, Cursor, Windsurf, Antigravity, Codex CLI, Continue, Gemini CLI, OpenCode, Qoder, CodeBuddy, Droid (Factory), KiloCode, Warp, Augment, CodeWhale, ZCode +**Supported:** Claude Code, Cursor, Windsurf, Antigravity, Codex CLI, Continue, Gemini CLI, OpenCode, Qoder, CodeBuddy, Droid (Factory), KiloCode, Warp, Augment, CodeWhale, ZCode, Amazon Q Developer The skill activates automatically when you request UI/UX work. Just chat naturally: @@ -406,7 +407,7 @@ A plain ops dashboard ([before](https://skill-fixture-before.theroost.dev)) rest For direct access to the design system generator: -> Note: If you installed via Continue, replace `.claude/skills/` with `.continue/skills/` in the commands below. For Droid (Factory), use `.factory/skills/`. For ZCode, use `.zcode/skills/`. +> Note: If you installed via Continue, replace `.claude/skills/` with `.continue/skills/` in the commands below. For Droid (Factory), use `.factory/skills/`. For ZCode, use `.zcode/skills/`. For Amazon Q Developer, use `.amazonq/skills/` (Amazon Q only auto-loads the rule at `.amazonq/rules/ui-ux-pro-max.md`; the data and scripts under `.amazonq/skills/` are files the rule points to). ```bash # Generate design system with ASCII output diff --git a/cli/README.md b/cli/README.md index 20ad3c3..7f79ce4 100644 --- a/cli/README.md +++ b/cli/README.md @@ -24,6 +24,7 @@ uipro init --ai qoder # Qoder uipro init --ai gemini # Gemini CLI uipro init --ai trae # Trae uipro init --ai opencode # OpenCode +uipro init --ai amazonq # Amazon Q Developer uipro init --ai universal # Universal / Agent Standard (.agents/skills/) uipro init --ai all # All assistants diff --git a/cli/assets/templates/platforms/amazonq.json b/cli/assets/templates/platforms/amazonq.json new file mode 100644 index 0000000..1d67ed3 --- /dev/null +++ b/cli/assets/templates/platforms/amazonq.json @@ -0,0 +1,19 @@ +{ + "platform": "amazonq", + "displayName": "Amazon Q Developer", + "installType": "full", + "folderStructure": { + "root": ".amazonq", + "skillPath": "rules", + "filename": "ui-ux-pro-max.md", + "dataPath": "skills/ui-ux-pro-max" + }, + "scriptPath": "skills/ui-ux-pro-max/scripts/search.py", + "frontmatter": null, + "sections": { + "quickReference": false + }, + "title": "ui-ux-pro-max", + "description": "UI/UX design intelligence for web, mobile, and desktop. This skill should be used when designing, building, reviewing, or fixing interfaces, including pages, components, design systems, accessibility, interaction, responsive layout, typography, color, charts, and stack-specific UI implementation. Searchable local data: 79 searchable styles (50 active), 192 product palettes and reasoning profiles, 74 font pairings, 119 UX guidelines, 105 icons, 17 GSAP presets, 25 chart types, and 22 stacks.", + "skillOrWorkflow": "Skill" +} diff --git a/cli/src/types/index.ts b/cli/src/types/index.ts index cf45960..564c425 100755 --- a/cli/src/types/index.ts +++ b/cli/src/types/index.ts @@ -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' | 'codewhale' | 'zcode' | 'universal' | 'all'; +export type AIType = 'claude' | 'cursor' | 'windsurf' | 'antigravity' | 'copilot' | 'kiro' | 'roocode' | 'codex' | 'qoder' | 'gemini' | 'trae' | 'opencode' | 'continue' | 'codebuddy' | 'droid' | 'kilocode' | 'warp' | 'augment' | 'codewhale' | 'zcode' | 'amazonq' | 'universal' | 'all'; export type ConcreteAIType = Exclude; export type InstallType = 'full' | 'reference'; @@ -43,7 +43,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', 'codewhale', 'zcode', 'universal', 'all']; +export const AI_TYPES: AIType[] = ['claude', 'cursor', 'windsurf', 'antigravity', 'copilot', 'roocode', 'kiro', 'codex', 'qoder', 'gemini', 'trae', 'opencode', 'continue', 'codebuddy', 'droid', 'kilocode', 'warp', 'augment', 'codewhale', 'zcode', 'amazonq', 'universal', 'all']; // Legacy folder mapping for backward compatibility with ZIP-based installs. // Note: .shared is included for platforms that used ZIP installs. Post-ZIP platforms @@ -69,5 +69,6 @@ export const AI_FOLDERS: Record = { augment: ['.augment', '.shared'], codewhale: ['.codewhale', '.shared'], zcode: ['.zcode', '.shared'], + amazonq: ['.amazonq', '.shared'], universal: ['.agents', '.shared'], }; diff --git a/cli/src/utils/detect.ts b/cli/src/utils/detect.ts index 751cb25..cddc2f3 100755 --- a/cli/src/utils/detect.ts +++ b/cli/src/utils/detect.ts @@ -74,6 +74,9 @@ export function detectAIType(cwd: string = process.cwd()): DetectionResult { if (existsSync(join(cwd, '.zcode'))) { detected.push('zcode'); } + if (existsSync(join(cwd, '.amazonq'))) { + detected.push('amazonq'); + } // Suggest based on what's detected let suggested: AIType | null = null; @@ -135,6 +138,8 @@ export function getAITypeDescription(aiType: AIType): string { return 'CodeWhale (.codewhale/skills/)'; case 'zcode': return 'ZCode (.zcode/skills/)'; + case 'amazonq': + return 'Amazon Q Developer (.amazonq/rules/)'; case 'universal': return 'Universal (.agents/skills/)'; case 'all': diff --git a/cli/src/utils/template.ts b/cli/src/utils/template.ts index 63f6397..aff9108 100755 --- a/cli/src/utils/template.ts +++ b/cli/src/utils/template.ts @@ -55,6 +55,7 @@ const AI_TO_PLATFORM: Record = { augment: 'augment', codewhale: 'codewhale', zcode: 'zcode', + amazonq: 'amazonq', universal: 'universal', }; diff --git a/cli/tests/e2e/agent-query-contract.spec.ts b/cli/tests/e2e/agent-query-contract.spec.ts index e2848be..67f98d5 100644 --- a/cli/tests/e2e/agent-query-contract.spec.ts +++ b/cli/tests/e2e/agent-query-contract.spec.ts @@ -6,7 +6,7 @@ const DESCRIPTION = test('all platform metadata uses one accurate activation description', async () => { const configs = await loadAllPlatformConfigs(); - expect(configs.size).toBe(21); + expect(configs.size).toBe(22); for (const [platform, config] of configs) { expect(config.description, platform).toBe(DESCRIPTION); if (config.frontmatter?.description) { diff --git a/cli/tests/e2e/dry-run.spec.ts b/cli/tests/e2e/dry-run.spec.ts index b85b733..ffc9af7 100644 --- a/cli/tests/e2e/dry-run.spec.ts +++ b/cli/tests/e2e/dry-run.spec.ts @@ -43,6 +43,21 @@ test('dry-run plan supports the zcode platform layout', async () => { expect(joined).toContain('Would copy 6 sub-skills ('); }); +test('dry-run plan keeps amazonq data and sub-skills out of the rules folder', async () => { + const scratch = await mkdtemp(join(tmpdir(), 'uipro-dry-run-amazonq-')); + + const actions = await planPlatformInstallActions(scratch, 'amazonq'); + + expect(actions[0]).toBe( + `Would write: ${join(scratch, '.amazonq', 'rules', 'ui-ux-pro-max.md')}` + ); + expect(actions[1]).toBe( + `Would copy data + scripts: ${join(scratch, '.amazonq', 'skills', 'ui-ux-pro-max')}` + ); + expect(actions[2]).toMatch(/^Would copy 6 sub-skills \(/); + expect(actions[2].endsWith(`: ${join(scratch, '.amazonq', 'skills')}`)).toBe(true); +}); + test('dry-run plan for all platforms covers every unique layout', async () => { const scratch = await mkdtemp(join(tmpdir(), 'uipro-dry-run-all-')); diff --git a/cli/tests/e2e/template-script-paths.spec.ts b/cli/tests/e2e/template-script-paths.spec.ts index d1efa9e..8f961f7 100644 --- a/cli/tests/e2e/template-script-paths.spec.ts +++ b/cli/tests/e2e/template-script-paths.spec.ts @@ -8,6 +8,7 @@ const cases = [ ['kiro', '.kiro/steering/ui-ux-pro-max/scripts/search.py'], ['droid', '.factory/skills/ui-ux-pro-max/scripts/search.py'], ['zcode', '.zcode/skills/ui-ux-pro-max/scripts/search.py'], + ['amazonq', '.amazonq/skills/ui-ux-pro-max/scripts/search.py'], ] as const; const SEARCH_COMMAND_COUNT = 17; diff --git a/src/ui-ux-pro-max/templates/platforms/amazonq.json b/src/ui-ux-pro-max/templates/platforms/amazonq.json new file mode 100644 index 0000000..1d67ed3 --- /dev/null +++ b/src/ui-ux-pro-max/templates/platforms/amazonq.json @@ -0,0 +1,19 @@ +{ + "platform": "amazonq", + "displayName": "Amazon Q Developer", + "installType": "full", + "folderStructure": { + "root": ".amazonq", + "skillPath": "rules", + "filename": "ui-ux-pro-max.md", + "dataPath": "skills/ui-ux-pro-max" + }, + "scriptPath": "skills/ui-ux-pro-max/scripts/search.py", + "frontmatter": null, + "sections": { + "quickReference": false + }, + "title": "ui-ux-pro-max", + "description": "UI/UX design intelligence for web, mobile, and desktop. This skill should be used when designing, building, reviewing, or fixing interfaces, including pages, components, design systems, accessibility, interaction, responsive layout, typography, color, charts, and stack-specific UI implementation. Searchable local data: 79 searchable styles (50 active), 192 product palettes and reasoning profiles, 74 font pairings, 119 UX guidelines, 105 icons, 17 GSAP presets, 25 chart types, and 22 stacks.", + "skillOrWorkflow": "Skill" +}