调整prompt
This commit is contained in:
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user