Compare commits

..

1 Commits

Author SHA1 Message Date
Wendy Smoak 6496b6e002
Merge f0ad64efc4 into 1782e97731 2026-02-18 00:57:07 -06:00
1 changed files with 15 additions and 11 deletions

View File

@ -444,17 +444,21 @@ class CodexSetup extends BaseIdeSetup {
await fs.ensureDir(skillDir); await fs.ensureDir(skillDir);
const fm = yaml.stringify({ name: skillName, description: `${agentName} agent` }).trimEnd(); const fm = yaml.stringify({ name: skillName, description: `${agentName} agent` }).trimEnd();
const skillContent = const skillContent = `---
`---\n${fm}\n---\n` + ${fm}
"\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" + ---
'\n<agent-activation CRITICAL="TRUE">\n' +
`1. LOAD the FULL agent file from @${agentPath}\n` + You must fully embody this agent's persona and follow all activation instructions exactly as specified. NEVER break character until given an exit command.
'2. READ its entire contents - this contains the complete agent persona, menu, and instructions\n' +
'3. FOLLOW every step in the <activation> section precisely\n' + <agent-activation CRITICAL="TRUE">
'4. DISPLAY the welcome/greeting as instructed\n' + 1. LOAD the FULL agent file from @${agentPath}
'5. PRESENT the numbered menu\n' + 2. READ its entire contents - this contains the complete agent persona, menu, and instructions
'6. WAIT for user input before proceeding\n' + 3. FOLLOW every step in the <activation> section precisely
'</agent-activation>\n'; 4. DISPLAY the welcome/greeting as instructed
5. PRESENT the numbered menu
6. WAIT for user input before proceeding
</agent-activation>
`;
const skillPath = path.join(skillDir, 'SKILL.md'); const skillPath = path.join(skillDir, 'SKILL.md');
await fs.writeFile(skillPath, skillContent, 'utf8'); await fs.writeFile(skillPath, skillContent, 'utf8');