Repository navigation
fix(pstack): name Claude Code skills after their folders - #696
Open
CollatzConjecture wants to merge 1 commit into
Open
CollatzConjecture wants to merge 1 commit into
CollatzConjecture wants to merge 1 commit into
Conversation
The SDK command list uses each skill's frontmatter `name`, so `Poteto Mode` and `Make Bot UI` showed up as `/pstack:Poteto Mode` and `/pstack:Make Bot UI`, which parse as the unknown command `/pstack:Poteto`. The generator now writes the folder name into the Claude Code tree. Cursor keeps its display names. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two pstack skills have display names in their frontmatter,
Poteto ModeandMake Bot UI. In the Claude Code tree, the SDK uses the frontmatternamein its command list. SDK hosts such as T3 Code therefore offer/pstack:Poteto Mode, which parses as the unknown command/pstack:Potetowith the argumentMode.The generator now writes each skill's folder name into the Claude Code tree. The Cursor files in
pstack/keep their display names.render() for each skill + set frontmatter `name:` to the skill's folder name add the adapter line (21 skills)The regenerated tree changes only
skills/poteto-mode/SKILL.mdandskills/make-bot-ui/SKILL.md. The other 52 skills already use their folder names.Evidence
Each tree was loaded with
claude --plugin-dir <tree>on Claude Code 2.1.302, and the command list came from the SDKinitializecontrol response:main):pstack:Poteto Mode,pstack:Make Bot UI. Sending/pstack:Poteto Mode …gets the reply that the command isn't installed.After:
pstack:poteto-mode,pstack:make-bot-ui./pstack:poteto-modeloads the skill (# Poteto mode), and/pstack:make-bot-uiloads it too (# How to make a bot UI).node scripts/generate-pstack-harness-trees.mjs --checkreportsharness/pstack is up to date.Merge Danger
Door: two-way
Blast Radius: tiny
Only the Claude Code install changes. Cursor reads
pstack/directly, and that folder has no changes. Anyone who typed/pstack:poteto-modekeeps the same command.🤖 Generated with Claude Code
Note
Low Risk
Scoped to generated Claude Code harness output; Cursor still reads
pstack/unchanged and existing folder-based commands stay the same.Overview
Fixes broken Claude Code slash commands for skills whose Cursor frontmatter
nameincludes spaces (e.g.Poteto Mode,Make Bot UI).The pstack harness generator now rewrites every skill’s
name:in the Claude Code tree to the skill folder slug (e.g.poteto-mode) before optional adapter-line injection. Sourcepstack/skillskeeps display names; only the generatedharness/pstack/claude-codeinstall changes, so hosts expose runnable/pstack:poteto-modeinstead of/pstack:Poteto Mode.Reviewed by Cursor Bugbot for commit fdb6ee5. Bugbot is set up for automated code reviews on this repo. Configure here.