@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,400 +0,0 @@
1
- #!/usr/bin/env python3
2
- """Parse the Validation Journey section from a JIRA ticket description.
3
-
4
- Fetches the ticket via REST API, extracts the Validation Journey section
5
- (ADF or wiki markup), and outputs structured JSON to stdout.
6
-
7
- Usage:
8
- python3 parse-plan.py <TICKET_ID>
9
-
10
- Example:
11
- python3 parse-plan.py SE-3820
12
-
13
- Output (JSON):
14
- {
15
- "ticket": "SE-3820",
16
- "prerequisites": ["Backend running", "Admin user"],
17
- "steps": [
18
- {"number": 1, "text": "Navigate to page", "screenshot": null},
19
- {"number": 2, "text": "Click button [SCREENSHOT: btn]", "screenshot": "btn"}
20
- ],
21
- "viewports": [
22
- {"name": "Desktop", "width": 1512, "height": 768}
23
- ],
24
- "assertions": ["Modal fills screen"]
25
- }
26
- """
27
-
28
- import ipaddress
29
- import json
30
- import os
31
- import re
32
- import subprocess
33
- import sys
34
- import urllib.request
35
- from base64 import b64encode
36
- from pathlib import Path
37
- from urllib.parse import urlsplit
38
-
39
-
40
- def server_origin(server):
41
- """Validate the base parser's bare HTTPS grammar before accessing a token."""
42
- if not server or any(char <= " " or char >= "\x7f" for char in server):
43
- return ""
44
- try:
45
- parsed = urlsplit(server)
46
- if (parsed.scheme != "https" or "@" in parsed.netloc
47
- or "?" in server or "#" in server
48
- or parsed.path not in ("", "/") or not parsed.hostname):
49
- return ""
50
- host = parsed.hostname
51
- if parsed.netloc.startswith("["):
52
- host = f"[{ipaddress.IPv6Address(host).compressed}]"
53
- elif not re.fullmatch(r"[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*", host):
54
- return ""
55
- port = parsed.port
56
- if port == 0:
57
- return ""
58
- suffix = f":{port}" if port is not None and port != 443 else ""
59
- return f"https://{host}{suffix}"
60
- except ValueError:
61
- return ""
62
-
63
-
64
- def get_jira_config():
65
- """Read JIRA server and login from jira-cli config."""
66
- config_path = Path.home() / ".config" / ".jira" / ".config.yml"
67
- if not config_path.exists():
68
- print(f"ERROR: jira-cli config not found at {config_path}", file=sys.stderr)
69
- sys.exit(1)
70
-
71
- server = ""
72
- login = ""
73
- with open(config_path) as f:
74
- for line in f:
75
- if line.startswith("server:"):
76
- server = line.split(":", 1)[1].strip()
77
- elif line.startswith("login:"):
78
- login = line.split(":", 1)[1].strip()
79
-
80
- # Home configuration remains the operator-owned source; never trust checkout input here.
81
- server = server_origin(server)
82
- if not server:
83
- print("ERROR: Jira server must be a bare HTTPS origin without userinfo, path, query or fragment.", file=sys.stderr)
84
- sys.exit(1)
85
-
86
- token = os.environ.get("JIRA_API_TOKEN", "")
87
- if not token:
88
- print("ERROR: JIRA_API_TOKEN env var not set", file=sys.stderr)
89
- sys.exit(1)
90
-
91
- return server, login, token
92
-
93
-
94
- def fetch_ticket(server, login, token, ticket_id):
95
- """Fetch JIRA ticket via REST API v3 (returns ADF description)."""
96
- url = f"{server}/rest/api/3/issue/{ticket_id}?fields=description"
97
- auth = b64encode(f"{login}:{token}".encode()).decode()
98
-
99
- req = urllib.request.Request(url, headers={
100
- "Authorization": f"Basic {auth}",
101
- "Accept": "application/json",
102
- })
103
-
104
- try:
105
- with urllib.request.urlopen(req) as resp:
106
- return json.loads(resp.read().decode())
107
- except urllib.error.HTTPError as e:
108
- print(f"ERROR: JIRA API returned {e.code} for {ticket_id}", file=sys.stderr)
109
- sys.exit(1)
110
-
111
-
112
- def extract_text_from_adf(node):
113
- """Recursively extract plain text from an ADF node."""
114
- if isinstance(node, str):
115
- return node
116
-
117
- if isinstance(node, dict):
118
- node_type = node.get("type", "")
119
-
120
- if node_type == "text":
121
- return node.get("text", "")
122
-
123
- if node_type == "hardBreak":
124
- return "\n"
125
-
126
- parts = []
127
- for child in node.get("content", []):
128
- parts.append(extract_text_from_adf(child))
129
- return "".join(parts)
130
-
131
- if isinstance(node, list):
132
- return "".join(extract_text_from_adf(item) for item in node)
133
-
134
- return ""
135
-
136
-
137
- def find_heading_index(content, heading_text, level=None):
138
- """Find the index of a heading node matching the given text."""
139
- for i, node in enumerate(content):
140
- if node.get("type") != "heading":
141
- continue
142
- if level is not None and node.get("attrs", {}).get("level") != level:
143
- continue
144
- text = extract_text_from_adf(node).strip().lower()
145
- if heading_text.lower() in text:
146
- return i
147
- return -1
148
-
149
-
150
- def extract_section_content(content, start_idx, same_level=True):
151
- """Extract all nodes between a heading and the next heading of same or higher level."""
152
- if start_idx < 0 or start_idx >= len(content):
153
- return []
154
-
155
- heading_level = content[start_idx].get("attrs", {}).get("level", 2)
156
- nodes = []
157
-
158
- for i in range(start_idx + 1, len(content)):
159
- node = content[i]
160
- if node.get("type") == "heading":
161
- node_level = node.get("attrs", {}).get("level", 2)
162
- if same_level and node_level <= heading_level:
163
- break
164
- nodes.append(node)
165
-
166
- return nodes
167
-
168
-
169
- def parse_prerequisites(nodes):
170
- """Extract prerequisite strings from ADF nodes (bullet lists or paragraphs)."""
171
- prerequisites = []
172
- for node in nodes:
173
- if node.get("type") == "bulletList":
174
- for item in node.get("content", []):
175
- text = extract_text_from_adf(item).strip()
176
- if text:
177
- prerequisites.append(text)
178
- elif node.get("type") == "paragraph":
179
- text = extract_text_from_adf(node).strip()
180
- if text:
181
- prerequisites.append(text)
182
- return prerequisites
183
-
184
-
185
- def clean_step_text(text, screenshot_name):
186
- """Remove [SCREENSHOT: ...] or [EVIDENCE: ...] marker from step text and deduplicate."""
187
- # Remove the marker itself
188
- cleaned = re.sub(r'\[(SCREENSHOT|EVIDENCE):\s*[^\]]+\]\s*', '', text).strip()
189
-
190
- # Deduplicate: if the same phrase appears twice consecutively, keep one
191
- # This handles ADF text node concatenation artifacts
192
- words = cleaned.split()
193
- mid = len(words) // 2
194
- if mid > 2 and words[:mid] == words[mid:2 * mid]:
195
- cleaned = " ".join(words[:mid] + words[2 * mid:])
196
-
197
- return cleaned
198
-
199
-
200
- def parse_steps(nodes):
201
- """Extract ordered steps with optional [SCREENSHOT: name] or [EVIDENCE: name] markers."""
202
- steps = []
203
- step_number = 0
204
-
205
- for node in nodes:
206
- if node.get("type") == "orderedList":
207
- for item in node.get("content", []):
208
- step_number += 1
209
- text = extract_text_from_adf(item).strip()
210
-
211
- screenshot = None
212
- match = re.search(r'\[(SCREENSHOT|EVIDENCE):\s*([^\]]+)\]', text)
213
- if match:
214
- screenshot = match.group(2).strip()
215
-
216
- display_text = clean_step_text(text, screenshot) if screenshot else text
217
-
218
- steps.append({
219
- "number": step_number,
220
- "text": display_text,
221
- "screenshot": screenshot,
222
- })
223
- elif node.get("type") == "paragraph":
224
- text = extract_text_from_adf(node).strip()
225
- if text and re.match(r'^\d+\.?\s', text):
226
- step_number += 1
227
- screenshot = None
228
- match = re.search(r'\[(SCREENSHOT|EVIDENCE):\s*([^\]]+)\]', text)
229
- if match:
230
- screenshot = match.group(2).strip()
231
-
232
- clean_text = re.sub(r'^\d+\.?\s*', '', text)
233
- display_text = clean_step_text(clean_text, screenshot) if screenshot else clean_text
234
- steps.append({
235
- "number": step_number,
236
- "text": display_text,
237
- "screenshot": screenshot,
238
- })
239
-
240
- return steps
241
-
242
-
243
- def parse_viewports(nodes):
244
- """Extract viewport definitions from ADF table nodes.
245
-
246
- Supports two table formats:
247
- - 3 columns: Name | Width | Height
248
- - 2 columns: Name | Resolution (WxH)
249
- """
250
- viewports = []
251
-
252
- for node in nodes:
253
- if node.get("type") == "table":
254
- rows = node.get("content", [])
255
- for row in rows:
256
- if row.get("type") != "tableRow":
257
- continue
258
-
259
- cells = row.get("content", [])
260
- if not cells:
261
- continue
262
-
263
- # Skip header row (tableHeader cells)
264
- if cells[0].get("type") == "tableHeader":
265
- continue
266
-
267
- cell_texts = [extract_text_from_adf(c).strip() for c in cells]
268
-
269
- # 3-column format: Name | Width | Height
270
- if len(cell_texts) >= 3:
271
- name = cell_texts[0]
272
- try:
273
- width = int(cell_texts[1])
274
- height = int(cell_texts[2])
275
- viewports.append({
276
- "name": name,
277
- "width": width,
278
- "height": height,
279
- })
280
- continue
281
- except ValueError:
282
- pass
283
-
284
- # 2-column format: Name | WxH (e.g., "1512x768")
285
- if len(cell_texts) >= 2:
286
- name = cell_texts[0]
287
- resolution = cell_texts[1]
288
- match = re.match(r'(\d+)\s*[xX\u00d7]\s*(\d+)', resolution)
289
- if match:
290
- viewports.append({
291
- "name": name,
292
- "width": int(match.group(1)),
293
- "height": int(match.group(2)),
294
- })
295
-
296
- return viewports
297
-
298
-
299
- def parse_assertions(nodes):
300
- """Extract assertion strings from ADF nodes."""
301
- assertions = []
302
- for node in nodes:
303
- if node.get("type") == "bulletList":
304
- for item in node.get("content", []):
305
- text = extract_text_from_adf(item).strip()
306
- if text:
307
- assertions.append(text)
308
- elif node.get("type") == "orderedList":
309
- for item in node.get("content", []):
310
- text = extract_text_from_adf(item).strip()
311
- if text:
312
- assertions.append(text)
313
- elif node.get("type") == "paragraph":
314
- text = extract_text_from_adf(node).strip()
315
- if text and text.startswith("-"):
316
- assertions.append(text.lstrip("- ").strip())
317
- elif text:
318
- assertions.append(text)
319
- return assertions
320
-
321
-
322
- def parse_adf_journey(description_adf):
323
- """Parse the Validation Journey from an ADF description object."""
324
- content = description_adf.get("content", [])
325
-
326
- # Find the "Validation Journey" h2 heading
327
- journey_idx = find_heading_index(content, "validation journey", level=2)
328
- if journey_idx < 0:
329
- # Try without level constraint
330
- journey_idx = find_heading_index(content, "validation journey")
331
-
332
- if journey_idx < 0:
333
- print("ERROR: No 'Validation Journey' section found in ticket description", file=sys.stderr)
334
- sys.exit(1)
335
-
336
- # Extract sub-sections
337
- prereq_idx = find_heading_index(content, "prerequisites", level=3)
338
- steps_idx = find_heading_index(content, "steps", level=3)
339
- viewports_idx = find_heading_index(content, "viewports", level=3)
340
- assertions_idx = find_heading_index(content, "assertions", level=3)
341
-
342
- prerequisites = []
343
- if prereq_idx >= 0:
344
- prereq_nodes = extract_section_content(content, prereq_idx)
345
- prerequisites = parse_prerequisites(prereq_nodes)
346
-
347
- steps = []
348
- if steps_idx >= 0:
349
- steps_nodes = extract_section_content(content, steps_idx)
350
- steps = parse_steps(steps_nodes)
351
-
352
- viewports = []
353
- if viewports_idx >= 0:
354
- viewport_nodes = extract_section_content(content, viewports_idx)
355
- viewports = parse_viewports(viewport_nodes)
356
-
357
- assertions = []
358
- if assertions_idx >= 0:
359
- assertion_nodes = extract_section_content(content, assertions_idx)
360
- assertions = parse_assertions(assertion_nodes)
361
-
362
- # Fallback: if no viewports defined, use Desktop as default
363
- if not viewports:
364
- viewports = [{"name": "Desktop", "width": 1512, "height": 768}]
365
-
366
- return {
367
- "prerequisites": prerequisites,
368
- "steps": steps,
369
- "viewports": viewports,
370
- "assertions": assertions,
371
- }
372
-
373
-
374
- def main():
375
- if len(sys.argv) < 2:
376
- print("Usage: parse-plan.py <TICKET_ID>", file=sys.stderr)
377
- sys.exit(1)
378
-
379
- ticket_id = sys.argv[1]
380
- server, login, token = get_jira_config()
381
- ticket_data = fetch_ticket(server, login, token, ticket_id)
382
-
383
- description = ticket_data.get("fields", {}).get("description")
384
- if not description:
385
- print(f"ERROR: Ticket {ticket_id} has no description", file=sys.stderr)
386
- sys.exit(1)
387
-
388
- # ADF description is a dict, wiki markup is a string
389
- if isinstance(description, dict):
390
- result = parse_adf_journey(description)
391
- else:
392
- print("ERROR: Wiki markup parsing not implemented. Use JIRA API v3 (ADF format).", file=sys.stderr)
393
- sys.exit(1)
394
-
395
- result["ticket"] = ticket_id
396
- print(json.dumps(result, indent=2))
397
-
398
-
399
- if __name__ == "__main__":
400
- main()
@@ -1,27 +0,0 @@
1
- ---
2
- name: jira-verify
3
- description: "Check that a JIRA ticket meets the organization's standards — epic links, description quality, and a Validation Journey for UI work — by fetching it live and running jira-validate-ticket's gates. Read-only."
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, including the Validation Journey check (S11) which applies to any runtime-behavior change — UI tickets in Expo always qualify.
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.
27
- - For UI tickets that fail the Validation Journey gate, the validator's remediation will recommend `/lisa:jira-add-journey` — the Expo flavor of `lisa:jira-add-journey` produces the `[SCREENSHOT: ...]` + viewport block that the Playwright-based journey runner consumes.
@@ -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
- ```
@@ -1,100 +0,0 @@
1
- ---
2
- name: jira-create
3
- description: This skill should be used when creating JIRA epics, stories, and tasks from code files or descriptions. It analyzes the provided input, determines the appropriate issue hierarchy, and creates issues with comprehensive quality requirements including test-first development and documentation.
4
- allowed-tools: ["Read", "Glob", "LS", "Skill", "mcp__atlassian__getVisibleJiraProjects", "mcp__atlassian__getJiraProjectIssueTypesMetadata", "mcp__atlassian__getAccessibleAtlassianResources"]
5
- ---
6
-
7
- # Create JIRA Issues from $ARGUMENTS
8
-
9
- Analyze the provided file(s) and plan a JIRA hierarchy. **This skill plans structure only — every individual ticket write is delegated to `lisa:jira-write-ticket`.** Do not call `mcp__atlassian__createJiraIssue` from this skill; the necessary write tools are intentionally not in `allowed-tools`.
10
-
11
- ## Process
12
-
13
- 1. **Analyze**: Read $ARGUMENTS to understand scope.
14
- 2. **Extract source artifacts**: invoke the `lisa:tracker-source-artifacts` skill, then enumerate every external URL, embed, attachment, or example payload and classify each by domain per its rules. Build the `artifacts` map. See "Source Artifacts" below.
15
- 3. **Walk the live product** (when applicable): if the work touches existing user-facing surfaces, invoke the `lisa:product-walkthrough` skill to capture current behavior, design-vs-product divergence, and reuse candidates. Skip only when the work is purely backend or affects a screen that does not yet exist. See "Live Product Walkthrough" below.
16
- 4. **Determine structure**:
17
- - Epic needed if: multiple features, major changes, >3 related files
18
- - Direct tasks if: bug fix, single file, minor change
19
- 5. **Plan hierarchy**:
20
- ```text
21
- Epic → User Story → Tasks (test, implement, document, cleanup)
22
- ```
23
- 6. **Delegate every write to `lisa:jira-write-ticket`** in dependency order (epic first, then stories with the epic as parent, then sub-tasks with their story as parent). Pass the artifacts (filtered by domain per `lisa:tracker-source-artifacts` inheritance rules) and the walkthrough findings (under `## Current Product`). See "Delegation to jira-write-ticket" below.
24
- 7. **Run the artifact preservation gate** (`lisa:tracker-source-artifacts` §8): after all writes complete, build the preservation matrix and verify every extracted artifact is reachable from the created tickets. Fail loudly if anything was dropped.
25
-
26
- ## Mandatory for Every Code Issue
27
-
28
- **Test-First**: Write tests before implementation
29
- **Quality Gates**: All tests/checks must pass, no SonarCloud violations
30
- **Documentation**: Check existing, update/create new, remove obsolete
31
- **Feature Flags**: All features behind flags with lifecycle plan
32
- **Cleanup**: Remove temporary code, scripts, dev configs
33
-
34
- ## Source Artifacts
35
-
36
- If $ARGUMENTS includes (or references) any external artifact — PRD, design doc, Figma URL, Lovable prototype, Loom walkthrough, screenshot, example payload — those references MUST be preserved as remote links on the created tickets. Silent artifact loss is the single most common quality failure in this pipeline.
37
-
38
- **Invoke the `lisa:tracker-source-artifacts` skill** for the canonical rules: domains, per-tool classification (Figma `/proto/` vs design, Lovable, Loom, screenshots), source precedence, conflict handling under `## Open Questions`, inheritance from epic → story → sub-task, and the existing-component reuse expectation. Do not restate the rules here.
39
-
40
- Rails-specific note: the existing-component reuse rule applies to view partials and ViewComponents — the closest existing partial/component is usually the right answer over pixel-matching a mock from scratch.
41
-
42
- When delegating writes to `lisa:jira-write-ticket`, pass the extracted artifact list so its Phase 4c step can attach them.
43
-
44
- ## Live Product Walkthrough
45
-
46
- When the work touches existing user-facing surfaces, invoke the `lisa:product-walkthrough` skill before drafting tickets. Findings (current behavior, design-vs-product divergence, reuse candidates, behavioral surprises) become inputs to the ticket plan and surface under `## Current Product` on the resulting tickets. Skip only when the work is purely backend or affects a screen that does not yet exist.
47
-
48
- ## Issue Requirements
49
-
50
- Each issue must clearly communicate to:
51
-
52
- - **Coding Assistants**: Implementation requirements
53
- - **Developers**: Technical approach
54
- - **Stakeholders**: Business value
55
-
56
- Default project: SE (override via arguments)
57
- Exclude unless requested: migration plans, performance tests
58
-
59
- ## Delegation to jira-write-ticket
60
-
61
- **Mandatory.** Every ticket created by this skill MUST go through `lisa:jira-write-ticket`. This skill never calls `mcp__atlassian__createJiraIssue` itself — that tool is intentionally excluded from `allowed-tools` so the gate cannot be bypassed.
62
-
63
- `lisa:jira-write-ticket` enforces things this skill does not, and which determine ticket quality:
64
- - 3-audience description (Context / Technical Approach / Acceptance Criteria)
65
- - Gherkin acceptance criteria
66
- - Epic parent validation (non-bug, non-epic types)
67
- - Explicit link discovery (`blocks` / `is blocked by` / `relates to` / `duplicates` / `clones`)
68
- - Remote links (PRs, Confluence, dashboards)
69
- - Single-repo scope check for Bug / Task / Sub-task
70
- - Sign-in account and target environment recorded in description
71
- - Post-create verification
72
-
73
- ### Invocation order
74
-
75
- Tickets must be created in parent-before-child order so each child can be passed its parent key:
76
-
77
- 1. Invoke `lisa:jira-write-ticket` for the epic. Capture the returned key.
78
- 2. For each story, invoke `lisa:jira-write-ticket` with the epic key as the epic parent. Capture each story key.
79
- 3. For each sub-task, invoke `lisa:jira-write-ticket` with the parent story key.
80
-
81
- ### What to pass to each invocation
82
-
83
- For every delegated write, pass:
84
- - The summary, issue type, project key, and priority you decided
85
- - The 3-section description body you drafted (Context / Technical Approach / Acceptance Criteria)
86
- - Gherkin acceptance criteria
87
- - Parent key (epic key for stories; story key for sub-tasks)
88
- - The artifact list extracted in "Source Artifacts", filtered by domain per the inheritance rules — `lisa:jira-write-ticket` Phase 4c attaches them as remote links
89
- - For tickets that change runtime behavior: the Validation Journey draft, or instruct it to call `lisa:jira-add-journey` after create
90
-
91
- ### What this skill is responsible for
92
-
93
- This skill owns:
94
- - Deciding the *shape* of the hierarchy (what's an epic vs. story vs. sub-task)
95
- - Drafting the description body and acceptance criteria from the input
96
- - Extracting and classifying source artifacts
97
- - Threading parent keys through subsequent writes
98
- - Running the artifact preservation check after all writes complete
99
-
100
- It does not own the actual JIRA write — that's `lisa:jira-write-ticket`'s job.