Compare commits
3 Commits
6496b6e002
...
3442710c39
| Author | SHA1 | Date |
|---|---|---|
|
|
3442710c39 | |
|
|
089a39eb04 | |
|
|
9717629e93 |
|
|
@ -444,21 +444,17 @@ 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 =
|
||||||
${fm}
|
`---\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" +
|
||||||
|
'\n<agent-activation CRITICAL="TRUE">\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.
|
`1. LOAD the FULL agent file from @${agentPath}\n` +
|
||||||
|
'2. READ its entire contents - this contains the complete agent persona, menu, and instructions\n' +
|
||||||
<agent-activation CRITICAL="TRUE">
|
'3. FOLLOW every step in the <activation> section precisely\n' +
|
||||||
1. LOAD the FULL agent file from @${agentPath}
|
'4. DISPLAY the welcome/greeting as instructed\n' +
|
||||||
2. READ its entire contents - this contains the complete agent persona, menu, and instructions
|
'5. PRESENT the numbered menu\n' +
|
||||||
3. FOLLOW every step in the <activation> section precisely
|
'6. WAIT for user input before proceeding\n' +
|
||||||
4. DISPLAY the welcome/greeting as instructed
|
'</agent-activation>\n';
|
||||||
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');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue