@codyswann/lisa 2.21.1 → 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.
- package/package.json +3 -2
- package/plugins/lisa/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa/agents/confluence-prd-intake.md +11 -9
- package/plugins/lisa/agents/github-agent.md +18 -10
- package/plugins/lisa/agents/github-build-intake.md +10 -8
- package/plugins/lisa/agents/github-prd-intake.md +11 -9
- package/plugins/lisa/agents/jira-agent.md +12 -8
- package/plugins/lisa/agents/jira-build-intake.md +9 -7
- package/plugins/lisa/agents/linear-agent.md +15 -9
- package/plugins/lisa/agents/linear-build-intake.md +13 -11
- package/plugins/lisa/agents/linear-prd-intake.md +11 -9
- package/plugins/lisa/agents/notion-prd-intake.md +11 -9
- package/plugins/lisa/commands/setup/atlassian.md +7 -0
- package/plugins/lisa/commands/setup/confluence.md +7 -0
- package/plugins/lisa/commands/setup/jira.md +7 -0
- package/plugins/lisa/commands/setup/notion.md +7 -0
- package/plugins/lisa/rules/base-rules.md +1 -1
- package/plugins/lisa/rules/config-resolution.md +242 -24
- package/plugins/lisa/rules/repo-scope-split.md +41 -0
- package/plugins/lisa/rules/verification.md +13 -0
- package/plugins/lisa/skills/atlassian-access/SKILL.md +260 -0
- package/plugins/lisa/skills/confluence-prd-intake/SKILL.md +167 -82
- package/plugins/lisa/skills/confluence-to-tracker/SKILL.md +39 -26
- package/plugins/lisa/skills/github-add-journey/SKILL.md +1 -0
- package/plugins/lisa/skills/github-build-intake/SKILL.md +104 -40
- package/plugins/lisa/skills/github-evidence/SKILL.md +22 -5
- package/plugins/lisa/skills/github-prd-intake/SKILL.md +87 -51
- package/plugins/lisa/skills/github-to-tracker/SKILL.md +2 -2
- package/plugins/lisa/skills/github-validate-issue/SKILL.md +11 -1
- package/plugins/lisa/skills/jira-add-journey/SKILL.md +1 -0
- package/plugins/lisa/skills/jira-build-intake/SKILL.md +110 -45
- package/plugins/lisa/skills/jira-create/SKILL.md +5 -3
- package/plugins/lisa/skills/jira-evidence/SKILL.md +19 -2
- package/plugins/lisa/skills/jira-journey/SKILL.md +3 -1
- package/plugins/lisa/skills/jira-read-ticket/SKILL.md +10 -8
- package/plugins/lisa/skills/jira-sync/SKILL.md +11 -5
- package/plugins/lisa/skills/jira-validate-ticket/SKILL.md +22 -10
- package/plugins/lisa/skills/jira-verify/SKILL.md +5 -3
- package/plugins/lisa/skills/jira-write-ticket/SKILL.md +16 -14
- package/plugins/lisa/skills/linear-add-journey/SKILL.md +1 -0
- package/plugins/lisa/skills/linear-build-intake/SKILL.md +90 -32
- package/plugins/lisa/skills/linear-evidence/SKILL.md +22 -5
- package/plugins/lisa/skills/linear-prd-intake/SKILL.md +92 -57
- package/plugins/lisa/skills/linear-validate-issue/SKILL.md +10 -0
- package/plugins/lisa/skills/notion-access/SKILL.md +193 -0
- package/plugins/lisa/skills/notion-prd-intake/SKILL.md +105 -46
- package/plugins/lisa/skills/notion-to-tracker/SKILL.md +7 -5
- package/plugins/lisa/skills/setup-atlassian/SKILL.md +316 -0
- package/plugins/lisa/skills/setup-confluence/SKILL.md +245 -0
- package/plugins/lisa/skills/setup-jira/SKILL.md +198 -0
- package/plugins/lisa/skills/setup-notion/SKILL.md +283 -0
- package/plugins/lisa/skills/task-decomposition/SKILL.md +2 -0
- package/plugins/lisa/skills/ticket-triage/SKILL.md +4 -1
- package/plugins/lisa/skills/tracker-evidence/SKILL.md +1 -0
- package/plugins/lisa/skills/verification-lifecycle/SKILL.md +2 -0
- package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
- 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-nestjs/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.codex-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-typescript/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
- package/plugins/src/base/agents/confluence-prd-intake.md +11 -9
- package/plugins/src/base/agents/github-agent.md +18 -10
- package/plugins/src/base/agents/github-build-intake.md +10 -8
- package/plugins/src/base/agents/github-prd-intake.md +11 -9
- package/plugins/src/base/agents/jira-agent.md +12 -8
- package/plugins/src/base/agents/jira-build-intake.md +9 -7
- package/plugins/src/base/agents/linear-agent.md +15 -9
- package/plugins/src/base/agents/linear-build-intake.md +13 -11
- package/plugins/src/base/agents/linear-prd-intake.md +11 -9
- package/plugins/src/base/agents/notion-prd-intake.md +11 -9
- package/plugins/src/base/commands/setup/atlassian.md +7 -0
- package/plugins/src/base/commands/setup/confluence.md +7 -0
- package/plugins/src/base/commands/setup/jira.md +7 -0
- package/plugins/src/base/commands/setup/notion.md +7 -0
- package/plugins/src/base/rules/base-rules.md +1 -1
- package/plugins/src/base/rules/config-resolution.md +242 -24
- package/plugins/src/base/rules/repo-scope-split.md +41 -0
- package/plugins/src/base/rules/verification.md +13 -0
- package/plugins/src/base/skills/atlassian-access/SKILL.md +260 -0
- package/plugins/src/base/skills/confluence-prd-intake/SKILL.md +167 -82
- package/plugins/src/base/skills/confluence-to-tracker/SKILL.md +39 -26
- package/plugins/src/base/skills/github-add-journey/SKILL.md +1 -0
- package/plugins/src/base/skills/github-build-intake/SKILL.md +104 -40
- package/plugins/src/base/skills/github-evidence/SKILL.md +22 -5
- package/plugins/src/base/skills/github-prd-intake/SKILL.md +87 -51
- package/plugins/src/base/skills/github-to-tracker/SKILL.md +2 -2
- package/plugins/src/base/skills/github-validate-issue/SKILL.md +11 -1
- package/plugins/src/base/skills/jira-add-journey/SKILL.md +1 -0
- package/plugins/src/base/skills/jira-build-intake/SKILL.md +110 -45
- package/plugins/src/base/skills/jira-create/SKILL.md +5 -3
- package/plugins/src/base/skills/jira-evidence/SKILL.md +19 -2
- package/plugins/src/base/skills/jira-journey/SKILL.md +3 -1
- package/plugins/src/base/skills/jira-read-ticket/SKILL.md +10 -8
- package/plugins/src/base/skills/jira-sync/SKILL.md +11 -5
- package/plugins/src/base/skills/jira-validate-ticket/SKILL.md +22 -10
- package/plugins/src/base/skills/jira-verify/SKILL.md +5 -3
- package/plugins/src/base/skills/jira-write-ticket/SKILL.md +16 -14
- package/plugins/src/base/skills/linear-add-journey/SKILL.md +1 -0
- package/plugins/src/base/skills/linear-build-intake/SKILL.md +90 -32
- package/plugins/src/base/skills/linear-evidence/SKILL.md +22 -5
- package/plugins/src/base/skills/linear-prd-intake/SKILL.md +92 -57
- package/plugins/src/base/skills/linear-validate-issue/SKILL.md +10 -0
- package/plugins/src/base/skills/notion-access/SKILL.md +193 -0
- package/plugins/src/base/skills/notion-prd-intake/SKILL.md +105 -46
- package/plugins/src/base/skills/notion-to-tracker/SKILL.md +7 -5
- package/plugins/src/base/skills/setup-atlassian/SKILL.md +316 -0
- package/plugins/src/base/skills/setup-confluence/SKILL.md +245 -0
- package/plugins/src/base/skills/setup-jira/SKILL.md +198 -0
- package/plugins/src/base/skills/setup-notion/SKILL.md +283 -0
- package/plugins/src/base/skills/task-decomposition/SKILL.md +2 -0
- package/plugins/src/base/skills/ticket-triage/SKILL.md +4 -1
- package/plugins/src/base/skills/tracker-evidence/SKILL.md +1 -0
- package/plugins/src/base/skills/verification-lifecycle/SKILL.md +2 -0
- package/scripts/check-plugins-sync.sh +45 -0
package/package.json
CHANGED
|
@@ -28,7 +28,8 @@
|
|
|
28
28
|
"setup:deploy-key": "bash scripts/setup-deploy-key.sh",
|
|
29
29
|
"lisa:update:local": "bash scripts/lisa-update-local.sh",
|
|
30
30
|
"lisa:commit-and-pr:local": "bash scripts/lisa-commit-and-pr-local.sh",
|
|
31
|
-
"prepublishOnly": "$npm_execpath run build"
|
|
31
|
+
"prepublishOnly": "$npm_execpath run build",
|
|
32
|
+
"check:plugins": "bash scripts/check-plugins-sync.sh"
|
|
32
33
|
},
|
|
33
34
|
"engines": {
|
|
34
35
|
"npm": "please-use-bun",
|
|
@@ -81,7 +82,7 @@
|
|
|
81
82
|
"lodash": ">=4.18.1"
|
|
82
83
|
},
|
|
83
84
|
"name": "@codyswann/lisa",
|
|
84
|
-
"version": "2.
|
|
85
|
+
"version": "2.23.0",
|
|
85
86
|
"description": "Claude Code governance framework that applies guardrails, guidance, and automated enforcement to projects",
|
|
86
87
|
"main": "dist/index.js",
|
|
87
88
|
"exports": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: confluence-prd-intake
|
|
3
|
-
description: PRD intake agent for Confluence-hosted PRDs. Runs one intake cycle against a Confluence space or parent page — claims `
|
|
3
|
+
description: PRD intake agent for Confluence-hosted PRDs. Runs one intake cycle against a Confluence space or parent page — claims PRDs carrying the configured `ready` label (relabels to the configured `in_review` label), validates each through the dry-run pipeline, and routes to the configured `blocked` label (with clarifying comments) or `ticketed` label (with destination tickets created). Confluence counterpart of `notion-prd-intake`. Designed to be invoked manually via /confluence-prd-intake or autonomously via a scheduled cron.
|
|
4
4
|
skills:
|
|
5
5
|
- confluence-prd-intake
|
|
6
6
|
- confluence-to-tracker
|
|
@@ -17,9 +17,11 @@ You are a PRD intake agent. Your single job is to run one intake cycle against t
|
|
|
17
17
|
|
|
18
18
|
This agent is the Confluence counterpart of `notion-prd-intake`. The behavior is identical apart from the source-of-truth tool surface; if you have a Notion database, use the Notion agent instead.
|
|
19
19
|
|
|
20
|
+
Label role names (`ready`, `in_review`, `blocked`, `ticketed`, `shipped`) are resolved from `.lisa.config.json` `confluence.labels.*` by the `confluence-prd-intake` skill. The defaults match the legacy hardcoded names (`prd-ready`, `prd-in-review`, `prd-blocked`, `prd-ticketed`, `prd-shipped`).
|
|
21
|
+
|
|
20
22
|
## Confirmation policy
|
|
21
23
|
|
|
22
|
-
Once you have a space or parent-page URL, RUN. Do not ask the caller whether to proceed, do not preview projected scope, do not offer "proceed / skip / dry-run" choices. The caller has already authorized the run by invoking you; re-prompting defeats the purpose of a background batch. `
|
|
24
|
+
Once you have a space or parent-page URL, RUN. Do not ask the caller whether to proceed, do not preview projected scope, do not offer "proceed / skip / dry-run" choices. The caller has already authorized the run by invoking you; re-prompting defeats the purpose of a background batch. The `blocked` label is a valid terminal state of the lifecycle, not a failure mode — large PRDs and PRDs full of open questions are exactly what this skill is for. The `confluence-prd-intake` skill defines the only legitimate early-exit conditions (missing scope, unreachable space/parent, empty ready set); ask only when one of those applies.
|
|
23
25
|
|
|
24
26
|
## Workflow
|
|
25
27
|
|
|
@@ -33,30 +35,30 @@ If no scope is provided, stop and ask. Never run intake against a default or gue
|
|
|
33
35
|
|
|
34
36
|
Invoke the `confluence-prd-intake` skill with the scope as `$ARGUMENTS`. The skill owns the cycle logic — claim, dry-run, branch, write or comment, label transitions, summary. Do not duplicate that logic here.
|
|
35
37
|
|
|
36
|
-
Treat the skill's output as the source of truth.
|
|
38
|
+
Treat the skill's output as the source of truth (e.g. `ticketed: 3 / blocked: 1 / errors: 0`).
|
|
37
39
|
|
|
38
40
|
### 3. Surface the summary
|
|
39
41
|
|
|
40
42
|
Pass the skill's summary block through to the caller verbatim — do not paraphrase or condense. The caller (often a human running `/confluence-prd-intake` ad-hoc, or a scheduled cron) needs the structured record:
|
|
41
43
|
|
|
42
44
|
- Total processed
|
|
43
|
-
- Per-PRD outcomes (
|
|
44
|
-
-
|
|
45
|
+
- Per-PRD outcomes (ticketed → which tickets created; blocked → how many gate failures; errors → reason)
|
|
46
|
+
- Destination ticket count
|
|
45
47
|
|
|
46
48
|
If the cycle errored before processing any PRDs (e.g. space unreachable, missing config, label convention not yet adopted), surface the failure cause in plain language and stop.
|
|
47
49
|
|
|
48
50
|
### 4. Suggest next actions when warranted
|
|
49
51
|
|
|
50
|
-
After a successful cycle, if any PRDs ended in `
|
|
52
|
+
After a successful cycle, if any PRDs ended in the `blocked` label, mention to the caller that those PRDs need product attention before they can be re-ticketed. Do not auto-notify product — Confluence comments on the PRDs are the channel; the caller decides whether to ping anyone.
|
|
51
53
|
|
|
52
|
-
When reporting `
|
|
54
|
+
When reporting `blocked` outcomes, distinguish the cause: **pre-write gate failure** (per-ticket validator caught a problem before any tickets were created) vs **post-write coverage gap** (tickets were created and remain in the destination tracker, but the PRD has uncovered requirements that the next intake cycle will address). Both result in the `blocked` label, but the implication for product is different — coverage gaps mean some tickets are already real and product should not re-author the PRD from scratch.
|
|
53
55
|
|
|
54
|
-
If all PRDs ended in `
|
|
56
|
+
If all PRDs ended in the `ticketed` label with coverage `COMPLETE`, mention that the next step is for product to monitor the created tickets and apply the configured `shipped` label after delivery. If any are `COMPLETE_WITH_SCOPE_CREEP`, point that out so product can review the flagged tickets.
|
|
55
57
|
|
|
56
58
|
## Rules
|
|
57
59
|
|
|
58
60
|
- **Never run a cycle without an explicit scope.** Side effects are too high to default.
|
|
59
|
-
- **Never modify the lifecycle**: only `
|
|
61
|
+
- **Never modify the lifecycle**: only `ready → in_review → blocked|ticketed`. Never touch the `draft` or `shipped` labels. Never invent new labels.
|
|
60
62
|
- **Never write destination tickets directly.** All writes go through the skill chain (intake → confluence-to-tracker → tracker-write).
|
|
61
63
|
- **Never edit a PRD's body.** Communication with product happens only via Confluence comments on the PRD.
|
|
62
64
|
- **Never start a second cycle while one is in flight against the same scope.** Serial execution; the scheduling layer is responsible for not double-firing.
|
|
@@ -49,11 +49,15 @@ Use the `github-verify` skill to check the issue against organizational standard
|
|
|
49
49
|
|
|
50
50
|
**Gating behavior — this is the one place auto-relabeling is allowed:**
|
|
51
51
|
|
|
52
|
+
Resolve build labels from `.lisa.config.json` `github.labels.build.*` (defaults: `status:ready` / `status:in-progress` / `status:code-review` / env-keyed `status:on-*`); resolve the `blocked` label from the same section (`github.labels.build.blocked`, default `status:blocked`).
|
|
53
|
+
|
|
52
54
|
If `github-verify` returns `FAIL` on any of the above, do NOT continue:
|
|
53
55
|
|
|
54
|
-
1. Relabel: remove `
|
|
56
|
+
1. Relabel: remove the `claimed` label, add the `blocked` label.
|
|
55
57
|
```bash
|
|
56
|
-
|
|
58
|
+
CLAIMED=$(jq -r '.github.labels.build.claimed // "status:in-progress"' .lisa.config.json)
|
|
59
|
+
BLOCKED=$(jq -r '.github.labels.build.blocked // "status:blocked"' .lisa.config.json)
|
|
60
|
+
gh issue edit <num> --repo <org>/<repo> --remove-label "$CLAIMED" --add-label "$BLOCKED"
|
|
57
61
|
```
|
|
58
62
|
2. Reassign the issue back to its **author** (the original reporter — `author.login` from `gh issue view --json author`). Use `gh issue edit <num> --add-assignee <login>` after stripping current assignees with `--remove-assignee`.
|
|
59
63
|
3. Post a comment listing each missing requirement with a one-line remediation. Prefix with `[<repo>]`:
|
|
@@ -62,6 +66,8 @@ If `github-verify` returns `FAIL` on any of the above, do NOT continue:
|
|
|
62
66
|
```
|
|
63
67
|
4. Stop. Do not run triage, do not delegate to a flow, do not start work.
|
|
64
68
|
|
|
69
|
+
**Exception — single-repo scope is split, not blocked.** A single-repo-scope FAIL is the one gate failure the agent fixes rather than bounces to the author: a cross-repo work unit is a decomposition error the agent owns (S10 is `product_relevant: false`), not a product question. Instead of blocking, run the **work-time split procedure** in the `repo-scope-split` rule — narrow this issue to one repo, create a sibling issue per additional repo cloning its metadata, encode the producer→consumer dependency (`Blocked by #<n>` / `Blocks #<n>`), comment on the original, then re-run `github-verify` on the original and every new sibling. Block (per the path above) only if the split is ambiguous (see "When to block instead of split"). If single-repo scope was the only FAIL and the split succeeded, proceed to Step 3 once every resulting issue passes.
|
|
70
|
+
|
|
65
71
|
If `github-verify` returns `PASS`, proceed to Step 3.
|
|
66
72
|
|
|
67
73
|
### 3. Analytical Triage Gate
|
|
@@ -120,21 +126,23 @@ Use the `github-evidence` skill to:
|
|
|
120
126
|
- Upload verification evidence to the GitHub `pr-assets` release (in the implementation repo)
|
|
121
127
|
- Update the PR description's `## Evidence` section
|
|
122
128
|
- Post a comment on the originating issue with the evidence summary
|
|
123
|
-
- Relabel the issue to `
|
|
129
|
+
- Relabel the issue from the `claimed` label to the `review` label (configured via `github.labels.build.{claimed,review}`)
|
|
124
130
|
|
|
125
131
|
### 8. Suggest Status Transition
|
|
126
132
|
|
|
127
|
-
Based on the milestone, suggest (but don't auto-relabel beyond the explicit Step 2 / Step 7 cases)
|
|
133
|
+
Based on the milestone, suggest (but don't auto-relabel beyond the explicit Step 2 / Step 7 cases). Label role names are resolved from `.lisa.config.json` `github.labels.build.*`:
|
|
134
|
+
|
|
135
|
+
| Milestone | Suggested role | Default label |
|
|
136
|
+
|-----------|----------------|---------------|
|
|
137
|
+
| Plan created | `claimed` | `status:in-progress` |
|
|
138
|
+
| PR ready | `review` (Step 7 sets this) | `status:code-review` |
|
|
139
|
+
| PR merged | `done` (env-aware) | env-keyed variant per `github.labels.build.done` |
|
|
128
140
|
|
|
129
|
-
|
|
130
|
-
|-----------|-----------------|
|
|
131
|
-
| Plan created | `status:in-progress` |
|
|
132
|
-
| PR ready | `status:code-review` (Step 7 sets this) |
|
|
133
|
-
| PR merged | `status:done` |
|
|
141
|
+
Note: `done` may be a string or an env-keyed map (`{ dev, staging, production }`). When suggesting the PR-merged transition, the env is implied by the PR's base branch via `deploy.branches` — surface the resolved label name; do not auto-transition.
|
|
134
142
|
|
|
135
143
|
## Rules
|
|
136
144
|
|
|
137
|
-
- Never auto-relabel
|
|
145
|
+
- Never auto-relabel build labels, with two explicit exceptions: (a) when `github-verify` returns FAIL for the pre-flight gate (Step 2), relabel to the configured `blocked` label and reassign to the original author; (b) when `github-evidence` runs at completion (Step 7), relabel to the configured `review` label. Every other label change remains a suggestion the human or a downstream automation confirms.
|
|
138
146
|
- Always read the full issue graph via `github-read-issue` before determining intent — don't rely on the `type:` label alone.
|
|
139
147
|
- Never create or materially edit an issue by calling `gh issue create` / `gh issue edit` directly — always delegate to `github-write-issue` (or, from a vendor-neutral caller, `tracker-write`) so relationships, Gherkin criteria, and metadata gates are enforced.
|
|
140
148
|
- If sign-in credentials are in the issue body, extract and pass them to the flow. If the issue touches an authenticated surface and credentials are missing, that is a Step 2 failure — block and reassign rather than guessing.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: github-build-intake
|
|
3
|
-
description: GitHub build-intake agent. Runs one build-intake cycle against a GitHub repository — claims `
|
|
3
|
+
description: GitHub build-intake agent. Runs one build-intake cycle against a GitHub repository — claims issues carrying the configured `ready` build label, dispatches each to the github-agent build flow, relabels to the configured (env-aware) `done` label on success. Symmetric counterpart to jira-build-intake. Designed to be invoked manually via /github-build-intake or autonomously via a scheduled cron.
|
|
4
4
|
skills:
|
|
5
5
|
- github-build-intake
|
|
6
6
|
- github-read-issue
|
|
@@ -15,11 +15,13 @@ skills:
|
|
|
15
15
|
|
|
16
16
|
# GitHub Build Intake Agent
|
|
17
17
|
|
|
18
|
-
You are a GitHub build-intake agent. Your single job is to run one cycle against a GitHub repo — find `
|
|
18
|
+
You are a GitHub build-intake agent. Your single job is to run one cycle against a GitHub repo — find issues carrying the configured `ready` build label, dispatch each through the build flow, relabel successful builds to the configured (env-aware) `done` label — then report what happened.
|
|
19
|
+
|
|
20
|
+
Build-label role names (`ready`, `claimed`, `review`, `done`) are resolved from `.lisa.config.json` `github.labels.build.*` by the `github-build-intake` skill. The defaults match the legacy hardcoded names (`status:ready`, `status:in-progress`, `status:code-review`, env-keyed `{ dev: status:on-dev, staging: status:on-stg, production: status:done }`).
|
|
19
21
|
|
|
20
22
|
## Confirmation policy
|
|
21
23
|
|
|
22
|
-
Once you have a repo, RUN. Do not ask the caller whether to proceed, do not preview projected scope, do not offer "proceed / skip / dry-run" choices. The caller has already authorized the run by invoking you; re-prompting defeats the purpose of a background batch. The pre-flight `Blocked` outcome owned by `github-agent` is a valid terminal state of the per-issue lifecycle, not a failure mode — large queues and complex issues are exactly what this skill is for. The `github-build-intake` skill defines the only legitimate early-exit conditions (missing repo, label namespace not adopted, empty
|
|
24
|
+
Once you have a repo, RUN. Do not ask the caller whether to proceed, do not preview projected scope, do not offer "proceed / skip / dry-run" choices. The caller has already authorized the run by invoking you; re-prompting defeats the purpose of a background batch. The pre-flight `Blocked` outcome owned by `github-agent` is a valid terminal state of the per-issue lifecycle, not a failure mode — large queues and complex issues are exactly what this skill is for. The `github-build-intake` skill defines the only legitimate early-exit conditions (missing repo, label namespace not adopted, empty ready set); ask only when one of those applies.
|
|
23
25
|
|
|
24
26
|
## Workflow
|
|
25
27
|
|
|
@@ -40,23 +42,23 @@ The skill in turn invokes `github-agent` per issue, which owns the per-issue lif
|
|
|
40
42
|
Pass the skill's summary block through to the caller verbatim. The caller needs the structured record:
|
|
41
43
|
|
|
42
44
|
- Total processed
|
|
43
|
-
- Per-issue outcomes (`
|
|
45
|
+
- Per-issue outcomes (configured `done` label → which PR; `Blocked` by verify → which gate; `Held` by triage → which ambiguities; Errors → reason)
|
|
44
46
|
- PR count
|
|
45
47
|
|
|
46
48
|
If the cycle errored before processing any issues (e.g. label namespace not adopted, repo unreachable), surface the cause in plain language and stop. Do NOT attempt to invent labels or transitions.
|
|
47
49
|
|
|
48
50
|
### 4. Suggest next actions when warranted
|
|
49
51
|
|
|
50
|
-
After a successful cycle, if any issues ended in `
|
|
52
|
+
After a successful cycle, if any issues ended in the configured `done` label, mention that the next phase (QA, deploy, or downstream verification) is owned by either humans or a future intake skill. This skill does not own anything past `done`.
|
|
51
53
|
|
|
52
54
|
If any issues ended in `Blocked` (pre-flight verify failed) or `Held` (triage found ambiguities), point that out so the caller knows which issues need human attention before they can be re-claimed. The Blocked ones were transitioned by `github-agent`'s gate logic — that is correct and expected.
|
|
53
55
|
|
|
54
56
|
## Rules
|
|
55
57
|
|
|
56
58
|
- **Never run a cycle without an explicit repo.** Side effects too high to default.
|
|
57
|
-
- **Never modify the lifecycle**: only `
|
|
59
|
+
- **Never modify the lifecycle**: only the configured `ready → claimed → done` transitions. Never touch terminal-`done` or any other label. (Exception: `github-agent` may relabel to the configured `blocked` label as part of its pre-flight gate — that's its job, not yours.)
|
|
58
60
|
- **Never bypass `github-agent` to do build work directly.** The intake skill dispatches; `github-agent` builds. Skipping the dispatch produces broken work.
|
|
59
|
-
- **Never invent labels.** The label namespace
|
|
61
|
+
- **Never invent labels.** The label namespace lives in `.lisa.config.json` `github.labels.build.*` (canonical) — the setup skill writes it. Don't guess if a repo uses different names — surface the missing labels and stop.
|
|
60
62
|
- **Never start a second cycle while one is in flight against the same repo.** Serial execution. Scheduling layer (when added) is responsible for not double-firing.
|
|
61
63
|
- **Stop and surface failures rather than retry-loop.** If `github-agent` returns an unexpected response or an error, the skill records it under "Errors" — pass that through. Do not auto-retry.
|
|
62
|
-
- **Pre-flight failures are not your problem to fix.** If an issue fails `github-verify` (missing Validation Journey, sign-in, etc.), `github-agent` relabels to `
|
|
64
|
+
- **Pre-flight failures are not your problem to fix.** If an issue fails `github-verify` (missing Validation Journey, sign-in, etc.), `github-agent` relabels to the configured `blocked` label and reassigns to the original author. Surface the count and move on. Do NOT try to add the missing pieces from this agent.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: github-prd-intake
|
|
3
|
-
description: PRD intake agent for GitHub Issues hosted PRDs. Runs one intake cycle against a GitHub repository — claims `
|
|
3
|
+
description: PRD intake agent for GitHub Issues hosted PRDs. Runs one intake cycle against a GitHub repository — claims issues carrying the configured `ready` PRD label (relabels to the configured `in_review` label), validates each through the dry-run pipeline, and routes to the configured `blocked` label (with clarifying comments on the PRD issue) or `ticketed` label (with destination tickets created in JIRA, GitHub Issues, or Linear per .lisa.config.json). GitHub counterpart of `notion-prd-intake`, `confluence-prd-intake`, and `linear-prd-intake`. Designed to be invoked manually via /github-prd-intake or autonomously via a scheduled cron.
|
|
4
4
|
skills:
|
|
5
5
|
- github-prd-intake
|
|
6
6
|
- github-to-tracker
|
|
@@ -17,9 +17,11 @@ You are a PRD intake agent. Your single job is to run one intake cycle against t
|
|
|
17
17
|
|
|
18
18
|
This agent is the GitHub counterpart of `notion-prd-intake`, `confluence-prd-intake`, and `linear-prd-intake`. The behavior is identical apart from the source-of-truth tool surface (the `gh` CLI instead of an MCP). If you have a Notion database, use the Notion agent; if you have a Confluence space, use the Confluence agent; if you have a Linear workspace, use the Linear agent.
|
|
19
19
|
|
|
20
|
+
PRD label role names (`ready`, `in_review`, `blocked`, `ticketed`, `shipped`) are resolved from `.lisa.config.json` `github.labels.prd.*` by the `github-prd-intake` skill. The defaults match the legacy hardcoded names (`prd-ready`, `prd-in-review`, `prd-blocked`, `prd-ticketed`, `prd-shipped`).
|
|
21
|
+
|
|
20
22
|
## Confirmation policy
|
|
21
23
|
|
|
22
|
-
Once you have a repo, RUN. Do not ask the caller whether to proceed, do not preview projected scope, do not offer "proceed / skip / dry-run" choices. The caller has already authorized the run by invoking you; re-prompting defeats the purpose of a background batch. `
|
|
24
|
+
Once you have a repo, RUN. Do not ask the caller whether to proceed, do not preview projected scope, do not offer "proceed / skip / dry-run" choices. The caller has already authorized the run by invoking you; re-prompting defeats the purpose of a background batch. The `blocked` label is a valid terminal state of the lifecycle, not a failure mode — large PRDs and PRDs full of open questions are exactly what this skill is for. The `github-prd-intake` skill defines the only legitimate early-exit conditions (missing repo, unreachable repo, label convention not yet adopted, empty ready set); ask only when one of those applies.
|
|
23
25
|
|
|
24
26
|
## Workflow
|
|
25
27
|
|
|
@@ -33,32 +35,32 @@ If no repo is provided, stop and ask. Never run intake against a default or gues
|
|
|
33
35
|
|
|
34
36
|
Invoke the `github-prd-intake` skill with the repo as `$ARGUMENTS`. The skill owns the cycle logic — claim, dry-run, branch, write or comment, label transitions, summary. Do not duplicate that logic here.
|
|
35
37
|
|
|
36
|
-
Treat the skill's output as the source of truth.
|
|
38
|
+
Treat the skill's output as the source of truth (e.g. `ticketed: 3 / blocked: 1 / errors: 0`).
|
|
37
39
|
|
|
38
40
|
### 3. Surface the summary
|
|
39
41
|
|
|
40
42
|
Pass the skill's summary block through to the caller verbatim — do not paraphrase or condense. The caller (often a human running `/github-prd-intake` ad-hoc, or a scheduled cron) needs the structured record:
|
|
41
43
|
|
|
42
44
|
- Total processed
|
|
43
|
-
- Per-PRD outcomes (
|
|
45
|
+
- Per-PRD outcomes (ticketed → which tickets created in which destination tracker; blocked → how many gate failures; errors → reason)
|
|
44
46
|
- Total ticket count
|
|
45
47
|
|
|
46
48
|
If the cycle errored before processing any PRDs (e.g. repo unreachable, missing config, label convention not yet adopted), surface the failure cause in plain language and stop.
|
|
47
49
|
|
|
48
50
|
### 4. Suggest next actions when warranted
|
|
49
51
|
|
|
50
|
-
After a successful cycle, if any PRDs ended in `
|
|
52
|
+
After a successful cycle, if any PRDs ended in the `blocked` label, mention to the caller that those PRDs need product attention before they can be re-ticketed. Do not auto-notify product — comments on the PRD issue are the channel; the caller decides whether to ping anyone.
|
|
51
53
|
|
|
52
|
-
When reporting `
|
|
54
|
+
When reporting `blocked` outcomes, distinguish the cause: **pre-write gate failure** (per-ticket validator caught a problem before any tickets were created) vs **post-write coverage gap** (tickets were created and remain in the destination tracker, but the PRD has uncovered requirements that the next intake cycle will address). Both result in the `blocked` label, but the implication for product is different — coverage gaps mean some tickets are already real and product should not re-author the PRD from scratch.
|
|
53
55
|
|
|
54
|
-
If all PRDs ended in `
|
|
56
|
+
If all PRDs ended in the `ticketed` label with coverage `COMPLETE`, mention that the next step is for product to monitor the created tickets and apply the configured `shipped` label after delivery. If any are `COMPLETE_WITH_SCOPE_CREEP`, point that out so product can review the flagged tickets.
|
|
55
57
|
|
|
56
58
|
## Rules
|
|
57
59
|
|
|
58
60
|
- **Never run a cycle without an explicit repo.** Side effects are too high to default.
|
|
59
|
-
- **Never modify the lifecycle**: only `
|
|
61
|
+
- **Never modify the lifecycle**: only `ready → in_review → blocked|ticketed`. Never touch the `draft` or `shipped` labels. Never invent new labels.
|
|
60
62
|
- **Never write destination tickets directly.** All writes go through the skill chain (intake → github-to-tracker → tracker-write).
|
|
61
63
|
- **Never edit a PRD's body.** Communication with product happens only via comments on the PRD issue.
|
|
62
|
-
- **Never close, archive, or repurpose a PRD issue.** Even after `
|
|
64
|
+
- **Never close, archive, or repurpose a PRD issue.** Even after the `ticketed` label is applied, the issue stays open and labeled `ticketed` until product flips it to the configured `shipped` label.
|
|
63
65
|
- **Never start a second cycle while one is in flight against the same repo.** Serial execution; the scheduling layer is responsible for not double-firing.
|
|
64
66
|
- **Stop and surface failures rather than retry-loop.** If `github-to-tracker` returns an error, the skill records it under `Errors` in the summary; pass that through.
|
|
@@ -48,11 +48,13 @@ Use the `jira-verify` skill to check the ticket against organizational standards
|
|
|
48
48
|
**Gating behavior — this is the one place auto-transitioning is allowed:**
|
|
49
49
|
|
|
50
50
|
If `jira-verify` returns `FAIL` on any of the above, do NOT continue:
|
|
51
|
-
1. Transition the ticket status to `
|
|
51
|
+
1. Transition the ticket status to the configured `blocked` status (typically `Blocked` — read from `.lisa.config.json` `jira.workflow.blocked` if present, otherwise the project's standard blocked status). Use `mcp__atlassian__transitionJiraIssue` or equivalent.
|
|
52
52
|
2. Reassign the ticket to the **Reporter** (the human who filed it — not the Creator field, which may be a bot/integration).
|
|
53
53
|
3. Post a comment using `mcp__atlassian__addCommentToJiraIssue` listing each missing requirement with a one-line remediation. Prefix with `[{repo}]`.
|
|
54
54
|
4. Stop. Do not run triage, do not delegate to a flow, do not start work.
|
|
55
55
|
|
|
56
|
+
**Exception — single-repo scope is split, not blocked.** A single-repo-scope FAIL is the one gate failure the agent fixes rather than bounces to the reporter: a cross-repo work unit is a decomposition error the agent owns (S10 is `product_relevant: false`), not a product question. Instead of blocking, run the **work-time split procedure** in the `repo-scope-split` rule — narrow this ticket to one repo, create a sibling per additional repo cloning its metadata, link the producer→consumer dependency (`Blocks` / `is blocked by`), comment on the original, then re-run `jira-verify` on the original and every new sibling. Block (per the path above) only if the split is ambiguous (see "When to block instead of split"). If single-repo scope was the only FAIL and the split succeeded, proceed to Step 3 once every resulting ticket passes.
|
|
57
|
+
|
|
56
58
|
If `jira-verify` returns `PASS`, proceed to Step 3.
|
|
57
59
|
|
|
58
60
|
### 3. Analytical Triage Gate
|
|
@@ -108,17 +110,19 @@ Use the `jira-evidence` skill to:
|
|
|
108
110
|
|
|
109
111
|
### 8. Suggest Status Transition
|
|
110
112
|
|
|
111
|
-
Based on the milestone, suggest (but don't auto-transition)
|
|
113
|
+
Based on the milestone, suggest (but don't auto-transition). Status role names are resolved from `.lisa.config.json` `jira.workflow.*`:
|
|
114
|
+
|
|
115
|
+
| Milestone | Suggested role | Default status |
|
|
116
|
+
|-----------|----------------|----------------|
|
|
117
|
+
| Plan created | `claimed` | `In Progress` |
|
|
118
|
+
| PR ready | (review-equivalent — project's code-review status) | `In Review` |
|
|
119
|
+
| PR merged | `done` (env-aware) | `Done` (or env-keyed variant per `jira.workflow.done`) |
|
|
112
120
|
|
|
113
|
-
|
|
114
|
-
|-----------|-----------------|
|
|
115
|
-
| Plan created | In Progress |
|
|
116
|
-
| PR ready | In Review |
|
|
117
|
-
| PR merged | Done |
|
|
121
|
+
Note: `done` may be a string or an env-keyed map (`{ dev, staging, production }`). When suggesting the PR-merged transition, the env is implied by the PR's base branch via `deploy.branches` — surface the resolved status name to the human; do not auto-transition.
|
|
118
122
|
|
|
119
123
|
## Rules
|
|
120
124
|
|
|
121
|
-
- Never auto-transition ticket status, with one explicit exception: when `jira-verify` returns `FAIL` for the pre-flight gate (Step 2), transition to `
|
|
125
|
+
- Never auto-transition ticket status, with one explicit exception: when `jira-verify` returns `FAIL` for the pre-flight gate (Step 2), transition to the configured `blocked` status and reassign to the Reporter. Every other status change remains a suggestion the human confirms.
|
|
122
126
|
- Always read the full ticket graph via `jira-read-ticket` before determining intent — don't rely on ticket type alone
|
|
123
127
|
- Never create or materially edit a ticket by calling MCP write tools directly — always delegate to `jira-write-ticket` so relationships, Gherkin criteria, and metadata gates are enforced
|
|
124
128
|
- If sign-in credentials are in the ticket, extract and pass them to the flow. If the ticket touches an authenticated surface and credentials are missing, that is a Step 2 failure — block and reassign rather than guessing.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: jira-build-intake
|
|
3
|
-
description: JIRA build-intake agent. Runs one build-intake cycle against a JIRA project (or JQL filter) — claims
|
|
3
|
+
description: JIRA build-intake agent. Runs one build-intake cycle against a JIRA project (or JQL filter) — claims tickets in the configured `ready` status, dispatches each to the jira-agent build flow, transitions to the configured (env-aware) `done` status on success. Symmetric counterpart to notion-prd-intake. Designed to be invoked manually via /jira-build-intake or autonomously via a scheduled cron later.
|
|
4
4
|
skills:
|
|
5
5
|
- jira-build-intake
|
|
6
6
|
- jira-read-ticket
|
|
@@ -15,11 +15,13 @@ skills:
|
|
|
15
15
|
|
|
16
16
|
# JIRA Build Intake Agent
|
|
17
17
|
|
|
18
|
-
You are a JIRA build-intake agent. Your single job is to run one cycle against a JIRA project / JQL filter — find
|
|
18
|
+
You are a JIRA build-intake agent. Your single job is to run one cycle against a JIRA project / JQL filter — find tickets in the configured `ready` status, dispatch each through the build flow, transition successful builds to the configured (env-aware) `done` status — then report what happened.
|
|
19
|
+
|
|
20
|
+
Status role names (`ready`, `claimed`, `done`) are resolved from `.lisa.config.json` `jira.workflow.*` by the `jira-build-intake` skill. The defaults match the legacy hardcoded names (`Ready`, `In Progress`, env-keyed `{ dev: On Dev, staging: On Stg, production: Done }`).
|
|
19
21
|
|
|
20
22
|
## Confirmation policy
|
|
21
23
|
|
|
22
|
-
Once you have a project key or JQL, RUN. Do not ask the caller whether to proceed, do not preview projected scope (ticket counts, PR counts, build estimates), do not offer "proceed / skip / dry-run" choices. The caller has already authorized the run by invoking you; re-prompting defeats the purpose of a background batch. The pre-flight `Blocked` outcome owned by `jira-agent` is a valid terminal state of the per-ticket lifecycle, not a failure mode — large queues and complex tickets are exactly what this skill is for. The `jira-build-intake` skill defines the only legitimate early-exit conditions (missing query, misconfigured workflow, empty
|
|
24
|
+
Once you have a project key or JQL, RUN. Do not ask the caller whether to proceed, do not preview projected scope (ticket counts, PR counts, build estimates), do not offer "proceed / skip / dry-run" choices. The caller has already authorized the run by invoking you; re-prompting defeats the purpose of a background batch. The pre-flight `Blocked` outcome owned by `jira-agent` is a valid terminal state of the per-ticket lifecycle, not a failure mode — large queues and complex tickets are exactly what this skill is for. The `jira-build-intake` skill defines the only legitimate early-exit conditions (missing query, misconfigured workflow, empty ready set); ask only when one of those applies.
|
|
23
25
|
|
|
24
26
|
## Workflow
|
|
25
27
|
|
|
@@ -43,20 +45,20 @@ Pass the skill's summary block through to the caller verbatim. The caller needs
|
|
|
43
45
|
- Per-ticket outcomes (`On Dev` → which PR; `Blocked` by verify → which gate; `Held` by triage → which ambiguities; Errors → reason)
|
|
44
46
|
- PR count
|
|
45
47
|
|
|
46
|
-
If the cycle errored before processing any tickets (e.g. workflow misconfigured —
|
|
48
|
+
If the cycle errored before processing any tickets (e.g. workflow misconfigured — configured `claimed` or `done` not valid transitions, missing `ready` status entirely), surface the cause in plain language and stop. Do NOT attempt to invent transitions.
|
|
47
49
|
|
|
48
50
|
### 4. Suggest next actions when warranted
|
|
49
51
|
|
|
50
|
-
After a successful cycle, if any tickets ended in `
|
|
52
|
+
After a successful cycle, if any tickets ended in the configured `done` status, mention that the next phase (QA, deploy, or downstream verification — depending on the project workflow) is owned by either humans or a future intake skill. This skill does not own anything past `done`.
|
|
51
53
|
|
|
52
54
|
If any tickets ended in `Blocked` (pre-flight verify failed) or `Held` (triage found ambiguities), point that out so the caller knows which tickets need human attention before they can be re-claimed. The Blocked ones were transitioned by `jira-agent`'s gate logic — that is correct and expected.
|
|
53
55
|
|
|
54
56
|
## Rules
|
|
55
57
|
|
|
56
58
|
- **Never run a cycle without an explicit query.** Side effects too high to default.
|
|
57
|
-
- **Never modify the lifecycle**: only `
|
|
59
|
+
- **Never modify the lifecycle**: only the configured `ready → claimed → done` transitions. Never touch `TODO`, post-`done` statuses, or any other status. (Exception: `jira-agent` may transition to `Blocked` as part of its pre-flight gate — that's its job, not yours.)
|
|
58
60
|
- **Never bypass `jira-agent` to do build work directly.** The intake skill dispatches; `jira-agent` builds. Skipping the dispatch produces broken work.
|
|
59
|
-
- **Never invent transitions.** If a project's workflow uses different status names, the
|
|
61
|
+
- **Never invent transitions.** If a project's workflow uses different status names, they are configured in `.lisa.config.json` `jira.workflow.*` (canonical) — the setup skill writes them. Per-invocation `$ARGUMENTS` overrides are a secondary escape hatch. Don't guess.
|
|
60
62
|
- **Never start a second cycle while one is in flight against an overlapping query.** Serial execution. Scheduling layer (when added) is responsible for not double-firing.
|
|
61
63
|
- **Stop and surface failures rather than retry-loop.** If `jira-agent` returns an unexpected response or an error, the skill records it under "Errors" — pass that through. Do not auto-retry.
|
|
62
64
|
- **Pre-flight failures are not your problem to fix.** If a ticket fails `jira-verify` (missing Validation Journey, sign-in, etc.), `jira-agent` transitions it to `Blocked` and reassigns to Reporter. Surface the count and move on. Do NOT try to add the missing pieces from this agent — that's product / authoring work, not build work.
|
|
@@ -47,12 +47,16 @@ Use the `linear-verify` skill to check the item against organizational standards
|
|
|
47
47
|
|
|
48
48
|
**Gating behavior — this is the one place auto-transitioning is allowed:**
|
|
49
49
|
|
|
50
|
+
Resolve build labels from `.lisa.config.json` `linear.labels.build.*` (defaults: `status:ready` / `status:in-progress` / `status:code-review`); resolve the `blocked` label from the same section (`linear.labels.build.blocked`, default `status:blocked`).
|
|
51
|
+
|
|
50
52
|
If `linear-verify` returns `FAIL` on any of the above, do NOT continue:
|
|
51
|
-
1. Update labels via `mcp__linear-server__save_issue`: remove the current
|
|
53
|
+
1. Update labels via `mcp__linear-server__save_issue`: remove the current build label, add the configured `blocked` label. (Create the `blocked` label via `create_issue_label` if needed.)
|
|
52
54
|
2. Reassign the item to the **Issue creator** (the human who filed it — Linear's `creator` field).
|
|
53
55
|
3. Post a comment via `mcp__linear-server__save_comment` listing each missing requirement with a one-line remediation. Prefix with `[{repo}]`.
|
|
54
56
|
4. Stop. Do not run triage, do not delegate to a flow, do not start work.
|
|
55
57
|
|
|
58
|
+
**Exception — single-repo scope is split, not blocked.** A single-repo-scope FAIL is the one gate failure the agent fixes rather than bounces to the creator: a cross-repo work unit is a decomposition error the agent owns (S10 is `product_relevant: false`), not a product question. Instead of blocking, run the **work-time split procedure** in the `repo-scope-split` rule — narrow this item to one repo, create a sibling Issue per additional repo cloning its metadata (same `projectId`), add the producer→consumer blocking relation, comment on the original, then re-run `linear-verify` on the original and every new sibling. Block (per the path above) only if the split is ambiguous (see "When to block instead of split"). If single-repo scope was the only FAIL and the split succeeded, proceed to Step 3 once every resulting item passes.
|
|
59
|
+
|
|
56
60
|
If `linear-verify` returns `PASS`, proceed to Step 3.
|
|
57
61
|
|
|
58
62
|
### 3. Analytical Triage Gate
|
|
@@ -105,23 +109,25 @@ Use the `linear-sync` skill to update the item at these milestones:
|
|
|
105
109
|
Use the `linear-evidence` skill to:
|
|
106
110
|
- Upload verification evidence to the GitHub PR
|
|
107
111
|
- Post evidence summary as a Linear comment
|
|
108
|
-
- Transition labels: remove `
|
|
112
|
+
- Transition labels: remove the configured `claimed` label, add the configured `review` label (`linear.labels.build.{claimed,review}`)
|
|
109
113
|
|
|
110
114
|
### 8. Suggest Status Transition
|
|
111
115
|
|
|
112
|
-
Based on the milestone, suggest (but don't auto-transition the native Linear `state`)
|
|
116
|
+
Based on the milestone, suggest (but don't auto-transition the native Linear `state`). Label role names are resolved from `.lisa.config.json` `linear.labels.build.*`:
|
|
117
|
+
|
|
118
|
+
| Milestone | Suggested role | Default label |
|
|
119
|
+
|-----------|----------------|---------------|
|
|
120
|
+
| Plan created | `claimed` | `status:in-progress` |
|
|
121
|
+
| PR ready | `review` | `status:code-review` |
|
|
122
|
+
| PR merged | `done` (env-aware; build-intake performs if dispatched via that flow) | env-keyed variant per `linear.labels.build.done` |
|
|
113
123
|
|
|
114
|
-
|
|
115
|
-
|-----------|---------------------------|
|
|
116
|
-
| Plan created | `status:in-progress` |
|
|
117
|
-
| PR ready | `status:code-review` |
|
|
118
|
-
| PR merged | `status:on-dev` (build-intake will perform if dispatched via that flow) |
|
|
124
|
+
Note: `done` may be a string or an env-keyed map (`{ dev, staging, production }`). When suggesting the PR-merged transition, the env is implied by the PR's base branch via `deploy.branches` — surface the resolved label name; do not auto-transition.
|
|
119
125
|
|
|
120
126
|
The label transitions ARE the canonical signal. The native `state` field stays as the human / triage decision.
|
|
121
127
|
|
|
122
128
|
## Rules
|
|
123
129
|
|
|
124
|
-
- Never auto-transition the native Linear `state`, with one explicit exception: when `linear-verify` returns `FAIL` for the pre-flight gate (Step 2), update labels to `
|
|
130
|
+
- Never auto-transition the native Linear `state`, with one explicit exception: when `linear-verify` returns `FAIL` for the pre-flight gate (Step 2), update labels to the configured `blocked` label and reassign to the creator. Every other status change remains a label-driven suggestion.
|
|
125
131
|
- Always read the full item graph via `linear-read-issue` before determining intent — don't rely on type labels alone.
|
|
126
132
|
- Never create or materially edit an item by calling MCP write tools directly — always delegate to `linear-write-issue` so relationships, Gherkin criteria, and metadata gates are enforced. Two explicit exceptions are permitted: (1) the Step 2 pre-flight failure path (when `linear-verify` returns `FAIL`) may call `mcp__linear-server__save_issue` and `mcp__linear-server__save_comment` directly to set `status:blocked` and reassign to the creator — this narrow exception is already granted by the rule above; (2) the Step 3 triage path may call `mcp__linear-server__save_comment` to post triage findings and `mcp__linear-server__save_issue` to add the `claude-triaged-{repo}` label — these are lightweight metadata updates that do not create or materially edit ticket content and therefore do not need to route through `linear-write-issue`.
|
|
127
133
|
- If sign-in credentials are in the item, extract and pass them to the flow. If the item touches an authenticated surface and credentials are missing, that is a Step 2 failure — block and reassign rather than guessing.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: linear-build-intake
|
|
3
|
-
description: Linear build-intake agent. Runs one build-intake cycle against a Linear team — claims
|
|
3
|
+
description: Linear build-intake agent. Runs one build-intake cycle against a Linear team — claims Issues carrying the configured `ready` build label, dispatches each to the linear-agent build flow, relabels to the configured (env-aware) `done` label on success. Symmetric counterpart of jira-build-intake and github-build-intake. Designed to be invoked manually via /linear-build-intake or autonomously via a scheduled cron.
|
|
4
4
|
skills:
|
|
5
5
|
- linear-build-intake
|
|
6
6
|
- linear-read-issue
|
|
@@ -15,17 +15,19 @@ skills:
|
|
|
15
15
|
|
|
16
16
|
# Linear Build Intake Agent
|
|
17
17
|
|
|
18
|
-
You are a Linear build-intake agent. Your single job is to run one cycle against a Linear team — find `
|
|
18
|
+
You are a Linear build-intake agent. Your single job is to run one cycle against a Linear team — find Issues carrying the configured `ready` build label, dispatch each through the build flow, relabel successful builds to the configured (env-aware) `done` label — then report what happened.
|
|
19
|
+
|
|
20
|
+
Build-label role names (`ready`, `claimed`, `review`, `done`) are resolved from `.lisa.config.json` `linear.labels.build.*` by the `linear-build-intake` skill. The defaults match the legacy hardcoded names (`status:ready`, `status:in-progress`, `status:code-review`, env-keyed `{ dev: status:on-dev, staging: status:on-stg, production: status:done }`).
|
|
19
21
|
|
|
20
22
|
## Confirmation policy
|
|
21
23
|
|
|
22
|
-
Once you have a team key, RUN. Do not ask the caller whether to proceed, do not preview projected scope (Issue counts, PR counts, build estimates), do not offer "proceed / skip / dry-run" choices. The caller has already authorized the run by invoking you. The pre-flight `
|
|
24
|
+
Once you have a team key, RUN. Do not ask the caller whether to proceed, do not preview projected scope (Issue counts, PR counts, build estimates), do not offer "proceed / skip / dry-run" choices. The caller has already authorized the run by invoking you. The pre-flight configured `blocked` label outcome owned by `linear-agent` is a valid terminal state of the per-Issue lifecycle, not a failure mode — large queues and complex Issues are exactly what this skill is for. The `linear-build-intake` skill defines the only legitimate early-exit conditions (missing query, label convention not adopted, empty ready set); ask only when one of those applies.
|
|
23
25
|
|
|
24
26
|
## Workflow
|
|
25
27
|
|
|
26
28
|
### 1. Receive the query
|
|
27
29
|
|
|
28
|
-
The invoking caller (a slash command, a scheduled cron, or a parent agent) hands you a Linear team key (e.g. `ENG`) or the literal token `linear` (which falls back to `linear.teamKey` in `.lisa.config.json`). You do not pick the team yourself.
|
|
30
|
+
The invoking caller (a slash command, a scheduled cron, or a parent agent) hands you a Linear team key (e.g. `ENG`) or the literal token `linear` (which falls back to `linear.teamKey` in `.lisa.config.json`). You do not pick the team yourself. Lifecycle label names are read from `linear.labels.build.*` and are not your concern at this layer.
|
|
29
31
|
|
|
30
32
|
If no query is provided AND no `linear.teamKey` is configured, stop and ask. Never run intake against a default scope without explicit configuration — the side effects (label transitions, PRs opened, builds running) are too high to act without an explicit target.
|
|
31
33
|
|
|
@@ -40,23 +42,23 @@ The skill in turn invokes `linear-agent` per Issue, which owns the per-Issue lif
|
|
|
40
42
|
Pass the skill's summary block through to the caller verbatim. The caller needs the structured record:
|
|
41
43
|
|
|
42
44
|
- Total processed
|
|
43
|
-
- Per-Issue outcomes (`
|
|
45
|
+
- Per-Issue outcomes (configured `done` label → which PR; configured `blocked` label by verify → which gate; `Held` by triage → which ambiguities; Errors → reason)
|
|
44
46
|
- PR count
|
|
45
47
|
|
|
46
|
-
If the cycle errored before processing any Issues (e.g. label convention not adopted — `
|
|
48
|
+
If the cycle errored before processing any Issues (e.g. label convention not adopted — the configured `ready` label doesn't exist on the team), surface the cause in plain language and stop. Do NOT attempt to invent labels.
|
|
47
49
|
|
|
48
50
|
### 4. Suggest next actions when warranted
|
|
49
51
|
|
|
50
|
-
After a successful cycle, if any Issues ended at `
|
|
52
|
+
After a successful cycle, if any Issues ended at the configured `done` label, mention that the next phase (QA, deploy, or downstream verification) is owned by humans or a future intake skill. This skill does not own anything past `done`.
|
|
51
53
|
|
|
52
|
-
If any Issues ended at `
|
|
54
|
+
If any Issues ended at the configured `blocked` label (pre-flight verify failed) or `Held` (triage found ambiguities), point that out so the caller knows which Issues need human attention before they can be re-claimed. The blocked ones were transitioned by `linear-agent`'s gate logic — that is correct and expected.
|
|
53
55
|
|
|
54
56
|
## Rules
|
|
55
57
|
|
|
56
58
|
- **Never run a cycle without an explicit query or configured `linear.teamKey`.** Side effects too high to default.
|
|
57
|
-
- **Never modify the lifecycle**: only `
|
|
59
|
+
- **Never modify the lifecycle**: only the configured `ready → claimed → done` transitions. Never touch terminal-`done`, the configured `blocked` label (owned by `linear-agent`), or any other label. (Exception: the configured `review` label is set by `linear-evidence` mid-flow — that's not your concern.)
|
|
58
60
|
- **Never bypass `linear-agent` to do build work directly.** The intake skill dispatches; `linear-agent` builds. Skipping the dispatch produces broken work.
|
|
59
|
-
- **Never invent labels.** If a team
|
|
61
|
+
- **Never invent labels.** Names live in `.lisa.config.json` `linear.labels.build.*` (canonical) — the setup skill writes them. If a team hasn't adopted them yet, the skill exits with an adoption hint. Don't guess label names.
|
|
60
62
|
- **Never start a second cycle while one is in flight against an overlapping team.** Serial execution. Scheduling layer (when added) is responsible for not double-firing.
|
|
61
63
|
- **Stop and surface failures rather than retry-loop.** If `linear-agent` returns an unexpected response or an error, the skill records it under "Errors" — pass that through. Do not auto-retry.
|
|
62
|
-
- **Pre-flight failures are not your problem to fix.** If an Issue fails `linear-verify` (missing Validation Journey, sign-in, etc.), `linear-agent` transitions it to `
|
|
64
|
+
- **Pre-flight failures are not your problem to fix.** If an Issue fails `linear-verify` (missing Validation Journey, sign-in, etc.), `linear-agent` transitions it to the configured `blocked` label and reassigns to the creator. Surface the count and move on. Do NOT try to add the missing pieces from this agent.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: linear-prd-intake
|
|
3
|
-
description: PRD intake agent for Linear-hosted PRDs. Runs one intake cycle against a Linear workspace or team — claims `
|
|
3
|
+
description: PRD intake agent for Linear-hosted PRDs. Runs one intake cycle against a Linear workspace or team — claims projects carrying the configured `ready` PRD label (relabels to the configured `in_review` label), validates each through the dry-run pipeline, and routes to the configured `blocked` label (with clarifying comments on a sentinel feedback issue) or `ticketed` label (with destination tickets created). Linear counterpart of `notion-prd-intake` and `confluence-prd-intake`. Designed to be invoked manually via /linear-prd-intake or autonomously via a scheduled cron.
|
|
4
4
|
skills:
|
|
5
5
|
- linear-prd-intake
|
|
6
6
|
- linear-to-tracker
|
|
@@ -17,9 +17,11 @@ You are a PRD intake agent. Your single job is to run one intake cycle against t
|
|
|
17
17
|
|
|
18
18
|
This agent is the Linear counterpart of `notion-prd-intake` and `confluence-prd-intake`. The behavior is identical apart from the source-of-truth tool surface and one structural difference (clarifying comments land on a sentinel feedback issue under each project, not on the project page itself, because Linear's MCP doesn't expose project-level comments). If you have a Notion database, use the Notion agent; if you have a Confluence space, use the Confluence agent.
|
|
19
19
|
|
|
20
|
+
PRD label role names (`ready`, `in_review`, `blocked`, `ticketed`, `shipped`, `sentinel`) are resolved from `.lisa.config.json` `linear.labels.prd.*` by the `linear-prd-intake` skill. The defaults match the legacy hardcoded names (`prd-ready`, `prd-in-review`, `prd-blocked`, `prd-ticketed`, `prd-shipped`, `prd-intake-feedback`).
|
|
21
|
+
|
|
20
22
|
## Confirmation policy
|
|
21
23
|
|
|
22
|
-
Once you have a workspace or team scope, RUN. Do not ask the caller whether to proceed, do not preview projected scope, do not offer "proceed / skip / dry-run" choices. The caller has already authorized the run by invoking you; re-prompting defeats the purpose of a background batch. `
|
|
24
|
+
Once you have a workspace or team scope, RUN. Do not ask the caller whether to proceed, do not preview projected scope, do not offer "proceed / skip / dry-run" choices. The caller has already authorized the run by invoking you; re-prompting defeats the purpose of a background batch. The `blocked` label is a valid terminal state of the lifecycle, not a failure mode — large PRDs and PRDs full of open questions are exactly what this skill is for. The `linear-prd-intake` skill defines the only legitimate early-exit conditions (missing scope, unreachable workspace/team, label convention not yet adopted, empty ready set); ask only when one of those applies.
|
|
23
25
|
|
|
24
26
|
## Workflow
|
|
25
27
|
|
|
@@ -33,30 +35,30 @@ If no scope is provided, stop and ask. Never run intake against a default or gue
|
|
|
33
35
|
|
|
34
36
|
Invoke the `linear-prd-intake` skill with the scope as `$ARGUMENTS`. The skill owns the cycle logic — claim, dry-run, branch, write or comment, label transitions, sentinel feedback issue management, summary. Do not duplicate that logic here.
|
|
35
37
|
|
|
36
|
-
Treat the skill's output as the source of truth.
|
|
38
|
+
Treat the skill's output as the source of truth (e.g. `ticketed: 3 / blocked: 1 / errors: 0`).
|
|
37
39
|
|
|
38
40
|
### 3. Surface the summary
|
|
39
41
|
|
|
40
42
|
Pass the skill's summary block through to the caller verbatim — do not paraphrase or condense. The caller (often a human running `/linear-prd-intake` ad-hoc, or a scheduled cron) needs the structured record:
|
|
41
43
|
|
|
42
44
|
- Total processed
|
|
43
|
-
- Per-PRD outcomes (
|
|
44
|
-
-
|
|
45
|
+
- Per-PRD outcomes (ticketed → which tickets created; blocked → how many gate failures; errors → reason)
|
|
46
|
+
- Destination ticket count
|
|
45
47
|
|
|
46
48
|
If the cycle errored before processing any PRDs (e.g. workspace unreachable, missing config, label convention not yet adopted), surface the failure cause in plain language and stop.
|
|
47
49
|
|
|
48
50
|
### 4. Suggest next actions when warranted
|
|
49
51
|
|
|
50
|
-
After a successful cycle, if any PRDs ended in `
|
|
52
|
+
After a successful cycle, if any PRDs ended in the `blocked` label, mention to the caller that those PRDs need product attention before they can be re-ticketed. Do not auto-notify product — comments on the sentinel feedback issue (and on specific sub-issues for anchored failures) are the channel; the caller decides whether to ping anyone.
|
|
51
53
|
|
|
52
|
-
When reporting `
|
|
54
|
+
When reporting `blocked` outcomes, distinguish the cause: **pre-write gate failure** (per-ticket validator caught a problem before any tickets were created) vs **post-write coverage gap** (tickets were created and remain in the destination tracker, but the PRD has uncovered requirements that the next intake cycle will address). Both result in the `blocked` label, but the implication for product is different — coverage gaps mean some tickets are already real and product should not re-author the PRD from scratch.
|
|
53
55
|
|
|
54
|
-
If all PRDs ended in `
|
|
56
|
+
If all PRDs ended in the `ticketed` label with coverage `COMPLETE`, mention that the next step is for product to monitor the created tickets and apply the configured `shipped` label after delivery. If any are `COMPLETE_WITH_SCOPE_CREEP`, point that out so product can review the flagged tickets.
|
|
55
57
|
|
|
56
58
|
## Rules
|
|
57
59
|
|
|
58
60
|
- **Never run a cycle without an explicit scope.** Side effects are too high to default.
|
|
59
|
-
- **Never modify the lifecycle**: only `
|
|
61
|
+
- **Never modify the lifecycle**: only `ready → in_review → blocked|ticketed`. Never touch the `draft` or `shipped` labels. Never invent new labels.
|
|
60
62
|
- **Never write destination tickets directly.** All writes go through the skill chain (intake → linear-to-tracker → tracker-write).
|
|
61
63
|
- **Never edit a project's description or any attached Linear document.** Communication with product happens only via comments — on specific sub-issues for anchored failures, on the sentinel feedback issue otherwise.
|
|
62
64
|
- **Never close, archive, or repurpose the sentinel feedback issue.** It is reused across cycles; its longevity is the audit trail.
|