Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion harness/pstack/claude-code/skills/make-bot-ui/SKILL.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion harness/pstack/claude-code/skills/poteto-mode/SKILL.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions scripts/generate-pstack-harness-trees.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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")));
Expand Down