Ver código fonte

feat: echo skill base directory in use-skill

Jesse Vincent 9 meses atrás
pai
commit
a08f7de64b
2 arquivos alterados com 4 adições e 1 exclusões
  1. 3 1
      .codex/superpowers-codex
  2. 1 0
      RELEASE-NOTES.md

+ 3 - 1
.codex/superpowers-codex

@@ -232,6 +232,8 @@ function runUseSkill(skillName) {
     console.log(`# Supporting tools and docs are in ${skillDirectory}`);
     console.log('# ============================================');
     console.log('');
+    console.log(`Base directory for this skill: ${skillDirectory}`);
+    console.log('');
 
     // Display the skill content (without frontmatter)
     console.log(content);
@@ -264,4 +266,4 @@ switch (command) {
         console.log('  superpowers-codex use-skill superpowers:brainstorming');
         console.log('  superpowers-codex use-skill my-custom-skill');
         break;
-}
+}

+ 1 - 0
RELEASE-NOTES.md

@@ -9,6 +9,7 @@
   - Explicitly tells the model that using-superpowers is already loaded to prevent redundant skill loading
   - Consolidated bootstrap content generation into shared `getBootstrapContent()` helper
   - Cleaner single-implementation approach (removed fallback pattern)
+- **Codex Skill Loader**: `superpowers-codex use-skill` now prints `Base directory for this skill: ...`, mirroring Claude Code’s output so agents immediately know where the skill’s tools live (fixes confusion around locating binaries like `codex-subagent`).
 
 ---