@codyswann/lisa 5.14.0 → 5.14.1

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 (221) hide show
  1. package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
  2. package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
  3. package/dist/core/upstream-evidence-manifest.js +5 -138
  4. package/dist/core/upstream-evidence-manifest.js.map +1 -1
  5. package/package.json +4 -4
  6. package/plugins/lisa/.claude-plugin/plugin.json +1 -1
  7. package/plugins/lisa/.codex-plugin/plugin.json +1 -1
  8. package/plugins/lisa/.codex-plugin/skills/lisa-jira-evidence/SKILL.md +10 -4
  9. package/plugins/lisa/.codex-plugin/skills/lisa-jira-journey/SKILL.md +2 -2
  10. package/plugins/lisa/.codex-plugin/skills/lisa-jira-journey/scripts/generate-templates.py +70 -9
  11. package/plugins/lisa/skills/lisa-jira-evidence/SKILL.md +10 -4
  12. package/plugins/lisa/skills/lisa-jira-journey/SKILL.md +2 -2
  13. package/plugins/lisa/skills/lisa-jira-journey/scripts/generate-templates.py +70 -9
  14. package/plugins/lisa-agy/plugin.json +1 -1
  15. package/plugins/lisa-agy/skills/lisa-jira-evidence/SKILL.md +10 -4
  16. package/plugins/lisa-agy/skills/lisa-jira-journey/SKILL.md +2 -2
  17. package/plugins/lisa-agy/skills/lisa-jira-journey/scripts/generate-templates.py +70 -9
  18. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  19. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  20. package/plugins/lisa-cdk-agy/plugin.json +1 -1
  21. package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
  22. package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
  23. package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
  24. package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
  25. package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
  26. package/plugins/lisa-copilot/skills/lisa-jira-evidence/SKILL.md +10 -4
  27. package/plugins/lisa-copilot/skills/lisa-jira-journey/SKILL.md +2 -2
  28. package/plugins/lisa-copilot/skills/lisa-jira-journey/scripts/generate-templates.py +70 -9
  29. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  30. package/plugins/lisa-cursor/skills/lisa-jira-evidence/SKILL.md +10 -4
  31. package/plugins/lisa-cursor/skills/lisa-jira-journey/SKILL.md +2 -2
  32. package/plugins/lisa-cursor/skills/lisa-jira-journey/scripts/generate-templates.py +70 -9
  33. package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
  34. package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
  35. package/plugins/lisa-devin/skills/lisa-jira-evidence/SKILL.md +10 -4
  36. package/plugins/lisa-devin/skills/lisa-jira-journey/SKILL.md +2 -2
  37. package/plugins/lisa-devin/skills/lisa-jira-journey/scripts/generate-templates.py +70 -9
  38. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  39. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  40. package/plugins/lisa-expo/.codex-plugin/skills/journey-guidance/SKILL.md +8 -3
  41. package/plugins/lisa-expo/skills/journey-guidance/SKILL.md +8 -3
  42. package/plugins/lisa-expo-agy/plugin.json +1 -1
  43. package/plugins/lisa-expo-agy/skills/journey-guidance/SKILL.md +8 -3
  44. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  45. package/plugins/lisa-expo-copilot/skills/journey-guidance/SKILL.md +8 -3
  46. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  47. package/plugins/lisa-expo-cursor/skills/journey-guidance/SKILL.md +8 -3
  48. package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
  49. package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
  50. package/plugins/lisa-expo-devin/skills/journey-guidance/SKILL.md +8 -3
  51. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  52. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  53. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  54. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  55. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  56. package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
  57. package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
  58. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  59. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  60. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  61. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  62. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  63. package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
  64. package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
  65. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  66. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  67. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  68. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  69. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  70. package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
  71. package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
  72. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  73. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  74. package/plugins/lisa-rails/.codex-plugin/skills/journey-guidance/SKILL.md +3 -1
  75. package/plugins/lisa-rails/skills/journey-guidance/SKILL.md +3 -1
  76. package/plugins/lisa-rails-agy/plugin.json +1 -1
  77. package/plugins/lisa-rails-agy/skills/journey-guidance/SKILL.md +3 -1
  78. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  79. package/plugins/lisa-rails-copilot/skills/journey-guidance/SKILL.md +3 -1
  80. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  81. package/plugins/lisa-rails-cursor/skills/journey-guidance/SKILL.md +3 -1
  82. package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
  83. package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
  84. package/plugins/lisa-rails-devin/skills/journey-guidance/SKILL.md +3 -1
  85. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  86. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  87. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  88. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  89. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  90. package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
  91. package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
  92. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  93. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  94. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  95. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  96. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  97. package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
  98. package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
  99. package/plugins/src/base/skills/lisa-jira-evidence/SKILL.md +10 -4
  100. package/plugins/src/base/skills/lisa-jira-journey/SKILL.md +2 -2
  101. package/plugins/src/base/skills/lisa-jira-journey/scripts/generate-templates.py +70 -9
  102. package/plugins/src/expo/skills/journey-guidance/SKILL.md +8 -3
  103. package/plugins/src/rails/skills/journey-guidance/SKILL.md +3 -1
  104. package/plugins/lisa-expo/.codex-plugin/skills/jira-add-journey/SKILL.md +0 -142
  105. package/plugins/lisa-expo/.codex-plugin/skills/jira-add-journey/agents/openai.yaml +0 -4
  106. package/plugins/lisa-expo/.codex-plugin/skills/jira-create/SKILL.md +0 -163
  107. package/plugins/lisa-expo/.codex-plugin/skills/jira-create/agents/openai.yaml +0 -4
  108. package/plugins/lisa-expo/.codex-plugin/skills/jira-evidence/SKILL.md +0 -112
  109. package/plugins/lisa-expo/.codex-plugin/skills/jira-evidence/agents/openai.yaml +0 -4
  110. package/plugins/lisa-expo/.codex-plugin/skills/jira-evidence/scripts/post-evidence.sh +0 -397
  111. package/plugins/lisa-expo/.codex-plugin/skills/jira-journey/SKILL.md +0 -209
  112. package/plugins/lisa-expo/.codex-plugin/skills/jira-journey/agents/openai.yaml +0 -4
  113. package/plugins/lisa-expo/.codex-plugin/skills/jira-journey/scripts/generate-templates.py +0 -323
  114. package/plugins/lisa-expo/.codex-plugin/skills/jira-journey/scripts/parse-plan.py +0 -400
  115. package/plugins/lisa-expo/.codex-plugin/skills/jira-verify/SKILL.md +0 -29
  116. package/plugins/lisa-expo/.codex-plugin/skills/jira-verify/agents/openai.yaml +0 -4
  117. package/plugins/lisa-expo/skills/jira-add-journey/SKILL.md +0 -140
  118. package/plugins/lisa-expo/skills/jira-add-journey/agents/openai.yaml +0 -4
  119. package/plugins/lisa-expo/skills/jira-create/SKILL.md +0 -161
  120. package/plugins/lisa-expo/skills/jira-create/agents/openai.yaml +0 -4
  121. package/plugins/lisa-expo/skills/jira-evidence/SKILL.md +0 -110
  122. package/plugins/lisa-expo/skills/jira-evidence/agents/openai.yaml +0 -4
  123. package/plugins/lisa-expo/skills/jira-evidence/scripts/post-evidence.sh +0 -397
  124. package/plugins/lisa-expo/skills/jira-journey/SKILL.md +0 -207
  125. package/plugins/lisa-expo/skills/jira-journey/agents/openai.yaml +0 -4
  126. package/plugins/lisa-expo/skills/jira-journey/scripts/generate-templates.py +0 -323
  127. package/plugins/lisa-expo/skills/jira-journey/scripts/parse-plan.py +0 -400
  128. package/plugins/lisa-expo/skills/jira-verify/SKILL.md +0 -27
  129. package/plugins/lisa-expo/skills/jira-verify/agents/openai.yaml +0 -4
  130. package/plugins/lisa-expo-agy/skills/jira-add-journey/SKILL.md +0 -140
  131. package/plugins/lisa-expo-agy/skills/jira-create/SKILL.md +0 -161
  132. package/plugins/lisa-expo-agy/skills/jira-evidence/SKILL.md +0 -110
  133. package/plugins/lisa-expo-agy/skills/jira-evidence/scripts/post-evidence.sh +0 -397
  134. package/plugins/lisa-expo-agy/skills/jira-journey/SKILL.md +0 -207
  135. package/plugins/lisa-expo-agy/skills/jira-journey/scripts/generate-templates.py +0 -323
  136. package/plugins/lisa-expo-agy/skills/jira-journey/scripts/parse-plan.py +0 -400
  137. package/plugins/lisa-expo-agy/skills/jira-verify/SKILL.md +0 -27
  138. package/plugins/lisa-expo-copilot/skills/jira-add-journey/SKILL.md +0 -140
  139. package/plugins/lisa-expo-copilot/skills/jira-create/SKILL.md +0 -161
  140. package/plugins/lisa-expo-copilot/skills/jira-evidence/SKILL.md +0 -110
  141. package/plugins/lisa-expo-copilot/skills/jira-evidence/scripts/post-evidence.sh +0 -397
  142. package/plugins/lisa-expo-copilot/skills/jira-journey/SKILL.md +0 -207
  143. package/plugins/lisa-expo-copilot/skills/jira-journey/scripts/generate-templates.py +0 -323
  144. package/plugins/lisa-expo-copilot/skills/jira-journey/scripts/parse-plan.py +0 -400
  145. package/plugins/lisa-expo-copilot/skills/jira-verify/SKILL.md +0 -27
  146. package/plugins/lisa-expo-cursor/skills/jira-add-journey/SKILL.md +0 -140
  147. package/plugins/lisa-expo-cursor/skills/jira-create/SKILL.md +0 -161
  148. package/plugins/lisa-expo-cursor/skills/jira-evidence/SKILL.md +0 -110
  149. package/plugins/lisa-expo-cursor/skills/jira-evidence/scripts/post-evidence.sh +0 -397
  150. package/plugins/lisa-expo-cursor/skills/jira-journey/SKILL.md +0 -207
  151. package/plugins/lisa-expo-cursor/skills/jira-journey/scripts/generate-templates.py +0 -323
  152. package/plugins/lisa-expo-cursor/skills/jira-journey/scripts/parse-plan.py +0 -400
  153. package/plugins/lisa-expo-cursor/skills/jira-verify/SKILL.md +0 -27
  154. package/plugins/lisa-expo-devin/skills/jira-add-journey/SKILL.md +0 -140
  155. package/plugins/lisa-expo-devin/skills/jira-create/SKILL.md +0 -161
  156. package/plugins/lisa-expo-devin/skills/jira-evidence/SKILL.md +0 -110
  157. package/plugins/lisa-expo-devin/skills/jira-evidence/scripts/post-evidence.sh +0 -397
  158. package/plugins/lisa-expo-devin/skills/jira-journey/SKILL.md +0 -207
  159. package/plugins/lisa-expo-devin/skills/jira-journey/scripts/generate-templates.py +0 -323
  160. package/plugins/lisa-expo-devin/skills/jira-journey/scripts/parse-plan.py +0 -400
  161. package/plugins/lisa-expo-devin/skills/jira-verify/SKILL.md +0 -27
  162. package/plugins/lisa-rails/.codex-plugin/skills/jira-add-journey/SKILL.md +0 -81
  163. package/plugins/lisa-rails/.codex-plugin/skills/jira-add-journey/agents/openai.yaml +0 -4
  164. package/plugins/lisa-rails/.codex-plugin/skills/jira-create/SKILL.md +0 -102
  165. package/plugins/lisa-rails/.codex-plugin/skills/jira-create/agents/openai.yaml +0 -4
  166. package/plugins/lisa-rails/.codex-plugin/skills/jira-evidence/SKILL.md +0 -103
  167. package/plugins/lisa-rails/.codex-plugin/skills/jira-evidence/agents/openai.yaml +0 -4
  168. package/plugins/lisa-rails/.codex-plugin/skills/jira-evidence/scripts/post-evidence.sh +0 -397
  169. package/plugins/lisa-rails/.codex-plugin/skills/jira-journey/SKILL.md +0 -67
  170. package/plugins/lisa-rails/.codex-plugin/skills/jira-journey/agents/openai.yaml +0 -4
  171. package/plugins/lisa-rails/.codex-plugin/skills/jira-verify/SKILL.md +0 -28
  172. package/plugins/lisa-rails/.codex-plugin/skills/jira-verify/agents/openai.yaml +0 -4
  173. package/plugins/lisa-rails/skills/jira-add-journey/SKILL.md +0 -79
  174. package/plugins/lisa-rails/skills/jira-add-journey/agents/openai.yaml +0 -4
  175. package/plugins/lisa-rails/skills/jira-create/SKILL.md +0 -100
  176. package/plugins/lisa-rails/skills/jira-create/agents/openai.yaml +0 -4
  177. package/plugins/lisa-rails/skills/jira-evidence/SKILL.md +0 -101
  178. package/plugins/lisa-rails/skills/jira-evidence/agents/openai.yaml +0 -4
  179. package/plugins/lisa-rails/skills/jira-evidence/scripts/post-evidence.sh +0 -397
  180. package/plugins/lisa-rails/skills/jira-journey/SKILL.md +0 -65
  181. package/plugins/lisa-rails/skills/jira-journey/agents/openai.yaml +0 -4
  182. package/plugins/lisa-rails/skills/jira-verify/SKILL.md +0 -26
  183. package/plugins/lisa-rails/skills/jira-verify/agents/openai.yaml +0 -4
  184. package/plugins/lisa-rails-agy/skills/jira-add-journey/SKILL.md +0 -79
  185. package/plugins/lisa-rails-agy/skills/jira-create/SKILL.md +0 -100
  186. package/plugins/lisa-rails-agy/skills/jira-evidence/SKILL.md +0 -101
  187. package/plugins/lisa-rails-agy/skills/jira-evidence/scripts/post-evidence.sh +0 -397
  188. package/plugins/lisa-rails-agy/skills/jira-journey/SKILL.md +0 -65
  189. package/plugins/lisa-rails-agy/skills/jira-verify/SKILL.md +0 -26
  190. package/plugins/lisa-rails-copilot/skills/jira-add-journey/SKILL.md +0 -79
  191. package/plugins/lisa-rails-copilot/skills/jira-create/SKILL.md +0 -100
  192. package/plugins/lisa-rails-copilot/skills/jira-evidence/SKILL.md +0 -101
  193. package/plugins/lisa-rails-copilot/skills/jira-evidence/scripts/post-evidence.sh +0 -397
  194. package/plugins/lisa-rails-copilot/skills/jira-journey/SKILL.md +0 -65
  195. package/plugins/lisa-rails-copilot/skills/jira-verify/SKILL.md +0 -26
  196. package/plugins/lisa-rails-cursor/skills/jira-add-journey/SKILL.md +0 -79
  197. package/plugins/lisa-rails-cursor/skills/jira-create/SKILL.md +0 -100
  198. package/plugins/lisa-rails-cursor/skills/jira-evidence/SKILL.md +0 -101
  199. package/plugins/lisa-rails-cursor/skills/jira-evidence/scripts/post-evidence.sh +0 -397
  200. package/plugins/lisa-rails-cursor/skills/jira-journey/SKILL.md +0 -65
  201. package/plugins/lisa-rails-cursor/skills/jira-verify/SKILL.md +0 -26
  202. package/plugins/lisa-rails-devin/skills/jira-add-journey/SKILL.md +0 -79
  203. package/plugins/lisa-rails-devin/skills/jira-create/SKILL.md +0 -100
  204. package/plugins/lisa-rails-devin/skills/jira-evidence/SKILL.md +0 -101
  205. package/plugins/lisa-rails-devin/skills/jira-evidence/scripts/post-evidence.sh +0 -397
  206. package/plugins/lisa-rails-devin/skills/jira-journey/SKILL.md +0 -65
  207. package/plugins/lisa-rails-devin/skills/jira-verify/SKILL.md +0 -26
  208. package/plugins/src/expo/skills/jira-add-journey/SKILL.md +0 -140
  209. package/plugins/src/expo/skills/jira-create/SKILL.md +0 -161
  210. package/plugins/src/expo/skills/jira-evidence/SKILL.md +0 -110
  211. package/plugins/src/expo/skills/jira-evidence/scripts/post-evidence.sh +0 -397
  212. package/plugins/src/expo/skills/jira-journey/SKILL.md +0 -207
  213. package/plugins/src/expo/skills/jira-journey/scripts/generate-templates.py +0 -323
  214. package/plugins/src/expo/skills/jira-journey/scripts/parse-plan.py +0 -400
  215. package/plugins/src/expo/skills/jira-verify/SKILL.md +0 -27
  216. package/plugins/src/rails/skills/jira-add-journey/SKILL.md +0 -79
  217. package/plugins/src/rails/skills/jira-create/SKILL.md +0 -100
  218. package/plugins/src/rails/skills/jira-evidence/SKILL.md +0 -101
  219. package/plugins/src/rails/skills/jira-evidence/scripts/post-evidence.sh +0 -397
  220. package/plugins/src/rails/skills/jira-journey/SKILL.md +0 -65
  221. package/plugins/src/rails/skills/jira-verify/SKILL.md +0 -26
