@codyswann/lisa 2.3.0 → 2.4.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.
@@ -0,0 +1,259 @@
1
+ ---
2
+ name: confluence-prd-intake
3
+ description: "Scans a Confluence space (or a parent page) for PRD pages labelled `prd-ready` and runs each one through the dry-run validation pipeline. PRDs that pass every gate get tickets written and the label flipped to `prd-ticketed`; PRDs that fail get clarifying-question comments and the label flipped to `prd-blocked`. Confluence counterpart of `lisa:notion-prd-intake` — the workflow is identical; only the source-of-truth tools differ. Composes existing skills (confluence-to-jira, jira-validate-ticket, jira-source-artifacts, product-walkthrough)."
4
+ allowed-tools: ["Skill", "Bash", "mcp__atlassian__getConfluencePage", "mcp__atlassian__getConfluenceSpaces", "mcp__atlassian__getPagesInConfluenceSpace", "mcp__atlassian__getConfluencePageDescendants", "mcp__atlassian__searchConfluenceUsingCql", "mcp__atlassian__updateConfluencePage", "mcp__atlassian__createConfluenceFooterComment", "mcp__atlassian__createConfluenceInlineComment", "mcp__atlassian__getConfluencePageFooterComments", "mcp__atlassian__getConfluencePageInlineComments", "mcp__atlassian__getAccessibleAtlassianResources"]
5
+ ---
6
+
7
+ # Confluence PRD Intake: $ARGUMENTS
8
+
9
+ `$ARGUMENTS` is one of:
10
+
11
+ - A Confluence **space** URL or space key — scans every page in the space whose labels include `prd-ready`. Example: `https://mycompany.atlassian.net/wiki/spaces/PRD` or `PRD`.
12
+ - A Confluence **parent page** URL or page ID — scans every descendant of the parent whose labels include `prd-ready`. Example: `https://mycompany.atlassian.net/wiki/spaces/PRD/pages/123456789/PRDs`.
13
+
14
+ Run one intake cycle against that scope. Each PRD with the `prd-ready` label is claimed, validated, and routed to either `prd-blocked` (with clarifying comments) or `prd-ticketed` (with JIRA tickets created).
15
+
16
+ This skill is the Confluence counterpart of `lisa:notion-prd-intake`. The phases, gates, comment templates, and rules are identical — the only differences are (1) the lifecycle is encoded as **page labels** instead of a Status property, and (2) the fetch / comment / update tools are Confluence MCP instead of Notion MCP. Keep the two skills behaviorally aligned: when changing intake logic, change BOTH skills together.
17
+
18
+ ## Confirmation policy
19
+
20
+ Do NOT ask the caller whether to proceed. Once invoked with a space or parent-page URL, run the cycle to completion — claim, validate, branch to `prd-blocked` or `prd-ticketed`, write the summary. The caller (a human or a cron) has already authorized the run by invoking the skill; re-prompting defeats the purpose of a background batch.
21
+
22
+ Specifically forbidden:
23
+
24
+ - Previewing projected scope (epic count, story count, write count) and asking whether to continue.
25
+ - Offering A/B/C-style choices like "proceed / skip / dry-run only" — the documented behavior IS the default.
26
+ - Pausing because a PRD looks large, has many open questions, or is likely to end in `prd-blocked`. `prd-blocked` is a valid terminal state of this lifecycle, not a failure mode — routing a PRD to `prd-blocked` with gate-failure comments is exactly how this skill communicates "the PRD needs more work before it can be ticketed." That outcome is success.
27
+ - Pausing because the dry-run validation looks expensive. The cost of one cycle is bounded; the cost of stalling a scheduled cron waiting on a human is unbounded.
28
+
29
+ The only legitimate reasons to stop early:
30
+
31
+ - Missing space/parent argument or required configuration (`JIRA_PROJECT`, `JIRA_SERVER`, `E2E_BASE_URL`, etc.). Surface the missing value and exit.
32
+ - Space/parent unreachable, or the labelling convention not yet adopted (no PRDs carry any of `prd-ready` / `prd-in-review` / `prd-blocked` / `prd-ticketed`). Surface and exit.
33
+ - Empty `prd-ready` set. Exit cleanly with `"No PRDs labelled prd-ready. Nothing to do."`
34
+
35
+ ## Lifecycle assumed
36
+
37
+ The Confluence PRD lifecycle is encoded as **page labels** (Confluence has no native status field). Exactly one of these labels is expected on a PRD page at any time:
38
+
39
+ ```text
40
+ prd-draft → prd-ready → prd-in-review → prd-blocked | prd-ticketed → prd-shipped
41
+ (product) (us) (us) (product)
42
+ ```
43
+
44
+ This skill ONLY transitions:
45
+
46
+ - `prd-ready` → `prd-in-review` (claim)
47
+ - `prd-in-review` → `prd-blocked` (gate failures or coverage gaps)
48
+ - `prd-in-review` → `prd-ticketed` (success)
49
+
50
+ It never adds, removes, or touches `prd-draft` or `prd-shipped`. Those labels are owned by product.
51
+
52
+ A "transition" means: remove the old lifecycle label and add the new one in a single `updateConfluencePage` call. The skill MUST verify that exactly one lifecycle label exists on the page after the update — having two simultaneously breaks idempotency.
53
+
54
+ If the project does not yet use `prd-*` labels, this skill cannot run. Adopting the convention is a one-time setup the project owner does (see "Adoption" at the bottom of this file).
55
+
56
+ ## Phases
57
+
58
+ ### Phase 1 — Resolve the scope
59
+
60
+ 1. Parse `$ARGUMENTS`:
61
+ - Space URL → extract space key from `/wiki/spaces/<KEY>`.
62
+ - Bare space key → use as-is.
63
+ - Parent page URL → extract numeric page ID from `/pages/<ID>/...`.
64
+ - Bare page ID → use as-is.
65
+ 2. Resolve Atlassian cloud ID via `mcp__atlassian__getAccessibleAtlassianResources` (downstream tools need it).
66
+ 3. Verify the scope is reachable:
67
+ - For a space: call `mcp__atlassian__getConfluenceSpaces` and confirm the key resolves.
68
+ - For a parent page: call `mcp__atlassian__getConfluencePage` on the ID and confirm it loads.
69
+
70
+ ### Phase 2 — Find Ready PRDs
71
+
72
+ Build a CQL query and call `mcp__atlassian__searchConfluenceUsingCql`:
73
+
74
+ - For a space: `space = "<KEY>" AND label = "prd-ready" AND type = page`
75
+ - For a parent: `ancestor = <PARENT-ID> AND label = "prd-ready" AND type = page`
76
+
77
+ The query returns the list of candidate pages with IDs and titles. For each candidate, confirm the label set on the page (CQL hits should be authoritative, but a follow-up `getConfluencePage` with labels included guards against eventual-consistency lag) and ensure exactly one lifecycle label is present.
78
+
79
+ If the result set is empty, run a secondary CQL to distinguish between a genuinely empty queue and a project that has not yet adopted the label convention:
80
+
81
+ - Secondary query (space scope): `space = "<KEY>" AND (label = "prd-ready" OR label = "prd-in-review" OR label = "prd-blocked" OR label = "prd-ticketed") AND type = page`
82
+ - Secondary query (parent scope): `ancestor = <PARENT-ID> AND (label = "prd-ready" OR label = "prd-in-review" OR label = "prd-blocked" OR label = "prd-ticketed") AND type = page`
83
+
84
+ If the secondary query also returns nothing → the `prd-*` label convention has not been adopted. Surface a misconfiguration message: `"No pages in this scope carry prd-* labels. If this is a new project, apply the prd-ready label to PRDs that are ready for ticketing (see Adoption section)."` Exit with an error — this is a setup issue, not a normal idle cycle.
85
+
86
+ If the secondary query returns results → the queue is genuinely empty (all PRDs are already in-review, blocked, ticketed, or shipped). Exit cleanly with `"No PRDs labelled prd-ready. Nothing to do."`
87
+
88
+ ### Phase 3 — Process each Ready PRD
89
+
90
+ For each PRD page (process serially to keep label transitions auditable):
91
+
92
+ #### 3a. Claim
93
+
94
+ Transition labels via `mcp__atlassian__updateConfluencePage`: remove `prd-ready`, add `prd-in-review`. This is the idempotency lock — a re-entrant cycle running concurrently won't see this PRD because its CQL query filters on `label = "prd-ready"`.
95
+
96
+ If the update fails (permission error, version conflict / 409 race), log it and skip this PRD. Do not proceed to validation on a PRD you didn't successfully claim.
97
+
98
+ The `updateConfluencePage` call must preserve the page body; only the labels change. (If the MCP tool requires a full body in the update payload, fetch the current body via `getConfluencePage` immediately before the update and pass it back unchanged — preserving body content is non-negotiable, this skill never edits PRD content.)
99
+
100
+ #### 3b. Dry-run validation
101
+
102
+ Invoke the `lisa:confluence-to-jira` skill with `dry_run: true` and the PRD's URL. The skill returns a structured report containing:
103
+ - The planned ticket hierarchy
104
+ - Per-ticket validation verdicts and remediation
105
+ - An overall PASS / FAIL verdict
106
+ - A failure count
107
+
108
+ This call also indirectly invokes `lisa:jira-source-artifacts` (artifact extraction + classification) and `lisa:product-walkthrough` (when the PRD touches existing user-facing surfaces). All gate logic lives in `lisa:jira-validate-ticket`, which `lisa:confluence-to-jira` calls per ticket.
109
+
110
+ #### 3c. Branch on the verdict
111
+
112
+ **If `PASS`** (every planned ticket passed every applicable gate):
113
+
114
+ 1. Re-invoke `lisa:confluence-to-jira` with `dry_run: false` to actually write the tickets. This re-runs Phases 1-5 and runs the preservation gate (Phase 5.5).
115
+ 2. Capture the created ticket keys from the skill's output.
116
+ 3. Post a Confluence **footer comment** on the PRD via `mcp__atlassian__createConfluenceFooterComment` listing the created tickets (epic, stories, sub-tasks) with their JIRA URLs. Lead with: `"Ticketed by Claude. Created N JIRA issues — see below. Add the prd-shipped label after the work is delivered."`
117
+ 4. Transition labels: remove `prd-in-review`, add `prd-ticketed` via `updateConfluencePage`.
118
+ 5. **Run Phase 3e (coverage audit)** before considering this PRD done.
119
+
120
+ **If `FAIL`** (one or more planned tickets failed one or more gates):
121
+
122
+ The audience for these comments is the **product team**, not engineers. They are not familiar with JIRA gate IDs, validator vocabulary, or skill internals. Follow the rules below strictly — the goal is for a non-engineer product owner to read a comment, understand what is unclear, and know what to do next.
123
+
124
+ ##### 3c.1 Partition failures
125
+
126
+ 1. Drop every failure where `product_relevant = false`. Those are internal data-quality problems — the agent should fix its own spec rather than ask product to clarify a missing core field. Record the dropped failures under `Errors` in the cycle summary so engineers can see them; never surface them on the PRD.
127
+ 2. Group the remaining product-relevant failures by `prd_anchor` (the inline-comment anchor from `confluence-to-jira`'s dry-run report). Failures that share an anchor become one comment thread on that block. Failures with `prd_anchor: null` are batched into one footer comment, since they have no source section to attach to.
128
+
129
+ ##### 3c.2 Render each comment
130
+
131
+ For each anchored group, post via `mcp__atlassian__createConfluenceInlineComment` with:
132
+ - `page_id`: the PRD page ID
133
+ - `inline_text` (or whatever the MCP tool calls the selection-anchor parameter): the `prd_anchor` value
134
+ - `body`: the comment body, formatted using the template below
135
+
136
+ For the unanchored group, post a single footer comment via `mcp__atlassian__createConfluenceFooterComment` using the same template, prefixed with `Issues without a specific section anchor:` and one block per failure.
137
+
138
+ If `createConfluenceInlineComment` returns "anchor not found" (the page text changed between fetch and post), fall back to a footer comment for that group. Do not silently drop the failure.
139
+
140
+ ##### 3c.3 Comment template
141
+
142
+ Each comment body MUST contain these four parts, in this order, no exceptions:
143
+
144
+ ```text
145
+ [<Category badge>] <prd_section heading text>
146
+
147
+ **What's unclear:** <validator's `what` field, verbatim — already product-readable>
148
+
149
+ **Recommendation:** <validator's `recommendation` field, verbatim — must contain 1–3 concrete options, never a generic "please clarify">
150
+
151
+ **Action:** Update this section in the PRD, then replace the `prd-blocked` label with `prd-ready` and Claude will re-run intake.
152
+ ```
153
+
154
+ If multiple failures share an anchor, render each as its own `**What's unclear:** ... **Recommendation:** ...` block within the same comment, separated by horizontal lines (`---`). Keep the single `[Category badge]` heading at the top using the most-severe / most-blocking category from the group.
155
+
156
+ ##### 3c.4 Category badges
157
+
158
+ Use these exact badge labels — they are the validator's category values translated for product readers:
159
+
160
+ | Validator category | Badge label |
161
+ |---------------------|-------------|
162
+ | `product-clarity` | `[Product clarity]` |
163
+ | `acceptance-criteria` | `[Acceptance criteria]` |
164
+ | `design-ux` | `[Design / UX]` |
165
+ | `scope` | `[Scope]` |
166
+ | `dependency` | `[Dependency]` |
167
+ | `data` | `[Data]` |
168
+ | `technical` | `[Technical]` |
169
+
170
+ `structural` failures must never reach this step (filtered in 3c.1). If you see one here, treat it as an Error and surface internally.
171
+
172
+ ##### 3c.5 Forbidden in product comments
173
+
174
+ - Gate IDs (`S4`, `F2`, etc.). Never appear in a comment body.
175
+ - JIRA terminology that has no product meaning (e.g. "Gherkin", "epic parent", "issue link", "validation journey", "sub-task hierarchy"). Paraphrase before posting.
176
+ - Internal skill names (`lisa:jira-validate-ticket`, `confluence-to-jira`).
177
+ - Engineering shorthand (`AC`, `OOS`, `repo`, `env var`).
178
+ - "Clarify this" / "Please specify" without candidate resolutions. The validator is required to provide candidates; if `recommendation` is empty or vague, treat the failure as an Error and surface internally rather than posting a useless comment.
179
+
180
+ ##### 3c.6 Label transition
181
+
182
+ After all comments are posted (anchored groups + the optional footer summary), transition labels: remove `prd-in-review`, add `prd-blocked` via `updateConfluencePage`. Do NOT write any JIRA tickets.
183
+
184
+ #### 3d. Continue
185
+
186
+ Move to the next Ready PRD. One PRD failing does not affect others.
187
+
188
+ #### 3e. Coverage audit (mandatory after prd-ticketed)
189
+
190
+ Per-ticket gates prove each ticket is well-formed; they do NOT prove the *set* of created tickets covers the *whole* PRD. Silent drops happen — invoke the `lisa:prd-ticket-coverage` skill to catch them.
191
+
192
+ 1. Invoke `lisa:prd-ticket-coverage` with `<PRD URL> tickets=[<created ticket keys from 3c step 2>]`. The coverage skill auto-detects the PRD vendor from the URL.
193
+ 2. Read the verdict:
194
+
195
+ | Verdict | Action |
196
+ |---------|--------|
197
+ | `COMPLETE` | Done. Leave label as `prd-ticketed`. Move to next PRD. |
198
+ | `COMPLETE_WITH_SCOPE_CREEP` | Post an advisory footer comment naming the scope-creep tickets (so product can decide whether to close them as out-of-scope). Leave label as `prd-ticketed`. |
199
+ | `GAPS_FOUND` | The created ticket set is incomplete. (a) For each gap, post a comment using the same product-facing template as Phase 3c.3 — inline-anchored when `prd_anchor` is non-null, footer otherwise; category badge from the gap's `category` field; `What's unclear` and `Recommendation` from the audit report's `what` and `recommendation` fields. Apply the same forbidden-language rules from Phase 3c.5. (b) Post one footer summary comment listing the tickets that *were* successfully created (so product knows what to keep vs. what to extend). (c) Transition labels from `prd-ticketed` back to `prd-blocked` via `updateConfluencePage`. |
200
+ | `NO_TICKETS_FOUND` | Should not happen if step 2 succeeded. If it does, log it as an Error in the cycle summary and leave label as `prd-ticketed` with a comment flagging the audit failure for human review. |
201
+
202
+ 3. The created tickets remain in JIRA regardless of the verdict — they are valid in their own right. The audit only tells us whether *more* are needed.
203
+
204
+ ### Phase 4 — Summary report
205
+
206
+ After processing every Ready PRD, emit a summary:
207
+
208
+ ```text
209
+ ## confluence-prd-intake summary
210
+
211
+ Scope: <space-key | parent-page-title> (<URL>)
212
+ Cycle started: <ISO timestamp>
213
+ Cycle completed: <ISO timestamp>
214
+
215
+ PRDs processed: <n>
216
+ - prd-ticketed: <n>
217
+ - <PRD title> → <epic-key> + <story-count> stories + <subtask-count> sub-tasks (coverage: COMPLETE | COMPLETE_WITH_SCOPE_CREEP)
218
+ - prd-blocked: <n>
219
+ - <PRD title> → <gate-failure-count> gate failures (pre-write) OR <gap-count> coverage gaps (post-write)
220
+ - Errors (claim failed, etc): <n>
221
+ - <PRD title> — <reason>
222
+
223
+ Total JIRA tickets created: <n>
224
+ Coverage audit summary: <n> COMPLETE / <n> COMPLETE_WITH_SCOPE_CREEP / <n> GAPS_FOUND
225
+ ```
226
+
227
+ Print to the agent's output. Do not write this summary to Confluence or JIRA — it's an operational record for the human.
228
+
229
+ ## Idempotency & safety
230
+
231
+ - **Single-cycle scope**: this skill processes the `prd-ready` set as it exists at the start of Phase 2. New `prd-ready` PRDs added mid-cycle are picked up next run.
232
+ - **No writes outside the lifecycle**: this skill only ever writes to JIRA via `lisa:confluence-to-jira` (which delegates to `lisa:jira-write-ticket`), and only ever changes Confluence labels among `prd-in-review`, `prd-blocked`, `prd-ticketed`. It never edits PRD body content, never touches `prd-draft` or `prd-shipped`, never deletes pages.
233
+ - **Claim-first ordering**: the label flip to `prd-in-review` happens BEFORE validation runs, so a re-entrant call won't double-process.
234
+ - **Failure isolation**: an exception processing one PRD must not stop the cycle. Catch, record under "Errors" in the summary, continue to the next PRD. The PRD that errored is left labelled `prd-in-review` — the human investigates from there.
235
+ - **Single-label invariant**: after every transition, verify exactly one lifecycle label is present on the page. If two are present (rare race), surface as an Error and skip — do NOT auto-resolve, the human decides.
236
+
237
+ ## Configuration
238
+
239
+ Same env vars as `lisa:confluence-to-jira` — `JIRA_PROJECT`, `JIRA_SERVER`, `CONFLUENCE_HOST`, `E2E_BASE_URL`, `E2E_TEST_PHONE`, `E2E_TEST_OTP`, `E2E_TEST_ORG`, `E2E_GRAPHQL_URL`. If any required value is missing, surface the missing key(s) and exit this cycle — never invent values.
240
+
241
+ ## Rules
242
+
243
+ - Never write to JIRA outside of `lisa:confluence-to-jira` → `lisa:jira-write-ticket`. The validator's verdict gates progress; bypassing it produces broken tickets.
244
+ - Never add or remove a label this skill doesn't own (`prd-in-review`, `prd-blocked`, `prd-ticketed`). Product owns `prd-draft`, `prd-ready`, `prd-shipped`.
245
+ - Never edit the PRD's body. Communication with product happens only through Confluence comments. If `updateConfluencePage` requires a body in the payload, refetch and pass it back unchanged.
246
+ - Never post a single page-level dump of all gate failures. One inline comment per `prd_anchor` group (or one footer summary for unanchored failures only). Comments must be inline-anchored where possible, categorized, plain-language, and contain a concrete recommendation.
247
+ - Never include a gate ID, internal skill name, or engineering shorthand in a comment body.
248
+ - Never run more than one intake cycle concurrently against the same scope. This skill assumes serial execution.
249
+ - If `lisa:confluence-to-jira` returns errors, treat them as gate failures: comment + `prd-blocked`. Don't silently fail.
250
+
251
+ ## Adoption (one-time per project)
252
+
253
+ Before this skill can run against a project, the project must adopt the `prd-*` label convention:
254
+
255
+ 1. Apply `prd-ready` to PRDs that are ready for ticketing (replaces the Notion `Status = Ready` flip).
256
+ 2. Reserve `prd-in-review`, `prd-blocked`, `prd-ticketed` for this skill — humans should not set them manually except to recover from an error.
257
+ 3. (Optional but recommended) Add `prd-draft` for in-progress PRDs and `prd-shipped` for delivered work, so the full lifecycle is visible at a glance.
258
+
259
+ If the project hasn't adopted these labels, the first run exits with a label-convention error (not the idle empty-set message) — this distinguishes a setup issue from a genuinely empty queue so operators know to apply the convention rather than assuming the queue is drained. See Phase 2 for how the skill detects this case.
@@ -0,0 +1,318 @@
1
+ ---
2
+ name: confluence-to-jira
3
+ description: >
4
+ Break down a Confluence PRD page into JIRA epics, stories, and sub-tasks. Use this skill whenever the
5
+ user shares a Confluence PRD URL and wants it converted into JIRA tickets, or asks to "break down
6
+ this Confluence spec", "create tickets from a Confluence page", "turn this Confluence doc into JIRA",
7
+ or similar. This skill mirrors `lisa:notion-to-jira` for projects whose PRDs live in Confluence —
8
+ the workflow, gates, dry-run mode, and validation rules are identical; only the source-of-truth tool
9
+ surface differs (Confluence MCP instead of Notion MCP).
10
+ allowed-tools: ["Skill", "Bash", "mcp__atlassian__getConfluencePage", "mcp__atlassian__getConfluencePageDescendants", "mcp__atlassian__getConfluencePageFooterComments", "mcp__atlassian__getConfluencePageInlineComments", "mcp__atlassian__getConfluenceCommentChildren", "mcp__atlassian__searchConfluenceUsingCql", "mcp__atlassian__getAccessibleAtlassianResources", "mcp__atlassian__getJiraIssueRemoteIssueLinks"]
11
+ ---
12
+
13
+ # Confluence PRD to JIRA Breakdown
14
+
15
+ Convert a Confluence PRD into a structured JIRA ticket hierarchy: Epics > Stories > Sub-tasks.
16
+ Each sub-task is scoped to exactly one repo and includes an empirical verification plan.
17
+
18
+ This skill is the Confluence counterpart of `lisa:notion-to-jira`. The two skills share the same
19
+ phases, gates, dry-run contract, and per-ticket validation logic. Only the PRD-side fetch / comment
20
+ tools differ. When changing workflow logic, change BOTH skills together so the two source vendors
21
+ stay behaviorally identical.
22
+
23
+ ## Modes
24
+
25
+ This skill supports two modes, controlled by a `dry_run` flag in `$ARGUMENTS`:
26
+
27
+ - **`dry_run: false`** (default — full mode): run all phases, write tickets via `lisa:jira-write-ticket`, run the preservation gate, report.
28
+ - **`dry_run: true`** (planning + validation only — no writes): run Phases 1, 1.5, 1.6, 2, 3, 4 to plan the hierarchy and draft each ticket spec, then call `lisa:jira-validate-ticket` (with `--spec-only`) on every drafted ticket. Aggregate the per-ticket validator reports into a single dry-run report. **Skip Phase 5 (sub-task creation), Phase 5.5 (preservation gate), and Phase 6 (results report)** — none of those make sense without writes. Return the dry-run report so the caller (e.g. `lisa:confluence-prd-intake`) can decide whether to proceed.
29
+
30
+ Dry-run output format is identical to `lisa:notion-to-jira`'s. Reuse the same fields, including
31
+ `prd_anchor` and `prd_section`. The only difference: `prd_anchor` is the inline-comment anchor text
32
+ that `createConfluenceInlineComment` accepts (typically the full selected substring; truncate if it
33
+ exceeds the tool's max anchor length and emit `null` if no resolvable anchor exists).
34
+
35
+ ```text
36
+ ## confluence-to-jira dry-run: <PRD title>
37
+
38
+ ### Planned hierarchy
39
+ - Epic: <summary>
40
+ prd_section: "<heading text from the PRD that produced this epic>"
41
+ prd_anchor: "<inline-comment anchor text>" # null if no specific section
42
+ - Story 1.1: <summary>
43
+ prd_section: "<heading or user-story line>"
44
+ prd_anchor: "<anchor>"
45
+ - Sub-task [<repo>]: <summary>
46
+ prd_section: "<heading or AC bullet>"
47
+ prd_anchor: "<anchor>"
48
+ - ...
49
+ - Story 1.2: ...
50
+
51
+ ### Per-ticket validation
52
+ - <ticket-id>: PASS | FAIL — <count> failures
53
+ prd_section: "<heading text>"
54
+ prd_anchor: "<anchor>"
55
+ failures:
56
+ - gate: <gate-id>
57
+ category: <category from validator>
58
+ product_relevant: <true|false>
59
+ what: <plain-language description from validator>
60
+ recommendation: <1–3 candidate resolutions from validator>
61
+
62
+ ### Verdict: PASS | FAIL
63
+ ### Total failures: <n>
64
+ ```
65
+
66
+ The dry-run mode never writes to JIRA and never calls `mcp__atlassian__createJiraIssue`. It also never
67
+ modifies the source Confluence page, never adds/removes labels, and never posts comments — that is the
68
+ orchestrating skill's responsibility (`lisa:confluence-prd-intake`).
69
+
70
+ ## Hard Rule: All Writes Go Through `lisa:jira-write-ticket`
71
+
72
+ **Every JIRA ticket created by this skill — every epic, story, and sub-task — MUST be created by invoking the `lisa:jira-write-ticket` skill. Never call `mcp__atlassian__createJiraIssue`, `mcp__atlassian__editJiraIssue`, `mcp__atlassian__createIssueLink`, or any other Atlassian write tool directly from this skill or from any sub-agent it spawns.**
73
+
74
+ `lisa:jira-write-ticket` enforces gates this skill does not:
75
+ - 3-audience description (Context / Technical Approach / Acceptance Criteria)
76
+ - Gherkin acceptance criteria
77
+ - Epic parent validation
78
+ - Explicit issue-link discovery (`blocks` / `is blocked by` / `relates to` / `duplicates` / `clones`)
79
+ - Single-repo scope check on Bug / Task / Sub-task
80
+ - Sign-in account and target environment recorded in description
81
+ - Post-create verification
82
+
83
+ Bypassing `lisa:jira-write-ticket` produces thin tickets that the rest of the lifecycle (triage, ticket-verify, journey, evidence) treats as broken. The Atlassian read tools (`getJiraIssue`, `searchJiraIssuesUsingJql`, `getJiraIssueRemoteIssueLinks`, `getAccessibleAtlassianResources`, `getJiraProjectIssueTypesMetadata`, `getVisibleJiraProjects`, and the Confluence read endpoints listed in `allowed-tools` above) ARE allowed for context gathering and the Phase 5.5 preservation gate.
84
+
85
+ ## Input
86
+
87
+ A Confluence PRD page URL or page ID. The PRD is expected to have:
88
+ - A main page with context, problems, and child pages for each Epic
89
+ - Epic child pages with User Stories and functional/non-functional requirements
90
+ - Page comments (footer + inline) with engineering notes and product decisions
91
+
92
+ URL parsing — Confluence URLs come in two common shapes:
93
+
94
+ ```text
95
+ https://<host>/wiki/spaces/<SPACE>/pages/<PAGE-ID>/<slug>
96
+ https://<host>/wiki/spaces/<SPACE>/pages/<PAGE-ID>
97
+ ```
98
+
99
+ Extract `<PAGE-ID>` (the numeric segment after `/pages/`). If only a space URL is provided
100
+ (`/wiki/spaces/<SPACE>` with no `/pages/...`), stop and report — single-PRD mode requires a specific
101
+ page. The caller wanted `lisa:confluence-prd-intake` (batch mode).
102
+
103
+ ## Configuration
104
+
105
+ This skill reads project-specific configuration from environment variables. If these are not set,
106
+ ask the user for the values before proceeding.
107
+
108
+ | Variable | Purpose | Example |
109
+ |----------|---------|---------|
110
+ | `JIRA_PROJECT` | JIRA project key for ticket creation | `SE` |
111
+ | `JIRA_SERVER` | Atlassian instance URL (site host) | `mycompany.atlassian.net` |
112
+ | `CONFLUENCE_HOST` | Confluence host (often same as `JIRA_SERVER`) | `mycompany.atlassian.net` |
113
+ | `E2E_TEST_PHONE` | Test user phone number for verification plans | `0000000099` |
114
+ | `E2E_TEST_OTP` | Test user OTP code | `555555` |
115
+ | `E2E_TEST_ORG` | Test organization name | `Arsenal` |
116
+ | `E2E_BASE_URL` | Frontend base URL for Playwright tests | `https://dev.example.io/` |
117
+ | `E2E_GRAPHQL_URL` | GraphQL API URL for curl verification | `https://gql.dev.example.io/graphql` |
118
+
119
+ If env vars are not available, ask the user to provide them explicitly before proceeding.
120
+ Do not retrieve credentials from repository files or local agent settings.
121
+
122
+ ## Workflow
123
+
124
+ ### Phase 1: Fetch & Analyze the PRD
125
+
126
+ 1. **Resolve the Atlassian cloud ID** via `mcp__atlassian__getAccessibleAtlassianResources`. Confluence MCP calls require it.
127
+ 2. **Fetch the main PRD page** via `mcp__atlassian__getConfluencePage` with the page ID. Capture body, labels, and child page references.
128
+ 3. **Identify all Epic child pages** via `mcp__atlassian__getConfluencePageDescendants` (one level deep first; recurse if the PRD nests epics under a "Specs" parent).
129
+ 4. **Fetch all Epic pages** in parallel via `getConfluencePage`.
130
+ 5. **Fetch full comments** for the main page and every epic page in parallel:
131
+ - `mcp__atlassian__getConfluencePageFooterComments` — page-level threaded comments (equivalent to Notion's page-level discussions)
132
+ - `mcp__atlassian__getConfluencePageInlineComments` — block-anchored comments tied to specific text spans
133
+ - For any comment with replies, walk the tree via `mcp__atlassian__getConfluenceCommentChildren` until exhausted
134
+ 6. **Synthesize decisions and blockers** from the PRD content + all comments:
135
+ - Decisions already confirmed by the team (look for agreement in comment threads)
136
+ - Open questions that need product/engineering input
137
+ - Engineering comments (prefixed with "Engineering:" or wrench emoji) that identify technical constraints
138
+ - Cross-PRD dependencies (references to other features or shared infrastructure)
139
+
140
+ ### Phase 1.5: Extract Source Artifacts
141
+
142
+ PRDs typically reference external design, UX, and data artifacts (Figma files, Lovable prototypes, Loom walkthroughs, screenshots, example payloads, peer Confluence pages). These MUST be preserved onto the resulting tickets — otherwise developers picking up a ticket lose the source of truth. This is the failure mode this step exists to prevent.
143
+
144
+ 1. **Scan the PRD main page, all Epic child pages, and every fetched comment thread** for:
145
+ - URLs to design/prototype tools (Figma, FigJam, Figma Make, Lovable, Framer, Penpot)
146
+ - URLs to recording/walkthrough tools (Loom, YouTube, Vimeo, Descript)
147
+ - URLs to collaborative docs (Google Docs/Slides/Sheets, peer Confluence pages, Notion peer pages)
148
+ - URLs to code sandboxes (CodeSandbox, StackBlitz, Replit, GitHub permalinks/gists)
149
+ - URLs to diagramming tools (Miro, Mural, Excalidraw, Mermaid Live, draw.io, Lucid)
150
+ - URLs to data/observability tools (Grafana, Datadog, Sentry, Metabase, Looker)
151
+ - Embedded images and file attachments on the page itself
152
+ - Fenced code blocks with example data (JSON, SQL, GraphQL, cURL request/response)
153
+
154
+ 2. **Classify each artifact and apply taxonomy rules** by invoking the `lisa:jira-source-artifacts` skill. That skill is the single source of truth for: domains (`ui-design` / `ux-flow` / `data` / `ops` / `reference`), per-tool classification rules (Figma `/proto/` vs design, Lovable as `ux-flow`, Loom, screenshots), and coverage smells. Do not restate the rules here — invoke the skill so any drift in the rules propagates uniformly.
155
+
156
+ 3. **Build an `artifacts` map** keyed by domain. Each entry: `{ url, title, domain, source_page, source_page_url, classification_reason }`. The `classification_reason` makes disambiguation auditable. The `source_page` lets you trace each reference back to where it appeared in the PRD.
157
+
158
+ 4. **Surface coverage smells** as defined in `lisa:jira-source-artifacts` §5. Record any detected smells on the epic.
159
+
160
+ ### Phase 1.6: Source Precedence & Conflict Resolution
161
+
162
+ Source precedence rules and cross-axis conflict handling are defined in `lisa:jira-source-artifacts` §3 and §4. Apply them during ticket synthesis: every conflict between artifacts must be recorded under `## Open Questions` on the affected ticket, never silently reconciled.
163
+
164
+ The existing-component reuse expectation is defined in `lisa:jira-source-artifacts` §7. Encode it on every UI-touching story.
165
+
166
+ ### Phase 2: Codebase + Live Product Research
167
+
168
+ Identical to `lisa:notion-to-jira` Phase 2. Two complementary inputs ground PRD analysis: the **code** (what's there to reuse / extend) and the **live product** (what users see today). Skipping either produces tickets that misjudge the change.
169
+
170
+ **2a. Codebase research.** If the session doesn't already have codebase context, explore the repos to understand what exists. Use Explore agents for repos not yet examined.
171
+
172
+ **2b. Live product walkthrough.** If the PRD touches existing user-facing surfaces, invoke the `lisa:product-walkthrough` skill against `E2E_BASE_URL` using the test user from config.
173
+
174
+ Skip 2b only when the work is purely backend with no user-visible surface, or affects a screen that does not yet exist in dev/prod.
175
+
176
+ Walkthrough findings are attached to the originating Confluence PRD as a **footer comment** (Confluence has no general "page-level discussion attached to a heading" — footer comments are the page-level equivalent), via `mcp__atlassian__createConfluenceFooterComment`. Title the comment "Current product walkthrough — `<route>`". Inherited onto the resulting epic / stories under a `## Current Product` subsection.
177
+
178
+ ### Phase 3: Create Epics
179
+
180
+ > **Mode guard**: In `dry_run: true` mode, do not invoke `lisa:jira-write-ticket` in this phase. Instead, draft the epic spec (summary, description_body, artifacts) and validate it with `lisa:jira-validate-ticket --spec-only`. Record the drafted spec (including a placeholder epic key like `DRY-RUN-EPIC-1`) for Phase 4 to use as parent references. In `dry_run: false` mode (default), proceed as described below.
181
+
182
+ For each PRD epic, **invoke the `lisa:jira-write-ticket` skill** (do not call `createJiraIssue` directly). Pass it everything it needs to enforce its quality gates:
183
+
184
+ - `project_key`: from `JIRA_PROJECT` config
185
+ - `issue_type`: `Epic`
186
+ - `summary`: epic title from the PRD
187
+ - `description_body`: a draft of the 3-audience description containing:
188
+ - **Context / Business Value**: epic summary from the PRD, originating Confluence URL, business outcome
189
+ - **Technical Approach**: cross-cutting integration points and constraints surfaced in Phase 2 codebase research
190
+ - List of user stories the epic contains
191
+ - Key decisions from comments (with attribution)
192
+ - Blockers and open questions
193
+ - Dependencies on other epics or PRDs
194
+ - A **Source Artifacts** section listing every artifact extracted in Phase 1.5 (grouped by domain)
195
+ - `artifacts`: the full Phase 1.5 artifact list — every artifact, regardless of domain. The epic is the canonical hub. No filtering at the epic level.
196
+ - `priority`, `labels`, `components`, `fix_version`: as appropriate
197
+
198
+ Capture the returned epic key — Phase 4 needs it as the parent for stories.
199
+
200
+ ### Phase 4: Create Stories
201
+
202
+ > **Mode guard**: In `dry_run: true` mode, do not invoke `lisa:jira-write-ticket` in this phase. Instead, draft each story spec and validate it with `lisa:jira-validate-ticket --spec-only`. Use placeholder keys (e.g. `DRY-RUN-STORY-1.1`) for any downstream references. In `dry_run: false` mode (default), proceed as described below.
203
+
204
+ For each Epic, plan two kinds of stories:
205
+ - **One "X.0 Setup" story** for data model and infrastructure prerequisites
206
+ - **One story per user story** from the PRD (numbered to match the PRD)
207
+
208
+ **Story naming convention**: Prefix the summary with a short code derived from the PRD title (e.g., `[CU-1.1]` for "Contract Upload").
209
+
210
+ For each story, **invoke `lisa:jira-write-ticket`** with:
211
+
212
+ - `project_key`: from `JIRA_PROJECT` config
213
+ - `issue_type`: `Story`
214
+ - `epic_parent`: the Epic key captured in Phase 3 (mandatory)
215
+ - `summary`: prefixed per the naming convention above
216
+ - `description_body`: 3-audience description as in `lisa:notion-to-jira` Phase 4
217
+ - `artifacts`: the Phase 1.5 artifacts filtered by domain per the inheritance table below
218
+
219
+ | Story type | Inherits domains |
220
+ |------------|------------------|
221
+ | Frontend / UI | `ui-design`, `ux-flow`, `reference` |
222
+ | Backend / API / data model | `data`, `reference` |
223
+ | Infrastructure | `ops`, `reference` |
224
+ | Mixed / setup ("X.0") | All domains |
225
+
226
+ Capture each returned story key — Phase 5 needs it as the parent for sub-tasks.
227
+
228
+ ### Phase 5: Create Sub-tasks
229
+
230
+ Delegate sub-task creation to **parallel agents** (one per epic or batch of stories) for efficiency. **Every spawned agent must invoke `lisa:jira-write-ticket` for each sub-task — no agent may call `createJiraIssue` directly.**
231
+
232
+ Each sub-task MUST:
233
+ 1. **Be scoped to exactly ONE repo** — indicated in brackets in the summary: `[repo-name]`
234
+ 2. **Include an Empirical Verification Plan** — real user-like verification, NOT unit tests, linting, or typechecking
235
+
236
+ Sub-tasks inherit their parent story's artifacts by reference (the parent link). Do not pass the same artifact list to every sub-task.
237
+
238
+ ### Phase 5.5: Artifact Preservation Gate (mandatory)
239
+
240
+ Run the preservation gate defined in `lisa:jira-source-artifacts` §8 against the artifacts extracted in Phase 1.5 and the tickets just created. Do NOT restate or modify the gate logic here — invoke the rules from `lisa:jira-source-artifacts`.
241
+
242
+ To run the gate, this skill must:
243
+
244
+ 1. Pull the remote links of every epic and story created in this run via `mcp__atlassian__getJiraIssueRemoteIssueLinks`.
245
+ 2. Apply the §8 preservation matrix and verdict rules.
246
+ 3. If the gate fails: list each dropped/misrouted artifact and either re-attach via `lisa:jira-write-ticket` (UPDATE mode) or stop and ask the human.
247
+ 4. If the gate passes: print the matrix compactly and proceed to Phase 6.
248
+
249
+ This gate is not optional.
250
+
251
+ ### Phase 6: Report Results
252
+
253
+ After all tickets are created, present a summary table to the user:
254
+ - All Epics with keys and URLs
255
+ - All Stories grouped by Epic
256
+ - All Sub-tasks grouped by Story with repo tags
257
+ - Repo distribution
258
+ - **Artifact Preservation Matrix**
259
+ - Blockers list with recommendations and alternatives
260
+ - Cross-PRD dependencies
261
+
262
+ ## Handling Ambiguities and Blockers
263
+
264
+ When you encounter something the PRD + comments + codebase can't resolve:
265
+
266
+ 1. **Don't guess** — mark the ticket with a BLOCKER section
267
+ 2. **Include your recommendation** with rationale
268
+ 3. **List 2-3 alternatives** so the user/product can choose
269
+ 4. **State what's needed to unblock**
270
+
271
+ ## Agent Prompt Template for Sub-task Creation
272
+
273
+ When delegating to agents, provide this context. **The "MUST invoke jira-write-ticket" instruction is load-bearing — do not edit it out when adapting this template.**
274
+
275
+ ```text
276
+ Create JIRA sub-tasks in the [PROJECT] project at [CLOUD_ID].
277
+
278
+ CRITICAL: For each sub-task, invoke the `lisa:jira-write-ticket` skill via the Skill tool.
279
+ Do NOT call `mcp__atlassian__createJiraIssue` directly. The `lisa:jira-write-ticket` skill
280
+ enforces required quality gates (Gherkin acceptance criteria, 3-audience description,
281
+ single-repo scope, sign-in/environment fields, post-create verification). Bypassing it
282
+ produces broken tickets that downstream skills (triage, journey, evidence) cannot use.
283
+
284
+ For each sub-task, invoke `lisa:jira-write-ticket` with:
285
+ - issue_type: "Sub-task"
286
+ - parent: the parent story key
287
+ - project_key: [PROJECT]
288
+ - summary: prefixed with the repo in brackets, e.g. "[backend-api] Add audit log table"
289
+ - description_body: a 3-section draft (Context / Technical Approach / Acceptance Criteria)
290
+ - gherkin_acceptance_criteria: derived from the story's functional requirements
291
+ - sign_in_account: [test user credentials from config — name + role + how to obtain]
292
+ - target_environment: "dev"
293
+ - empirical_verification_plan: real user-like verification (curl + auth token,
294
+ Playwright browser flow, CLI check after deploy) using the test credentials.
295
+ NOT unit tests, linting, or typechecking.
296
+
297
+ Each sub-task must:
298
+ 1. Be scoped to ONE repo only — repo named in brackets in the summary
299
+ 2. Include the Empirical Verification Plan in the description
300
+ 3. Be created via `lisa:jira-write-ticket`, not via direct MCP calls
301
+
302
+ If `lisa:jira-write-ticket` rejects a sub-task, fix the input and re-invoke. Do NOT fall back
303
+ to a direct `createJiraIssue` call to bypass the gate.
304
+
305
+ Test user info: [credentials from config]
306
+
307
+ [Then list all sub-tasks grouped by parent story with details]
308
+ ```
309
+
310
+ ## Cross-PRD Shared Infrastructure
311
+
312
+ Track tickets that are shared across PRDs to avoid duplication. When a sub-task overlaps with an existing ticket, reference it instead of creating a duplicate. Search JIRA for existing tickets in the project before creating new ones for shared infrastructure.
313
+
314
+ ## Confluence-specific notes
315
+
316
+ - **Page bodies** come back from `getConfluencePage` as either Atlassian Document Format (ADF / storage format) or rendered HTML depending on flags. Treat headings (`<h1>`–`<h3>`) as section markers for `prd_section`. For ADF, walk the document tree.
317
+ - **Inline comment anchors**: `prd_anchor` is the inline-comment selection text (the exact substring `createConfluenceInlineComment` will match). If the section is too long for an inline anchor (Confluence has a practical upper bound on selection length), pick the first sentence of the section. If the section has no stable anchor (e.g., a generated table cell), set `prd_anchor: null` and the caller will fall back to a footer comment.
318
+ - **Comment threading**: Confluence has separate footer and inline comment streams. When fetching comments in Phase 1, merge both into the analysis — they are equally authoritative for capturing decisions and engineering notes.
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: intake
3
- description: "Vendor-agnostic batch scanner for Status=Ready queues. Given a Notion PRD database URL → finds Ready PRDs and runs lisa:plan per item. Given a JIRA project key or JQL filter → finds Ready tickets and runs lisa:implement per item. Designed as the cron target for /schedule — one cycle per invocation, processes everything currently Ready, exits cleanly on empty. Symmetric counterpart to the single-item lisa:plan and lisa:implement skills."
4
- allowed-tools: ["Skill", "Bash", "mcp__claude_ai_Notion__notion-fetch", "mcp__claude_ai_Notion__notion-search", "mcp__atlassian__getAccessibleAtlassianResources", "mcp__atlassian__searchJiraIssuesUsingJql", "mcp__atlassian__getJiraIssue"]
3
+ description: "Vendor-agnostic batch scanner for Ready queues. Given a Notion PRD database URL → finds Ready PRDs and runs lisa:plan per item. Given a Confluence space or parent page URL → finds prd-ready PRDs and runs lisa:plan per item. Given a JIRA project key or JQL filter → finds Ready tickets and runs lisa:implement per item. Designed as the cron target for /schedule — one cycle per invocation, processes everything currently Ready, exits cleanly on empty. Symmetric counterpart to the single-item lisa:plan and lisa:implement skills."
4
+ allowed-tools: ["Skill", "Bash", "mcp__claude_ai_Notion__notion-fetch", "mcp__claude_ai_Notion__notion-search", "mcp__atlassian__getConfluencePage", "mcp__atlassian__getConfluenceSpaces", "mcp__atlassian__searchConfluenceUsingCql", "mcp__atlassian__getAccessibleAtlassianResources", "mcp__atlassian__searchJiraIssuesUsingJql", "mcp__atlassian__getJiraIssue"]
5
5
  ---
6
6
 
7
7
  # Intake: $ARGUMENTS
@@ -40,11 +40,21 @@ Detect the queue type from `$ARGUMENTS` and route:
40
40
  | If `$ARGUMENTS` is... | Queue type | Per-item dispatch |
41
41
  |------------------------|------------|---------------------|
42
42
  | A Notion **database** URL or database ID | PRD queue (Notion) | Invoke `lisa:notion-prd-intake` (which scans the DB for Status=Ready, claims each, runs `lisa:plan` per PRD via the dry-run validate → branch → write pipeline) |
43
+ | A Confluence **space** URL or space key (e.g. `https://acme.atlassian.net/wiki/spaces/PRD` or `PRD`) | PRD queue (Confluence) | Invoke `lisa:confluence-prd-intake` (which CQL-queries the space for `label = "prd-ready"`, claims each by relabeling to `prd-in-review`, runs the dry-run validate → branch → write pipeline) |
44
+ | A Confluence **parent page** URL or page ID (the page whose descendants are PRDs) | PRD queue (Confluence, narrowed) | Invoke `lisa:confluence-prd-intake` with the parent ID (CQL: `ancestor = <id> AND label = "prd-ready"`) |
43
45
  | A JIRA project key (e.g. `SE`) | Work queue (JIRA) | Invoke `lisa:jira-build-intake` (which scans the project for Status=Ready, claims each via In Progress, runs `lisa:implement` per ticket, transitions to On Dev on success) |
44
46
  | A full JQL filter (e.g. `project = SE AND component = "frontend"`) | Work queue (JIRA, narrowed) | Invoke `lisa:jira-build-intake` with the JQL |
45
47
  | A Linear / GitHub Issues queue | Not yet implemented | Stop and report — no `linear-tracker` or `github-tracker` adapter has been built. Don't fall back. |
46
48
 
47
- The single-item skills (`lisa:plan`, `lisa:implement`) and the per-vendor batch skills (`lisa:notion-prd-intake`, `lisa:jira-build-intake`) are internal — Intake is the public entry point. Developers schedule `/lisa:intake <queue>`; the rest is composition.
49
+ Disambiguation rules:
50
+
51
+ - A `notion.so` / `notion.site` URL → Notion queue.
52
+ - An Atlassian Confluence URL containing `/wiki/spaces/<KEY>` with no `/pages/...` segment → Confluence space queue.
53
+ - An Atlassian Confluence URL containing `/wiki/spaces/<KEY>/pages/<ID>/...` → Confluence parent-page queue (the page is the parent whose descendants are PRDs). If the user actually meant "this single page is a PRD, plan it", route to `lisa:plan` instead — this skill is batch-only.
54
+ - A bare alphanumeric token that matches the configured `JIRA_PROJECT` regex (uppercase letters / digits / hyphen, ≤10 chars) is treated as a JIRA project key by default. A token that does not match the regex is treated as a Confluence space key. The only time to stop and ask is when the token matches the JIRA_PROJECT regex AND is also a confirmed reachable Confluence space key (verified via Atlassian API) — in that specific overlap the user must disambiguate which queue to scan.
55
+ - A string starting with `project = ` or containing JQL operators (`AND`, `OR`, `=`, `!=`, `~`, etc.) → JQL filter.
56
+
57
+ The single-item skills (`lisa:plan`, `lisa:implement`) and the per-vendor batch skills (`lisa:notion-prd-intake`, `lisa:confluence-prd-intake`, `lisa:jira-build-intake`) are internal — Intake is the public entry point. Developers schedule `/lisa:intake <queue>`; the rest is composition.
48
58
 
49
59
  ## Cycle behavior
50
60
 
@@ -52,7 +62,8 @@ The single-item skills (`lisa:plan`, `lisa:implement`) and the per-vendor batch
52
62
  2. **Pre-flight check** — for JIRA, confirm `In Progress` and `On Dev` are reachable transitions before doing any per-ticket work. Stop with a clear error if the workflow is misconfigured.
53
63
  3. **Find Ready items** — query the queue. Empty → exit cleanly with `"No items with Status=Ready. Nothing to do."` This is the common idle case for a scheduled run.
54
64
  4. **Process each Ready item serially** (claim-first ordering for idempotency):
55
- - Notion PRDs → `lisa:notion-prd-intake` handles per-item: claim, dry-run validate, branch to Blocked or Ticketed, coverage audit
65
+ - Notion PRDs → `lisa:notion-prd-intake` handles per-item: claim (Status=In Review), dry-run validate, branch to Blocked or Ticketed, coverage audit
66
+ - Confluence PRDs → `lisa:confluence-prd-intake` handles per-item: claim (relabel to `prd-in-review`), dry-run validate, branch to `prd-blocked` or `prd-ticketed`, coverage audit
56
67
  - JIRA tickets → `lisa:jira-build-intake` handles per-item: claim, dispatch to `lisa:jira-agent`, transition to On Dev on success
57
68
  5. **Failure isolation** — one item failing does not stop the cycle; record under "Errors" and continue.
58
69
  6. **Summary report** — per-item outcomes, total processed, total errors.
@@ -61,6 +72,7 @@ The single-item skills (`lisa:plan`, `lisa:implement`) and the per-vendor batch
61
72
 
62
73
  ```text
63
74
  /schedule "every 30 minutes" /lisa:intake https://www.notion.so/<workspace>/<database-id>
75
+ /schedule "every 30 minutes" /lisa:intake https://acme.atlassian.net/wiki/spaces/PRD
64
76
  /schedule "every 30 minutes" /lisa:intake SE
65
77
  /schedule "every hour" /lisa:intake "project = SE AND component = 'frontend'"
66
78
  ```