diff --git a/harness/pstack/claude-code/skills/make-bot-ui/SKILL.md b/harness/pstack/claude-code/skills/make-bot-ui/SKILL.md index 4688ff45f..7f05b0504 100644 --- a/harness/pstack/claude-code/skills/make-bot-ui/SKILL.md +++ b/harness/pstack/claude-code/skills/make-bot-ui/SKILL.md @@ -1,5 +1,5 @@ --- -name: Make Bot UI +name: make-bot-ui description: >- Use when building a custom UI (page, dashboard, buttons) that should wake a Grok Bot over a webhook, when the user must provide a webhook sender key, or diff --git a/harness/pstack/claude-code/skills/poteto-mode/SKILL.md b/harness/pstack/claude-code/skills/poteto-mode/SKILL.md index 717dff62d..1bb3884a5 100644 --- a/harness/pstack/claude-code/skills/poteto-mode/SKILL.md +++ b/harness/pstack/claude-code/skills/poteto-mode/SKILL.md @@ -1,5 +1,5 @@ --- -name: Poteto Mode +name: poteto-mode description: poteto's agent style for concise, detailed responses, deliberate subagents, unslopped prose, simple code, and verified work. Use for poteto, /poteto-mode, or requests to work in this style. disable-model-invocation: true icon: crown diff --git a/scripts/generate-pstack-harness-trees.mjs b/scripts/generate-pstack-harness-trees.mjs index 691116d74..642105410 100644 --- a/scripts/generate-pstack-harness-trees.mjs +++ b/scripts/generate-pstack-harness-trees.mjs @@ -117,8 +117,9 @@ function render() { "It maps the Cursor names in pstack skills to Claude Code."; for (const [skill, { wrap }] of classes) { const path = `skills/${skill}/SKILL.md`; - const text = files.get(path).bytes.toString("utf8"); - if (wrap) files.get(path).bytes = Buffer.from(text.replace(/^(# .*)\n+/m, `$1\n\n${line}\n\n`)); + // Claude Code makes `name` the slash command, so a display name like "Poteto Mode" becomes the unrunnable `/pstack:Poteto Mode`. + const text = files.get(path).bytes.toString("utf8").replace(/^name: .*$/m, `name: ${skill}`); + files.get(path).bytes = Buffer.from(wrap ? text.replace(/^(# .*)\n+/m, `$1\n\n${line}\n\n`) : text); } files.set("LICENSE", file(join(PSTACK, "LICENSE"))); for (const manifest of MANIFESTS) files.set(manifest, file(join(PSTACK, "plugin.json")));