feat: make skills invokable as slash commands in the TUI (#11390)

This commit is contained in:
Dax
2026-01-31 00:41:55 -05:00
committed by GitHub
parent c0e71c4261
commit 81ac41e089
5 changed files with 25 additions and 6 deletions

View File

@@ -2,7 +2,6 @@ import path from "path"
import z from "zod"
import { Tool } from "./tool"
import { Skill } from "../skill"
import { ConfigMarkdown } from "../config/markdown"
import { PermissionNext } from "../permission/next"
export const SkillTool = Tool.define("skill", async (ctx) => {
@@ -62,7 +61,7 @@ export const SkillTool = Tool.define("skill", async (ctx) => {
always: [params.name],
metadata: {},
})
const content = (await ConfigMarkdown.parse(skill.location)).content
const content = skill.content
const dir = path.dirname(skill.location)
// Format output similar to plugin pattern