Skip to content

fix(pstack): use the folder name as the skill name in the Claude Code tree - #703

Closed
aykuttasil wants to merge 1 commit into
cursor:mainfrom
aykuttasil:fix/pstack-claude-code-skill-name
Closed

aykuttasil wants to merge 1 commit into
cursor:mainfrom
aykuttasil:fix/pstack-claude-code-skill-name

Conversation

@aykuttasil

@aykuttasil aykuttasil commented Oct 17, 2026 •

Copy link
Copy Markdown

Problem

Claude Code builds a skill's slash command from the name field in its frontmatter. Two pstack skills use display names that contain spaces:

  • poteto-mode → name: Poteto Mode
  • make-bot-ui → name: Make Bot UI

In the Claude desktop app the composer then reads /pstack:Poteto as the command and Mode as the argument. The message is rejected ("A command takes file @-mentions but no other @-mentions, slash commands, …"), and when it is sent alone the command is not found. So there is no way to run poteto-mode in Claude Code.

Fix

scripts/generate-pstack-harness-trees.mjs now writes each skill's folder name into name: in the generated Claude Code tree. Cursor still reads pstack/ directly, so the display names from #149 stay as they are there.

The regenerated tree changes only those two SKILL.md files.

Checks

  • node scripts/generate-pstack-harness-trees.mjs --check → up to date
  • node scripts/validate-plugins.mjs (with ajv ajv-formats) → all plugins valid

🤖 Generated with Claude Code


Note

Low Risk
Scoped to generated harness output and a small transform in the tree script; no runtime auth or data paths.

Overview
Fixes broken Claude Code slash commands for skills whose source name: frontmatter contains spaces (e.g. poteto-mode, make-bot-ui).

The pstack harness tree generator now always rewrites each generated SKILL.md name: to the skill folder name before optional adapter wrapping, so Claude Code registers /pstack:poteto-mode instead of splitting on spaces. Cursor still uses pstack/ unchanged, so display names in source skills are unaffected.

Reviewed by Cursor Bugbot for commit cfc953f. Bugbot is set up for automated code reviews on this repo. Configure here.

… tree

Claude Code builds a skill's slash command from its `name`. "Poteto Mode"
and "Make Bot UI" contain spaces, so the desktop composer reads
`/pstack:Poteto` as the command and rejects the message.

The generator now writes the skill's folder name into `name:` for the
Claude Code tree. Cursor still reads `pstack/` and keeps the display names
from cursor#149.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@aykuttasil aykuttasil closed this Oct 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant