diff --git a/README.md b/README.md index 649e38d..8195dd8 100644 --- a/README.md +++ b/README.md @@ -97,7 +97,7 @@ Install and update also rebuild internally; the explicit build above lets you ch update refuses to run against one that is not installed yet, and uninstall refuses to run against one that was never installed. - User-level extension installation for Ponytail, i-have-adhd, Superpowers, Context7, Caveman (Claude only), MCPorter, - Humanizer, Impeccable, REA, and Modern Web Guidance, with an interactive extension toggle during both install and update. Only extensions + Humanizer, Impeccable, Apple Design, REA, and Modern Web Guidance, with an interactive extension toggle during both install and update. Only extensions installed and recorded by this setup can be removed through deselection. - Optional local search for both clients through QMD with Qwen3-Embedding-4B, Qwen3-Reranker-4B, and QMD Query Expansion 1.7B (Yes/No/Auto; Auto benchmarks GPU, then CPU). diff --git a/adapters/plugins.tsv b/adapters/plugins.tsv index eff6adf..9a1d988 100644 --- a/adapters/plugins.tsv +++ b/adapters/plugins.tsv @@ -9,3 +9,4 @@ Humanizer blader/humanizer humanizer@humanizer - - skill blader/humanizer humani Impeccable pbakaus/impeccable impeccable@impeccable pbakaus/impeccable impeccable skill pbakaus/impeccable impeccable REA morluto/rea rea@rea morluto/rea rea@rea plugin - - Modern Web Guidance GoogleChrome/modern-web-guidance modern-web-guidance@googlechrome GoogleChrome/modern-web-guidance modern-web-guidance@googlechrome plugin - - +Apple Design - - - - skill dickwu/apple-design-skill apple-design diff --git a/docs/plugins.md b/docs/plugins.md index d1e05ba..8c24870 100644 --- a/docs/plugins.md +++ b/docs/plugins.md @@ -2,7 +2,7 @@ The user-level plugin manifest is `adapters/plugins.tsv`. It maps each logical extension to the client-specific plugin, skill, or MCP installation method. -The current baseline includes Ponytail, i-have-adhd, Superpowers, Context7, Caveman (Claude only), MCPorter, Humanizer, Impeccable, REA, and Modern Web Guidance. Install and update operate at user scope and show an extension selector unless running a dry run or Quickupdate. Selections are collected before configuration changes. Both rebuild generated packages before synchronizing client files and extensions. Choosing Auto for local search can prepare and benchmark QMD earlier, during option selection. +The current baseline includes Ponytail, i-have-adhd, Superpowers, Context7, Caveman (Claude only), MCPorter, Humanizer, Impeccable, Apple Design, REA, and Modern Web Guidance. Install and update operate at user scope and show an extension selector unless running a dry run or Quickupdate. Selections are collected before configuration changes. Both rebuild generated packages before synchronizing client files and extensions. Choosing Auto for local search can prepare and benchmark QMD earlier, during option selection. ### Automatic workflow integration @@ -47,7 +47,7 @@ The check passes only if documentation retrieval returns relevant content with a Codex's local `plugins` and `marketplaces` tables survive configuration synchronization, along with other root keys, extra fields in managed tables, other unmanaged tables, and unowned array tables; changed files are backed up. Cached plugin files alone are not treated as proof of installation: selection uses the client CLI's installed list. If an older update removed the registrations, inspect the backed-up `config.toml` under `~/.codex/backups/` and reselect the affected plugins on the next update. -Caveman is installed for Claude only: a `-` in the `codex_method` column marks a Claude-only extension, which the Codex selector omits and which install and update remove from Codex when this setup installed it there. Humanizer and Impeccable are downloaded to Codex as skill payloads from the GitHub sources in the manifest, without running upstream installers. Both appear in the extension selector for Codex. Impeccable's design-detector hooks run in every project for both clients: Claude through the plugin's own hooks, Codex through the registered `Invoke-ImpeccableHook`/`invoke-impeccable-hook.sh` wrapper (see `shared/hooks/README.md`). No per-project `impeccable hooks on` is needed; `impeccable hooks off` still disables a project. Ownership is recorded in `~/.my-ai-configuration/extensions.json`. Skill files are tracked by hash; modified or foreign files are retained with a warning. Existing installations from before ownership tracking are not automatically adopted. +Caveman is installed for Claude only: a `-` in the `codex_method` column marks a Claude-only extension, which the Codex selector omits and which install and update remove from Codex when this setup installed it there. Humanizer and Impeccable are downloaded to Codex as skill payloads from the GitHub sources in the manifest, without running upstream installers. Both appear in the extension selector for Codex. Apple Design has no plugin marketplace, so a `-` in `claude_plugin` together with `codex_method` `skill` installs the same payload for Claude into `~/.claude/skills/apple-design`. Each update downloads the latest upstream commit and records its revision. Impeccable's design-detector hooks run in every project for both clients: Claude through the plugin's own hooks, Codex through the registered `Invoke-ImpeccableHook`/`invoke-impeccable-hook.sh` wrapper (see `shared/hooks/README.md`). No per-project `impeccable hooks on` is needed; `impeccable hooks off` still disables a project. Ownership is recorded in `~/.my-ai-configuration/extensions.json`. Skill files are tracked by hash; modified or foreign files are retained with a warning. Existing installations from before ownership tracking are not automatically adopted. ### Setup options outside the extension selector diff --git a/docs/skills.md b/docs/skills.md index 70155f6..b888be8 100644 --- a/docs/skills.md +++ b/docs/skills.md @@ -17,7 +17,7 @@ The current structure is organized by purpose: General planning, debugging, code review, and completion verification workflows come from Superpowers, so the catalog does not duplicate their triggers. The remaining skills cover focused domains Superpowers does not. -The shared `plugin-workflow` skill coordinates automatic plugin use: Superpowers for process, Ponytail for implementation and review, Impeccable for UI, REA for reverse engineering, and i-have-adhd with Caveman for responses. Global instructions require it for development tasks, on resume, and at phase changes; questions and prose-only changes skip it. It routes to installed skills, preserves explicit opt-outs, and handles missing or manual-only plugins without replacing upstream workflows. +The shared `plugin-workflow` skill coordinates automatic plugin use: Superpowers for process, Ponytail for implementation and review, Impeccable and Apple Design together for UI (Impeccable leads direction and edits, Apple Design supplies cited platform and accessibility constraints and a merged review), REA for reverse engineering, and i-have-adhd with Caveman for responses. Global instructions require it for development tasks, on resume, and at phase changes; questions and prose-only changes skip it. It routes to installed skills, preserves explicit opt-outs, and handles missing or manual-only plugins without replacing upstream workflows. Each skill defines a focused workflow with the investigation, decision points, and output expected for that task. Each skill also has an `evals/evals.json` with test prompts and checkable assertions derived from its instructions, including negative and near-miss cases; some assertions about tool use or skill loading can only be graded from a session transcript. Keep guidance specific to the skill; shared repository constraints belong in the rules. diff --git a/scripts/lib/managed-extensions.py b/scripts/lib/managed-extensions.py index 961e579..f813228 100644 --- a/scripts/lib/managed-extensions.py +++ b/scripts/lib/managed-extensions.py @@ -208,7 +208,8 @@ class Manager: raise ValueError('Invalid owned plugin source.') elif resource['kind'] == 'skill': directory = resource.get('directory', '') - if not re.fullmatch(r'\.agents/skills/[A-Za-z0-9_-]+', directory) or resource['client'] != 'codex': + roots = {'codex': r'\.agents', 'claude': r'\.claude'} + if resource['client'] not in roots or not re.fullmatch(roots[resource['client']] + r'/skills/[A-Za-z0-9_-]+', directory): raise ValueError('Invalid owned skill directory.') safe_path(self.home, directory) if not isinstance(resource.get('files'), dict): @@ -337,7 +338,8 @@ class Manager: if entry['codex_method'] == 'cli': self.ensure_cli(client, entry) return - skill = client == 'codex' and entry['codex_method'] != 'plugin' + # A Claude row without a plugin ('-') reuses the skill payload from codex_source. + skill = entry['codex_method'] == 'skill' and (client == 'codex' or entry['claude_plugin'] == '-') kind = 'skill' if skill else 'plugin' record = next((r for r in self.state['resources'] if r['client'] == client and r['name'] == entry['name']), None) selector = entry[client + '_plugin'] @@ -351,7 +353,7 @@ class Manager: print(f'DRYRUN ensure {client} {kind}: {entry["name"]}') return if skill: - self.ensure_skill(entry, record) + self.ensure_skill(client, entry, record) return if not re.fullmatch(r'[A-Za-z0-9_.-]+@[A-Za-z0-9_.-]+', selector): raise ValueError('Invalid plugin selector.') @@ -499,16 +501,16 @@ class Manager: record.update(server=server, url=url) self.save() - def ensure_skill(self, entry, record): + def ensure_skill(self, client, entry, record): skill = entry['codex_skill'] if not re.fullmatch(r'[A-Za-z0-9_-]+', skill): raise ValueError('Invalid skill name.') - directory = '.agents/skills/' + skill + directory = ('.agents/skills/' if client == 'codex' else '.claude/skills/') + skill target = self.home / directory - alternate = self.home / '.codex' / 'skills' / skill + alternate = self.home / '.codex' / 'skills' / skill if client == 'codex' else target if record is None and (target.exists() or target.is_symlink() or alternate.exists() or alternate.is_symlink()): if not self.summary: - print(f'PASS Preserving pre-existing Codex skill: {skill}') + print(f'PASS Preserving pre-existing {client} skill: {skill}') return target = safe_path(self.home, directory) if record and record['directory'] != directory: @@ -522,7 +524,7 @@ class Manager: _, files = fetched[:2] revision = fetched[2] if len(fetched) > 2 else None if record is None: - record = dict(client='codex', name=entry['name'], kind='skill', directory=directory, source=entry['codex_source'], files={}, complete=False) + record = dict(client=client, name=entry['name'], kind='skill', directory=directory, source=entry['codex_source'], files={}, complete=False) self.state['resources'].append(record) self.save() record['complete'] = False diff --git a/scripts/lib/plugins.ps1 b/scripts/lib/plugins.ps1 index 46c2b6a..383ef47 100644 --- a/scripts/lib/plugins.ps1 +++ b/scripts/lib/plugins.ps1 @@ -143,6 +143,8 @@ function Select-ConfiguredPlugins { $selector = if ($referenceClient -eq 'Claude') { $entry.claude_plugin } else { $entry.codex_plugin } if ($referenceClient -eq 'Codex' -and $entry.codex_method -ne 'plugin') { $found = $found -or (Test-Path -LiteralPath (Join-Path $HomePath ('.agents/skills/' + $entry.codex_skill))) -or (Test-Path -LiteralPath (Join-Path $HomePath ('.codex/skills/' + $entry.codex_skill))) + } elseif ($referenceClient -eq 'Claude' -and $entry.claude_plugin -eq '-' -and $entry.codex_method -eq 'skill') { + $found = $found -or (Test-Path -LiteralPath (Join-Path $HomePath ('.claude/skills/' + $entry.codex_skill))) } else { $idField = if ($referenceClient -eq 'Claude') { 'id' } else { 'pluginId' } $found = $found -or [bool](@($installed[$referenceClient] | Where-Object { $_.$idField -eq $selector }).Count) diff --git a/scripts/lib/plugins.sh b/scripts/lib/plugins.sh index a56d325..d707d9a 100755 --- a/scripts/lib/plugins.sh +++ b/scripts/lib/plugins.sh @@ -186,6 +186,8 @@ select_configured_plugins() { local skill_name skill_name=$(plugin_field "$root" "$name" codex_skill) { [ -d "$HOME/.agents/skills/$skill_name" ] || [ -d "$HOME/.codex/skills/$skill_name" ]; } && found=true + elif [ "$reference_client" = claude ] && [ "$selector" = - ] && [ "$(plugin_field "$root" "$name" codex_method)" = skill ]; then + [ -d "$HOME/.claude/skills/$(plugin_field "$root" "$name" codex_skill)" ] && found=true elif plugin_installed "$reference_client" "$selector"; then found=true else status=$? diff --git a/scripts/tests/test-managed-extensions.py b/scripts/tests/test-managed-extensions.py index 7deab28..f1e083b 100644 --- a/scripts/tests/test-managed-extensions.py +++ b/scripts/tests/test-managed-extensions.py @@ -105,6 +105,16 @@ class ManagedExtensionTests(unittest.TestCase): self.assertEqual('foreign', target.read_text()) self.assertEqual([], self.manager().state['resources']) + def test_skill_without_claude_plugin_installs_skill_payload_for_both_clients(self): + entry = dict(skill(), claude_plugin='-', claude_marketplace='-') + self.manager().sync([entry], ['claude', 'codex'], {'Humanizer'}) + self.assertEqual('original', (self.home / '.claude/skills/humanizer/SKILL.md').read_text()) + self.assertEqual('original', (self.home / '.agents/skills/humanizer/SKILL.md').read_text()) + self.assertEqual([], self.commands) + self.manager().sync([], ['claude'], set()) + self.assertFalse((self.home / '.claude/skills/humanizer').exists()) + self.assertEqual(['codex'], [r['client'] for r in self.manager().state['resources']]) + def test_skill_removal_preserves_modified_and_foreign_files(self): self.manager().sync([skill()], ['codex'], {'Humanizer'}) directory = self.home / '.agents/skills/humanizer' diff --git a/shared/rules/ui-ux/index.md b/shared/rules/ui-ux/index.md index ee990fb..6170d36 100644 --- a/shared/rules/ui-ux/index.md +++ b/shared/rules/ui-ux/index.md @@ -2,6 +2,8 @@ For interface design or interaction changes, load the principles and only the focused topic rules relevant to the user flow. +These rules are the shared baseline. User instructions and project rules (AGENTS.md or CLAUDE.md, PRODUCT.md, DESIGN.md, the existing design system) override them. When the Impeccable and Apple Design skills are installed, `plugin-workflow` coordinates them on top of this baseline. Restrained visual design is the default for task-focused screens; a marketing or showcase surface may set a bolder direction. + | Topic | Codex rule | Claude skill | | --- | --- | --- | | General design principles and trade-offs | `references/principles-and-priorities.md` | `rules-ui-ux-principles-and-priorities` | diff --git a/shared/rules/ui-ux/references/content-and-feedback.md b/shared/rules/ui-ux/references/content-and-feedback.md index e6b88a3..15619b1 100644 --- a/shared/rules/ui-ux/references/content-and-feedback.md +++ b/shared/rules/ui-ux/references/content-and-feedback.md @@ -42,7 +42,7 @@ Apply these rules when writing interface text or designing loading, progress, su * Use optimistic UI only when failures can be handled safely. * Avoid layout jumps during loading. * Reserve space for content where practical. -* Keep animations short and functional. +* Keep animations short and functional. A marketing or showcase surface may have one orchestrated moment when it serves the brief, never blocks the task, and respects reduced motion. * Do not use animations that delay task completion. * Respect reduced-motion preferences. * Avoid unnecessary transitions and visual effects. diff --git a/shared/rules/ui-ux/references/destructive-and-error-prevention.md b/shared/rules/ui-ux/references/destructive-and-error-prevention.md index 0a9eeb1..d233ffc 100644 --- a/shared/rules/ui-ux/references/destructive-and-error-prevention.md +++ b/shared/rules/ui-ux/references/destructive-and-error-prevention.md @@ -5,7 +5,7 @@ Apply these rules when designing destructive or irreversible actions, defaults, ## Destructive Actions * Clearly label destructive actions. -* Use confirmations for irreversible or high-impact operations. +* Use confirmations for irreversible or high-impact operations. For reversible destructive actions, offer undo instead of a confirmation. * Explain the consequence before confirmation. * Prefer reversible actions when possible. * Offer undo where practical. @@ -58,7 +58,7 @@ Apply these rules when designing destructive or irreversible actions, defaults, * Optimize perceived performance as well as actual performance. * Show useful content as early as possible. * Avoid blocking initial rendering on non-critical data. -* Use skeletons only when they improve comprehension. +* Inside content areas, prefer skeletons that mirror the real layout over spinners. Use them only when they reflect the actual structure. * Avoid fake progress. * Do not use loading animations to mask avoidable slowness. * Keep interactions responsive even while background work continues. diff --git a/shared/rules/ui-ux/references/navigation-and-actions.md b/shared/rules/ui-ux/references/navigation-and-actions.md index 025e9cd..d4df0c3 100644 --- a/shared/rules/ui-ux/references/navigation-and-actions.md +++ b/shared/rules/ui-ux/references/navigation-and-actions.md @@ -23,9 +23,9 @@ Apply these rules when designing navigation structure, buttons, menus, and prima * Avoid vague labels such as `OK`, `Submit`, `Proceed` or `Execute` when a more specific label is possible. * Make destructive actions clearly distinguishable. * Keep dangerous actions away from common actions. -* Require confirmation for destructive or difficult-to-reverse actions. -* Do not require unnecessary confirmation for safe, reversible actions. -* Disable unavailable actions when the reason is obvious. +* Require confirmation for irreversible or high-impact destructive actions. +* Prefer undo over confirmation for destructive actions that can be reversed. Do not require unnecessary confirmation for safe, reversible actions. +* Disable unavailable actions when the reason is obvious. Keep navigation destinations such as tabs visible and enabled. * Explain why an action is unavailable when it is not obvious. * Avoid actions that appear clickable but are not. * Provide immediate visual feedback after user actions. diff --git a/shared/rules/ui-ux/references/principles-and-priorities.md b/shared/rules/ui-ux/references/principles-and-priorities.md index e1d197a..8b61ad3 100644 --- a/shared/rules/ui-ux/references/principles-and-priorities.md +++ b/shared/rules/ui-ux/references/principles-and-priorities.md @@ -2,9 +2,11 @@ Apply these principles across interface work. Use the other UI/UX rules only for the affected screen or interaction. +User instructions and project rules (AGENTS.md or CLAUDE.md, PRODUCT.md, DESIGN.md, the existing design system) override these rules. When the Impeccable and Apple Design skills are installed, follow the roles and precedence in `plugin-workflow`'s UI section; these rules stay the baseline beneath them. + * Design for clarity and low cognitive load. Give each screen a clear purpose and make important actions easy to discover. * Prefer familiar, predictable patterns. Keep layouts calm, group related content, and use hierarchy, spacing, typography, and color consistently. -* Minimize steps for common tasks. Remove decorative elements, choices, and interactions that do not help users complete a task. +* Minimize steps for common tasks. Remove decorative elements, choices, and interactions that do not help users complete a task. On marketing and showcase surfaces, a deliberate signature element may serve the brief, as long as it never blocks the task. * Make primary actions distinct from secondary actions. Keep related information and actions close, and keep important information visible without unnecessary scrolling. * Every interaction adds cognitive cost. Prefer fewer clear choices and predictable behavior over clever or surprising automation. * Prioritize correctness, clarity, safety, accessibility, user control, task efficiency, consistency, and responsiveness before visual polish. diff --git a/shared/rules/ui-ux/references/visual-and-accessibility.md b/shared/rules/ui-ux/references/visual-and-accessibility.md index 0e03557..51af34f 100644 --- a/shared/rules/ui-ux/references/visual-and-accessibility.md +++ b/shared/rules/ui-ux/references/visual-and-accessibility.md @@ -4,14 +4,14 @@ Apply these rules when choosing layout, typography, color, focus behavior, acces ## Visual Design -* Prefer modern, clean and restrained visual design. +* Prefer modern, clean and restrained visual design on task-focused screens. Marketing and showcase surfaces may take a bolder direction set by the brief or the design system, within the accessibility rules below. * Use a consistent design system. * Keep typography hierarchy clear. * Maintain sufficient contrast. * Use color intentionally. * Do not rely on color alone to communicate state. * Keep the number of accent colors limited. -* Avoid excessive gradients, shadows and decorative effects. +* Avoid excessive gradients, shadows and decorative effects. Spend boldness on one deliberate signature element instead of spreading effects everywhere. * Use rounded corners, borders and elevation consistently. * Keep icons stylistically consistent. * Use familiar icons for familiar actions. diff --git a/shared/skills/content-strategy/SKILL.md b/shared/skills/content-strategy/SKILL.md index 668fb8b..1eec637 100644 --- a/shared/skills/content-strategy/SKILL.md +++ b/shared/skills/content-strategy/SKILL.md @@ -9,6 +9,8 @@ metadata: You are a content strategist. Your goal is to help plan content that drives traffic, builds authority, and generates leads by being either searchable, shareable, or both. +When this work belongs to a UI design or build task, follow the roles in `plugin-workflow`'s UI section: settle content hierarchy before Impeccable shapes the visual direction. + ## Before Planning **Check for product marketing context first:** diff --git a/shared/skills/copy-editing/SKILL.md b/shared/skills/copy-editing/SKILL.md index f89717c..a283655 100644 --- a/shared/skills/copy-editing/SKILL.md +++ b/shared/skills/copy-editing/SKILL.md @@ -9,6 +9,8 @@ metadata: You are an expert copy editor specializing in marketing and conversion copy. Your goal is to systematically improve existing copy through focused editing passes while preserving the core message. +When this work belongs to a UI design or build task, follow the roles in `plugin-workflow`'s UI section: you edit marketing and website copy, Impeccable fixes interface copy with `clarify`, and `humanizer` runs last. + ## Core Philosophy **Check for product marketing context first:** diff --git a/shared/skills/copywriting/SKILL.md b/shared/skills/copywriting/SKILL.md index 8befacc..839624f 100644 --- a/shared/skills/copywriting/SKILL.md +++ b/shared/skills/copywriting/SKILL.md @@ -9,6 +9,8 @@ metadata: You are an expert conversion copywriter. Your goal is to write marketing copy that is clear, compelling, and drives action. +When this work belongs to a UI design or build task, follow the roles in `plugin-workflow`'s UI section: you write marketing and website copy within Impeccable's visual direction, Impeccable writes interface copy, and `humanizer` runs last. + ## Before Writing **Check for product marketing context first:** diff --git a/shared/skills/cro/SKILL.md b/shared/skills/cro/SKILL.md index a74b9ce..0fb1c0c 100644 --- a/shared/skills/cro/SKILL.md +++ b/shared/skills/cro/SKILL.md @@ -9,6 +9,8 @@ metadata: You are a conversion rate optimization expert. Your goal is to analyze marketing pages and provide actionable recommendations to improve conversion rates. +When this work belongs to a UI design or build task, follow the roles in `plugin-workflow`'s UI section: report recommendations as findings in the shared review step, and let Impeccable apply visual changes. + ## Initial Assessment **Check for product marketing context first:** diff --git a/shared/skills/image/SKILL.md b/shared/skills/image/SKILL.md index 1001066..d1b0f2d 100644 --- a/shared/skills/image/SKILL.md +++ b/shared/skills/image/SKILL.md @@ -7,6 +7,8 @@ description: Use when integrating image assets or screenshots, improving image S Use the project's existing assets, components, and image pipeline. Ask only for missing information that affects the result. +When this work belongs to a UI design or build task, follow the roles in `plugin-workflow`'s UI section: prepare assets inside Impeccable's visual world. + ## Workflow 1. Inspect the source asset and its intended placement: display size, responsive layout, transparency, and supported clients. Apply `technical-research` when format support or framework behavior needs verification. diff --git a/shared/skills/marketing-psychology/SKILL.md b/shared/skills/marketing-psychology/SKILL.md index f1120a4..bcc3c06 100644 --- a/shared/skills/marketing-psychology/SKILL.md +++ b/shared/skills/marketing-psychology/SKILL.md @@ -9,6 +9,8 @@ metadata: You are an expert in applying psychological principles and mental models to marketing. Your goal is to help users understand why people buy, how to influence behavior ethically, and how to make better marketing decisions. +When this work belongs to a UI design or build task, follow the roles in `plugin-workflow`'s UI section: report suggestions as findings in the shared review step, never as dark patterns. + ## How to Use This Skill **Check for product marketing context first:** diff --git a/shared/skills/offers/SKILL.md b/shared/skills/offers/SKILL.md index acd91cb..02b4c98 100644 --- a/shared/skills/offers/SKILL.md +++ b/shared/skills/offers/SKILL.md @@ -9,6 +9,8 @@ metadata: You are an expert in offer construction. Your goal is to help the user build offers that move — not by writing better copy on a worse offer, but by improving the offer itself. +When this work belongs to a UI design or build task, follow the roles in `plugin-workflow`'s UI section: report offer changes as findings in the shared review step. + ## Before Starting **Check for product marketing context first:** diff --git a/shared/skills/plugin-workflow/SKILL.md b/shared/skills/plugin-workflow/SKILL.md index b904429..7f6135d 100644 --- a/shared/skills/plugin-workflow/SKILL.md +++ b/shared/skills/plugin-workflow/SKILL.md @@ -24,13 +24,48 @@ Keep Context7 checkpoints within this workflow. Existing authorization stands; a MUST load `ponytail` in `ultra` mode before coding, fixing, refactoring, configuring, choosing dependencies, or reviewing. Inspect affected callers and consumers. Prefer existing code, then platform features, then installed dependencies. Implement the smallest complete change; remove speculative abstractions without cutting requested behavior, security, accessibility, or error handling. Verify non-trivial logic proportionally. Apply `ponytail-review` when reviewing changes, inside the existing review phase. For whole-repository quality audits, use `ponytail-audit`; for questions about deferred work or `shortcut:` comments, use `ponytail-debt`. Both are read-only reports. Report skipped checks and material risks concisely. -## Impeccable: UI +## Impeccable and Apple Design: UI -MUST load `impeccable` before UI planning, edits, debugging, or review, including accessibility, responsive behavior, UI copy, and frontend performance. Follow installed context setup, relevant references, and launcher fallback within permissions. Preserve the brief and existing design system. Verify affected states and layouts; batch findings and bound confirmation passes. Report unavailable previews honestly. Impeccable owns UI decisions; Superpowers owns process. Backend-only tasks skip this layer. +MUST load `impeccable` and `apple-design` before UI planning, edits, debugging, or review, including accessibility, responsive behavior, UI copy, and frontend performance. Backend-only tasks skip this layer. If one is missing, report it once and run the other alone. Follow installed context setup, relevant references, and launcher fallback within permissions. Preserve the brief and existing design system. Report unavailable previews honestly. Superpowers owns process. + +The two skills work as one design team, each covering the other's blind spot: + +- Impeccable leads direction and execution: project context (PRODUCT.md, DESIGN.md), surface mode, visual world, commands, craft floor, edits, rendered verification, and its detector. +- Apple Design leads evidence: platform conventions and accessibility from the Human Interface Guidelines, its eight principles, five lenses, severity scale, and framework translation. It reads the guideline pages before citing them as `file.md › Heading`. + +Run each UI task as one loop: + +1. Context: run Impeccable's context setup. Apple Design pins platform, framework, and the screen's single job, loads its always-load set plus the pages for the components in scope, and hands Impeccable the resulting constraints: target sizes, type minimums, contrast, navigation pattern, and modality rules. +2. Direction: Impeccable shapes the work within those constraints. For a new surface or redesign, Apple Design checks the plan once with its improvement-mode critique (would the same plan fit another product?) and names system components for navigation and controls. +3. Build: Impeccable reads its craft floor and edits. Navigation and controls use the components Apple Design named; identity lives in color, type, imagery, voice, and a few defining moments. +4. Review: run Impeccable `critique` or `audit`, Apple Design's lens review, and the `ui-ux-review` checks on the same rendered result. Merge them into one report without duplicates: Apple Design's severity and citations, Impeccable's evidence and detector output, and `ui-ux-review`'s task impact. Never deliver separate reports. +5. Fix: resolve Critical and High findings through the matching Impeccable command (`harden`, `adapt`, `clarify`, `layout`, `typeset`, `polish`), then run one bounded confirmation pass with both. Do not loop again without new evidence. + +Precedence, highest first; a higher source wins every conflict with a lower one: + +1. The user's direct and personal instructions. +2. Project rules: the project's AGENTS.md or CLAUDE.md, PRODUCT.md, DESIGN.md, a pinned brief, and the existing design system and components. +3. The shared UI/UX rules (`rules-ui-ux`). +4. Apple Design for accessibility and platform conventions, cited from a guideline page that was read. +5. Impeccable for visual direction, brand, mode, and ambition, within everything above. Apple Design's craft lens advises it and never flattens personality. + +Accessibility failures are always reported, even when a higher source causes them; name the trade-off and let the user decide. Never silently override a higher source to satisfy a lower one. + +Platform scope: Apple platform conventions apply only where the product targets iOS, iPadOS, or macOS. For web, Android, Windows (WPF, WinUI), and Linux, Apple Design contributes its principles and foundations (accessibility, color, typography, layout, writing) only; that platform's own conventions decide navigation, menus, settings, and window behavior (Material on Android, Fluent and Windows conventions on Windows, browser conventions on the web), together with the matching technology rules such as `rules-wpf` or `rules-angular`. + +Supporting skills join the same loop instead of running beside it. Each keeps its specialty, and the precedence above decides conflicts: + +- UI copy has one writer. Impeccable writes interface copy (`clarify` for fixes). `copywriting` writes and `copy-editing` edits marketing and website copy for Persuade and Read surfaces, within Impeccable's direction. Apple Design's writing lens and the shared content rules check the result in the review step. `humanizer` runs last on new or rewritten copy and keeps labels, terms, length, and platform capitalization. +- Positioning and structure come before direction. `product-marketing` context feeds Impeccable's PRODUCT.md, and `site-architecture` or `content-strategy` settle page hierarchy and navigation before Impeccable shapes the visual direction. +- `cro`, `offers`, and `marketing-psychology` contribute findings in the review step, not separate redesigns. Their suggestions stay honest: no fake scarcity, dark patterns, or manipulation. +- `image` prepares and optimizes assets inside Impeccable's visual world. +- Technical reviews such as `wpf-review` and the Angular or WPF rules add their findings to the same merged report. + +Visual restraint from the shared rules is the default for Impeccable's Operate and Read modes. In Persuade and Experience modes, Impeccable's mode sets the ambition unless a higher source pins it. ## Modern Web Guidance: web platform -MUST load `modern-web-guidance` before writing or changing HTML, CSS, or client-side JavaScript/TypeScript, including framework templates and styles; load `chrome-extensions` for browser extension work. Search and retrieve matching guides before ad-hoc code or new dependencies. Impeccable decides design; this layer picks platform APIs and patterns; Context7 still covers framework and library behavior. Its documented `npx` launcher is part of the selected plugin; if the npm registry is blocked or offline, report it and continue with the research gate. Backend, build tooling, scripts, and tests skip this layer. +MUST load `modern-web-guidance` before writing or changing HTML, CSS, or client-side JavaScript/TypeScript, including framework templates and styles; load `chrome-extensions` for browser extension work. Search and retrieve matching guides before ad-hoc code or new dependencies. Impeccable and Apple Design decide design; this layer picks platform APIs and patterns; Context7 still covers framework and library behavior. Its documented `npx` launcher is part of the selected plugin; if the npm registry is blocked or offline, report it and continue with the research gate. Backend, build tooling, scripts, and tests skip this layer. ## REA: reverse engineering diff --git a/shared/skills/plugin-workflow/evals/evals.json b/shared/skills/plugin-workflow/evals/evals.json index f0024d3..3bffb22 100644 --- a/shared/skills/plugin-workflow/evals/evals.json +++ b/shared/skills/plugin-workflow/evals/evals.json @@ -46,6 +46,46 @@ "Does not apply humanizer for the one-word typo fix" ], "files": [] + }, + { + "id": 4, + "prompt": "Review and improve the settings screen of our Flutter iOS app: lib/screens/settings_screen.dart. The toggles feel cramped and the screen looks generic. (Installed: superpowers, ponytail, impeccable, apple-design.)", + "expected_output": "This is a UI development task. Should load impeccable and apple-design before planning. Apple Design should pin platform and framework, load its always-load set plus the settings and toggle pages, and supply cited constraints such as target sizes. Impeccable should lead direction and edits within those constraints. Both should review the same result and produce one merged, deduplicated finding list with Apple Design's severity and citations. Accessibility and platform conventions follow the cited guideline; visual identity follows Impeccable. Ends with one bounded confirmation pass.", + "assertions": [ + "Loads both impeccable and apple-design before planning or editing the UI", + "Cites Apple Design guideline pages only after reading them", + "Lets Impeccable lead visual direction and edits within the platform and accessibility constraints", + "Merges both reviews into one deduplicated finding list with severity", + "Resolves accessibility or platform conflicts by the cited guideline, not by visual preference", + "Runs at most one confirmation pass after fixes unless new evidence appears" + ], + "files": [] + }, + { + "id": 5, + "prompt": "Polish the order list window in our WPF app (Views/OrderListView.xaml). The project's AGENTS.md says: 'All buttons use our 32px compact height from Styles/Buttons.xaml.' (Installed: superpowers, ponytail, impeccable, apple-design.)", + "expected_output": "This is a UI development task on Windows. Should load impeccable and apple-design and the WPF rules. Apple Design should contribute only principles and foundations, not macOS conventions such as the menu bar or settings under the app menu; Windows and WPF conventions decide navigation, menus, and settings. The project's 32px button rule outranks both skills and is kept; if it creates an accessibility issue, the issue is reported as a trade-off for the user to decide rather than silently overridden. Delivers one merged review.", + "assertions": [ + "Loads impeccable, apple-design, and the WPF rules before editing", + "Does not apply macOS conventions such as menu bar placement or app-menu settings to the WPF app", + "Keeps the project's 32px button height instead of overriding it with Apple Design target sizes", + "Reports any resulting accessibility concern as a trade-off for the user to decide", + "Delivers one merged review instead of separate reports" + ], + "files": [] + }, + { + "id": 6, + "prompt": "Rework the pricing page in src/app/pricing: new headline and plan copy, better conversion, and add a 'Only 3 spots left' banner to push sign-ups. (Installed: superpowers, ponytail, impeccable, apple-design, humanizer.)", + "expected_output": "This is a UI development task on a Persuade surface. Impeccable leads visual direction and edits. copywriting writes the headline and plan copy within that direction, humanizer runs last on the new copy, and Apple Design's writing lens checks it in review. cro and offers contribute findings in the shared review step rather than a separate redesign. The 'Only 3 spots left' banner is not added unless the scarcity is real; the agent asks or flags it as a dark pattern. Delivers one merged report.", + "assertions": [ + "Lets Impeccable lead the visual direction and edits of the pricing page", + "Uses copywriting for the marketing copy and runs humanizer on the new copy last", + "Reports cro or offers suggestions as findings in one merged review", + "Does not add the scarcity banner without confirming the scarcity is real", + "Delivers one merged report instead of separate skill reports" + ], + "files": [] } ] } diff --git a/shared/skills/product-marketing/SKILL.md b/shared/skills/product-marketing/SKILL.md index 7c7a160..65b235d 100644 --- a/shared/skills/product-marketing/SKILL.md +++ b/shared/skills/product-marketing/SKILL.md @@ -11,6 +11,8 @@ You help users create and maintain a product marketing context document. This ca The document is stored at `.agents/product-marketing.md`. +When this work belongs to a UI design or build task, follow the roles in `plugin-workflow`'s UI section: this context also feeds Impeccable's PRODUCT.md. + ## Workflow ### Step 1: Check for Existing Context diff --git a/shared/skills/reviews/ui-ux-review/SKILL.md b/shared/skills/reviews/ui-ux-review/SKILL.md index fb386f6..4232954 100644 --- a/shared/skills/reviews/ui-ux-review/SKILL.md +++ b/shared/skills/reviews/ui-ux-review/SKILL.md @@ -5,7 +5,7 @@ description: Use when reviewing a user-facing screen or interaction for task cla # UI UX Review -Use when reviewing a user-facing screen or interaction for usability, clarity, accessibility, or consistency. +Use when reviewing a user-facing screen or interaction for usability, clarity, accessibility, or consistency. When Impeccable or Apple Design is installed, run these checks inside their shared review step and deliver one merged report, as `plugin-workflow` describes. ## Review diff --git a/shared/skills/reviews/wpf-review/SKILL.md b/shared/skills/reviews/wpf-review/SKILL.md index c2712a2..e7d6774 100644 --- a/shared/skills/reviews/wpf-review/SKILL.md +++ b/shared/skills/reviews/wpf-review/SKILL.md @@ -7,6 +7,8 @@ description: Use when reviewing WPF, XAML, or MVVM desktop changes, including bi Use when reviewing WPF, XAML, or MVVM desktop changes. +When this work belongs to a UI design or build task, follow the roles in `plugin-workflow`'s UI section: add findings to the merged UI report instead of a separate one. + ## Review - Trace `DataContext`, binding paths, update modes, validation, and `INotifyPropertyChanged` behavior. Check collection updates and selection state. diff --git a/shared/skills/site-architecture/SKILL.md b/shared/skills/site-architecture/SKILL.md index da05203..85e796a 100644 --- a/shared/skills/site-architecture/SKILL.md +++ b/shared/skills/site-architecture/SKILL.md @@ -9,6 +9,8 @@ metadata: You are an information architecture expert. Your goal is to help plan website structure — page hierarchy, navigation, URL patterns, and internal linking — so the site is intuitive for users and optimized for search engines. +When this work belongs to a UI design or build task, follow the roles in `plugin-workflow`'s UI section: settle hierarchy and navigation before Impeccable shapes the visual direction. + ## Before Planning **Check for product marketing context first:**