@codyswann/lisa 5.14.0 → 5.14.2
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 +7 -140
- 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/rules/eager/coding-philosophy.md +1 -0
- package/plugins/lisa/rules/reference/coding-philosophy.md +20 -0
- 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/rules/eager/coding-philosophy.md +1 -0
- package/plugins/lisa-copilot/rules/reference/coding-philosophy.md +20 -0
- 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/rules/coding-philosophy-reference.mdc +20 -0
- package/plugins/lisa-cursor/rules/coding-philosophy.mdc +1 -0
- 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/rules/eager/coding-philosophy.md +1 -0
- package/plugins/lisa-devin/rules/reference/coding-philosophy.md +20 -0
- 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/rules/eager/coding-philosophy.md +1 -0
- package/plugins/src/base/rules/reference/coding-philosophy.md +20 -0
- 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,4 +0,0 @@
|
|
|
1
|
-
display_name: "Jira Verify"
|
|
2
|
-
short_description: "Check that a JIRA ticket meets the organization's standards — epic links, description quality, and a Validation Journey for UI work — by…"
|
|
3
|
-
default_prompt:
|
|
4
|
-
- "Use $jira-verify: Check that a JIRA ticket meets the organization's standards — epic links, description quality, and a Validation Journey for UI work — by…."
|
|
@@ -1,140 +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, viewports, 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 user flow, 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:
|
|
46
|
-
- Title and description (what the feature/fix is)
|
|
47
|
-
- Acceptance criteria (what needs to be verified)
|
|
48
|
-
- Components or labels (frontend, mobile, responsive, etc.)
|
|
49
|
-
- Any linked tickets or parent epic context
|
|
50
|
-
|
|
51
|
-
### Step 2: Check for Existing Journey
|
|
52
|
-
|
|
53
|
-
Run the parser to see if a Validation Journey already exists:
|
|
54
|
-
|
|
55
|
-
```bash
|
|
56
|
-
python3 .claude/skills/jira-journey/scripts/parse-plan.py <TICKET_ID> 2>&1
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
If the parser succeeds and returns steps, the ticket already has a journey. Report this to the user and stop.
|
|
60
|
-
|
|
61
|
-
### Step 3: Analyze the Feature
|
|
62
|
-
|
|
63
|
-
Based on the ticket description and acceptance criteria:
|
|
64
|
-
|
|
65
|
-
1. **Identify the UI surface** — Which pages, modals, or components are affected?
|
|
66
|
-
2. **Identify the user flow** — What steps does a user take to exercise the feature?
|
|
67
|
-
3. **Identify visual checkpoints** — At which states should screenshots be captured?
|
|
68
|
-
4. **Identify viewports** — Does this feature have responsive behavior? Always include Desktop. Add Mobile for responsive changes.
|
|
69
|
-
5. **Identify assertions** — What must be visually true for the feature to be correct?
|
|
70
|
-
|
|
71
|
-
Use the Explore agent or read the codebase directly to understand:
|
|
72
|
-
- Which components are involved (search by ticket ID, feature name, or file paths mentioned in the ticket)
|
|
73
|
-
- What testIDs exist (for Playwright interaction)
|
|
74
|
-
- What the user flow looks like (Container/View structure, navigation, modals)
|
|
75
|
-
|
|
76
|
-
### Step 4: Draft the Validation Journey
|
|
77
|
-
|
|
78
|
-
Compose the journey following the format:
|
|
79
|
-
|
|
80
|
-
```text
|
|
81
|
-
h2. Validation Journey
|
|
82
|
-
|
|
83
|
-
h3. Prerequisites
|
|
84
|
-
- List what must be true before starting (backend, auth, feature flags)
|
|
85
|
-
|
|
86
|
-
h3. Steps
|
|
87
|
-
1. First action the user takes
|
|
88
|
-
2. Second action [SCREENSHOT: descriptive-name]
|
|
89
|
-
3. Continue the flow
|
|
90
|
-
4. Final verification [SCREENSHOT: final-state]
|
|
91
|
-
|
|
92
|
-
h3. Viewports
|
|
93
|
-
||Name||Width||Height||
|
|
94
|
-
|Desktop|1512|768|
|
|
95
|
-
|Mobile|375|812|
|
|
96
|
-
|
|
97
|
-
h3. Assertions
|
|
98
|
-
- Testable visual statement about the expected behavior
|
|
99
|
-
- Another assertion about responsive layout
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
### Guidelines for Drafting
|
|
103
|
-
|
|
104
|
-
1. **3-7 screenshot markers** — Enough to prove the feature, not so many that execution is slow
|
|
105
|
-
2. **Concrete steps** — "Click the 'Add action' button" not "Interact with the controls"
|
|
106
|
-
3. **Include auth if needed** — If the journey requires login, include credentials in Prerequisites
|
|
107
|
-
4. **Name feature flags explicitly** — If the feature is behind a feature flag (in PostHog when `observability.analytics.provider` is `posthog`, the default), name it
|
|
108
|
-
5. **Assertions must be testable** — "Buttons stacked vertically on mobile" not "Layout looks good"
|
|
109
|
-
6. **Screenshot names in kebab-case** — `confirm-step-disabled`, `modal-open`, `form-error`
|
|
110
|
-
|
|
111
|
-
### Step 5: Present to User for Approval
|
|
112
|
-
|
|
113
|
-
Display the drafted Validation Journey to the user and ask for confirmation before appending it to the ticket. The user may want to:
|
|
114
|
-
- Add or remove steps
|
|
115
|
-
- Change screenshot markers
|
|
116
|
-
- Adjust viewports or assertions
|
|
117
|
-
- Modify prerequisites
|
|
118
|
-
|
|
119
|
-
### Step 6: Append to Ticket Description
|
|
120
|
-
|
|
121
|
-
After user approval, use the JIRA REST API to append the Validation Journey to the existing ticket description.
|
|
122
|
-
|
|
123
|
-
Use the Atlassian MCP `updateJiraIssue` to update the description field. The journey section must be appended **after** the existing description content, not replace it.
|
|
124
|
-
|
|
125
|
-
### Step 7: Verify
|
|
126
|
-
|
|
127
|
-
Run the parser again to confirm the journey was added correctly:
|
|
128
|
-
|
|
129
|
-
```bash
|
|
130
|
-
python3 .claude/skills/jira-journey/scripts/parse-plan.py <TICKET_ID>
|
|
131
|
-
```
|
|
132
|
-
|
|
133
|
-
The parser should now return the steps, viewports, and assertions from the newly added section.
|
|
134
|
-
|
|
135
|
-
## When to Use This Skill
|
|
136
|
-
|
|
137
|
-
- Ticket was created before the Validation Journey convention was established
|
|
138
|
-
- Ticket was created manually without following `lisa:jira-create` guidelines
|
|
139
|
-
- Ticket needs a journey added or updated based on implementation progress
|
|
140
|
-
- During sprint planning, to ensure all frontend tickets have journeys before work starts
|