({
skillName,
displayName,
description,
hasUserSpecifiedDescription,
markdownContent,
allowedTools,
argumentHint,
argumentNames,
whenToUse,
version,
model,
disableModelInvocation,
userInvocable,
source,
baseDir,
loadedFrom,
hooks,
executionContext,
agent,
paths,
effort,
shell,
}: {
skillName: string
displayName: string | undefined
description: string
hasUserSpecifiedDescription: boolean
markdownContent: string
allowedTools: string[]
argumentHint: string | undefined
argumentNames: string[]
whenToUse: string | undefined
version: string | undefined
model: string | undefined
disableModelInvocation: boolean
userInvocable: boolean
source: PromptCommand['source']
baseDir: string | undefined
loadedFrom: LoadedFrom
hooks: HooksSettings | undefined
executionContext: 'inline' | 'fork' | undefined
agent: string | undefined
paths: string[] | undefined
effort: EffortValue | undefined
shell: FrontmatterShell | undefined
})
| 268 | * Creates a skill command from parsed data |
| 269 | */ |
| 270 | export function createSkillCommand({ |
| 271 | skillName, |
| 272 | displayName, |
| 273 | description, |
| 274 | hasUserSpecifiedDescription, |
| 275 | markdownContent, |
| 276 | allowedTools, |
| 277 | argumentHint, |
| 278 | argumentNames, |
| 279 | whenToUse, |
| 280 | version, |
| 281 | model, |
| 282 | disableModelInvocation, |
| 283 | userInvocable, |
| 284 | source, |
| 285 | baseDir, |
| 286 | loadedFrom, |
| 287 | hooks, |
| 288 | executionContext, |
| 289 | agent, |
| 290 | paths, |
| 291 | effort, |
| 292 | shell, |
| 293 | }: { |
| 294 | skillName: string |
| 295 | displayName: string | undefined |
| 296 | description: string |
| 297 | hasUserSpecifiedDescription: boolean |
| 298 | markdownContent: string |
| 299 | allowedTools: string[] |
| 300 | argumentHint: string | undefined |
| 301 | argumentNames: string[] |
| 302 | whenToUse: string | undefined |
| 303 | version: string | undefined |
| 304 | model: string | undefined |
| 305 | disableModelInvocation: boolean |
| 306 | userInvocable: boolean |
| 307 | source: PromptCommand['source'] |
| 308 | baseDir: string | undefined |
| 309 | loadedFrom: LoadedFrom |
| 310 | hooks: HooksSettings | undefined |
| 311 | executionContext: 'inline' | 'fork' | undefined |
| 312 | agent: string | undefined |
| 313 | paths: string[] | undefined |
| 314 | effort: EffortValue | undefined |
| 315 | shell: FrontmatterShell | undefined |
| 316 | }): Command { |
| 317 | return { |
| 318 | type: 'prompt', |
| 319 | name: skillName, |
| 320 | description, |
| 321 | hasUserSpecifiedDescription, |
| 322 | allowedTools, |
| 323 | argumentHint, |
| 324 | argNames: argumentNames.length > 0 ? argumentNames : undefined, |
| 325 | whenToUse, |
| 326 | version, |
| 327 | model, |
no outgoing calls
no test coverage detected