@jenga-ai/agent 2.0.0 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (177) hide show
  1. package/README.md +82 -243
  2. package/agents/developer.md +5 -5
  3. package/agents/scrum-master.md +23 -23
  4. package/agents/tester.md +5 -5
  5. package/bin/jenga.js +10 -0
  6. package/hooks/copilot_session_end.sh +7 -3
  7. package/hooks/prompt_router_helper.js +17 -5
  8. package/lib/commands/doctor.js +351 -0
  9. package/lib/commands/init.js +16 -0
  10. package/lib/generate-copilot-hooks.js +116 -0
  11. package/lib/generate-skill-allow-list.js +9 -3
  12. package/lib/legacy-shipped-paths.json +336 -0
  13. package/lib/postinstall-manifest.js +469 -0
  14. package/lib/skill-allow-list.json +2 -3
  15. package/package.json +16 -25
  16. package/scripts/apply-j-prefix.sh +25 -12
  17. package/scripts/generate-j-alias.sh +333 -0
  18. package/scripts/generate-legacy-shipped-paths.js +248 -0
  19. package/scripts/postinstall.js +205 -2
  20. package/scripts/verify-legacy-seed-reconcile.sh +254 -0
  21. package/scripts/verify-postinstall-reconcile.sh +392 -0
  22. package/skills/{brainstorm → j-brainstorm}/SKILL.md +9 -2
  23. package/skills/{btw → j-btw}/SKILL.md +9 -2
  24. package/skills/{clearify → j-clearify}/SKILL.md +9 -2
  25. package/skills/{close-story → j-close-story}/SKILL.md +17 -10
  26. package/skills/{close-story → j-close-story}/scripts/check-privatized.sh +2 -2
  27. package/skills/{close-story → j-close-story}/scripts/check-story-closeable.sh +1 -1
  28. package/skills/{close-story → j-close-story}/scripts/extract-task-diff-stats.sh +1 -1
  29. package/skills/{commit → j-commit}/SKILL.md +9 -2
  30. package/skills/j-continue/SKILL.md +36 -0
  31. package/skills/{deep-dive → j-deep-dive}/SKILL.md +9 -8
  32. package/skills/{dev-done → j-dev-done}/SKILL.md +11 -4
  33. package/skills/{dev-done → j-dev-done}/scripts/classify-commit-outcome.sh +4 -4
  34. package/skills/{distribute → j-distribute}/SKILL.md +17 -10
  35. package/skills/{distribute → j-distribute}/scripts/distribute-changes.sh +1 -1
  36. package/skills/{do → j-do}/SKILL.md +12 -5
  37. package/skills/{doc → j-doc}/README.md +5 -5
  38. package/skills/{doc → j-doc}/SKILL.md +15 -8
  39. package/skills/{doc → j-doc}/authoring-notes.md +1 -1
  40. package/skills/{doc-sync → j-doc-sync}/SKILL.md +9 -2
  41. package/skills/{dooo → j-dooo}/SKILL.md +9 -2
  42. package/skills/j-error/SKILL.md +36 -0
  43. package/skills/{evaluate → j-evaluate}/SKILL.md +9 -2
  44. package/skills/j-examplify/SKILL.md +49 -0
  45. package/skills/{help → j-help}/SKILL.md +9 -2
  46. package/skills/{idea → j-idea}/SKILL.md +10 -3
  47. package/skills/{idea → j-idea}/assets/idea_handoff_template.md +1 -1
  48. package/skills/{improve → j-improve}/SKILL.md +9 -2
  49. package/skills/j-init/SKILL.md +2 -2
  50. package/skills/j-jbp/SKILL.md +32 -0
  51. package/skills/j-lgtm/SKILL.md +28 -0
  52. package/skills/{pi-plan → j-pi-plan}/SKILL.md +10 -3
  53. package/skills/{proceed → j-proceed}/SKILL.md +9 -2
  54. package/skills/{publish → j-publish}/SKILL.md +47 -40
  55. package/skills/{publish → j-publish}/adapters/droplet.md +1 -1
  56. package/skills/{publish → j-publish}/adapters/mobile-ios.md +3 -3
  57. package/skills/{publish → j-publish}/adapters/npm-ci.md +3 -3
  58. package/skills/{publish → j-publish}/adapters/npm.md +8 -8
  59. package/skills/{publish → j-publish}/assets/ci-contract.md +2 -2
  60. package/skills/{publish → j-publish}/schemas/publish.schema.json +1 -1
  61. package/skills/{publish → j-publish}/scripts/npm_stage_inspect.sh +34 -1
  62. package/skills/{publish → j-publish}/scripts/npm_stage_pipeline.sh +9 -4
  63. package/skills/{publish → j-publish}/scripts/publish_deploy.sh +4 -4
  64. package/skills/{publish → j-publish}/scripts/validate_npm_stage_env.sh +1 -1
  65. package/skills/{publish → j-publish}/wizards/droplet.md +1 -1
  66. package/skills/{publish → j-publish}/wizards/mobile-ios.md +1 -1
  67. package/skills/{publish → j-publish}/wizards/npm-ci.md +1 -1
  68. package/skills/{publish → j-publish}/wizards/npm.md +1 -1
  69. package/skills/{reconcile → j-reconcile}/SKILL.md +12 -5
  70. package/skills/{reconcile → j-reconcile}/scripts/detect-unlinked-code.sh +2 -2
  71. package/skills/{reconcile → j-reconcile}/scripts/resolve-reconcile-scope.sh +3 -3
  72. package/skills/{reconcile-origin → j-reconcile-origin}/SKILL.md +13 -6
  73. package/skills/{redo → j-redo}/SKILL.md +9 -2
  74. package/skills/{skillify → j-skillify}/SKILL.md +10 -3
  75. package/skills/{spinoff → j-spinoff}/SKILL.md +9 -2
  76. package/skills/{status → j-status}/SKILL.md +9 -2
  77. package/skills/{todo → j-todo}/SKILL.md +10 -3
  78. package/skills/{todo → j-todo}/assets/todo_handoff_template.md +1 -1
  79. package/skills/{todo → j-todo}/scripts/add_trivial_task.sh +3 -3
  80. package/skills/{todo → j-todo}/scripts/update_story_tasks.py +2 -2
  81. package/skills/{uncharted → j-uncharted}/SKILL.md +35 -28
  82. package/skills/{uncharted → j-uncharted}/assets/UNDERSTANDING_DOC_TEMPLATE.md +2 -2
  83. package/skills/{uncharted → j-uncharted}/scripts/detect-dependencies.sh +1 -1
  84. package/skills/{uncharted → j-uncharted}/scripts/detect-tests.sh +1 -1
  85. package/skills/{uncharted → j-uncharted}/scripts/directory-triage.sh +3 -3
  86. package/skills/{uncharted → j-uncharted}/scripts/elicitation-state.sh +3 -3
  87. package/skills/{uncharted → j-uncharted}/scripts/enumerate-target.sh +1 -1
  88. package/skills/{uncharted → j-uncharted}/scripts/import-source.sh +1 -1
  89. package/skills/{uncharted → j-uncharted}/scripts/inspect-provenance.sh +1 -1
  90. package/skills/{uncharted → j-uncharted}/scripts/resolve-segment-target.sh +5 -5
  91. package/skills/{uncharted → j-uncharted}/scripts/run-engine.sh +1 -1
  92. package/skills/{uncharted → j-uncharted}/scripts/validate-proposed-items.sh +2 -2
  93. package/skills/{uncharted → j-uncharted}/scripts/write-backfilled-epics.sh +1 -1
  94. package/skills/j-wtf/SKILL.md +27 -0
  95. package/skills/jenga/SKILL.md +1 -1
  96. package/skills/jenga-permission-level/SKILL.md +1 -1
  97. package/templates/SCRUM_BOARD_SCHEMA.md +1 -1
  98. package/templates/agent-context.md.tpl +10 -10
  99. package/templates/copilot-instructions.md.tpl +89 -19
  100. package/skills/continue/SKILL.md +0 -29
  101. package/skills/error/SKILL.md +0 -29
  102. package/skills/examplify/SKILL.md +0 -42
  103. package/skills/init/SKILL.md +0 -155
  104. package/skills/init/assets/scope-thresholds_template.json +0 -7
  105. package/skills/init/assets/strategy_stub_template.md +0 -38
  106. package/skills/init/assets/workflow_template.json +0 -30
  107. package/skills/init/scripts/apply-project-visibility.sh +0 -176
  108. package/skills/init/scripts/detect-existing-codebase.sh +0 -166
  109. package/skills/init/scripts/init.sh +0 -116
  110. package/skills/jbp/SKILL.md +0 -25
  111. package/skills/lgtm/SKILL.md +0 -21
  112. package/skills/skillify/assets/init-new/assets/.gitignore_template +0 -15
  113. package/skills/skillify/assets/init-new/assets/PROJECT_SUMMARY_template.md +0 -13
  114. package/skills/skillify/assets/init-new/assets/directory_structure.txt +0 -14
  115. package/skills/skillify/assets/init-new/assets/test-config_template.json +0 -4
  116. package/skills/wtf/SKILL.md +0 -20
  117. /package/skills/{close-story → j-close-story}/scripts/compute-scope-divergence.sh +0 -0
  118. /package/skills/{close-story → j-close-story}/scripts/extract-diff-stats.sh +0 -0
  119. /package/skills/{close-story → j-close-story}/scripts/update-task-frontmatter.sh +0 -0
  120. /package/skills/{commit → j-commit}/assets/user_instructions_template.md +0 -0
  121. /package/skills/{distribute → j-distribute}/CONFIG_SCHEMA.md +0 -0
  122. /package/skills/{distribute → j-distribute}/scripts/check-version.sh +0 -0
  123. /package/skills/{distribute → j-distribute}/scripts/commit-version-bump.sh +0 -0
  124. /package/skills/{do → j-do}/assets/intent-vs-diff-prompt.md +0 -0
  125. /package/skills/{do → j-do}/assets/sender_template.json +0 -0
  126. /package/skills/{doc → j-doc}/assets/path-objectives.yaml +0 -0
  127. /package/skills/{doc → j-doc}/scripts/resolve_last_update.py +0 -0
  128. /package/skills/{doc-sync → j-doc-sync}/assets/default_excludes.txt +0 -0
  129. /package/skills/{doc-sync → j-doc-sync}/assets/doc_targets.md +0 -0
  130. /package/skills/{evaluate → j-evaluate}/assets/evaluation_invokation_template.yml +0 -0
  131. /package/skills/{evaluate → j-evaluate}/assets/evaluation_rapport_template.md +0 -0
  132. /package/skills/{idea → j-idea}/assets/idea_template.md +0 -0
  133. /package/skills/{pi-plan → j-pi-plan}/assets/epic.json +0 -0
  134. /package/skills/{pi-plan → j-pi-plan}/assets/story_template.md +0 -0
  135. /package/skills/{publish → j-publish}/assets/ExportOptions.plist.template +0 -0
  136. /package/skills/{publish → j-publish}/assets/ownership-matrix.md +0 -0
  137. /package/skills/{publish → j-publish}/assets/publish.example.json +0 -0
  138. /package/skills/{publish → j-publish}/assets/publish.example.npm-ci.json +0 -0
  139. /package/skills/{publish → j-publish}/assets/publish.example.npm.json +0 -0
  140. /package/skills/{publish → j-publish}/assets/secrets-guide.md +0 -0
  141. /package/skills/{publish → j-publish}/schemas/fixtures/npm-ci-minimal.json +0 -0
  142. /package/skills/{publish → j-publish}/schemas/fixtures/npm-ci-with-empty-secrets.json +0 -0
  143. /package/skills/{publish → j-publish}/schemas/fixtures/npm-ci-with-workflow-path.json +0 -0
  144. /package/skills/{publish → j-publish}/scripts/check_target_config.sh +0 -0
  145. /package/skills/{publish → j-publish}/scripts/droplet_pipeline.sh +0 -0
  146. /package/skills/{publish → j-publish}/scripts/finalize_changelog.sh +0 -0
  147. /package/skills/{publish → j-publish}/scripts/generate_release_notes.sh +0 -0
  148. /package/skills/{publish → j-publish}/scripts/ios_pipeline.sh +0 -0
  149. /package/skills/{publish → j-publish}/scripts/npm_ci_pipeline.sh +0 -0
  150. /package/skills/{publish → j-publish}/scripts/npm_pipeline.sh +0 -0
  151. /package/skills/{publish → j-publish}/scripts/publish_common.sh +0 -0
  152. /package/skills/{publish → j-publish}/scripts/reconcile_tags.sh +0 -0
  153. /package/skills/{publish → j-publish}/scripts/run_gates.sh +0 -0
  154. /package/skills/{publish → j-publish}/scripts/setup_wizard.sh +0 -0
  155. /package/skills/{publish → j-publish}/scripts/show_history.sh +0 -0
  156. /package/skills/{publish → j-publish}/scripts/suggest_semver_bump.sh +0 -0
  157. /package/skills/{publish → j-publish}/scripts/validate_config.sh +0 -0
  158. /package/skills/{publish → j-publish}/scripts/validate_droplet_env.sh +0 -0
  159. /package/skills/{publish → j-publish}/scripts/validate_ios_env.sh +0 -0
  160. /package/skills/{publish → j-publish}/scripts/validate_npm_ci_env.sh +0 -0
  161. /package/skills/{publish → j-publish}/scripts/validate_npm_env.sh +0 -0
  162. /package/skills/{publish → j-publish}/scripts/write_ledger_entry.sh +0 -0
  163. /package/skills/{reconcile → j-reconcile}/assets/report_format.md +0 -0
  164. /package/skills/{reconcile-origin → j-reconcile-origin}/scripts/reconcile-origin.sh +0 -0
  165. /package/skills/{skillify → j-skillify}/assets/init-new/SKILL.md +0 -0
  166. /package/skills/{init → j-skillify/assets/init-new}/assets/.gitignore_template +0 -0
  167. /package/skills/{init → j-skillify/assets/init-new}/assets/PROJECT_SUMMARY_template.md +0 -0
  168. /package/skills/{init → j-skillify/assets/init-new}/assets/directory_structure.txt +0 -0
  169. /package/skills/{init → j-skillify/assets/init-new}/assets/test-config_template.json +0 -0
  170. /package/skills/{skillify → j-skillify}/assets/init-new/assets/workflow_template.json +0 -0
  171. /package/skills/{skillify → j-skillify}/assets/init-new/scripts/init.sh +0 -0
  172. /package/skills/{skillify → j-skillify}/assets/init-old/SKILL.md +0 -0
  173. /package/skills/{status → j-status}/assets/output_format.md +0 -0
  174. /package/skills/{todo → j-todo}/assets/todo_template.md +0 -0
  175. /package/skills/{uncharted → j-uncharted}/assets/SEGMENT_PROPOSAL_TEMPLATE.md +0 -0
  176. /package/skills/{uncharted → j-uncharted}/scripts/apply-subsystem-cap.sh +0 -0
  177. /package/skills/{uncharted → j-uncharted}/scripts/discover-subsystems.sh +0 -0
