调整prompt

This commit is contained in:
2026-09-24 09:02:31 +08:00
parent ffac8c759c
commit 94436ff1f1
4 changed files with 107 additions and 61 deletions
+2 -2
View File
@@ -78,7 +78,7 @@ async function listSkills(ctx) {
function formatSkillListForPrompt(list) {
if (!list || !list.length) return '';
const lines = list.map(s => '- ' + s.name);
return '## Available Skills\nInstalled skills (names only). Use the `skill` tool: op=get for its parameters, op=run to execute; op=list gives one-line descriptions when choosing among skills.\n' + lines.join('\n');
return '## Available Skills\n' + lines.join('\n');
}
// ---------- 3.2 skill op=get ----------
@@ -235,4 +235,4 @@ async function runSkill(ctx, skillName, inputArgs) {
return runEntry(ctx, entry, cmdArgs, execCwd, timeoutMs);
}
module.exports = { listSkills, getSkillInfo, runSkill, skillsRoot, parseFrontMatter, extractDescription, formatSkillListForPrompt };
module.exports = { listSkills, getSkillInfo, runSkill, skillsRoot, parseFrontMatter, extractDescription, formatSkillListForPrompt };