@codyswann/lisa 2.21.0 → 2.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (124) hide show
  1. package/package.json +3 -2
  2. package/plugins/lisa/.claude-plugin/plugin.json +1 -1
  3. package/plugins/lisa/.codex-plugin/plugin.json +1 -1
  4. package/plugins/lisa/agents/confluence-prd-intake.md +11 -9
  5. package/plugins/lisa/agents/github-agent.md +18 -10
  6. package/plugins/lisa/agents/github-build-intake.md +10 -8
  7. package/plugins/lisa/agents/github-prd-intake.md +11 -9
  8. package/plugins/lisa/agents/jira-agent.md +12 -8
  9. package/plugins/lisa/agents/jira-build-intake.md +9 -7
  10. package/plugins/lisa/agents/linear-agent.md +15 -9
  11. package/plugins/lisa/agents/linear-build-intake.md +13 -11
  12. package/plugins/lisa/agents/linear-prd-intake.md +11 -9
  13. package/plugins/lisa/agents/notion-prd-intake.md +11 -9
  14. package/plugins/lisa/commands/setup/atlassian.md +7 -0
  15. package/plugins/lisa/commands/setup/confluence.md +7 -0
  16. package/plugins/lisa/commands/setup/jira.md +7 -0
  17. package/plugins/lisa/commands/setup/notion.md +7 -0
  18. package/plugins/lisa/rules/base-rules.md +2 -2
  19. package/plugins/lisa/rules/config-resolution.md +242 -24
  20. package/plugins/lisa/rules/repo-scope-split.md +41 -0
  21. package/plugins/lisa/rules/verification.md +13 -0
  22. package/plugins/lisa/skills/atlassian-access/SKILL.md +260 -0
  23. package/plugins/lisa/skills/confluence-prd-intake/SKILL.md +167 -82
  24. package/plugins/lisa/skills/confluence-to-tracker/SKILL.md +39 -26
  25. package/plugins/lisa/skills/git-submit-pr/SKILL.md +1 -1
  26. package/plugins/lisa/skills/github-add-journey/SKILL.md +1 -0
  27. package/plugins/lisa/skills/github-build-intake/SKILL.md +104 -40
  28. package/plugins/lisa/skills/github-evidence/SKILL.md +22 -5
  29. package/plugins/lisa/skills/github-prd-intake/SKILL.md +87 -51
  30. package/plugins/lisa/skills/github-to-tracker/SKILL.md +2 -2
  31. package/plugins/lisa/skills/github-validate-issue/SKILL.md +11 -1
  32. package/plugins/lisa/skills/jira-add-journey/SKILL.md +1 -0
  33. package/plugins/lisa/skills/jira-build-intake/SKILL.md +110 -45
  34. package/plugins/lisa/skills/jira-create/SKILL.md +5 -3
  35. package/plugins/lisa/skills/jira-evidence/SKILL.md +19 -2
  36. package/plugins/lisa/skills/jira-journey/SKILL.md +3 -1
  37. package/plugins/lisa/skills/jira-read-ticket/SKILL.md +10 -8
  38. package/plugins/lisa/skills/jira-sync/SKILL.md +11 -5
  39. package/plugins/lisa/skills/jira-validate-ticket/SKILL.md +22 -10
  40. package/plugins/lisa/skills/jira-verify/SKILL.md +5 -3
  41. package/plugins/lisa/skills/jira-write-ticket/SKILL.md +16 -14
  42. package/plugins/lisa/skills/linear-add-journey/SKILL.md +1 -0
  43. package/plugins/lisa/skills/linear-build-intake/SKILL.md +90 -32
  44. package/plugins/lisa/skills/linear-evidence/SKILL.md +22 -5
  45. package/plugins/lisa/skills/linear-prd-intake/SKILL.md +92 -57
  46. package/plugins/lisa/skills/linear-validate-issue/SKILL.md +10 -0
  47. package/plugins/lisa/skills/notion-access/SKILL.md +193 -0
  48. package/plugins/lisa/skills/notion-prd-intake/SKILL.md +105 -46
  49. package/plugins/lisa/skills/notion-to-tracker/SKILL.md +7 -5
  50. package/plugins/lisa/skills/setup-atlassian/SKILL.md +316 -0
  51. package/plugins/lisa/skills/setup-confluence/SKILL.md +245 -0
  52. package/plugins/lisa/skills/setup-jira/SKILL.md +198 -0
  53. package/plugins/lisa/skills/setup-notion/SKILL.md +283 -0
  54. package/plugins/lisa/skills/task-decomposition/SKILL.md +2 -0
  55. package/plugins/lisa/skills/ticket-triage/SKILL.md +4 -1
  56. package/plugins/lisa/skills/tracker-evidence/SKILL.md +1 -0
  57. package/plugins/lisa/skills/verification-lifecycle/SKILL.md +2 -0
  58. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  59. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  60. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  61. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  62. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  63. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  64. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  65. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  66. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  67. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  68. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  69. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  70. package/plugins/src/base/agents/confluence-prd-intake.md +11 -9
  71. package/plugins/src/base/agents/github-agent.md +18 -10
  72. package/plugins/src/base/agents/github-build-intake.md +10 -8
  73. package/plugins/src/base/agents/github-prd-intake.md +11 -9
  74. package/plugins/src/base/agents/jira-agent.md +12 -8
  75. package/plugins/src/base/agents/jira-build-intake.md +9 -7
  76. package/plugins/src/base/agents/linear-agent.md +15 -9
  77. package/plugins/src/base/agents/linear-build-intake.md +13 -11
  78. package/plugins/src/base/agents/linear-prd-intake.md +11 -9
  79. package/plugins/src/base/agents/notion-prd-intake.md +11 -9
  80. package/plugins/src/base/commands/setup/atlassian.md +7 -0
  81. package/plugins/src/base/commands/setup/confluence.md +7 -0
  82. package/plugins/src/base/commands/setup/jira.md +7 -0
  83. package/plugins/src/base/commands/setup/notion.md +7 -0
  84. package/plugins/src/base/rules/base-rules.md +2 -2
  85. package/plugins/src/base/rules/config-resolution.md +242 -24
  86. package/plugins/src/base/rules/repo-scope-split.md +41 -0
  87. package/plugins/src/base/rules/verification.md +13 -0
  88. package/plugins/src/base/skills/atlassian-access/SKILL.md +260 -0
  89. package/plugins/src/base/skills/confluence-prd-intake/SKILL.md +167 -82
  90. package/plugins/src/base/skills/confluence-to-tracker/SKILL.md +39 -26
  91. package/plugins/src/base/skills/git-submit-pr/SKILL.md +1 -1
  92. package/plugins/src/base/skills/github-add-journey/SKILL.md +1 -0
  93. package/plugins/src/base/skills/github-build-intake/SKILL.md +104 -40
  94. package/plugins/src/base/skills/github-evidence/SKILL.md +22 -5
  95. package/plugins/src/base/skills/github-prd-intake/SKILL.md +87 -51
  96. package/plugins/src/base/skills/github-to-tracker/SKILL.md +2 -2
  97. package/plugins/src/base/skills/github-validate-issue/SKILL.md +11 -1
  98. package/plugins/src/base/skills/jira-add-journey/SKILL.md +1 -0
  99. package/plugins/src/base/skills/jira-build-intake/SKILL.md +110 -45
  100. package/plugins/src/base/skills/jira-create/SKILL.md +5 -3
  101. package/plugins/src/base/skills/jira-evidence/SKILL.md +19 -2
  102. package/plugins/src/base/skills/jira-journey/SKILL.md +3 -1
  103. package/plugins/src/base/skills/jira-read-ticket/SKILL.md +10 -8
  104. package/plugins/src/base/skills/jira-sync/SKILL.md +11 -5
  105. package/plugins/src/base/skills/jira-validate-ticket/SKILL.md +22 -10
  106. package/plugins/src/base/skills/jira-verify/SKILL.md +5 -3
  107. package/plugins/src/base/skills/jira-write-ticket/SKILL.md +16 -14
  108. package/plugins/src/base/skills/linear-add-journey/SKILL.md +1 -0
  109. package/plugins/src/base/skills/linear-build-intake/SKILL.md +90 -32
  110. package/plugins/src/base/skills/linear-evidence/SKILL.md +22 -5
  111. package/plugins/src/base/skills/linear-prd-intake/SKILL.md +92 -57
  112. package/plugins/src/base/skills/linear-validate-issue/SKILL.md +10 -0
  113. package/plugins/src/base/skills/notion-access/SKILL.md +193 -0
  114. package/plugins/src/base/skills/notion-prd-intake/SKILL.md +105 -46
  115. package/plugins/src/base/skills/notion-to-tracker/SKILL.md +7 -5
  116. package/plugins/src/base/skills/setup-atlassian/SKILL.md +316 -0
  117. package/plugins/src/base/skills/setup-confluence/SKILL.md +245 -0
  118. package/plugins/src/base/skills/setup-jira/SKILL.md +198 -0
  119. package/plugins/src/base/skills/setup-notion/SKILL.md +283 -0
  120. package/plugins/src/base/skills/task-decomposition/SKILL.md +2 -0
  121. package/plugins/src/base/skills/ticket-triage/SKILL.md +4 -1
  122. package/plugins/src/base/skills/tracker-evidence/SKILL.md +1 -0
  123. package/plugins/src/base/skills/verification-lifecycle/SKILL.md +2 -0
  124. package/scripts/check-plugins-sync.sh +45 -0