@@ -1,397 +0,0 @@
1
- #!/usr/bin/env bash
2
- # post-evidence.sh — Upload evidence and post to JIRA + GitHub PR description
3
- #
4
- # Usage:
5
- # bash post-evidence.sh <TICKET_ID> <EVIDENCE_DIR> <PR_NUMBER>
6
- #
7
- # Prerequisites:
8
- # - JIRA_API_TOKEN env var set
9
- # - a jira-cli config, resolved in this order (see "CONFIG RESOLUTION" below):
10
- # 1. ${PROJECT_DIR}/.lisa/jira-cli/.config.yml (written by the
11
- # setup-jira-cli SessionStart hook from the JIRA_* environment)
12
- # 2. ~/.config/.jira/.config.yml (a developer's own
13
- # `jira init` config; announced on stderr when it is used)
14
- # - gh CLI authenticated
15
- #
16
- # What it does:
17
- # 1. Uploads evidence files to the configured GitHub evidence release
18
- # (default 'pr-assets'; see verification.completion.evidenceRelease) as
19
- # pr-<PR_NUMBER>-<file>, then confirms every one is listed there
20
- # 2. Updates the GitHub PR description with evidence/comment.md
21
- # 3. Uploads image evidence as JIRA attachments
22
- # 4. Posts/updates the JIRA comment with evidence/comment.txt
23
- # 5. Moves the JIRA ticket to the configured jira.workflow.review status
24
- # (skipped entirely when review is unconfigured — stays in claimed)
25
-
26
- set -euo pipefail
27
-
28
- TICKET_ID="${1:?Usage: post-evidence.sh <TICKET_ID> <EVIDENCE_DIR> <PR_NUMBER>}"
29
- EVIDENCE_DIR="${2:?Usage: post-evidence.sh <TICKET_ID> <EVIDENCE_DIR> <PR_NUMBER>}"
30
- PR_NUMBER="${3:?Usage: post-evidence.sh <TICKET_ID> <EVIDENCE_DIR> <PR_NUMBER>}"
31
-
32
- # Every release asset is named pr-${PR_NUMBER}-<file>, so the number must be a
33
- # canonical positive integer before anything is uploaded: an empty, signed or
34
- # padded value would produce a name another pull request could also produce.
35
- if [[ ! "$PR_NUMBER" =~ ^[1-9][0-9]*$ ]]; then
36
- echo "ERROR: PR_NUMBER must be a positive integer, got '$PR_NUMBER'" >&2
37
- exit 1
38
- fi
39
-
40
- # ─────────────────────────────────────────────────────────────────────────────
41
- # CONFIG RESOLUTION
42
- #
43
- # The setup-jira-cli SessionStart hook writes ${PROJECT_DIR}/.lisa/jira-cli/
44
- # .config.yml. Nothing read it — this script looked only at the developer's own
45
- # ~/.config/.jira/.config.yml and exited 1 telling the operator to run
46
- # `jira init`, so on a headless JIRA project the hook was an inert control.
47
- # See CodySwannGT/lisa#2767.
48
- #
49
- # PROJECT_DIR is resolved with the same rule as the hook that writes the file,
50
- # deliberately character-for-character: CLAUDE_PROJECT_DIR (the harness's own
51
- # declaration of the root, inert on harnesses that never set it), then the git
52
- # toplevel, then pwd. A session launched from a subdirectory otherwise reads a
53
- # directory it never wrote — the #2768 defect, on the read side.
54
- #
55
- # Nothing here writes to ~/.config/.jira. That file is a developer's personal
56
- # jira-cli state; it is read as a fallback and never created or modified.
57
- #
58
- # NOTE: the `.lisa.config.json` reads in Step 5 below are still resolved from
59
- # the process working directory. That is pre-existing and out of scope here.
60
- # ─────────────────────────────────────────────────────────────────────────────
61
- PROJECT_DIR="${CLAUDE_PROJECT_DIR:-}"
62
- if [[ -z "${PROJECT_DIR}" || ! -d "${PROJECT_DIR}" ]]; then
63
- PROJECT_DIR="$(git rev-parse --show-toplevel 2>/dev/null || pwd)"
64
- fi
65
- PROJECT_JIRA_CONFIG="${PROJECT_DIR}/.lisa/jira-cli/.config.yml"
66
- HOME_JIRA_CONFIG="${HOME}/.config/.jira/.config.yml"
67
-
68
- if [[ -f "$PROJECT_JIRA_CONFIG" ]]; then
69
- JIRA_CONFIG="$PROJECT_JIRA_CONFIG"
70
- elif [[ -f "$HOME_JIRA_CONFIG" ]]; then
71
- # Announced, never silent. A silent fall-through to the developer's own file
72
- # is precisely how the Lisa-written config stayed unconsumed without anyone
73
- # noticing, and on a headless runner there is no such file to fall back to.
74
- echo "NOTE: no Lisa-written jira-cli config at $PROJECT_JIRA_CONFIG" >&2
75
- echo " falling back to the developer config at $HOME_JIRA_CONFIG" >&2
76
- JIRA_CONFIG="$HOME_JIRA_CONFIG"
77
- else
78
- echo "ERROR: jira-cli config not found." >&2
79
- echo " Lisa-written config (expected): $PROJECT_JIRA_CONFIG" >&2
80
- echo " developer config (fallback): $HOME_JIRA_CONFIG" >&2
81
- echo " Fix: export JIRA_SERVER, JIRA_LOGIN (and JIRA_INSTALLATION," >&2
82
- echo " JIRA_PROJECT) and start a new session so the setup-jira-cli hook" >&2
83
- echo " writes the project config — or run 'jira init' locally." >&2
84
- exit 1
85
- fi
86
- JIRA_SERVER=$(sed -n 's/^server:[[:space:]]*//p' "$JIRA_CONFIG")
87
- JIRA_USER=$(grep '^login:' "$JIRA_CONFIG" | awk '{print $2}')
88
- # Validate before constructing credentials; use only the approved HTTPS origin.
89
- JIRA_SERVER=$(python3 - "$JIRA_SERVER" <<'PY_ORIGIN'
90
- import ipaddress
91
- import re
92
- import sys
93
- from urllib.parse import urlsplit
94
-
95
- raw = sys.argv[1]
96
- try:
97
- if not raw or any(c <= " " or c >= "\x7f" for c in raw):
98
- raise ValueError()
99
- url = urlsplit(raw)
100
- if (url.scheme != "https" or "@" in url.netloc or "?" in raw
101
- or "#" in raw or url.path not in ("", "/") or not url.hostname):
102
- raise ValueError()
103
- host = url.hostname
104
- if url.netloc.startswith("["):
105
- host = f"[{ipaddress.IPv6Address(host).compressed}]"
106
- elif not re.fullmatch(r"[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*", host):
107
- raise ValueError()
108
- port = url.port
109
- if port == 0:
110
- raise ValueError()
111
- suffix = f":{port}" if port is not None and port != 443 else ""
112
- print(f"https://{host}{suffix}")
113
- except ValueError:
114
- sys.exit("ERROR: JIRA_SERVER must be a bare HTTPS origin without userinfo, path, query or fragment.")
115
- PY_ORIGIN
116
- )
117
-
118
- GH_REPO=$(gh repo view --json nameWithOwner --jq '.nameWithOwner')
119
- # The evidence release comes from the one resolver every writer shares, so a
120
- # project's `verification.completion.evidenceRelease` (for example the rotating
121
- # `pr-assets-{YYYY-MM}`) moves this upload too. GitHub caps a release at 1000
122
- # assets; a hardcoded `pr-assets` filled up and every upload then failed with a
123
- # raw HTTP 422 (CodySwannGT/lisa#4692). `--ensure` creates the release when it
124
- # is absent and, when it is nearly full, rolls over to the next overflow
125
- # release (`<release>-2`, `-3`, …) and prints that one (CodySwannGT/lisa#4838).
126
- # It refuses, in plain words, only when a pinned release is full, every
127
- # overflow release is full, the release name is too long to take an overflow
128
- # suffix, or the release cannot be created. generate-templates.py asks the same `--ensure`, so its links
129
- # name the release uploaded here. A host whose Lisa predates the resolver keeps
130
- # the legacy release.
131
- #
132
- # LISA_EVIDENCE_RELEASE, when set, pins the release for this run so the links
133
- # generate-templates.py wrote match these uploads. The resolver still checks
134
- # that name and the release's capacity; it reads the variable itself.
135
- RELEASE_TAG="${LISA_EVIDENCE_RELEASE:-pr-assets}"
136
- WORK_ITEM_CLI="${PROJECT_DIR}/scripts/lisa-work-item.mjs"
137
- if [[ -f "$WORK_ITEM_CLI" ]]; then
138
- if ! RELEASE_TAG=$(cd "$PROJECT_DIR" && node "$WORK_ITEM_CLI" evidence-release --ensure); then
139
- echo "ERROR: the GitHub evidence release is not usable (see the message above); no evidence was uploaded." >&2
140
- exit 1
141
- fi
142
- fi
143
-
144
- if [[ -z "${JIRA_API_TOKEN:-}" ]]; then
145
- echo "ERROR: JIRA_API_TOKEN environment variable is not set" >&2
146
- exit 1
147
- fi
148
-
149
- # Collect numbered evidence files (images + text)
150
- SCREENSHOTS=()
151
- while IFS= read -r -d '' f; do
152
- SCREENSHOTS+=("$f")
153
- done < <(find "$EVIDENCE_DIR" -maxdepth 1 -name '[0-9][0-9]-*.png' -print0 | sort -z)
154
-
155
- TEXT_EVIDENCE=()
156
- while IFS= read -r -d '' f; do
157
- TEXT_EVIDENCE+=("$f")
158
- done < <(find "$EVIDENCE_DIR" -maxdepth 1 \( -name '[0-9][0-9]-*.txt' -o -name '[0-9][0-9]-*.json' \) ! -name 'comment.txt' -print0 | sort -z)
159
-
160
- # Bash 3.2 treats an empty array as unset under nounset.
161
- ALL_EVIDENCE=(${SCREENSHOTS[@]+"${SCREENSHOTS[@]}"} ${TEXT_EVIDENCE[@]+"${TEXT_EVIDENCE[@]}"})
162
-
163
- if [[ ${#ALL_EVIDENCE[@]} -eq 0 ]]; then
164
- echo "ERROR: No numbered evidence files found in $EVIDENCE_DIR (expected NN-*.png, NN-*.txt, or NN-*.json)" >&2
165
- exit 1
166
- fi
167
-
168
- echo "Found ${#SCREENSHOTS[@]} screenshots and ${#TEXT_EVIDENCE[@]} text evidence files to upload"
169
-
170
- # GitHub rewrites special characters (spaces, brackets, non-ASCII) in release
171
- # asset names, so a link built from the local name would point at an asset that
172
- # does not exist under that name. Refuse such names before anything is uploaded.
173
- for FILE in "${ALL_EVIDENCE[@]}"; do
174
- if [[ ! "$(basename "$FILE")" =~ ^[0-9]{2}-[A-Za-z0-9._-]+\.(png|txt|json)$ ]]; then
175
- echo "ERROR: evidence file name '$(basename "$FILE")' is not release-safe." >&2
176
- echo " Rename it to NN-name.ext using only letters, digits, '.', '_' and '-'" >&2
177
- echo " (e.g. '01-search step.png' -> '01-search-step.png'), then re-run generate-templates.py." >&2
178
- exit 1
179
- fi
180
- done
181
-
182
- # The description's links are checked before uploading and again against the
183
- # release after uploading, so it must exist before anything is uploaded.
184
- COMMENT_MD="$EVIDENCE_DIR/comment.md"
185
- if [[ ! -f "$COMMENT_MD" ]]; then
186
- echo "ERROR: $COMMENT_MD not found — run generate-templates.py first" >&2
187
- exit 1
188
- fi
189
-
190
- # Print every Markdown link or image target in comment.md, one per line. Every
191
- # Markdown target form counts:
192
- # inline ](url) ](url "title") ](<url>) ](<url> "title")
193
- # reference [ref]: url [ref]: <url> "title" (up to 3 leading spaces)
194
- # Only link targets count: text evidence inlined into comment.md may quote a
195
- # release URL as plain text, and that must not fail the run.
196
- comment_links() {
197
- { grep -oE '\]\(<?[^)<>[:space:]]+' "$COMMENT_MD" || true; } | sed -E 's/^\]\(<?//'
198
- { grep -oE '^ {0,3}\[[^]]+\]:[[:space:]]*<?[^<>[:space:]]+' "$COMMENT_MD" || true; } |
199
- sed -E 's/^ {0,3}\[[^]]+\]:[[:space:]]*<?//'
200
- }
201
-
202
- # A link to THIS pull request's own pr-${PR_NUMBER}- asset in a different
203
- # release of this repository means the templates were generated against one
204
- # release and this run uploads to another (a roll-over to `<release>-2` in
205
- # between, CodySwannGT/lisa#4838): the link would 404, so refuse it. The check
206
- # runs before anything is uploaded, so a refused run leaves no copies behind in
207
- # a release the operator then re-pins away from (CodySwannGT/lisa#4856).
208
- # Any other cross-release link (another PR's evidence, or an older release's
209
- # asset linked on purpose) passes through untouched: regenerating the
210
- # templates cannot remove a hand-written link, so refusing it would loop.
211
- RELEASE_PREFIX="github.com/${GH_REPO}/releases/download/"
212
- CROSS_RELEASE_LINKS=0
213
- while IFS= read -r LINK; do
214
- [[ "$LINK" == *"$RELEASE_PREFIX"* ]] || continue
215
- LINK_TAG="${LINK#*"$RELEASE_PREFIX"}"
216
- LINK_TAG="${LINK_TAG%%/*}"
217
- [[ "$LINK_TAG" != "$RELEASE_TAG" ]] || continue
218
- [[ "${LINK##*/}" == "pr-${PR_NUMBER}-"* ]] || continue
219
- echo "ERROR: $COMMENT_MD links $LINK in release '$LINK_TAG', but this run uploads to release '$RELEASE_TAG'. Regenerate the templates with LISA_EVIDENCE_RELEASE=$RELEASE_TAG and re-run this script with the same LISA_EVIDENCE_RELEASE=$RELEASE_TAG. If this link was written by hand, remove it or re-upload the asset to '$RELEASE_TAG'." >&2
220
- CROSS_RELEASE_LINKS=1
221
- done < <(comment_links)
222
- if [[ $CROSS_RELEASE_LINKS -ne 0 ]]; then
223
- echo "No evidence was uploaded." >&2
224
- exit 1
225
- fi
226
-
227
- # Compute JIRA auth early (used in steps 3 and 4)
228
- JIRA_AUTH=$(printf '%s' "$JIRA_USER:$JIRA_API_TOKEN" | base64 | tr -d '\n')
229
-
230
- # ── Step 1: Upload to the GitHub evidence release ───────────────────────────
231
- echo ""
232
- echo "==> Uploading to GitHub release '$RELEASE_TAG'..."
233
-
234
- # Every pull request shares this one release, and --clobber deletes a
235
- # same-named asset before uploading. Bare NN- names collided across pull
236
- # requests, so a later upload destroyed an earlier one's evidence
237
- # (CodySwannGT/lisa#4639). Each asset is therefore uploaded as
238
- # pr-${PR_NUMBER}-<file>: --clobber can then replace only this pull request's
239
- # own earlier upload. Local evidence files keep their NN- names; the scoped
240
- # copies live in a private directory removed on exit.
241
- UPLOAD_DIR=$(mktemp -d)
242
- trap 'rm -rf "$UPLOAD_DIR"' EXIT
243
- UPLOADED_ASSETS=()
244
- for FILE in "${ALL_EVIDENCE[@]}"; do
245
- ASSET_NAME="pr-${PR_NUMBER}-$(basename "$FILE")"
246
- cp "$FILE" "$UPLOAD_DIR/$ASSET_NAME"
247
- echo " ↑ $ASSET_NAME"
248
- gh release upload "$RELEASE_TAG" "$UPLOAD_DIR/$ASSET_NAME" --repo "$GH_REPO" --clobber
249
- UPLOADED_ASSETS+=("$ASSET_NAME")
250
- done
251
-
252
- # The description links these names, so confirm each one is really in the
253
- # release before pointing anything at it.
254
- RELEASE_ASSETS=$(gh release view "$RELEASE_TAG" --repo "$GH_REPO" --json assets --jq '.assets[].name')
255
- MISSING_ASSETS=0
256
- for ASSET_NAME in "${UPLOADED_ASSETS[@]}"; do
257
- if ! grep -qxF "$ASSET_NAME" <<< "$RELEASE_ASSETS"; then
258
- echo "ERROR: $ASSET_NAME is missing from release '$RELEASE_TAG' after upload" >&2
259
- MISSING_ASSETS=1
260
- fi
261
- done
262
- if [[ $MISSING_ASSETS -ne 0 ]]; then
263
- exit 1
264
- fi
265
-
266
- echo " ✓ GitHub release assets uploaded"
267
-
268
- # Every Markdown link or image target that points into the release must name
269
- # an asset THIS run uploaded, and therefore one the check above just found in
270
- # the release. A bare or other-PR name would show some other pull request's
271
- # evidence, and a pr-<n>- asset left over from an earlier run would show
272
- # evidence this run did not produce. Links into other releases were already
273
- # checked before uploading.
274
- THIS_RUN_ASSETS=$(printf '%s\n' "${UPLOADED_ASSETS[@]}")
275
- BAD_LINKS=0
276
- while IFS= read -r LINK; do
277
- # Only this repository's release counts: another repository's release of the
278
- # same name holds assets this run never uploaded.
279
- [[ "$LINK" == *"${RELEASE_PREFIX}${RELEASE_TAG}/"* ]] || continue
280
- LINK_NAME="${LINK##*/}"
281
- if [[ "$LINK_NAME" != "pr-${PR_NUMBER}-"* ]]; then
282
- echo "ERROR: $COMMENT_MD links $LINK, which is not scoped to PR #$PR_NUMBER (expected pr-${PR_NUMBER}-<file>)" >&2
283
- BAD_LINKS=1
284
- elif ! grep -qxF "$LINK_NAME" <<< "$THIS_RUN_ASSETS"; then
285
- echo "ERROR: $COMMENT_MD links $LINK, which this run did not upload to release '$RELEASE_TAG'" >&2
286
- BAD_LINKS=1
287
- fi
288
- done < <(comment_links)
289
- if [[ $BAD_LINKS -ne 0 ]]; then
290
- exit 1
291
- fi
292
-
293
- # ── Step 2: Update GitHub PR description with evidence ──────────────────────
294
- echo ""
295
- echo "==> Updating GitHub PR #$PR_NUMBER description..."
296
-
297
- CURRENT_BODY=$(gh pr view "$PR_NUMBER" --json body --jq '.body')
298
-
299
- # Replace or append the Evidence section
300
- if echo "$CURRENT_BODY" | grep -q "^## Evidence"; then
301
- # Replace from "## Evidence" to end of file
302
- NEW_BODY=$(echo "$CURRENT_BODY" | sed '/^## Evidence/,$d')
303
- EVIDENCE_SECTION=$(cat "$COMMENT_MD")
304
- UPDATED_BODY="${NEW_BODY}
305
- ${EVIDENCE_SECTION}"
306
- else
307
- EVIDENCE_SECTION=$(cat "$COMMENT_MD")
308
- UPDATED_BODY="${CURRENT_BODY}
309
-
310
- ${EVIDENCE_SECTION}"
311
- fi
312
-
313
- gh pr edit "$PR_NUMBER" --body "$UPDATED_BODY"
314
- echo " ✓ PR description updated with evidence"
315
-
316
- # ── Step 3: Upload image evidence as JIRA attachments ───────────────────────
317
- if [[ ${#SCREENSHOTS[@]} -gt 0 ]]; then
318
- echo ""
319
- echo "==> Uploading image attachments to JIRA $TICKET_ID..."
320
-
321
- for IMG in "${SCREENSHOTS[@]}"; do
322
- FILENAME=$(basename "$IMG")
323
- echo " ↑ $FILENAME"
324
- RESP=$(curl -s -w "\nHTTP_CODE:%{http_code}" \
325
- -X POST \
326
- -H "Authorization: Basic $JIRA_AUTH" \
327
- -H "X-Atlassian-Token: no-check" \
328
- -F "file=@$IMG" \
329
- "$JIRA_SERVER/rest/api/3/issue/$TICKET_ID/attachments")
330
- HTTP_CODE=$(echo "$RESP" | grep "HTTP_CODE:" | cut -d: -f2)
331
- if [[ "$HTTP_CODE" != "200" ]]; then
332
- echo " WARNING: Failed to upload $FILENAME (HTTP $HTTP_CODE)" >&2
333
- fi
334
- done
335
-
336
- echo " ✓ JIRA attachments uploaded"
337
- fi
338
-
339
- # ── Step 4: Post JIRA comment ────────────────────────────────────────────────
340
- COMMENT_TXT="$EVIDENCE_DIR/comment.txt"
341
- if [[ ! -f "$COMMENT_TXT" ]]; then
342
- echo "ERROR: $COMMENT_TXT not found — run generate-templates.py first" >&2
343
- exit 1
344
- fi
345
-
346
- echo ""
347
- echo "==> Posting JIRA comment on $TICKET_ID..."
348
-
349
- COMMENT_BODY=$(cat "$COMMENT_TXT")
350
- COMMENT_JSON=$(python3 -c "import sys, json; print(json.dumps(sys.stdin.read()))" <<< "$COMMENT_BODY")
351
-
352
- RESP=$(curl -s -w "\nHTTP_CODE:%{http_code}" \
353
- -X POST \
354
- -H "Authorization: Basic $JIRA_AUTH" \
355
- -H "Content-Type: application/json" \
356
- "$JIRA_SERVER/rest/api/2/issue/$TICKET_ID/comment" \
357
- -d "{\"body\": $COMMENT_JSON}")
358
- HTTP_CODE=$(echo "$RESP" | grep "HTTP_CODE:" | cut -d: -f2)
359
-
360
- if [[ "$HTTP_CODE" == "201" ]]; then
361
- echo " ✓ JIRA comment posted"
362
- else
363
- echo " WARNING: JIRA comment returned HTTP $HTTP_CODE" >&2
364
- echo "$RESP" | grep -v "HTTP_CODE:" | head -3
365
- fi
366
-
367
- # ── Step 5: Move ticket to the configured review status (if any) ────────────
368
- # A transition may target only a status named in .lisa.config.json jira.workflow.
369
- # `review` is OPTIONAL: when it is not configured, the build lifecycle stays in
370
- # `claimed` until `done` — do NOT invent a transition. (See config-resolution.md.)
371
- REVIEW=""
372
- if [ -f .lisa.config.json ]; then
373
- _cfg=$(jq -r '.jira.workflow.review // .jira.workflow.code_review // empty' .lisa.config.json 2>/dev/null)
374
- [ -n "$_cfg" ] && REVIEW="$_cfg"
375
- fi
376
- if [ -f .lisa.config.local.json ]; then
377
- _local=$(jq -r '.jira.workflow.review // .jira.workflow.code_review // empty' .lisa.config.local.json 2>/dev/null)
378
- [ -n "$_local" ] && REVIEW="$_local"
379
- fi
380
- echo ""
381
- if [ -n "$REVIEW" ]; then
382
- echo "==> Moving $TICKET_ID to $REVIEW..."
383
- # --config pins jira-cli to the same file this script parsed above.
384
- # jira-cli resolves --config > JIRA_CONFIG_FILE > ~/.config/.jira/
385
- # .config.yml, and a --config path that does not exist fails closed
386
- # rather than falling back (measured against jira-cli v1.7.0). The flag
387
- # needs no environment export, so this works identically on every
388
- # harness — see the harness note in the setup-jira-cli hook.
389
- jira --config "$JIRA_CONFIG" issue move "$TICKET_ID" "$REVIEW" 2>&1 && echo " ✓ Ticket moved to $REVIEW" || echo " WARNING: Could not move ticket to $REVIEW (not a valid transition?); leaving in current status" >&2
390
- else
391
- echo "==> No jira.workflow.review configured; leaving $TICKET_ID in its current (claimed) status per config-resolution."
392
- fi
393
-
394
- echo ""
395
- echo "==> Done!"
396
- echo " JIRA: $JIRA_SERVER/browse/$TICKET_ID"
397
- echo " GitHub: https://github.com/$GH_REPO/pull/$PR_NUMBER"
@@ -1,65 +0,0 @@
1
- ---
2
- name: jira-journey
3
- description: "Parse a JIRA ticket's Validation Journey section, execute the verification steps, capture evidence, and post to JIRA + GitHub PR using the jira-evidence skill."
4
- ---
5
-
6
- # JIRA Validation Journey
7
-
8
- Parse a JIRA ticket's Validation Journey, execute the verification steps using the project's appropriate tools, capture evidence at each marker, and post to JIRA + GitHub PR.
9
-
10
- ## Arguments
11
-
12
- `$ARGUMENTS`: `<TICKET_ID> [PR_NUMBER]`
13
-
14
- - `TICKET_ID` (required): JIRA ticket key (e.g., `PROJ-123`)
15
- - `PR_NUMBER` (optional): GitHub PR number to update description
16
-
17
- ## Prerequisites
18
-
19
- - `JIRA_API_TOKEN` environment variable set
20
- - `jira-cli` configured — `.lisa/jira-cli/.config.yml` (written by the
21
- `setup-jira-cli` SessionStart hook) or `~/.config/.jira/.config.yml`
22
- - `gh` CLI authenticated
23
-
24
- ## Workflow
25
-
26
- ### Step 1: Parse the Validation Journey
27
-
28
- Run the parser script to extract the Validation Journey from the JIRA ticket description:
29
-
30
- ```bash
31
- python3 .claude/skills/jira-journey/scripts/parse-plan.py <TICKET_ID>
32
- ```
33
-
34
- The script outputs JSON with: `ticket`, `prerequisites`, `steps`, `viewports`, `assertions`.
35
-
36
- ### Step 2: Satisfy Prerequisites
37
-
38
- Before starting the journey, verify each prerequisite listed in the parsed output.
39
-
40
- ### Step 3: Execute Steps
41
-
42
- Execute each step sequentially. At each step with an evidence marker (`[SCREENSHOT: name]`, or typed `[EVIDENCE: <artifact-type>: <name>]` per the `verification` rule — `[SCREENSHOT: name]` is shorthand for `[EVIDENCE: screenshot: name]`), capture an artifact of the declared type.
43
-
44
- The execution method depends on the project type:
45
- - **UI projects**: Use Playwright MCP browser tools, capture screenshots at each viewport
46
- - **API projects**: Use curl or test commands, capture stdout/stderr
47
- - **Library projects**: Run tests, capture output
48
-
49
- Stack-specific overrides provide the actual execution implementation.
50
-
51
- ### Step 4: Generate Evidence Templates
52
-
53
- After capturing all evidence, run the template generator to format evidence for JIRA and GitHub.
54
-
55
- ### Step 5: Post Evidence
56
-
57
- Use the `/jira-evidence` skill to post everything:
58
-
59
- ```bash
60
- bash .claude/skills/jira-evidence/scripts/post-evidence.sh <TICKET_ID> ./evidence <PR_NUMBER>
61
- ```
62
-
63
- ### Step 6: Verify
64
-
65
- Confirm evidence renders at both the JIRA ticket and GitHub PR.
@@ -1,4 +0,0 @@
1
- display_name: "Jira Journey"
2
- short_description: "Parse a JIRA ticket's Validation Journey section, execute the verification steps, capture evidence, and post to JIRA + GitHub PR using the…"
3
- default_prompt:
4
- - "Use $jira-journey: Parse a JIRA ticket's Validation Journey section, execute the verification steps, capture evidence, and post to JIRA + GitHub PR using the…."
@@ -1,26 +0,0 @@
1
- ---
2
- name: jira-verify
3
- description: This skill should be used when verifying that a JIRA ticket meets organizational standards for epic relationships and description quality. It fetches the live ticket and delegates the gate checks to jira-validate-ticket so the bar matches what jira-write-ticket enforces pre-write.
4
- allowed-tools: ["Skill", "mcp__atlassian__getJiraIssue", "mcp__atlassian__getAccessibleAtlassianResources"]
5
- ---
6
-
7
- # Verify JIRA Ticket: $ARGUMENTS
8
-
9
- Verify that the existing JIRA ticket `$ARGUMENTS` meets organizational standards. This skill is a thin post-write wrapper around `lisa:jira-validate-ticket`: it fetches the live ticket and asks `lisa:jira-validate-ticket` to run the gates against the fetched state.
10
-
11
- This indirection exists so the gate definitions live in exactly one place (`lisa:jira-validate-ticket`). When the bar changes, change it there — `lisa:jira-verify`, `lisa:jira-write-ticket` (Phase 5.5 pre-write), and `lisa:notion-to-tracker` (PRD dry-run) all pick it up.
12
-
13
- ## Process
14
-
15
- 1. Resolve cloud ID via `mcp__atlassian__getAccessibleAtlassianResources`.
16
- 2. Fetch the ticket via `mcp__atlassian__getJiraIssue` for `$ARGUMENTS`.
17
- 3. Invoke `lisa:jira-validate-ticket` and pass the ticket key. The validator runs every gate (Specification + Feasibility) against the live state.
18
- 4. Surface the validator's report verbatim.
19
-
20
- ## Output
21
-
22
- Pass through `lisa:jira-validate-ticket`'s structured output unchanged. Downstream callers parse the gate lines.
23
-
24
- ## Notes
25
-
26
- - This skill is read-only. It never edits the ticket, posts comments, or changes status.
@@ -1,4 +0,0 @@
1
- display_name: "Jira Verify"
2
- short_description: "verifying that a JIRA ticket meets organizational standards for epic relationships and description quality"
3
- default_prompt:
4
- - "Use $jira-verify: verifying that a JIRA ticket meets organizational standards for epic relationships and description quality."
@@ -1,79 +0,0 @@
1
- ---
2
- name: jira-add-journey
3
- description: "Add a Validation Journey section to an existing JIRA ticket by reading the ticket description, understanding the feature, and generating the journey steps and assertions."
4
- ---
5
-
6
- # Add Validation Journey to Existing JIRA Ticket
7
-
8
- Read an existing JIRA ticket, understand the feature or fix it describes, analyze the codebase to determine the verification approach, and append a Validation Journey section to the ticket description.
9
-
10
- ## Arguments
11
-
12
- `$ARGUMENTS`: `<TICKET_ID>`
13
-
14
- - `TICKET_ID` (required): JIRA ticket key (e.g., `PROJ-123`)
15
-
16
- ## Prerequisites
17
-
18
- - `JIRA_API_TOKEN` environment variable set
19
- - `jira-cli` configured. Prefer the config Lisa writes at
20
- `.lisa/jira-cli/.config.yml` (the `setup-jira-cli` SessionStart hook writes it
21
- from `JIRA_SERVER` / `JIRA_LOGIN` / `JIRA_PROJECT` on a project whose
22
- `tracker` is `jira`), and pass it explicitly with `--config`. A developer's
23
- own `~/.config/.jira/.config.yml` still works as jira-cli's default when no
24
- `--config` is given.
25
-
26
- ## Workflow
27
-
28
- ### Step 1: Read the Ticket
29
-
30
- Use the Atlassian MCP or jira-cli to read the full ticket details:
31
-
32
- ```bash
33
- # Run from the project root. --config pins jira-cli to the file Lisa's
34
- # setup-jira-cli hook wrote, instead of the machine's own ~/.config/.jira.
35
- # jira-cli resolves --config > JIRA_CONFIG_FILE > ~/.config/.jira/.config.yml,
36
- # and a --config path that does not exist fails closed with "Missing
37
- # configuration file." rather than silently using the default.
38
- jira --config .lisa/jira-cli/.config.yml issue view <TICKET_ID>
39
- ```
40
-
41
- If `.lisa/jira-cli/.config.yml` does not exist, drop `--config` to fall back to
42
- the machine's own jira-cli config — but say so in your report rather than
43
- letting the Lisa-written config go quietly unused.
44
-
45
- Extract: title, description, acceptance criteria, components, labels, linked tickets.
46
-
47
- ### Step 2: Check for Existing Journey
48
-
49
- Run the parser to see if a Validation Journey already exists:
50
-
51
- ```bash
52
- python3 .claude/skills/jira-journey/scripts/parse-plan.py <TICKET_ID> 2>&1
53
- ```
54
-
55
- If the parser succeeds and returns steps, the ticket already has a journey. Report this to the user and stop.
56
-
57
- ### Step 3: Analyze the Feature
58
-
59
- Based on the ticket description and acceptance criteria, determine the appropriate verification approach. Stack-specific overrides provide the analysis logic.
60
-
61
- ### Step 4: Draft the Validation Journey
62
-
63
- Compose the journey following the Validation Journey format with: Prerequisites, Steps (with evidence markers), and Assertions.
64
-
65
- ### Step 5: Present to User for Approval
66
-
67
- Display the drafted Validation Journey to the user and ask for confirmation before appending it to the ticket.
68
-
69
- ### Step 6: Append to Ticket Description
70
-
71
- After user approval, use the JIRA REST API to append the Validation Journey to the existing ticket description.
72
-
73
- ### Step 7: Verify
74
-
75
- Run the parser again to confirm the journey was added correctly:
76
-
77
- ```bash
78
- python3 .claude/skills/jira-journey/scripts/parse-plan.py <TICKET_ID>
79
- ```