@knid/agentx 0.1.8 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +6 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -822,6 +822,10 @@ Examples:
|
|
|
822
822
|
const populated = replaceTemplateVars(content, vars);
|
|
823
823
|
writeFileSync4(join5(targetDir, file), populated, "utf-8");
|
|
824
824
|
}
|
|
825
|
+
const claudeCommandsDir = join5(targetDir, ".claude", "commands");
|
|
826
|
+
mkdirSync4(claudeCommandsDir, { recursive: true });
|
|
827
|
+
const skillContent = loadTemplate(templatesDir, "create-agent.md");
|
|
828
|
+
writeFileSync4(join5(claudeCommandsDir, "create-agent.md"), skillContent, "utf-8");
|
|
825
829
|
p2.outro(`Agent scaffolded at ${colors.cyan(targetDir)}`);
|
|
826
830
|
console.log();
|
|
827
831
|
console.log(` Next steps:`);
|
|
@@ -829,6 +833,8 @@ Examples:
|
|
|
829
833
|
console.log(` ${colors.dim("2.")} Edit system-prompt.md with your agent's instructions`);
|
|
830
834
|
console.log(` ${colors.dim("3.")} agentx validate`);
|
|
831
835
|
console.log(` ${colors.dim("4.")} agentx run . "test prompt"`);
|
|
836
|
+
console.log();
|
|
837
|
+
console.log(` ${colors.dim("Tip:")} Use ${colors.cyan("/create-agent")} in Claude Code to generate a production-ready agent from a description.`);
|
|
832
838
|
} catch (error) {
|
|
833
839
|
if (error instanceof Error) {
|
|
834
840
|
console.error(colors.error(`Error: ${error.message}`));
|