(displayName: string, shortDescription: string)
| 52 | } |
| 53 | |
| 54 | export function generateOpenAIYaml(displayName: string, shortDescription: string): string { |
| 55 | return `interface: |
| 56 | display_name: ${JSON.stringify(displayName)} |
| 57 | short_description: ${JSON.stringify(shortDescription)} |
| 58 | default_prompt: ${JSON.stringify(`Use ${displayName} for this task.`)} |
| 59 | policy: |
| 60 | allow_implicit_invocation: true |
| 61 | `; |
| 62 | } |
| 63 | |
| 64 | /** Compute skill name for external hosts (Codex, Factory, etc.) */ |
| 65 | export function externalSkillName(skillDir: string): string { |
no outgoing calls
no test coverage detected