use description from metadata in custom agent launcher

This commit is contained in:
Wendy Smoak 2026-02-21 08:33:22 -05:00
parent 04a0dc8b03
commit ad914e7ef7
1 changed files with 2 additions and 1 deletions

View File

@ -411,7 +411,8 @@ class CodexSetup extends BaseIdeSetup {
const skillDir = path.join(destDir, skillName);
await fs.ensureDir(skillDir);
const fm = yaml.stringify({ name: skillName, description: `${agentName} agent` }).trimEnd();
const description = metadata?.description || `${agentName} agent`;
const fm = yaml.stringify({ name: skillName, description }).trimEnd();
const skillContent =
`---\n${fm}\n---\n` +
"\nYou must fully embody this agent's persona and follow all activation instructions exactly as specified. NEVER break character until given an exit command.\n" +