fix(skills): call initializeManagedSkills in loadAllSkills
Automatically initialize managed skills directory with bundled skills on first load. This ensures bundled skills are available without requiring explicit initialization. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
dafe1085b4
commit
d90edea8d0
1 changed files with 3 additions and 0 deletions
|
|
@ -169,6 +169,9 @@ export function getManagedSkillsDir(): string {
|
|||
* @returns Map of skill ID to Skill
|
||||
*/
|
||||
export function loadAllSkills(options: SkillManagerOptions = {}): Map<string, Skill> {
|
||||
// Initialize managed skills on first load (copies bundled skills if needed)
|
||||
initializeManagedSkills();
|
||||
|
||||
const skillMap = new Map<string, Skill>();
|
||||
|
||||
// 1. Load managed skills (lower precedence)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue