Commit 67d366b
fix(cli,skills): install workflow skills on demand instead of re-pulling the full set
Users report every init re-pulls all 21 skills into ~/.agents/skills
whenever anything is stale or missing - heavy, noisy, and it re-expands
deliberate partial installs.
Split the set into two tiers:
- core: the /hyperframes router + hyperframes-* domain skills +
media-use, which every workflow references structurally. init and
bare 'skills update' keep these (plus anything already installed)
fresh, and never expand the install.
- on demand: the end-user workflow skills (and figma). They install at
trigger time via 'skills update <name...>' - positional names are
the only way update expands an install: one targeted
'skills add --skill <name>' covering only stale/missing targets, a
fast no-op when current, presence-verified after install, exit 1 on
unknown names, and a presence-only degrade when GitHub is
unreachable.
The /hyperframes router now runs 'skills update <workflow>' after
routing and before reading the workflow skill, so a routed workflow is
guaranteed present even on a machine that only has the core set. Each
on-demand skill also opens with the same self-maintenance step (run
'npx hyperframes skills update <name>' silently), so a workflow
triggered directly - without the router - still refreshes itself and
restores any missing core skill before relying on it.
skills check still lists every skill, but exits non-zero only for
stale installed skills, an incomplete core set, or removed leftovers -
workflow skills not yet installed are reported as available on demand.
Bare 'hyperframes skills' (and 'skills add --all') remain the explicit
full-set installs.
Verified end-to-end with a sandboxed $HOME: fresh init installs the 9
core skills only; 'skills update slideshow' adds exactly that skill
(no-op on re-run, exit 1 on unknown names); bare update refreshes
without expanding; a live Claude Code run routed PR-to-video, executed
the router's update step, and the workflow skill appeared before use;
and a second live run triggered an installed workflow directly, whose
opening maintenance step restored a deliberately removed core skill.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 68a8547 commit 67d366b
23 files changed
Lines changed: 822 additions & 157 deletions
File tree
- packages/cli/src
- commands
- utils
- skills
- embedded-captions
- faceless-explainer
- figma
- general-video
- hyperframes
- motion-graphics
- music-to-video
- pr-to-video
- product-launch-video
- remotion-to-hyperframes
- slideshow
- talking-head-recut
- website-to-video
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
56 | 58 | | |
57 | 59 | | |
58 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
577 | 577 | | |
578 | 578 | | |
579 | 579 | | |
580 | | - | |
581 | | - | |
582 | | - | |
583 | | - | |
584 | | - | |
585 | | - | |
586 | | - | |
587 | | - | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
588 | 591 | | |
589 | | - | |
590 | | - | |
591 | | - | |
| 592 | + | |
| 593 | + | |
592 | 594 | | |
593 | 595 | | |
594 | 596 | | |
595 | | - | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
596 | 600 | | |
597 | | - | |
598 | | - | |
599 | | - | |
600 | | - | |
601 | | - | |
602 | | - | |
603 | | - | |
604 | | - | |
605 | | - | |
606 | | - | |
607 | | - | |
608 | | - | |
609 | | - | |
610 | | - | |
611 | | - | |
612 | | - | |
613 | | - | |
614 | | - | |
615 | | - | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
616 | 605 | | |
617 | | - | |
| 606 | + | |
618 | 607 | | |
619 | 608 | | |
620 | | - | |
621 | | - | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
622 | 613 | | |
623 | 614 | | |
624 | 615 | | |
| |||
871 | 862 | | |
872 | 863 | | |
873 | 864 | | |
874 | | - | |
| 865 | + | |
875 | 866 | | |
876 | 867 | | |
877 | 868 | | |
| |||
1087 | 1078 | | |
1088 | 1079 | | |
1089 | 1080 | | |
1090 | | - | |
1091 | | - | |
1092 | | - | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
1093 | 1085 | | |
1094 | | - | |
| 1086 | + | |
1095 | 1087 | | |
1096 | 1088 | | |
1097 | 1089 | | |
| |||
0 commit comments