Skip to content

Commit 8867350

Browse files
committed
tweak skill prompt
1 parent 4bf0d38 commit 8867350

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

cli/src/commands/command-registry.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ export const COMMAND_REGISTRY: CommandDefinition[] = [
491491

492492
export function findCommand(cmd: string): CommandDefinition | undefined {
493493
const lowerCmd = cmd.toLowerCase()
494-
494+
495495
// First check the static command registry
496496
const staticCommand = COMMAND_REGISTRY.find(
497497
(def) => def.name === lowerCmd || def.aliases.includes(lowerCmd),
@@ -541,9 +541,10 @@ function createSkillCommand(skillName: string): CommandDefinition {
541541
${skill.content}
542542
</skill>`
543543

544-
const userPrompt = args.trim()
545-
? `${skillContext}\n\nUser request: ${args.trim()}`
546-
: `${skillContext}\n\nPlease use this skill to help me.`
544+
const userPrompt = `I invoke the following skill:\n\n${skillContext}\n\n`
545+
+ (args.trim()
546+
? `User request: ${args.trim()}`
547+
: '')
547548

548549
// Check streaming/queue state
549550
if (

0 commit comments

Comments
 (0)