Skip to content

Subskill list in file explorer doesn't update after editing SKILL.md #9

Description

@MatthewLones

Description

When editing a skill's SKILL.md and adding a sub-skill reference (e.g., //skill:other_skill), the file explorer's skill tree does not update to show the new sub-skill relationship. It only updates after creating a new skill or other unrelated action.

Root Cause

useSyncSkill calls saveSkill() (server save) and updateSkillCache() (local file cache), but neither triggers a refresh of skills: SkillSummary[] in ProjectStore. The subSkills field in SkillSummary is computed server-side by parsing //skill:NAME patterns from SKILL.md. The skill list only refreshes on loadSkills(), which is called during project load or after skill create/delete — not after skill content save.

Fix Required

After saveSkill() completes in useSyncSkill, call loadSkills(projectId) to refresh the summary list (including subSkills). This adds a lightweight GET request (skill list, not file contents) after each debounced save.

Files Involved

  • packages/ui/src/hooks/useSyncSkill.ts — add loadSkills call after saveSkill (line 35)
  • packages/ui/src/context/ProjectStore.tsxloadSkills already exposed

Metadata

Metadata

Assignees

No one assigned

    Labels

    IDEIDE/workspace editor issuesbugSomething isn't workinguiUI/frontend issue

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions