feat: make skills invokable as slash commands in the TUI

- Add Skill.content() method to load skill template content from SKILL.md files
- Modify Command.list() to include skills as invokable commands
- Add 'skill' boolean property to Command.Info schema
- Update autocomplete to show skills with (Skill) label in slash commands
- Regenerate SDK to include skill property in Command type
This commit is contained in:
Dax Raad
2026-01-30 18:07:14 -05:00
parent 252b2c450d
commit 85126556b8
4 changed files with 27 additions and 1 deletions

View File

@@ -153,4 +153,11 @@ export namespace Skill {
export async function all() {
return state().then((x) => Object.values(x))
}
export async function content(name: string) {
const info = await get(name)
if (!info) return undefined
const md = await ConfigMarkdown.parse(info.location)
return md.content
}
}