[object Object]

← back to Cli Printing Press

fix(skills): use api-slug in publish Step 6 staged path (#1444)

ce3aeb4a209e76989fc8beb18c84da85ceb405f2 · 2026-05-15 03:02:35 -0700 · Trevin Chow

The publish package code stages CLIs under <api-slug>, but SKILL.md
Step 6 showed cp from <cli-name>. Following the SKILL verbatim produced
"No such file or directory". Aligns the example and trailing note with
the actual staged_dir keying.

Closes #1233

Files touched

Diff

commit ce3aeb4a209e76989fc8beb18c84da85ceb405f2
Author: Trevin Chow <trevin@trevinchow.com>
Date:   Fri May 15 03:02:35 2026 -0700

    fix(skills): use api-slug in publish Step 6 staged path (#1444)
    
    The publish package code stages CLIs under <api-slug>, but SKILL.md
    Step 6 showed cp from <cli-name>. Following the SKILL verbatim produced
    "No such file or directory". Aligns the example and trailing note with
    the actual staged_dir keying.
    
    Closes #1233
---
 skills/printing-press-publish/SKILL.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/skills/printing-press-publish/SKILL.md b/skills/printing-press-publish/SKILL.md
index 958945c7..17814752 100644
--- a/skills/printing-press-publish/SKILL.md
+++ b/skills/printing-press-publish/SKILL.md
@@ -434,7 +434,7 @@ Then copy the staged CLI into the publish repo, replacing any existing version:
 rm -rf "$PUBLISH_REPO_DIR/library"/*/"<api-slug>"
 
 # Copy staged CLI into publish repo (slug-keyed directory)
-cp -r "$STAGING_DIR/library/<category>/<cli-name>" "$PUBLISH_REPO_DIR/library/<category>/<api-slug>"
+cp -r "$STAGING_DIR/library/<category>/<api-slug>" "$PUBLISH_REPO_DIR/library/<category>/<api-slug>"
 
 # Remove binaries (should not be committed)
 rm -f "$PUBLISH_REPO_DIR/library/<category>/<api-slug>/<api-slug>" "$PUBLISH_REPO_DIR/library/<category>/<api-slug>/<cli-name>"
@@ -479,7 +479,7 @@ directory:
 rm -rf "$STAGING_PARENT"
 ```
 
-Note: `staged_dir` uses the CLI name (e.g., `espn-pp-cli`) but the publish repo uses the API slug (e.g., `espn`). The copy step handles this rename.
+Note: `staged_dir` is keyed by the API slug (e.g., `espn`), matching the publish repo's directory layout. The copy step is a same-name copy, not a rename.
 
 ## Step 7: Collision Detection & Resolution
 

← 2bf7d1e7 fix(cli): clear every emitted credential field in ClearToken  ·  back to Cli Printing Press  ·  fix(cli): align publish-skill contract tests with api-slug s c57345a1 →