@@ -0,0 +1,260 @@
1
+ ---
2
+ name: atlassian-access
3
+ description: "Vendor-neutral access layer for Atlassian (JIRA + Confluence). Every jira-* and confluence-* skill MUST delegate through this skill rather than calling Atlassian directly. Resolves a substrate per operation in this order: (1) acli if installed and its active profile matches the configured site, (2) Atlassian MCP if authenticated and the configured cloudId is in its accessible resources, (3) curl + API-token Basic auth. Verifies the active connection matches `.lisa.config.json` before every operation — substrates authenticated as a different Atlassian account are skipped, not used."
4
+ allowed-tools: ["Bash", "Read", "Skill"]
5
+ ---
6
+
7
+ # Atlassian Access: $ARGUMENTS
8
+
9
+ Single chokepoint for all Atlassian operations. Routes each op to a substrate, enforces connection match, returns structured result. Caller skills (`jira-*`, `confluence-*`) MUST go through this — they MUST NOT invoke `acli` directly, call Atlassian MCP tools directly, or curl the Atlassian REST API themselves.
10
+
11
+ ## Invocation contract
12
+
13
+ The caller passes one operation plus its arguments. Operations are listed in the dispatch table below. The skill returns either the structured operation result (JSON when the substrate provides it) or a clear error.
14
+
15
+ ```text
16
+ operation: read-ticket key: PROJ-123
17
+ operation: write-ticket payload: {...}
18
+ operation: transition key: PROJ-123 to: "In Review"
19
+ operation: comment key: PROJ-123 body: "..."
20
+ operation: search-issues jql: "project = SE AND status = Open"
21
+ operation: read-page id: 12345
22
+ operation: write-page payload: {...}
23
+ ```
24
+
25
+ ## Workflow
26
+
27
+ ### Step 1 — Substrate selection (per operation)
28
+
29
+ Read config:
30
+
31
+ ```bash
32
+ SITE=$(jq -r '.atlassian.site // empty' .lisa.config.json)
33
+ CLOUDID=$(jq -r '.atlassian.cloudId // empty' .lisa.config.json)
34
+ EMAIL=$(jq -r '.atlassian.email // empty' .lisa.config.local.json 2>/dev/null)
35
+ [ -z "$CLOUDID" ] && { echo "Error: atlassian.cloudId not set. Run /lisa:setup:atlassian." >&2; exit 1; }
36
+ ```
37
+
38
+ Probe each tier in order; the first that's ready AND identity-matches is the substrate for this operation. Identity-match is verified before any operation; substrates authenticated as a different Atlassian account are skipped, not used.
39
+
40
+ ```bash
41
+ substrate=""
42
+
43
+ # Tier 1: acli
44
+ if command -v acli >/dev/null 2>&1 && acli auth status >/dev/null 2>&1; then
45
+ current_site=$(acli auth status 2>/dev/null | awk '/^ Site:/{print $2}')
46
+ if [ "$current_site" = "$SITE" ]; then
47
+ substrate="acli"
48
+ else
49
+ # acli installed but pointing at a different site. Try switching profiles.
50
+ if acli auth switch --site "$SITE" ${EMAIL:+--email "$EMAIL"} >/dev/null 2>&1; then
51
+ substrate="acli"
52
+ fi
53
+ fi
54
+ fi
55
+
56
+ # Tier 2: Atlassian MCP (if acli not ready OR the operation isn't acli-covered)
57
+ # $OP_REQUIRES is a conceptual variable set by the dispatch table to "non-acli" for
58
+ # operations that have no acli adapter (e.g. read-page-descendants). It is not a real
59
+ # shell variable initialized here — the condition is illustrative pseudo-code.
60
+ if [ -z "$substrate" ] || [ "$OP_REQUIRES" = "non-acli" ]; then
61
+ # Probe via mcp__plugin_atlassian_atlassian__getAccessibleAtlassianResources.
62
+ # (Pseudo-code; actual call is the MCP tool invocation, not a bash command.)
63
+ # If the MCP returns a list and $CLOUDID is in it, MCP is identity-matched.
64
+ # If the MCP is unauthenticated or $CLOUDID is NOT in the list, MCP is skipped.
65
+ if mcp_atlassian_authenticated_and_matches_cloudid "$CLOUDID"; then
66
+ : ${substrate:=mcp}
67
+ # Mark MCP as available even if acli already won tier 1 — used for ops acli can't do.
68
+ mcp_available=true
69
+ fi
70
+ fi
71
+
72
+ # Tier 3: curl + API token (headless / multi-account / scoped-token path)
73
+ read_atlassian_token() {
74
+ local email="$1"
75
+ [ -n "$ATLASSIAN_API_TOKEN" ] && { echo "$ATLASSIAN_API_TOKEN"; return; }
76
+ local slug=$(echo "$email" | tr '[:upper:]@.' '[:lower:]__')
77
+ local varname="ATLASSIAN_API_TOKEN_${slug}"
78
+ [ -n "${!varname}" ] && { echo "${!varname}"; return; }
79
+ case "$(uname -s)" in
80
+ Darwin) security find-generic-password -s lisa-atlassian -a "$email" -w 2>/dev/null ;;
81
+ Linux) command -v secret-tool >/dev/null && secret-tool lookup service lisa-atlassian account "$email" 2>/dev/null ;;
82
+ MINGW*|MSYS*|CYGWIN*) cmdkey /list:"lisa-atlassian-${email}" 2>/dev/null | grep Password | awk '{print $NF}' ;;
83
+ esac
84
+ }
85
+ TOKEN=$(read_atlassian_token "$EMAIL")
86
+ [ -n "$TOKEN" ] && curl_available=true && : ${substrate:=curl}
87
+
88
+ # Fail loudly with actionable remediation if nothing works.
89
+ if [ -z "$substrate" ]; then
90
+ # Detect plugin enablement state for the suggestion.
91
+ plugin_enabled_global=$(jq -r '.enabledPlugins["atlassian@claude-plugins-official"] // false' ~/.claude/settings.json 2>/dev/null || echo "false")
92
+ plugin_enabled_project=$(jq -r '.enabledPlugins["atlassian@claude-plugins-official"] // false' .claude/settings.json 2>/dev/null || echo "false")
93
+ plugin_enabled_local=$(jq -r '.enabledPlugins["atlassian@claude-plugins-official"] // false' .claude/settings.local.json 2>/dev/null || echo "false")
94
+
95
+ cat >&2 <<EOF
96
+ Error: no Atlassian access substrate available for site $SITE.
97
+
98
+ Attempted:
99
+ acli — $(command -v acli >/dev/null && echo "installed but identity mismatch or unauthenticated" || echo "not installed")
100
+ MCP — $([ "$plugin_enabled_global" = "true" ] || [ "$plugin_enabled_project" = "true" ] || [ "$plugin_enabled_local" = "true" ] && echo "plugin enabled but not authenticated or cloudId $CLOUDID not in accessible resources" || echo "plugin not enabled in any settings.json scope")
101
+ curl — no ATLASSIAN_API_TOKEN found for $EMAIL (env, slug-suffixed env, or keychain)
102
+
103
+ Remediation paths (pick one):
104
+
105
+ 1. Install the Atlassian MCP plugin (local scope — per-developer, gitignored).
106
+ This is the simplest path for single-account developers.
107
+
108
+ Run in your terminal:
109
+
110
+ jq '.enabledPlugins["atlassian@claude-plugins-official"] = true' \\
111
+ .claude/settings.local.json 2>/dev/null > /tmp/s && \\
112
+ mv /tmp/s .claude/settings.local.json || \\
113
+ echo '{"enabledPlugins":{"atlassian@claude-plugins-official":true}}' > .claude/settings.local.json
114
+
115
+ Then restart Claude Code (or run /restart-mcp) to load the plugin, and
116
+ invoke 'mcp__plugin_atlassian_atlassian__authenticate' to complete OAuth.
117
+
118
+ 2. Install acli and authenticate (best for multi-account developers).
119
+
120
+ brew tap atlassian/homebrew-acli && brew install acli
121
+ acli auth login # OAuth as the account matching $EMAIL
122
+
123
+ 3. Provision an API token (headless / CI / scoped-token environments).
124
+
125
+ Run /lisa:setup:atlassian — guided flow with clipboard-piped keychain store.
126
+
127
+ EOF
128
+ exit 1
129
+ fi
130
+ ```
131
+
132
+ Operation dispatch then uses `$substrate` for the primary route. If the operation has no `acli` adapter and `$substrate=acli`, fall through to `$mcp_available` then `$curl_available` for the actual call. The fall-through stops at the first available tier that can perform the operation.
133
+
134
+ ### Step 2 — Connection-match check
135
+
136
+ The active connection MUST point at the cloudId/site declared in `.lisa.config.json`. Step 1's substrate selection already verifies this implicitly (substrates that don't match are skipped). This step is the explicit assertion before any operation runs — defensive in case the substrate state changed since selection.
137
+
138
+ Read configured site:
139
+
140
+ ```bash
141
+ cloudid=$(jq -r '.atlassian.cloudId // empty' .lisa.config.json)
142
+ site=$(jq -r '.atlassian.site // empty' .lisa.config.json) # optional human-readable site URL
143
+ email=$(jq -r '.atlassian.email // empty' .lisa.config.json) # optional, for multi-account disambiguation
144
+
145
+ if [ -z "$cloudid" ]; then
146
+ echo "Error: atlassian.cloudId not set in .lisa.config.json. Run /lisa:setup:atlassian." >&2
147
+ exit 1
148
+ fi
149
+ ```
150
+
151
+ **CLI mode check**:
152
+
153
+ ```bash
154
+ # Compare active acli profile against config.
155
+ current=$(acli auth status --json 2>/dev/null)
156
+ current_site=$(echo "$current" | jq -r '.site // empty')
157
+ current_email=$(echo "$current" | jq -r '.email // empty')
158
+
159
+ if [ -n "$site" ] && [ "$current_site" != "$site" ]; then
160
+ # Profile mismatch — switch.
161
+ acli auth switch --site "$site" ${email:+--email "$email"}
162
+ fi
163
+ ```
164
+
165
+ If `acli auth switch` fails because no matching profile exists, surface the error verbatim and instruct the caller to run `/lisa:setup:atlassian` to add the profile.
166
+
167
+ **curl mode check** (when the chosen op routes to curl):
168
+
169
+ ```bash
170
+ # Validate the active ATLASSIAN_API_TOKEN points at the configured account by
171
+ # hitting /rest/api/3/myself and comparing emailAddress.
172
+ AUTH=$(printf '%s:%s' "$email" "$ATLASSIAN_API_TOKEN" | base64)
173
+ myself=$(curl -s -H "Authorization: Basic $AUTH" \
174
+ "https://${site}/rest/api/3/myself")
175
+ me_email=$(echo "$myself" | jq -r '.emailAddress // empty')
176
+
177
+ if [ -z "$me_email" ]; then
178
+ echo "Error: ATLASSIAN_API_TOKEN failed authentication against $site. Run /lisa:setup:atlassian to re-issue." >&2
179
+ exit 1
180
+ fi
181
+ if [ "$me_email" != "$email" ]; then
182
+ echo "Error: ATLASSIAN_API_TOKEN belongs to '$me_email', but .lisa.config.local.json declares '$email'. Multi-account misconfiguration." >&2
183
+ exit 1
184
+ fi
185
+ ```
186
+
187
+ If validation fails, never silently proceed — abort and instruct the user to fix env.
188
+
189
+ ### Step 3 — Operation dispatch
190
+
191
+ Substrate column meanings:
192
+
193
+ - **`acli`**: routes through `acli`. Preferred when available and identity-matched.
194
+ - **`MCP`**: routes through the Atlassian MCP. Preferred when acli can't do the op and the MCP is identity-matched (cloudId in `getAccessibleAtlassianResources`).
195
+ - **`curl`**: routes through curl + Basic auth + `ATLASSIAN_API_TOKEN`. Used when neither acli nor MCP is available.
196
+ - Multiple cells filled means tier ordering applies — try acli, then MCP, then curl, taking the first that has an adapter for the op AND is identity-matched.
197
+ - One cell means only that substrate can perform the op.
198
+
199
+ `<SITE>` = `.atlassian.site` (e.g. `propswap.atlassian.net`). `<CLOUDID>` = `.atlassian.cloudId`. `<AUTH>` = `Basic $(printf '%s:%s' "$email" "$ATLASSIAN_API_TOKEN" | base64)`. JIRA paths use `/rest/api/3/...`; Confluence uses `/wiki/rest/api/...` (v1) or `/api/v2/...` (v2).
200
+
201
+ | Operation | acli adapter | MCP adapter | curl adapter |
202
+ |---|---|---|---|
203
+ | **JIRA ops** | | | |
204
+ | `read-ticket key:<K>` | `acli jira workitem view <K> --json` | `mcp__plugin_atlassian_atlassian__getJiraIssue` | `GET https://<SITE>/rest/api/3/issue/<K>` |
205
+ | `write-ticket payload:<P>` (create) | `acli jira workitem create --from-json <P>` | `mcp__plugin_atlassian_atlassian__createJiraIssue` | `POST https://<SITE>/rest/api/3/issue` body=`<P>` |
206
+ | `write-ticket payload:<P>` (edit) | `acli jira workitem edit <K> --from-json <P>` | `mcp__plugin_atlassian_atlassian__editJiraIssue` | `PUT https://<SITE>/rest/api/3/issue/<K>` body=`<P>` |
207
+ | `transition key:<K> to:<S>` | `acli jira workitem transition --key <K> --status "<S>" --yes` | `mcp__plugin_atlassian_atlassian__transitionJiraIssue` | resolve transition id then `POST .../issue/<K>/transitions` |
208
+ | `transitions key:<K>` | (not exposed) | `mcp__plugin_atlassian_atlassian__getTransitionsForJiraIssue` | `GET https://<SITE>/rest/api/3/issue/<K>/transitions` |
209
+ | `comment key:<K> body:<B>` | `acli jira workitem comment add --key <K> --body "<B>"` | `mcp__plugin_atlassian_atlassian__addCommentToJiraIssue` | `POST https://<SITE>/rest/api/3/issue/<K>/comment` |
210
+ | `link from:<K> to:<K2> type:<T>` | `acli jira workitem link create --inward <K> --outward <K2> --type "<T>"` | `mcp__plugin_atlassian_atlassian__createJiraIssueLink` | `POST https://<SITE>/rest/api/3/issueLink` |
211
+ | `remote-links key:<K>` | (not exposed) | `mcp__plugin_atlassian_atlassian__getJiraIssueRemoteIssueLinks` | `GET https://<SITE>/rest/api/3/issue/<K>/remotelink` |
212
+ | `search-issues jql:<J>` | `acli jira workitem search --jql "<J>" --json` | `mcp__plugin_atlassian_atlassian__searchJiraIssuesUsingJql` | `POST https://<SITE>/rest/api/3/search/jql` |
213
+ | `list-projects` | `acli jira project list --paginate --json` | `mcp__plugin_atlassian_atlassian__getVisibleJiraProjects` | `GET https://<SITE>/rest/api/3/project/search` |
214
+ | `issue-type-metadata project:<K>` | `acli jira project view --key <K> --include-all --json` | `mcp__plugin_atlassian_atlassian__getJiraProjectIssueTypesMetadata` | `GET https://<SITE>/rest/api/3/issuetype/project?projectId=<id>` |
215
+ | **Confluence ops** | | | |
216
+ | `read-page id:<I>` | `acli confluence page view --id <I> --json` | `mcp__plugin_atlassian_atlassian__getConfluencePage` | `GET https://api.atlassian.com/ex/confluence/<CLOUDID>/wiki/rest/api/content/<I>` |
217
+ | `read-page-descendants id:<I>` | — | `mcp__plugin_atlassian_atlassian__getConfluencePageDescendants` | `GET .../content/<I>/descendant/page` |
218
+ | `read-page-comments id:<I> kind:<footer\|inline>` | — | `mcp__plugin_atlassian_atlassian__getConfluencePageFooterComments` / `getConfluencePageInlineComments` | `GET .../content/<I>/child/comment?location=<kind>` |
219
+ | `read-comment-children id:<C>` | — | `mcp__plugin_atlassian_atlassian__getConfluenceCommentChildren` | `GET .../content/<C>/child/comment` |
220
+ | `write-page payload:<P>` (create) | — | `mcp__plugin_atlassian_atlassian__createConfluencePage` | `POST .../wiki/rest/api/content` body=`<P>` |
221
+ | `write-page payload:<P>` (edit) | — | `mcp__plugin_atlassian_atlassian__updateConfluencePage` | `PUT .../content/<I>` body must include `version.number` bumped |
222
+ | `label-page id:<I> add:<L1,L2> remove:<L3,L4>` | — | (no v2 label-write endpoint on MCP) | (Atlassian gap; not used by lisa — see "Confluence PRD lifecycle" rule) |
223
+ | `comment-page id:<I> kind:<footer\|inline> body:<B>` | — | `mcp__plugin_atlassian_atlassian__createConfluenceFooterComment` / `createConfluenceInlineComment` | `POST .../content` body has `type=comment` |
224
+ | `search-pages cql:<Q>` | — | `mcp__plugin_atlassian_atlassian__searchConfluenceUsingCql` | `GET .../content/search?cql=<Q>` |
225
+ | `list-spaces` | `acli confluence space list --type global --json` | `mcp__plugin_atlassian_atlassian__getConfluenceSpaces` | `GET .../wiki/rest/api/space` |
226
+ | **Common ops** | | | |
227
+ | `list-sites` | `acli auth status --json` | `mcp__plugin_atlassian_atlassian__getAccessibleAtlassianResources` | `GET https://api.atlassian.com/oauth/token/accessible-resources` |
228
+
229
+ **Confluence v1 vs v2:** every Confluence curl path above uses **v1** (`/wiki/rest/api/...`). v1 is deprecated by Atlassian but as of writing remains functional for API-token Basic auth. The v2 API (`/api/v2/...`) requires *granular* OAuth scopes that aren't issued to Basic-auth API tokens consistently — so v1 is the safer path for now. When Atlassian fully retires v1, this table must move to v2 (the dispatch is the only thing that changes; the substrate-selection logic is unaffected).
230
+
231
+ **acli flag note:** acli's `--output` flag does not exist; the correct flag is `--json`. List commands require `--paginate` or `--limit` (no implicit fetch-all). Several documented adapters are nominal — verify against `acli <subcmd> --help` before relying on them. When acli's adapter is broken or missing for a specific op, fall through to MCP (if identity-matched) then curl per the tier ordering.
232
+
233
+ Operations not in this table are unsupported — add an adapter row before using them. Adapters MUST return a structured response (parse `acli`'s `--json`; jq-process curl's raw JSON).
234
+
235
+ ### Payload conventions
236
+
237
+ - `write-ticket` payload: full JSON spec when creating; partial JSON (only changed fields, with `key` to identify) when editing. Adapters detect create vs edit by presence of `key`.
238
+ - `write-page` payload: supports a label-only mutation form — `{ "id": "<I>", "labels": { "add": [...], "remove": [...] } }` — so callers transitioning PRD lifecycle labels do not need to resend the page body. Full create/update payloads also accepted.
239
+ - `comment-page` `kind: inline` requires `anchor` (the highlighted text the comment attaches to). `kind: footer` ignores `anchor`.
240
+
241
+ ### Step 4 — Return result
242
+
243
+ Emit either:
244
+
245
+ - The structured operation result (JSON object), wrapped in a `<result>` block for caller parsing, OR
246
+ - An error message prefixed with `Error:` and a remediation hint. Exit non-zero. Include the HTTP status code (curl) or acli exit code so callers can route on it.
247
+
248
+ Do not paraphrase substrate output beyond JSON normalization.
249
+
250
+ ## Invariants
251
+
252
+ - Caller skills never invoke `acli` or `curl` against Atlassian directly. They only invoke this skill.
253
+ - Substrate is decided once per skill invocation and never switches mid-operation.
254
+ - Connection match is mandatory. Operations that bypass it (because "the user obviously meant the configured site") are forbidden.
255
+ - Profile mutations (`acli auth switch`) are allowed when acli is the active substrate. The curl substrate never mutates the token — if `ATLASSIAN_API_TOKEN` doesn't match the configured account, fail loud rather than silently substituting.
256
+ - `.lisa.config.local.json` overrides `.lisa.config.json` per-key — the same precedence rule as every other consumer of project config.
257
+
258
+ ## Headless behavior
259
+
260
+ In a headless / non-interactive context (no TTY, `CI=true`, or `-p` mode), the MCP tier is unavailable (its OAuth flow needs a browser). The substrate ladder collapses to: acli (if pre-authenticated, e.g., a CI image baked with a service-account token) → curl + `ATLASSIAN_API_TOKEN`. Never block on interactive prompts. If both fail readiness checks, exit non-zero with a deterministic error.