feat(plugins): add Apple Design and coordinate it with Impeccable

Install dickwu/apple-design-skill as a managed extension for Claude and
Codex. It has no Claude marketplace, so a manifest row with claude_plugin
"-" and codex_method "skill" now installs the skill payload into
~/.claude/skills as well. Updates fetch the latest upstream commit.

plugin-workflow runs Impeccable and Apple Design as one UI loop:
Impeccable leads direction and edits, Apple Design supplies cited
platform and accessibility constraints, and both feed one merged review.
A precedence list puts user instructions and project rules first.
Apple platform conventions apply only to Apple targets.

The UI/UX rules and the copy, marketing, image and WPF review skills now
point to the same roles. Topic rules allow bolder marketing surfaces,
prefer undo for reversible destructive actions, and prefer skeletons
inside content.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Julian LechnerandClaude Opus 5.5 committed 2026-11-18 08:56:04 +01:00
1 parent 53511937b0
commit abc9ae8e1b
27 files changed
+141 -25

No files matched your search

+10 -8
View File
@@ -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