@@ -357,18 +357,30 @@ function createAppStore() {
357357 const mappings : Record < string , string > = {
358358 "/commit" : "Create a git commit with a descriptive message for the current changes" ,
359359 "/review-pr" : "Review the current pull request" ,
360- "/compact" : "Summarize the conversation so far" ,
360+ "/review" : "Review the current pull request or code changes" ,
361+ "/compact" : "Summarize the conversation so far to save context" ,
361362 "/help" : "Show what you can help with" ,
362363 "/fix" : "Fix the issues in the current code" ,
363364 "/test" : "Run the tests and fix any failures" ,
364365 "/lint" : "Run the linter and fix any issues" ,
365366 "/refactor" : "Refactor the current code for better readability and maintainability" ,
367+ "/cost" : "Show current token usage and cost for this session" ,
368+ "/pr-comments" : "Review and respond to PR comments" ,
369+ "/release-notes" : "Generate release notes for recent changes" ,
370+ "/security-review" : "Perform a security review of the codebase" ,
371+ "/simplify" : "Review changed code for reuse, quality, and efficiency, then fix any issues" ,
366372 } ;
367373 const mapped = mappings [ cmdName ] ;
368374 if ( mapped ) {
369375 return cmdArgs ? `${ mapped } : ${ cmdArgs } ` : mapped ;
370376 }
371- return input ;
377+ // For unknown commands, convert the skill name to a natural language instruction
378+ // e.g. "/frontend-design build a landing page" → "Use the frontend-design skill to: build a landing page"
379+ const skillName = cmdName . slice ( 1 ) ; // remove leading /
380+ if ( cmdArgs ) {
381+ return `Use the ${ skillName } skill/approach to: ${ cmdArgs } ` ;
382+ }
383+ return `Execute the ${ skillName } skill/command` ;
372384 }
373385
374386 async function sendUserMessage ( ) {
0 commit comments