@@ -1,25 +1,32 @@
1
1
  ---
2
- name: j:idea
3
- description: Capture a loosely-defined idea to project/ideas.md — a lightweight, "maybe someday" log with no board or promotion overhead.
2
+ name: j.idea
3
+ description: Polyfill alias of the idea skill under a collision-safe directory name. Identical behavior to /idea — Capture a loosely-defined idea to project/ideas.md — a lightweight, "maybe someday" log with no board or promotion overhead. Use when the bare /idea form is shadowed by another tool's own built-in command of the same name.
4
4
  keywords:
5
5
  - idea
6
6
  - capture idea
7
7
  - log idea
8
8
  - brain dump
9
9
  - maybe someday
10
+ - j-idea
11
+ - polyfill
10
12
  examples:
11
13
  - "capture this as an idea"
12
14
  - "log this idea for later"
13
15
  - "I have a rough idea I want to jot down"
16
+ - "j-idea"
14
17
  metadata:
15
18
  prefered_agent: scrum-master
16
19
  ---
17
20
 
18
21
  # Idea — Lightweight Idea Capture
19
22
 
23
+ This skill is a literal-directory-name duplicate of `skills/idea/`. It exists so that `/j-idea` (and `j.j-idea`) give a guaranteed-unshadowed way to reach the same flow as `/idea`, even if a host tool's own built-in command of the same name would otherwise shadow or override the bare `/idea` alias (Claude Code's native skill resolution is a literal-string, directory-name-based match — see `docs/skill-authoring.md`'s "Invocation Convention").
24
+
25
+ This file is generated/synced by `scripts/generate-j-alias.sh idea` from `skills/idea/SKILL.md` — do not hand-edit it; re-run the generator instead to pick up source changes.
26
+
20
27
  ## Instructions
