tweak: adjust skill tool output to make it more clear which base directory the skill lives in

git-slop
Aiden Cline 2026-02-02 00:08:28 -06:00
parent c69474846f
commit 5eb4080947
1 changed files with 6 additions and 4 deletions

View File

@ -64,12 +64,14 @@ export const SkillTool = Tool.define("skill", async (ctx) => {
const content = skill.content
const dir = path.dirname(skill.location)
// Format output similar to plugin pattern
const output = [`## Skill: ${skill.name}`, "", `**Base directory**: ${dir}`, "", content.trim()].join("\n")
return {
title: `Loaded skill: ${skill.name}`,
output,
output: [
`Successfully loaded skill: ${skill.name}`,
`Base directory for this skill: ${dir}`,
"",
content.trim(),
].join("\n"),
metadata: {
name: skill.name,
dir,