mirror of
https://github.com/nextlevelbuilder/ui-ux-pro-max-skill.git
synced 2026-11-19 09:00:32 +00:00
Replace all 22 hard-coded ~/.claude/skills/design/scripts/... invocations in the design skill with skill-relative paths (python3 scripts/...), the same convention the brand and design-system sub-skills already use. The user-level path only works in one install context: under a marketplace/ plugin install the skill lives in the plugin cache, and under project-level CLI installs there is no ~/.claude/skills/design/ either. Edited .claude/skills/design/SKILL.md (source of truth) and regenerated the CLI copy with cli/scripts/sync-assets.mjs; --check passes. Adds a path-contract step to check-asset-sync.yml that fails if any SKILL.md (either copy) reintroduces a ~/.claude/skills/ invocation, and widens the workflow's path filters to .claude/skills/** so the contract actually fires on sub-skill edits. Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
51 lines
2.0 KiB
YAML
51 lines
2.0 KiB
YAML
name: Check asset sync
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- "src/ui-ux-pro-max/**"
|
|
- "cli/assets/**"
|
|
- ".claude/skills/**"
|
|
- "cli/scripts/sync-assets.mjs"
|
|
- "cli/package.json"
|
|
- "scripts/evaluate-relevance.py"
|
|
- "scripts/relevance_metrics.py"
|
|
- ".github/workflows/check-asset-sync.yml"
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- "src/ui-ux-pro-max/**"
|
|
- "cli/assets/**"
|
|
- "cli/package.json"
|
|
- ".claude/skills/**"
|
|
|
|
jobs:
|
|
check-assets:
|
|
name: cli/assets and .claude/skills/ui-ux-pro-max must match src/ui-ux-pro-max
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20
|
|
# check:assets runs `node scripts/sync-assets.mjs --check`, which uses only
|
|
# node builtins (no npm install needed) and normalizes CRLF/LF before
|
|
# hashing, so it compares content rather than line endings. It checks
|
|
# both cli/assets/ AND .claude/skills/ui-ux-pro-max/{data,scripts} --
|
|
# the latter is what Claude Code actually loads when this repo is
|
|
# installed as a plugin, and previously had no sync check at all.
|
|
- name: Check assets are in sync with source of truth
|
|
run: npm --prefix cli run check:assets
|
|
# Path contract (#474): skill instructions must invoke their scripts via
|
|
# skill-relative paths (like the brand/design-system sub-skills do). A
|
|
# user-level "~/.claude/skills/..." path only works in one install
|
|
# context: it breaks under a marketplace/plugin install (skills live in
|
|
# the plugin cache) and under project-level CLI installs.
|
|
- name: Path contract - no hard-coded user-level skill paths
|
|
run: |
|
|
if grep -rn '~/\.claude/skills/' .claude/skills/*/SKILL.md cli/assets/skills/*/SKILL.md; then
|
|
echo "::error::SKILL.md files must use skill-relative script paths, not ~/.claude/skills/... (see #474)"
|
|
exit 1
|
|
fi
|
|
echo "OK: no hard-coded user-level skill paths"
|