21
28
 
22
- 1. **Ensure `project/ideas.md` exists** — If it doesn't exist, it will be auto-created by `idea_manager.sh` from `skills/idea/assets/idea_template.md` — no manual action needed.
29
+ 1. **Ensure `project/ideas.md` exists** — If it doesn't exist, it will be auto-created by `idea_manager.sh` from `skills/j-idea/assets/idea_template.md` — no manual action needed.
23
30
 
24
31
  2. **Ask the user about the idea:**
25
32
  - What's the idea?
@@ -13,7 +13,7 @@
13
13
  <!-- PLACEHOLDER: what this idea is trying to achieve -->
14
14
 
15
15
  ## Affected Files or Scope
16
- <!-- PLACEHOLDER: which files, modules, or areas are involved, e.g. src/auth/, skills/idea/ -->
16
+ <!-- PLACEHOLDER: which files, modules, or areas are involved, e.g. src/auth/, skills/j-idea/ -->
17
17
 
18
18
  ## Intended Approach
19
19
  <!-- PLACEHOLDER: step-by-step or high-level approach to the work -->
@@ -1,10 +1,17 @@
1
1
  ---
2
- name: j:improve
3
- description: A skill for analyzing a codebase and producing a structured improvement plan toward a defined goal.
2
+ name: j.improve
3
+ description: Polyfill alias of the improve skill under a collision-safe directory name. Identical behavior to /improve — A skill for analyzing a codebase and producing a structured improvement plan toward a defined goal. Use when the bare /improve form is shadowed by another tool's own built-in command of the same name.
4
+ keywords:
5
+ - j-improve
6
+ - polyfill
4
7
  ---
5
8
 
6
9
  # Improve
7
10
 
11
+ This skill is a literal-directory-name duplicate of `skills/improve/`. It exists so that `/j-improve` (and `j.j-improve`) give a guaranteed-unshadowed way to reach the same flow as `/improve`, even if a host tool's own built-in command of the same name would otherwise shadow or override the bare `/improve` alias (Claude Code's native skill resolution is a literal-string, directory-name-based match — see `docs/skill-authoring.md`'s "Invocation Convention").
12
+
13
+ This file is generated/synced by `scripts/generate-j-alias.sh improve` from `skills/improve/SKILL.md` — do not hand-edit it; re-run the generator instead to pick up source changes.
14
+
8
15
  ## Instructions
9
16
 
