@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.
- package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
- package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
- package/dist/core/upstream-evidence-manifest.js +5 -138
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- package/package.json +4 -4
- package/plugins/lisa/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-evidence/SKILL.md +10 -4
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-journey/SKILL.md +2 -2
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-journey/scripts/generate-templates.py +70 -9
- package/plugins/lisa/skills/lisa-jira-evidence/SKILL.md +10 -4
- package/plugins/lisa/skills/lisa-jira-journey/SKILL.md +2 -2
- package/plugins/lisa/skills/lisa-jira-journey/scripts/generate-templates.py +70 -9
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/skills/lisa-jira-evidence/SKILL.md +10 -4
- package/plugins/lisa-agy/skills/lisa-jira-journey/SKILL.md +2 -2
- package/plugins/lisa-agy/skills/lisa-jira-journey/scripts/generate-templates.py +70 -9
- package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-agy/plugin.json +1 -1
- package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/skills/lisa-jira-evidence/SKILL.md +10 -4
- package/plugins/lisa-copilot/skills/lisa-jira-journey/SKILL.md +2 -2
- package/plugins/lisa-copilot/skills/lisa-jira-journey/scripts/generate-templates.py +70 -9
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/skills/lisa-jira-evidence/SKILL.md +10 -4
- package/plugins/lisa-cursor/skills/lisa-jira-journey/SKILL.md +2 -2
- package/plugins/lisa-cursor/skills/lisa-jira-journey/scripts/generate-templates.py +70 -9
- package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/skills/lisa-jira-evidence/SKILL.md +10 -4
- package/plugins/lisa-devin/skills/lisa-jira-journey/SKILL.md +2 -2
- package/plugins/lisa-devin/skills/lisa-jira-journey/scripts/generate-templates.py +70 -9
- package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/skills/journey-guidance/SKILL.md +8 -3
- package/plugins/lisa-expo/skills/journey-guidance/SKILL.md +8 -3
- package/plugins/lisa-expo-agy/plugin.json +1 -1
- package/plugins/lisa-expo-agy/skills/journey-guidance/SKILL.md +8 -3
- package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-copilot/skills/journey-guidance/SKILL.md +8 -3
- package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-cursor/skills/journey-guidance/SKILL.md +8 -3
- package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-devin/skills/journey-guidance/SKILL.md +8 -3
- package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-agy/plugin.json +1 -1
- package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-agy/plugin.json +1 -1
- package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.codex-plugin/skills/journey-guidance/SKILL.md +3 -1
- package/plugins/lisa-rails/skills/journey-guidance/SKILL.md +3 -1
- package/plugins/lisa-rails-agy/plugin.json +1 -1
- package/plugins/lisa-rails-agy/skills/journey-guidance/SKILL.md +3 -1
- package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-copilot/skills/journey-guidance/SKILL.md +3 -1
- package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-cursor/skills/journey-guidance/SKILL.md +3 -1
- package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/skills/journey-guidance/SKILL.md +3 -1
- package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-agy/plugin.json +1 -1
- package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-agy/plugin.json +1 -1
- package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/src/base/skills/lisa-jira-evidence/SKILL.md +10 -4
- package/plugins/src/base/skills/lisa-jira-journey/SKILL.md +2 -2
- package/plugins/src/base/skills/lisa-jira-journey/scripts/generate-templates.py +70 -9
- package/plugins/src/expo/skills/journey-guidance/SKILL.md +8 -3
- package/plugins/src/rails/skills/journey-guidance/SKILL.md +3 -1
- package/plugins/lisa-expo/.codex-plugin/skills/jira-add-journey/SKILL.md +0 -142
- package/plugins/lisa-expo/.codex-plugin/skills/jira-add-journey/agents/openai.yaml +0 -4
- package/plugins/lisa-expo/.codex-plugin/skills/jira-create/SKILL.md +0 -163
- package/plugins/lisa-expo/.codex-plugin/skills/jira-create/agents/openai.yaml +0 -4
- package/plugins/lisa-expo/.codex-plugin/skills/jira-evidence/SKILL.md +0 -112
- package/plugins/lisa-expo/.codex-plugin/skills/jira-evidence/agents/openai.yaml +0 -4
- package/plugins/lisa-expo/.codex-plugin/skills/jira-evidence/scripts/post-evidence.sh +0 -397
- package/plugins/lisa-expo/.codex-plugin/skills/jira-journey/SKILL.md +0 -209
- package/plugins/lisa-expo/.codex-plugin/skills/jira-journey/agents/openai.yaml +0 -4
- package/plugins/lisa-expo/.codex-plugin/skills/jira-journey/scripts/generate-templates.py +0 -323
- package/plugins/lisa-expo/.codex-plugin/skills/jira-journey/scripts/parse-plan.py +0 -400
- package/plugins/lisa-expo/.codex-plugin/skills/jira-verify/SKILL.md +0 -29
- package/plugins/lisa-expo/.codex-plugin/skills/jira-verify/agents/openai.yaml +0 -4
- package/plugins/lisa-expo/skills/jira-add-journey/SKILL.md +0 -140
- package/plugins/lisa-expo/skills/jira-add-journey/agents/openai.yaml +0 -4
- package/plugins/lisa-expo/skills/jira-create/SKILL.md +0 -161
- package/plugins/lisa-expo/skills/jira-create/agents/openai.yaml +0 -4
- package/plugins/lisa-expo/skills/jira-evidence/SKILL.md +0 -110
- package/plugins/lisa-expo/skills/jira-evidence/agents/openai.yaml +0 -4
- package/plugins/lisa-expo/skills/jira-evidence/scripts/post-evidence.sh +0 -397
- package/plugins/lisa-expo/skills/jira-journey/SKILL.md +0 -207
- package/plugins/lisa-expo/skills/jira-journey/agents/openai.yaml +0 -4
- package/plugins/lisa-expo/skills/jira-journey/scripts/generate-templates.py +0 -323
- package/plugins/lisa-expo/skills/jira-journey/scripts/parse-plan.py +0 -400
- package/plugins/lisa-expo/skills/jira-verify/SKILL.md +0 -27
- package/plugins/lisa-expo/skills/jira-verify/agents/openai.yaml +0 -4
- package/plugins/lisa-expo-agy/skills/jira-add-journey/SKILL.md +0 -140
- package/plugins/lisa-expo-agy/skills/jira-create/SKILL.md +0 -161
- package/plugins/lisa-expo-agy/skills/jira-evidence/SKILL.md +0 -110
- package/plugins/lisa-expo-agy/skills/jira-evidence/scripts/post-evidence.sh +0 -397
- package/plugins/lisa-expo-agy/skills/jira-journey/SKILL.md +0 -207
- package/plugins/lisa-expo-agy/skills/jira-journey/scripts/generate-templates.py +0 -323
- package/plugins/lisa-expo-agy/skills/jira-journey/scripts/parse-plan.py +0 -400
- package/plugins/lisa-expo-agy/skills/jira-verify/SKILL.md +0 -27
- package/plugins/lisa-expo-copilot/skills/jira-add-journey/SKILL.md +0 -140
- package/plugins/lisa-expo-copilot/skills/jira-create/SKILL.md +0 -161
- package/plugins/lisa-expo-copilot/skills/jira-evidence/SKILL.md +0 -110
- package/plugins/lisa-expo-copilot/skills/jira-evidence/scripts/post-evidence.sh +0 -397
- package/plugins/lisa-expo-copilot/skills/jira-journey/SKILL.md +0 -207
- package/plugins/lisa-expo-copilot/skills/jira-journey/scripts/generate-templates.py +0 -323
- package/plugins/lisa-expo-copilot/skills/jira-journey/scripts/parse-plan.py +0 -400
- package/plugins/lisa-expo-copilot/skills/jira-verify/SKILL.md +0 -27
- package/plugins/lisa-expo-cursor/skills/jira-add-journey/SKILL.md +0 -140
- package/plugins/lisa-expo-cursor/skills/jira-create/SKILL.md +0 -161
- package/plugins/lisa-expo-cursor/skills/jira-evidence/SKILL.md +0 -110
- package/plugins/lisa-expo-cursor/skills/jira-evidence/scripts/post-evidence.sh +0 -397
- package/plugins/lisa-expo-cursor/skills/jira-journey/SKILL.md +0 -207
- package/plugins/lisa-expo-cursor/skills/jira-journey/scripts/generate-templates.py +0 -323
- package/plugins/lisa-expo-cursor/skills/jira-journey/scripts/parse-plan.py +0 -400
- package/plugins/lisa-expo-cursor/skills/jira-verify/SKILL.md +0 -27
- package/plugins/lisa-expo-devin/skills/jira-add-journey/SKILL.md +0 -140
- package/plugins/lisa-expo-devin/skills/jira-create/SKILL.md +0 -161
- package/plugins/lisa-expo-devin/skills/jira-evidence/SKILL.md +0 -110
- package/plugins/lisa-expo-devin/skills/jira-evidence/scripts/post-evidence.sh +0 -397
- package/plugins/lisa-expo-devin/skills/jira-journey/SKILL.md +0 -207
- package/plugins/lisa-expo-devin/skills/jira-journey/scripts/generate-templates.py +0 -323
- package/plugins/lisa-expo-devin/skills/jira-journey/scripts/parse-plan.py +0 -400
- package/plugins/lisa-expo-devin/skills/jira-verify/SKILL.md +0 -27
- package/plugins/lisa-rails/.codex-plugin/skills/jira-add-journey/SKILL.md +0 -81
- package/plugins/lisa-rails/.codex-plugin/skills/jira-add-journey/agents/openai.yaml +0 -4
- package/plugins/lisa-rails/.codex-plugin/skills/jira-create/SKILL.md +0 -102
- package/plugins/lisa-rails/.codex-plugin/skills/jira-create/agents/openai.yaml +0 -4
- package/plugins/lisa-rails/.codex-plugin/skills/jira-evidence/SKILL.md +0 -103
- package/plugins/lisa-rails/.codex-plugin/skills/jira-evidence/agents/openai.yaml +0 -4
- package/plugins/lisa-rails/.codex-plugin/skills/jira-evidence/scripts/post-evidence.sh +0 -397
- package/plugins/lisa-rails/.codex-plugin/skills/jira-journey/SKILL.md +0 -67
- package/plugins/lisa-rails/.codex-plugin/skills/jira-journey/agents/openai.yaml +0 -4
- package/plugins/lisa-rails/.codex-plugin/skills/jira-verify/SKILL.md +0 -28
- package/plugins/lisa-rails/.codex-plugin/skills/jira-verify/agents/openai.yaml +0 -4
- package/plugins/lisa-rails/skills/jira-add-journey/SKILL.md +0 -79
- package/plugins/lisa-rails/skills/jira-add-journey/agents/openai.yaml +0 -4
- package/plugins/lisa-rails/skills/jira-create/SKILL.md +0 -100
- package/plugins/lisa-rails/skills/jira-create/agents/openai.yaml +0 -4
- package/plugins/lisa-rails/skills/jira-evidence/SKILL.md +0 -101
- package/plugins/lisa-rails/skills/jira-evidence/agents/openai.yaml +0 -4
- package/plugins/lisa-rails/skills/jira-evidence/scripts/post-evidence.sh +0 -397
- package/plugins/lisa-rails/skills/jira-journey/SKILL.md +0 -65
- package/plugins/lisa-rails/skills/jira-journey/agents/openai.yaml +0 -4
- package/plugins/lisa-rails/skills/jira-verify/SKILL.md +0 -26
- package/plugins/lisa-rails/skills/jira-verify/agents/openai.yaml +0 -4
- package/plugins/lisa-rails-agy/skills/jira-add-journey/SKILL.md +0 -79
- package/plugins/lisa-rails-agy/skills/jira-create/SKILL.md +0 -100
- package/plugins/lisa-rails-agy/skills/jira-evidence/SKILL.md +0 -101
- package/plugins/lisa-rails-agy/skills/jira-evidence/scripts/post-evidence.sh +0 -397
- package/plugins/lisa-rails-agy/skills/jira-journey/SKILL.md +0 -65
- package/plugins/lisa-rails-agy/skills/jira-verify/SKILL.md +0 -26
- package/plugins/lisa-rails-copilot/skills/jira-add-journey/SKILL.md +0 -79
- package/plugins/lisa-rails-copilot/skills/jira-create/SKILL.md +0 -100
- package/plugins/lisa-rails-copilot/skills/jira-evidence/SKILL.md +0 -101
- package/plugins/lisa-rails-copilot/skills/jira-evidence/scripts/post-evidence.sh +0 -397
- package/plugins/lisa-rails-copilot/skills/jira-journey/SKILL.md +0 -65
- package/plugins/lisa-rails-copilot/skills/jira-verify/SKILL.md +0 -26
- package/plugins/lisa-rails-cursor/skills/jira-add-journey/SKILL.md +0 -79
- package/plugins/lisa-rails-cursor/skills/jira-create/SKILL.md +0 -100
- package/plugins/lisa-rails-cursor/skills/jira-evidence/SKILL.md +0 -101
- package/plugins/lisa-rails-cursor/skills/jira-evidence/scripts/post-evidence.sh +0 -397
- package/plugins/lisa-rails-cursor/skills/jira-journey/SKILL.md +0 -65
- package/plugins/lisa-rails-cursor/skills/jira-verify/SKILL.md +0 -26
- package/plugins/lisa-rails-devin/skills/jira-add-journey/SKILL.md +0 -79
- package/plugins/lisa-rails-devin/skills/jira-create/SKILL.md +0 -100
- package/plugins/lisa-rails-devin/skills/jira-evidence/SKILL.md +0 -101
- package/plugins/lisa-rails-devin/skills/jira-evidence/scripts/post-evidence.sh +0 -397
- package/plugins/lisa-rails-devin/skills/jira-journey/SKILL.md +0 -65
- package/plugins/lisa-rails-devin/skills/jira-verify/SKILL.md +0 -26
- package/plugins/src/expo/skills/jira-add-journey/SKILL.md +0 -140
- package/plugins/src/expo/skills/jira-create/SKILL.md +0 -161
- package/plugins/src/expo/skills/jira-evidence/SKILL.md +0 -110
- package/plugins/src/expo/skills/jira-evidence/scripts/post-evidence.sh +0 -397
- package/plugins/src/expo/skills/jira-journey/SKILL.md +0 -207
- package/plugins/src/expo/skills/jira-journey/scripts/generate-templates.py +0 -323
- package/plugins/src/expo/skills/jira-journey/scripts/parse-plan.py +0 -400
- package/plugins/src/expo/skills/jira-verify/SKILL.md +0 -27
- package/plugins/src/rails/skills/jira-add-journey/SKILL.md +0 -79
- package/plugins/src/rails/skills/jira-create/SKILL.md +0 -100
- package/plugins/src/rails/skills/jira-evidence/SKILL.md +0 -101
- package/plugins/src/rails/skills/jira-evidence/scripts/post-evidence.sh +0 -397
- package/plugins/src/rails/skills/jira-journey/SKILL.md +0 -65
- 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,81 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: jira-add-journey
|
|
3
|
-
description: "Add a Validation Journey…"
|
|
4
|
-
---
|
|
5
|
-
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.
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
# Add Validation Journey to Existing JIRA Ticket
|
|
9
|
-
|
|
10
|
-
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.
|
|
11
|
-
|
|
12
|
-
## Arguments
|
|
13
|
-
|
|
14
|
-
`$ARGUMENTS`: `<TICKET_ID>`
|
|
15
|
-
|
|
16
|
-
- `TICKET_ID` (required): JIRA ticket key (e.g., `PROJ-123`)
|
|
17
|
-
|
|
18
|
-
## Prerequisites
|
|
19
|
-
|
|
20
|
-
- `JIRA_API_TOKEN` environment variable set
|
|
21
|
-
- `jira-cli` configured. Prefer the config Lisa writes at
|
|
22
|
-
`.lisa/jira-cli/.config.yml` (the `setup-jira-cli` SessionStart hook writes it
|
|
23
|
-
from `JIRA_SERVER` / `JIRA_LOGIN` / `JIRA_PROJECT` on a project whose
|
|
24
|
-
`tracker` is `jira`), and pass it explicitly with `--config`. A developer's
|
|
25
|
-
own `~/.config/.jira/.config.yml` still works as jira-cli's default when no
|
|
26
|
-
`--config` is given.
|
|
27
|
-
|
|
28
|
-
## Workflow
|
|
29
|
-
|
|
30
|
-
### Step 1: Read the Ticket
|
|
31
|
-
|
|
32
|
-
Use the Atlassian MCP or jira-cli to read the full ticket details:
|
|
33
|
-
|
|
34
|
-
```bash
|
|
35
|
-
# Run from the project root. --config pins jira-cli to the file Lisa's
|
|
36
|
-
# setup-jira-cli hook wrote, instead of the machine's own ~/.config/.jira.
|
|
37
|
-
# jira-cli resolves --config > JIRA_CONFIG_FILE > ~/.config/.jira/.config.yml,
|
|
38
|
-
# and a --config path that does not exist fails closed with "Missing
|
|
39
|
-
# configuration file." rather than silently using the default.
|
|
40
|
-
jira --config .lisa/jira-cli/.config.yml issue view <TICKET_ID>
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
If `.lisa/jira-cli/.config.yml` does not exist, drop `--config` to fall back to
|
|
44
|
-
the machine's own jira-cli config — but say so in your report rather than
|
|
45
|
-
letting the Lisa-written config go quietly unused.
|
|
46
|
-
|
|
47
|
-
Extract: title, description, acceptance criteria, components, labels, linked tickets.
|
|
48
|
-
|
|
49
|
-
### Step 2: Check for Existing Journey
|
|
50
|
-
|
|
51
|
-
Run the parser to see if a Validation Journey already exists:
|
|
52
|
-
|
|
53
|
-
```bash
|
|
54
|
-
python3 .claude/skills/jira-journey/scripts/parse-plan.py <TICKET_ID> 2>&1
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
If the parser succeeds and returns steps, the ticket already has a journey. Report this to the user and stop.
|
|
58
|
-
|
|
59
|
-
### Step 3: Analyze the Feature
|
|
60
|
-
|
|
61
|
-
Based on the ticket description and acceptance criteria, determine the appropriate verification approach. Stack-specific overrides provide the analysis logic.
|
|
62
|
-
|
|
63
|
-
### Step 4: Draft the Validation Journey
|
|
64
|
-
|
|
65
|
-
Compose the journey following the Validation Journey format with: Prerequisites, Steps (with evidence markers), and Assertions.
|
|
66
|
-
|
|
67
|
-
### Step 5: Present to User for Approval
|
|
68
|
-
|
|
69
|
-
Display the drafted Validation Journey to the user and ask for confirmation before appending it to the ticket.
|
|
70
|
-
|
|
71
|
-
### Step 6: Append to Ticket Description
|
|
72
|
-
|
|
73
|
-
After user approval, use the JIRA REST API to append the Validation Journey to the existing ticket description.
|
|
74
|
-
|
|
75
|
-
### Step 7: Verify
|
|
76
|
-
|
|
77
|
-
Run the parser again to confirm the journey was added correctly:
|
|
78
|
-
|
|
79
|
-
```bash
|
|
80
|
-
python3 .claude/skills/jira-journey/scripts/parse-plan.py <TICKET_ID>
|
|
81
|
-
```
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: jira-create
|
|
3
|
-
description: "creating JIRA epics, stories…"
|
|
4
|
-
allowed-tools: ["Read", "Glob", "LS", "Skill", "mcp__atlassian__getVisibleJiraProjects", "mcp__atlassian__getJiraProjectIssueTypesMetadata", "mcp__atlassian__getAccessibleAtlassianResources"]
|
|
5
|
-
---
|
|
6
|
-
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.
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
# Create JIRA Issues from $ARGUMENTS
|
|
10
|
-
|
|
11
|
-
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`.
|
|
12
|
-
|
|
13
|
-
## Process
|
|
14
|
-
|
|
15
|
-
1. **Analyze**: Read $ARGUMENTS to understand scope.
|
|
16
|
-
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.
|
|
17
|
-
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.
|
|
18
|
-
4. **Determine structure**:
|
|
19
|
-
- Epic needed if: multiple features, major changes, >3 related files
|
|
20
|
-
- Direct tasks if: bug fix, single file, minor change
|
|
21
|
-
5. **Plan hierarchy**:
|
|
22
|
-
```text
|
|
23
|
-
Epic → User Story → Tasks (test, implement, document, cleanup)
|
|
24
|
-
```
|
|
25
|
-
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.
|
|
26
|
-
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.
|
|
27
|
-
|
|
28
|
-
## Mandatory for Every Code Issue
|
|
29
|
-
|
|
30
|
-
**Test-First**: Write tests before implementation
|
|
31
|
-
**Quality Gates**: All tests/checks must pass, no SonarCloud violations
|
|
32
|
-
**Documentation**: Check existing, update/create new, remove obsolete
|
|
33
|
-
**Feature Flags**: All features behind flags with lifecycle plan
|
|
34
|
-
**Cleanup**: Remove temporary code, scripts, dev configs
|
|
35
|
-
|
|
36
|
-
## Source Artifacts
|
|
37
|
-
|
|
38
|
-
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.
|
|
39
|
-
|
|
40
|
-
**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.
|
|
41
|
-
|
|
42
|
-
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.
|
|
43
|
-
|
|
44
|
-
When delegating writes to `lisa:jira-write-ticket`, pass the extracted artifact list so its Phase 4c step can attach them.
|
|
45
|
-
|
|
46
|
-
## Live Product Walkthrough
|
|
47
|
-
|
|
48
|
-
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.
|
|
49
|
-
|
|
50
|
-
## Issue Requirements
|
|
51
|
-
|
|
52
|
-
Each issue must clearly communicate to:
|
|
53
|
-
|
|
54
|
-
- **Coding Assistants**: Implementation requirements
|
|
55
|
-
- **Developers**: Technical approach
|
|
56
|
-
- **Stakeholders**: Business value
|
|
57
|
-
|
|
58
|
-
Default project: SE (override via arguments)
|
|
59
|
-
Exclude unless requested: migration plans, performance tests
|
|
60
|
-
|
|
61
|
-
## Delegation to jira-write-ticket
|
|
62
|
-
|
|
63
|
-
**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.
|
|
64
|
-
|
|
65
|
-
`lisa:jira-write-ticket` enforces things this skill does not, and which determine ticket quality:
|
|
66
|
-
- 3-audience description (Context / Technical Approach / Acceptance Criteria)
|
|
67
|
-
- Gherkin acceptance criteria
|
|
68
|
-
- Epic parent validation (non-bug, non-epic types)
|
|
69
|
-
- Explicit link discovery (`blocks` / `is blocked by` / `relates to` / `duplicates` / `clones`)
|
|
70
|
-
- Remote links (PRs, Confluence, dashboards)
|
|
71
|
-
- Single-repo scope check for Bug / Task / Sub-task
|
|
72
|
-
- Sign-in account and target environment recorded in description
|
|
73
|
-
- Post-create verification
|
|
74
|
-
|
|
75
|
-
### Invocation order
|
|
76
|
-
|
|
77
|
-
Tickets must be created in parent-before-child order so each child can be passed its parent key:
|
|
78
|
-
|
|
79
|
-
1. Invoke `lisa:jira-write-ticket` for the epic. Capture the returned key.
|
|
80
|
-
2. For each story, invoke `lisa:jira-write-ticket` with the epic key as the epic parent. Capture each story key.
|
|
81
|
-
3. For each sub-task, invoke `lisa:jira-write-ticket` with the parent story key.
|
|
82
|
-
|
|
83
|
-
### What to pass to each invocation
|
|
84
|
-
|
|
85
|
-
For every delegated write, pass:
|
|
86
|
-
- The summary, issue type, project key, and priority you decided
|
|
87
|
-
- The 3-section description body you drafted (Context / Technical Approach / Acceptance Criteria)
|
|
88
|
-
- Gherkin acceptance criteria
|
|
89
|
-
- Parent key (epic key for stories; story key for sub-tasks)
|
|
90
|
-
- 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
|
|
91
|
-
- For tickets that change runtime behavior: the Validation Journey draft, or instruct it to call `lisa:jira-add-journey` after create
|
|
92
|
-
|
|
93
|
-
### What this skill is responsible for
|
|
94
|
-
|
|
95
|
-
This skill owns:
|
|
96
|
-
- Deciding the *shape* of the hierarchy (what's an epic vs. story vs. sub-task)
|
|
97
|
-
- Drafting the description body and acceptance criteria from the input
|
|
98
|
-
- Extracting and classifying source artifacts
|
|
99
|
-
- Threading parent keys through subsequent writes
|
|
100
|
-
- Running the artifact preservation check after all writes complete
|
|
101
|
-
|
|
102
|
-
It does not own the actual JIRA write — that's `lisa:jira-write-ticket`'s job.
|