10
17
  Before doing anything, check the attached description for an explicit or implicit goal.
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: j:j-init
2
+ name: j.init
3
3
  description: Polyfill alias of the init skill under a collision-safe directory name. Identical behavior to /init — initializes a new project with the standard directory structure, PROJECT_SUMMARY.md, workflow.json, git repo, and gitignore. Use when the built-in "/init" command (e.g. GH Copilot's own init) shadows Jenga's /init alias.
4
4
  keywords:
5
5
  - init
@@ -21,7 +21,7 @@ This skill is a literal-directory-name duplicate of `skills/init/`. It exists be
21
21
  some host tools/harnesses (e.g. GH Copilot) ship their own built-in command literally
22
22
  named `/init`, which can shadow or override Jenga AI's own `/init` alias (Claude Code's
23
23
  native skill resolution is a literal-string, directory-name-based match — see
24
- `docs/skill-authoring.md`'s "Invocation Convention"). `/j-init` (and `j:j-init`) give
24
+ `docs/skill-authoring.md`'s "Invocation Convention"). `/j-init` (and `j.j-init`) give
25
25
  users a guaranteed-unshadowed way to reach the exact same setup flow.
26
26
 
27
27
  Keep this file's instructions in lockstep with `skills/init/SKILL.md` — any change made
@@ -0,0 +1,32 @@
1
+ ---
2
+ name: j.jbp
3
+ description: Polyfill alias of the jbp skill under a collision-safe directory name. Identical behavior to /jbp — Scaffold the project using the JengaBasePlate boilerplate repo template from https://github.com/samwelmunga/JengaBasePlate.git. Use when the bare /jbp form is shadowed by another tool's own built-in command of the same name.
4
+ keywords:
5
+ - jbp
6
+ - boilerplate
7
+ - scaffold
8
+ - template
9
+ - jenga base
10
+ - j-jbp
11
+ - polyfill
12
+ examples:
13
+ - "scaffold with JengaBasePlate"
14
+ - "set up the base template"
15
+ - "j-jbp"
16
+ ---
17
+
18
+ # JBP — JengaBasePlate Scaffold
19
+
20
+ This skill is a literal-directory-name duplicate of `skills/jbp/`. It exists so that `/j-jbp` (and `j.j-jbp`) give a guaranteed-unshadowed way to reach the same flow as `/jbp`, even if a host tool's own built-in command of the same name would otherwise shadow or override the bare `/jbp` alias (Claude Code's native skill resolution is a literal-string, directory-name-based match — see `docs/skill-authoring.md`'s "Invocation Convention").
21
+
22
+ This file is generated/synced by `scripts/generate-j-alias.sh jbp` from `skills/jbp/SKILL.md` — do not hand-edit it; re-run the generator instead to pick up source changes.
23
+
24
+ ## Instructions
25
+
26
+ Use the following repo as the boilerplate framework for this project:
27
+
28
+ ```
29
+ https://github.com/samwelmunga/JengaBasePlate.git
30
+ ```
31
+
32
+ Clone or pull the template and apply its structure to the current project.
@@ -0,0 +1,28 @@
1
+ ---
2
+ name: j.lgtm
3
+ description: Polyfill alias of the lgtm skill under a collision-safe directory name. Identical behavior to /lgtm — Approve and commit the current work, then continue to the next task. Shortcut that chains /commit followed by /continue. Use when the bare /lgtm form is shadowed by another tool's own built-in command of the same name.
4
+ keywords:
5
+ - lgtm
6
+ - approve
7
+ - looks good
8
+ - done
9
+ - commit and continue
10
+ - j-lgtm
11
+ - polyfill
12
+ examples:
13
+ - "lgtm, commit this"
14
+ - "looks good, move on"
15
+ - "j-lgtm"
16
+ ---
17
+
18
+ # LGTM — Approve, Commit, and Continue
19
+
20
+ This skill is a literal-directory-name duplicate of `skills/lgtm/`. It exists so that `/j-lgtm` (and `j.j-lgtm`) give a guaranteed-unshadowed way to reach the same flow as `/lgtm`, even if a host tool's own built-in command of the same name would otherwise shadow or override the bare `/lgtm` alias (Claude Code's native skill resolution is a literal-string, directory-name-based match — see `docs/skill-authoring.md`'s "Invocation Convention").
21
+
22
+ This file is generated/synced by `scripts/generate-j-alias.sh lgtm` from `skills/lgtm/SKILL.md` — do not hand-edit it; re-run the generator instead to pick up source changes.
23
+
24
+ ## Instructions
25
+
26
+ 1. Invoke the `/commit` skill and wait for it to finish.
27
+
28
+ 2. If the current workflow is part of a `/do` execution, return to that workflow. Otherwise, invoke the `/continue` skill.
@@ -1,21 +1,28 @@
1
1
  ---
2
- name: j:pi-plan
3
- description: Define or expand project Epics in PROJECT_SUMMARY.md. Use this at the start of a project to establish its foundation, AND whenever the user wants to add major new features, plan a significant new area of work, or make epic-level changes to an existing project. Trigger whenever you hear things like "new feature area", "big change", "new epic", "expand the project", "add a major capability", or "plan a new phase" — even mid-project.
2
+ name: j.pi-plan
3
+ description: Polyfill alias of the pi-plan skill under a collision-safe directory name. Identical behavior to /pi-plan — Define or expand project Epics in PROJECT_SUMMARY.md. Use this at the start of a project to establish its foundation, AND whenever the user wants to add major new features, plan a significant new area of work, or make epic-level changes to an existing project. Trigger whenever you hear things like "new feature area", "big change", "new epic", "expand the project", "add a major capability", or "plan a new phase" — even mid-project. Use when the bare /pi-plan form is shadowed by another tool's own built-in command of the same name.
4
4
  keywords:
5
5
  - epic
6
6
  - template
7
7
  - expand
8
8
  - new feature area
9
9
  - project structure
10
+ - j-pi-plan
11
+ - polyfill
10
12
  examples:
11
13
  - "add a new epic for X"
12
14
  - "expand the project with a new feature area"
15
+ - "j-pi-plan"
13
16
  metadata:
14
17
  prefered_agent: scrum-master
15
18
  ---
16
19
 
17
20
  # Pi-plan — Define and Expand Project Epics
18
21
 
22
+ This skill is a literal-directory-name duplicate of `skills/pi-plan/`. It exists so that `/j-pi-plan` (and `j.j-pi-plan`) give a guaranteed-unshadowed way to reach the same flow as `/pi-plan`, even if a host tool's own built-in command of the same name would otherwise shadow or override the bare `/pi-plan` alias (Claude Code's native skill resolution is a literal-string, directory-name-based match — see `docs/skill-authoring.md`'s "Invocation Convention").
23
+
24
+ This file is generated/synced by `scripts/generate-j-alias.sh pi-plan` from `skills/pi-plan/SKILL.md` — do not hand-edit it; re-run the generator instead to pick up source changes.
25
+
19
26
  ## When to use this skill
20
27
 
21
28
  - **New project**: Gather project description and goals, then define the initial set of Epics.
@@ -59,4 +66,4 @@ Story files created under `project/board/stories/` should follow `./assets/story
59
66
 
60
67
  4. **Define new Epics** — Draft one or more new Epic objects using the same schema as above, then append them to the existing Epics list in `project/PROJECT_SUMMARY.md`. Do not modify existing Epics unless the user explicitly asks.
61
68
 
62
- 5. **Confirm before writing** — Show the user the proposed new Epic(s) and get confirmation before updating the file.
69
+ 5. **Confirm before writing** — Show the user the proposed new Epic(s) and get confirmation before updating the file.
@@ -1,20 +1,27 @@
1
1
  ---
2
- name: j:proceed
3
- description: Review project progress by checking epics and stories, optionally consulting PROJECT_SUMMARY.md and WARP.md, then continue executing the project plan.
2
+ name: j.proceed
3
+ description: Polyfill alias of the proceed skill under a collision-safe directory name. Identical behavior to /proceed — Review project progress by checking epics and stories, optionally consulting PROJECT_SUMMARY.md and WARP.md, then continue executing the project plan. Use when the bare /proceed form is shadowed by another tool's own built-in command of the same name.
4
4
  keywords:
5
5
  - proceed
6
6
  - review progress
7
7
  - check epics
8
8
  - continue executing
9
+ - j-proceed
10
+ - polyfill
9
11
  examples:
10
12
  - "proceed with the plan"
11
13
  - "review progress and continue"
14
+ - "j-proceed"
12
15
  metadata:
13
16
  prefered_agent: scrum-master
14
17
  ---
15
18
 
16
19
  # Proceed — Resume Project Execution
17
20
 
21
+ This skill is a literal-directory-name duplicate of `skills/proceed/`. It exists so that `/j-proceed` (and `j.j-proceed`) give a guaranteed-unshadowed way to reach the same flow as `/proceed`, even if a host tool's own built-in command of the same name would otherwise shadow or override the bare `/proceed` alias (Claude Code's native skill resolution is a literal-string, directory-name-based match — see `docs/skill-authoring.md`'s "Invocation Convention").
22
+
23
+ This file is generated/synced by `scripts/generate-j-alias.sh proceed` from `skills/proceed/SKILL.md` — do not hand-edit it; re-run the generator instead to pick up source changes.
24
+
18
25
  ## Instructions
19
26
 
20
27
  1. **Assess progress** — Read `project/PROJECT_SUMMARY.md`, then check `project/board/epics/`, `project/board/stories/`, and `project/board/tasks/` to determine how far the project has come and what is outstanding.
@@ -1,6 +1,6 @@
1
1
  ---
2
- name: j:publish
3
- description: Configure, validate, and orchestrate scaffolded release workflows through a single `/publish` entry point with bounded sub-commands.
2
+ name: j.publish
3
+ description: Polyfill alias of the publish skill under a collision-safe directory name. Identical behavior to /publish — Configure, validate, and orchestrate scaffolded release workflows through a single `/publish` entry point with bounded sub-commands. Use when the bare /publish form is shadowed by another tool's own built-in command of the same name.
4
4
  keywords:
5
5
  - publish
6
6
  - deploy
@@ -11,6 +11,8 @@ keywords:
11
11
  - release notes
12
12
  - staged publishing
13
13
  - stage
14
+ - j-publish
15
+ - polyfill
14
16
  examples:
15
17
  - "publish setup --target staging-appstore"
16
18
  - "publish setup --type mobile-ios"
@@ -26,6 +28,7 @@ examples:
26
28
  - "test a release before publishing"
27
29
  - "publish stage --target npm-registry --dry-run"
28
30
  - "approve a staged npm release"
31
+ - "j-publish"
29
32
  metadata:
30
33
  scope: multi-target-v2
31
34
  primary_target: multi
@@ -39,13 +42,17 @@ metadata:
39
42
 
40
43
  # Publish — Deployment Pipeline Orchestrator
41
44
 
45
+ This skill is a literal-directory-name duplicate of `skills/publish/`. It exists so that `/j-publish` (and `j.j-publish`) give a guaranteed-unshadowed way to reach the same flow as `/publish`, even if a host tool's own built-in command of the same name would otherwise shadow or override the bare `/publish` alias (Claude Code's native skill resolution is a literal-string, directory-name-based match — see `docs/skill-authoring.md`'s "Invocation Convention").
46
+
47
+ This file is generated/synced by `scripts/generate-j-alias.sh publish` from `skills/publish/SKILL.md` — do not hand-edit it; re-run the generator instead to pick up source changes.
48
+
42
49
  `/publish` is the single entry point for release workflows in this repository. It wires configuration validation, setup, gated deployment, release-note drafting, and ledger history into one end-to-end flow, and dispatches the final publish step to a per-type adapter.
43
50
 
44
51
  Four target types are currently supported:
45
52
 
46
53
  - **`mobile-ios`** — publishes an iOS build to App Store Connect via the iOS adapter. See the [iOS App Store](#ios-app-store) section for iOS-specific configuration.
47
- - **`npm`** — publishes a package to an npm registry via the npm adapter. See the npm adapter (`skills/publish/adapters/npm.md`) and the npm wizard (`skills/publish/wizards/npm.md`) for npm-specific configuration.
48
- - **`npm-ci`** — publishes a package to npmjs.com via GitHub Actions OIDC (Trusted Publishers), with no `NPM_TOKEN` stored. The adapter generates a GitHub Actions workflow, commits it to the repository, and triggers it via `gh workflow run`. See the npm-ci adapter (`skills/publish/adapters/npm-ci.md`) and the npm-ci wizard (`skills/publish/wizards/npm-ci.md`) for configuration details.
54
+ - **`npm`** — publishes a package to an npm registry via the npm adapter. See the npm adapter (`skills/j-publish/adapters/npm.md`) and the npm wizard (`skills/j-publish/wizards/npm.md`) for npm-specific configuration.
55
+ - **`npm-ci`** — publishes a package to npmjs.com via GitHub Actions OIDC (Trusted Publishers), with no `NPM_TOKEN` stored. The adapter generates a GitHub Actions workflow, commits it to the repository, and triggers it via `gh workflow run`. See the npm-ci adapter (`skills/j-publish/adapters/npm-ci.md`) and the npm-ci wizard (`skills/j-publish/wizards/npm-ci.md`) for configuration details.
49
56
  - **`droplet`** — deploys a website or app to any SSH-reachable Linux host (including DigitalOcean Droplets) using a generated GitHub Actions workflow. The workflow SSHes into the host, pulls the deploy branch, runs an optional build command, and restarts the service. See [Droplet (GitHub Actions → SSH)](#droplet-github-actions--ssh) for configuration details.
50
57
 
51
58
  Every sub-command validates the config before doing anything else, so behaviour is identical regardless of which target type a project uses.
@@ -55,23 +62,23 @@ Every sub-command validates the config before doing anything else, so behaviour
55
62
  Before any sub-command executes, validate the config with:
56
63
 
57
64
  ```bash
58
- bash skills/publish/scripts/validate_config.sh <path-to-publish.json>
65
+ bash skills/j-publish/scripts/validate_config.sh <path-to-publish.json>
59
66
  ```
60
67
 
61
68
  For deploy-oriented flows, validate the selected target with:
62
69
 
63
70
  ```bash
64
- bash skills/publish/scripts/check_target_config.sh <target-name> <path-to-publish.json>
71
+ bash skills/j-publish/scripts/check_target_config.sh <target-name> <path-to-publish.json>
65
72
  ```
66
73
 
67
74
  - Default config resolution: prefer repo-root `publish.json`, fall back to `project/configs/publish.json`
68
- - Schema: `skills/publish/schemas/publish.schema.json`
69
- - Example config: `skills/publish/assets/publish.example.json`
70
- - Secrets guide: `skills/publish/assets/secrets-guide.md`
71
- - Deploy contract and exit codes: `skills/publish/assets/ci-contract.md`
72
- - iOS adapter template: `skills/publish/adapters/mobile-ios.md`
73
- - npm adapter template: `skills/publish/adapters/npm.md`
74
- - Ownership matrix: `skills/publish/assets/ownership-matrix.md`
75
+ - Schema: `skills/j-publish/schemas/publish.schema.json`
76
+ - Example config: `skills/j-publish/assets/publish.example.json`
77
+ - Secrets guide: `skills/j-publish/assets/secrets-guide.md`
78
+ - Deploy contract and exit codes: `skills/j-publish/assets/ci-contract.md`
79
+ - iOS adapter template: `skills/j-publish/adapters/mobile-ios.md`
80
+ - npm adapter template: `skills/j-publish/adapters/npm.md`
81
+ - Ownership matrix: `skills/j-publish/assets/ownership-matrix.md`
75
82
 
76
83
  If config or env validation fails, the skill exits with code `4` and does not continue.
77
84
 
@@ -79,15 +86,15 @@ If config or env validation fails, the skill exits with code `4` and does not co
79
86
 
80
87
  | Command | Purpose | Implementation script | Notes |
81
88
  |---|---|---|---|
82
- | `/publish setup` | Prepare or refresh target configuration | `skills/publish/scripts/setup_wizard.sh` | Supported types: `mobile-ios`, `npm`, `npm-ci`, `droplet` |
83
- | `/publish deploy` | Run the full 11-step deploy orchestration | `skills/publish/scripts/publish_deploy.sh` | Dispatches to the adapter for the target's `type` (`mobile-ios`, `npm`, `npm-ci`, or `droplet`); `--dry-run` is honoured end-to-end |
84
- | `/publish stage` | Stage an npm release into npm's staged-publishing area, smoke-test it in isolation, then approve or reject it | `skills/publish/scripts/npm_stage_pipeline.sh` (the `publish` sub-command) and `skills/publish/scripts/npm_stage_inspect.sh` (`list`, `view`, `download`, `test`, `approve`, `reject`) | Supported for `npm` and `npm-ci` target types only |
85
- | `/publish history` | Read the canonical publish ledger | `skills/publish/scripts/show_history.sh` | Target-agnostic; filter by `--target <name>` |
86
- | `/publish release-notes` | Merge new release notes into the standing `CHANGELOG.md` (or a standalone draft via `--output`) without publishing | `skills/publish/scripts/generate_release_notes.sh` | Target-agnostic |
89
+ | `/publish setup` | Prepare or refresh target configuration | `skills/j-publish/scripts/setup_wizard.sh` | Supported types: `mobile-ios`, `npm`, `npm-ci`, `droplet` |
90
+ | `/publish deploy` | Run the full 11-step deploy orchestration | `skills/j-publish/scripts/publish_deploy.sh` | Dispatches to the adapter for the target's `type` (`mobile-ios`, `npm`, `npm-ci`, or `droplet`); `--dry-run` is honoured end-to-end |
91
+ | `/publish stage` | Stage an npm release into npm's staged-publishing area, smoke-test it in isolation, then approve or reject it | `skills/j-publish/scripts/npm_stage_pipeline.sh` (the `publish` sub-command) and `skills/j-publish/scripts/npm_stage_inspect.sh` (`list`, `view`, `download`, `test`, `approve`, `reject`) | Supported for `npm` and `npm-ci` target types only |
92
+ | `/publish history` | Read the canonical publish ledger | `skills/j-publish/scripts/show_history.sh` | Target-agnostic; filter by `--target <name>` |
93
+ | `/publish release-notes` | Merge new release notes into the standing `CHANGELOG.md` (or a standalone draft via `--output`) without publishing | `skills/j-publish/scripts/generate_release_notes.sh` | Target-agnostic |
87
94
 
88
95
  ## Quality Gate Policy
89
96
 
90
- The deploy flow invokes `skills/publish/scripts/run_gates.sh` at two fixed points:
97
+ The deploy flow invokes `skills/j-publish/scripts/run_gates.sh` at two fixed points:
91
98
 
92
99
  1. **Pre-deploy:** `run_gates.sh pre <target> <publish.json> [--non-interactive]`
93
100
  2. **Post-deploy:** `run_gates.sh post <target> <publish.json> [--non-interactive]`
@@ -98,7 +105,7 @@ The deploy flow invokes `skills/publish/scripts/run_gates.sh` at two fixed point
98
105
  - Post-deploy gate failure records a `partial` publish result instead of rolling back the adapter upload
99
106
  - `--non-interactive` suppresses retry prompts and aborts immediately on failure
100
107
 
101
- See `skills/publish/assets/ci-contract.md` for the full quality-gate policy.
108
+ See `skills/j-publish/assets/ci-contract.md` for the full quality-gate policy.
102
109
 
103
110
  ## Usage Signatures
104
111
 
@@ -108,13 +115,13 @@ See `skills/publish/assets/ci-contract.md` for the full quality-gate policy.
108
115
  /publish setup [<target>] [--type mobile-ios|npm|droplet] [--config <path>]
109
116
  ```
110
117
 
111
- Implementation: `bash skills/publish/scripts/setup_wizard.sh [<target>] [--type <deployment_type>] [--config <path>]`
118
+ Implementation: `bash skills/j-publish/scripts/setup_wizard.sh [<target>] [--type <deployment_type>] [--config <path>]`
112
119
 
113
120
  Wizard flow:
114
121
  1. Resolve or prompt for the target name.
115
122
  2. Resolve or prompt for the deployment type. Supported values: `mobile-ios`, `npm`, `droplet`.
116
- 3. Print the secrets guide path and the opening warning from `skills/publish/assets/secrets-guide.md`.
117
- 4. Load `skills/publish/wizards/<type>.md` and render each `## Question:` section as a prompt.
123
+ 3. Print the secrets guide path and the opening warning from `skills/j-publish/assets/secrets-guide.md`.
124
+ 4. Load `skills/j-publish/wizards/<type>.md` and render each `## Question:` section as a prompt.
118
125
  5. Preview the generated target config as JSON.
119
126
  6. Save on confirmation by merging or creating `publish.json`.
120
127
  7. Validate the saved file with `validate_config.sh`; if validation fails, roll back the write.
@@ -140,7 +147,7 @@ Example invocations:
140
147
  /publish deploy [--target <name>] [--config <path>] [--yes] [--dry-run] [--minor | --major] [--notes-file <path>]
141
148
  ```
142
149
 
143
- Implementation: `bash skills/publish/scripts/publish_deploy.sh [flags...]`
150
+ Implementation: `bash skills/j-publish/scripts/publish_deploy.sh [flags...]`
144
151
 
145
152
  Deploy flow:
146
153
  1. Select the target from config or `--target`
@@ -217,8 +224,8 @@ All seven sub-commands:
217
224
 
218
225
  Implementation:
219
226
 
220
- - `publish` → `bash skills/publish/scripts/npm_stage_pipeline.sh <target> <path-to-publish.json> [--dry-run] [--non-interactive] [--otp <otp>]` — six ordered phases (validate, gates, pack, stage, capture, ledger); writes a `staged` ledger entry on success.
221
- - `test`, `list`, `view`, `download`, `approve`, `reject` → `bash skills/publish/scripts/npm_stage_inspect.sh <sub> [args] [--config <path>] [--dry-run] [--json]`
227
+ - `publish` → `bash skills/j-publish/scripts/npm_stage_pipeline.sh <target> <path-to-publish.json> [--dry-run] [--non-interactive] [--otp <otp>]` — six ordered phases (validate, gates, pack, stage, capture, ledger); writes a `staged` ledger entry on success.
228
+ - `test`, `list`, `view`, `download`, `approve`, `reject` → `bash skills/j-publish/scripts/npm_stage_inspect.sh <sub> [args] [--config <path>] [--dry-run] [--json]`
222
229
  - `test` downloads the exact staged tarball into an isolated scratch directory outside the repo, installs it, runs the target's `npm.stage.smoke_cmd` (or the documented default check), and writes a `stage_tested` ledger entry (`pass`/`fail`).
223
230
  - `approve` refuses to run unless a passing `test` is on record for that exact stage id, unless `--force <reason>` is given; writes an `approved` ledger entry.
224
231
  - `reject` is the discard path omitted from npm's own staged-publishing docs page — documented here so it stays discoverable; writes a `rejected` ledger entry.
@@ -242,7 +249,7 @@ instead of being caught by users after `npm publish`.
242
249
  /publish history [--config <path>] [--limit <count>] [--target <name>] [--json]
243
250
  ```
244
251
 
245
- Implementation: `bash skills/publish/scripts/show_history.sh [--limit <count>] [--target <name>] [--json] [--config <path>]`
252
+ Implementation: `bash skills/j-publish/scripts/show_history.sh [--limit <count>] [--target <name>] [--json] [--config <path>]`
246
253
 
247
254
  ### `/publish release-notes`
248
255
 
@@ -250,7 +257,7 @@ Implementation: `bash skills/publish/scripts/show_history.sh [--limit <count>] [
250
257
  /publish release-notes --target <name> [--config <path>] [--from-tag <tag>] [--to-ref <git-ref>] [--output <path>]
251
258
  ```
252
259
 
253
- Implementation: `bash skills/publish/scripts/generate_release_notes.sh [--target <name>] [--from-tag <tag>] [--to-ref <git-ref>] [--output <path>] [<publish_json_path>]`
260
+ Implementation: `bash skills/j-publish/scripts/generate_release_notes.sh [--target <name>] [--from-tag <tag>] [--to-ref <git-ref>] [--output <path>] [<publish_json_path>]`
254
261
 
255
262
  Release-note rules:
256
263
  - The last publish tag is the highest semver tag on the current branch that also has a matching ledger entry in `project/logs/publish-history.json`.
@@ -263,15 +270,15 @@ Release-note rules:
263
270
  ## Ledger & Tagging
264
271
 
265
272
  - `project/logs/publish-history.json` is append-only. New publishes add new rows; existing rows are never edited in-place.
266
- - `bash skills/publish/scripts/suggest_semver_bump.sh` suggests `major`, `minor`, or `patch` based on git history since the last ledger-backed publish tag.
267
- - `bash skills/publish/scripts/write_ledger_entry.sh <target> <adapter> <platform_state> <notes_path> [--yes] [--dry-run] [--version <vX.Y.Z>] [--config <path>]` appends the canonical publish entry and creates the matching annotated git tag.
268
- - `bash skills/publish/scripts/reconcile_tags.sh [--dry-run] [--config <path>]` repairs drift:
273
+ - `bash skills/j-publish/scripts/suggest_semver_bump.sh` suggests `major`, `minor`, or `patch` based on git history since the last ledger-backed publish tag.
274
+ - `bash skills/j-publish/scripts/write_ledger_entry.sh <target> <adapter> <platform_state> <notes_path> [--yes] [--dry-run] [--version <vX.Y.Z>] [--config <path>]` appends the canonical publish entry and creates the matching annotated git tag.
275
+ - `bash skills/j-publish/scripts/reconcile_tags.sh [--dry-run] [--config <path>]` repairs drift:
269
276
  - git tag without ledger entry → append `partial` ledger row with note `Manually tagged without /publish`
270
277
  - ledger entry without git tag → create the missing tag retroactively
271
278
 
272
279
  ## Agent Roles
273
280
 
274
- See `skills/publish/assets/ownership-matrix.md` for the action-by-action ownership matrix.
281
+ See `skills/j-publish/assets/ownership-matrix.md` for the action-by-action ownership matrix.
275
282
 
276
283
  Summary:
277
284
  - **Developer** initiates `/publish setup`, `/publish deploy`, and release-note review
@@ -280,7 +287,7 @@ Summary:
280
287
 
281
288
  ## Configuration Model
282
289
 
283
- The canonical config must validate against `skills/publish/schemas/publish.schema.json`.
290
+ The canonical config must validate against `skills/j-publish/schemas/publish.schema.json`.
284
291
 
285
292
  ### Required top-level structure
286
293
 
@@ -327,10 +334,10 @@ The iOS adapter trust boundary is explicit: publish-side external commands are l
327
334
 
328
335
  The `npm` adapter publishes a Node package to an npm-compatible registry.
329
336
 
330
- - Adapter template: `skills/publish/adapters/npm.md`
331
- - Wizard template: `skills/publish/wizards/npm.md`
337
+ - Adapter template: `skills/j-publish/adapters/npm.md`
338
+ - Wizard template: `skills/j-publish/wizards/npm.md`
332
339
 
333
- See those files for the required target fields (registry URL, access, tag, `--dry-run` behaviour) and env references. Additional npm-specific schema details are owned by the npm settings block in `skills/publish/schemas/publish.schema.json`.
340
+ See those files for the required target fields (registry URL, access, tag, `--dry-run` behaviour) and env references. Additional npm-specific schema details are owned by the npm settings block in `skills/j-publish/schemas/publish.schema.json`.
334
341
 
335
342
  ## npm CI (OIDC Trusted Publisher)
336
343
 
@@ -338,9 +345,9 @@ The `npm-ci` adapter publishes a Node package to npmjs.com via **GitHub Actions
338
345
 
339
346
  > Use `npm` for local publishes with a token; use `npm-ci` for CI-only publishing with OIDC (no token required).
340
347
 
341
- - Adapter template: `skills/publish/adapters/npm-ci.md`
342
- - Wizard template: `skills/publish/wizards/npm-ci.md`
343
- - Example config: `skills/publish/assets/publish.example.npm-ci.json`
348
+ - Adapter template: `skills/j-publish/adapters/npm-ci.md`
349
+ - Wizard template: `skills/j-publish/wizards/npm-ci.md`
350
+ - Example config: `skills/j-publish/assets/publish.example.npm-ci.json`
344
351
 
345
352
  ### Required target fields for `npm-ci`
346
353
 
@@ -400,7 +407,7 @@ The generated workflow reads these from GitHub Actions secrets:
400
407
  - `DROPLET_SSH_KEY` (or value of `ssh_key_secret`) — private key contents
401
408
  - `DROPLET_KNOWN_HOSTS` (or value of `known_hosts_secret`) — `ssh-keyscan` output
402
409
 
403
- See `skills/publish/assets/secrets-guide.md` for setup instructions.
410
+ See `skills/j-publish/assets/secrets-guide.md` for setup instructions.
404
411
 
405
412
  ### First-run prerequisites (manual)
406
413
 
@@ -76,7 +76,7 @@ The `gh` CLI must be authenticated (`gh auth login`) before running
76
76
  ### Pipeline entrypoint
77
77
 
78
78
  ```bash
79
- bash skills/publish/scripts/droplet_pipeline.sh \
79
+ bash skills/j-publish/scripts/droplet_pipeline.sh \
80
80
  --target <name> \
81
81
  --config <path-to-publish.json> \
82
82
  [--dry-run]
@@ -2,7 +2,7 @@
2
2
 
3
3
  The `mobile-ios` adapter drives the `/publish deploy` flow for iOS App Store targets.
4
4
  It is a prompt/template contract for the agent layer and delegates concrete execution to
5
- `skills/publish/scripts/ios_pipeline.sh`.
5
+ `skills/j-publish/scripts/ios_pipeline.sh`.
6
6
 
7
7
  ## Invocation Contract
8
8
 
@@ -43,13 +43,13 @@ The required env vars are:
43
43
  Validate them before execution with:
44
44
 
45
45
  ```bash
46
- bash skills/publish/scripts/validate_ios_env.sh <path-to-publish.json>
46
+ bash skills/j-publish/scripts/validate_ios_env.sh <path-to-publish.json>
47
47
  ```
48
48
 
49
49
  ### Pipeline entrypoint
50
50
 
51
51
  ```bash
52
- bash skills/publish/scripts/ios_pipeline.sh <target> <path-to-publish.json> [--dry-run] [--non-interactive]
52
+ bash skills/j-publish/scripts/ios_pipeline.sh <target> <path-to-publish.json> [--dry-run] [--non-interactive]
53
53
  ```
54
54
 
55
55
  ## Execution Phases
@@ -79,7 +79,7 @@ The `gh` CLI must be authenticated before running `/publish deploy` against an
79
79
  ### Pipeline entrypoint
80
80
 
81
81
  ```bash
82
- bash skills/publish/scripts/npm_ci_pipeline.sh \
82
+ bash skills/j-publish/scripts/npm_ci_pipeline.sh \
83
83
  --target <name> \
84
84
  --config <path-to-publish.json> \
85
85
  [--dry-run]
@@ -235,9 +235,9 @@ automated and human halves of the flow:
235
235
  - **Approval is always a human, out-of-CI step.** `npm stage approve`
236
236
  requires an interactive npm 2FA one-time password — there is no OIDC
237
237
  equivalent for approval. A human runs
238
- `bash skills/publish/scripts/npm_stage_inspect.sh test <stage-id>` (or
238
+ `bash skills/j-publish/scripts/npm_stage_inspect.sh test <stage-id>` (or
239
239
  relies on the automated CI-staged test result) and then
240
- `bash skills/publish/scripts/npm_stage_inspect.sh approve <stage-id> --otp <otp>`
240
+ `bash skills/j-publish/scripts/npm_stage_inspect.sh approve <stage-id> --otp <otp>`
241
241
  from their own machine. `reject` (same script) is available to either
242
242
  side to discard a staged candidate.
243
243
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  The `npm` adapter drives the `/publish deploy` flow for npm registry targets.
4
4
  It is a prompt/template contract for the agent layer and delegates concrete execution to
5
- `skills/publish/scripts/npm_pipeline.sh`.
5
+ `skills/j-publish/scripts/npm_pipeline.sh`.
6
6
 
7
7
  ## Invocation Contract
8
8
 
@@ -30,13 +30,13 @@ The required env vars are:
30
30
  Validate them before execution with:
31
31
 
32
32
  ```bash
33
- bash skills/publish/scripts/validate_npm_env.sh <path-to-publish.json>
33
+ bash skills/j-publish/scripts/validate_npm_env.sh <path-to-publish.json>
34
34
  ```
35
35
 
36
36
  ### Pipeline entrypoint
37
37
 
38
38
  ```bash
39
- bash skills/publish/scripts/npm_pipeline.sh <target> <path-to-publish.json> [--dry-run] [--non-interactive]
39
+ bash skills/j-publish/scripts/npm_pipeline.sh <target> <path-to-publish.json> [--dry-run] [--non-interactive]
40
40
  ```
41
41
 
42
42
  ## Execution Phases
@@ -114,13 +114,13 @@ A successful run produces:
114
114
  Before a live `deploy`, this target type also supports **staged publishing**
115
115
  via `/publish stage` — npm's own pre-publish staging area, which lets a
116
116
  release be smoke-tested from the exact tarball that would ship before it
117
- becomes visible on the registry. See `skills/publish/SKILL.md`'s
117
+ becomes visible on the registry. See `skills/j-publish/SKILL.md`'s
118
118
  `### /publish stage` section for the full command reference; summary here:
119
119
 
120
- - `bash skills/publish/scripts/npm_stage_pipeline.sh <target> <path-to-publish.json> [--dry-run] [--non-interactive] [--otp <otp>]` runs validate → gates → pack → stage → capture → ledger and writes a `staged` ledger entry.
121
- - `bash skills/publish/scripts/npm_stage_inspect.sh test <stage-id>` installs the staged tarball into an isolated scratch directory and smoke-tests it, writing a `stage_tested` ledger entry.
122
- - `bash skills/publish/scripts/npm_stage_inspect.sh approve <stage-id>` requires an npm 2FA one-time password and refuses without a passing `test` on record unless `--force <reason>` is given.
123
- - `bash skills/publish/scripts/npm_stage_inspect.sh reject <stage-id>` discards the staged version.
120
+ - `bash skills/j-publish/scripts/npm_stage_pipeline.sh <target> <path-to-publish.json> [--dry-run] [--non-interactive] [--otp <otp>]` runs validate → gates → pack → stage → capture → ledger and writes a `staged` ledger entry.
121
+ - `bash skills/j-publish/scripts/npm_stage_inspect.sh test <stage-id>` installs the staged tarball into an isolated scratch directory and smoke-tests it, writing a `stage_tested` ledger entry.
122
+ - `bash skills/j-publish/scripts/npm_stage_inspect.sh approve <stage-id>` requires an npm 2FA one-time password and refuses without a passing `test` on record unless `--force <reason>` is given.
123
+ - `bash skills/j-publish/scripts/npm_stage_inspect.sh reject <stage-id>` discards the staged version.
124
124
 
125
125
  Same registry-existence precondition as a normal `npm` publish: staged
126
126
  publishing only applies to a package that has already had at least one
@@ -7,9 +7,9 @@ This document defines the CI-safe execution contract for the scaffolded `/publis
7
7
  Every `/publish` invocation must perform these steps before command-specific work:
8
8
 
9
9
  1. Resolve config path (`--config <path>` or default `project/configs/publish.json`)
10
- 2. Run `bash skills/publish/scripts/validate_config.sh <resolved-path>`
10
+ 2. Run `bash skills/j-publish/scripts/validate_config.sh <resolved-path>`
11
11
  3. Abort immediately with exit code `4` if the file is missing, invalid JSON, or fails validation
12
- 4. For the iOS adapter, run `bash skills/publish/scripts/validate_ios_env.sh <resolved-path>` before build/upload work begins
12
+ 4. For the iOS adapter, run `bash skills/j-publish/scripts/validate_ios_env.sh <resolved-path>` before build/upload work begins
13
13
 
14
14
  ## Inputs
15
15
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$id": "https://jenga.local/skills/publish/schemas/publish.schema.json",
3
+ "$id": "https://jenga.local/skills/j-publish/schemas/publish.schema.json",
4
4
  "title": "Publish Skill Configuration",
5
5
  "description": "Schema for project/configs/publish.json used by the /publish skill.",
6
6
  "type": "object",
@@ -419,8 +419,31 @@ cmd_list() {
419
419
  # `list` itself needs no config (npm stage list takes no target/config).
420
420
  : "${config_arg}"
421
421
 
422
+ # `npm stage list` rejects a version-qualified spec ("Version specifiers
423
+ # are not supported for listing staged packages") — it only accepts a bare
424
+ # package name. If the caller passed one anyway (e.g. "@jenga-ai/agent@1.3.0"
425
+ # or "some-pkg@1.3.0"), split it into name + version here, pass only the
426
+ # bare name to npm, and filter the result to that version client-side
427
+ # below (same fallback the fix in npm_stage_pipeline.sh uses). A leading
428
+ # '@' belongs to a scoped package's own name, not a version marker, so the
429
+ # version split point is the second '@' for scoped specs, the first for
430
+ # unscoped ones.
431
+ local package_name="${package_spec}" package_version=""
432
+ if [[ -n "${package_spec}" ]]; then
433
+ if [[ "${package_spec}" == @* ]]; then
434
+ local rest="${package_spec#@}"
435
+ if [[ "${rest}" == *"@"* ]]; then
436
+ package_name="@${rest%%@*}"
437
+ package_version="${rest#*@}"
438
+ fi
439
+ elif [[ "${package_spec}" == *"@"* ]]; then
440
+ package_name="${package_spec%%@*}"
441
+ package_version="${package_spec#*@}"
442
+ fi
443
+ fi
444
+
422
445
  local -a cmd=(npm stage list)
423
- [[ -n "${package_spec}" ]] && cmd+=("${package_spec}")
446
+ [[ -n "${package_name}" ]] && cmd+=("${package_name}")
424
447
  cmd+=(--json)
425
448
 
426
449
  if (( dry_run )); then
@@ -436,6 +459,16 @@ cmd_list() {
436
459
  exit "${EXIT_OP_FAILED}"
437
460
  fi
438
461
 
462
+ if [[ -n "${package_version}" ]]; then
463
+ local filtered
464
+ if filtered="$(printf '%s' "${output}" | jq -c --arg ver "${package_version}" '
465
+ ( if (type == "array") then . else (.stages? // .items? // []) end )
466
+ | [ .[] | select((.version // "") == $ver) ]
467
+ ' 2>/dev/null)"; then
468
+ output="${filtered}"
469
+ fi
470
+ fi
471
+
439
472
  if (( json_out )); then
440
473
  printf '%s\n' "${output}"
441
474
  exit "${EXIT_OK}"