@codyswann/lisa 2.177.0 → 2.178.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/plugins/lisa/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa/agents/linear-agent.md +3 -3
- package/plugins/lisa/rules/reference/repo-scope-split.md +1 -1
- package/plugins/lisa/skills/analyze-claude-remote/SKILL.md +39 -5
- package/plugins/lisa/skills/generate-claude-remote-build-script/SKILL.md +20 -7
- package/plugins/lisa/skills/intake/SKILL.md +2 -2
- package/plugins/lisa/skills/linear-add-journey/SKILL.md +3 -3
- package/plugins/lisa/skills/linear-build-intake/SKILL.md +11 -11
- package/plugins/lisa/skills/linear-create/SKILL.md +3 -3
- package/plugins/lisa/skills/linear-evidence/SKILL.md +5 -5
- package/plugins/lisa/skills/linear-journey/SKILL.md +2 -2
- package/plugins/lisa/skills/linear-prd-intake/SKILL.md +11 -11
- package/plugins/lisa/skills/linear-read-issue/SKILL.md +11 -11
- package/plugins/lisa/skills/linear-sync/SKILL.md +7 -7
- package/plugins/lisa/skills/linear-to-tracker/SKILL.md +7 -7
- package/plugins/lisa/skills/linear-validate-issue/SKILL.md +8 -8
- package/plugins/lisa/skills/linear-verify/SKILL.md +3 -3
- package/plugins/lisa/skills/linear-write-issue/SKILL.md +20 -20
- package/plugins/lisa/skills/linear-write-prd/SKILL.md +6 -6
- package/plugins/lisa/skills/prd-backlink/SKILL.md +5 -5
- package/plugins/lisa/skills/prd-ticket-coverage/SKILL.md +2 -2
- package/plugins/lisa/skills/repair-intake/SKILL.md +1 -1
- package/plugins/lisa/skills/setup-linear/SKILL.md +5 -5
- package/plugins/lisa/skills/tracker-journey/SKILL.md +1 -1
- package/plugins/lisa/skills/verify-prd/SKILL.md +2 -2
- package/plugins/lisa-agy/agents/linear-agent.md +3 -3
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/skills/analyze-claude-remote/SKILL.md +39 -5
- package/plugins/lisa-agy/skills/generate-claude-remote-build-script/SKILL.md +20 -7
- package/plugins/lisa-agy/skills/intake/SKILL.md +2 -2
- package/plugins/lisa-agy/skills/linear-add-journey/SKILL.md +3 -3
- package/plugins/lisa-agy/skills/linear-build-intake/SKILL.md +11 -11
- package/plugins/lisa-agy/skills/linear-create/SKILL.md +3 -3
- package/plugins/lisa-agy/skills/linear-evidence/SKILL.md +5 -5
- package/plugins/lisa-agy/skills/linear-journey/SKILL.md +2 -2
- package/plugins/lisa-agy/skills/linear-prd-intake/SKILL.md +11 -11
- package/plugins/lisa-agy/skills/linear-read-issue/SKILL.md +11 -11
- package/plugins/lisa-agy/skills/linear-sync/SKILL.md +7 -7
- package/plugins/lisa-agy/skills/linear-to-tracker/SKILL.md +7 -7
- package/plugins/lisa-agy/skills/linear-validate-issue/SKILL.md +8 -8
- package/plugins/lisa-agy/skills/linear-verify/SKILL.md +3 -3
- package/plugins/lisa-agy/skills/linear-write-issue/SKILL.md +20 -20
- package/plugins/lisa-agy/skills/linear-write-prd/SKILL.md +6 -6
- package/plugins/lisa-agy/skills/prd-backlink/SKILL.md +5 -5
- package/plugins/lisa-agy/skills/prd-ticket-coverage/SKILL.md +2 -2
- package/plugins/lisa-agy/skills/repair-intake/SKILL.md +1 -1
- package/plugins/lisa-agy/skills/setup-linear/SKILL.md +5 -5
- package/plugins/lisa-agy/skills/tracker-journey/SKILL.md +1 -1
- package/plugins/lisa-agy/skills/verify-prd/SKILL.md +2 -2
- package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-agy/plugin.json +1 -1
- package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/agents/linear-agent.agent.md +3 -3
- package/plugins/lisa-copilot/rules/reference/repo-scope-split.md +1 -1
- package/plugins/lisa-copilot/skills/analyze-claude-remote/SKILL.md +39 -5
- package/plugins/lisa-copilot/skills/generate-claude-remote-build-script/SKILL.md +20 -7
- package/plugins/lisa-copilot/skills/intake/SKILL.md +2 -2
- package/plugins/lisa-copilot/skills/linear-add-journey/SKILL.md +3 -3
- package/plugins/lisa-copilot/skills/linear-build-intake/SKILL.md +11 -11
- package/plugins/lisa-copilot/skills/linear-create/SKILL.md +3 -3
- package/plugins/lisa-copilot/skills/linear-evidence/SKILL.md +5 -5
- package/plugins/lisa-copilot/skills/linear-journey/SKILL.md +2 -2
- package/plugins/lisa-copilot/skills/linear-prd-intake/SKILL.md +11 -11
- package/plugins/lisa-copilot/skills/linear-read-issue/SKILL.md +11 -11
- package/plugins/lisa-copilot/skills/linear-sync/SKILL.md +7 -7
- package/plugins/lisa-copilot/skills/linear-to-tracker/SKILL.md +7 -7
- package/plugins/lisa-copilot/skills/linear-validate-issue/SKILL.md +8 -8
- package/plugins/lisa-copilot/skills/linear-verify/SKILL.md +3 -3
- package/plugins/lisa-copilot/skills/linear-write-issue/SKILL.md +20 -20
- package/plugins/lisa-copilot/skills/linear-write-prd/SKILL.md +6 -6
- package/plugins/lisa-copilot/skills/prd-backlink/SKILL.md +5 -5
- package/plugins/lisa-copilot/skills/prd-ticket-coverage/SKILL.md +2 -2
- package/plugins/lisa-copilot/skills/repair-intake/SKILL.md +1 -1
- package/plugins/lisa-copilot/skills/setup-linear/SKILL.md +5 -5
- package/plugins/lisa-copilot/skills/tracker-journey/SKILL.md +1 -1
- package/plugins/lisa-copilot/skills/verify-prd/SKILL.md +2 -2
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/agents/linear-agent.md +3 -3
- package/plugins/lisa-cursor/rules/repo-scope-split-reference.mdc +1 -1
- package/plugins/lisa-cursor/skills/analyze-claude-remote/SKILL.md +39 -5
- package/plugins/lisa-cursor/skills/generate-claude-remote-build-script/SKILL.md +20 -7
- package/plugins/lisa-cursor/skills/intake/SKILL.md +2 -2
- package/plugins/lisa-cursor/skills/linear-add-journey/SKILL.md +3 -3
- package/plugins/lisa-cursor/skills/linear-build-intake/SKILL.md +11 -11
- package/plugins/lisa-cursor/skills/linear-create/SKILL.md +3 -3
- package/plugins/lisa-cursor/skills/linear-evidence/SKILL.md +5 -5
- package/plugins/lisa-cursor/skills/linear-journey/SKILL.md +2 -2
- package/plugins/lisa-cursor/skills/linear-prd-intake/SKILL.md +11 -11
- package/plugins/lisa-cursor/skills/linear-read-issue/SKILL.md +11 -11
- package/plugins/lisa-cursor/skills/linear-sync/SKILL.md +7 -7
- package/plugins/lisa-cursor/skills/linear-to-tracker/SKILL.md +7 -7
- package/plugins/lisa-cursor/skills/linear-validate-issue/SKILL.md +8 -8
- package/plugins/lisa-cursor/skills/linear-verify/SKILL.md +3 -3
- package/plugins/lisa-cursor/skills/linear-write-issue/SKILL.md +20 -20
- package/plugins/lisa-cursor/skills/linear-write-prd/SKILL.md +6 -6
- package/plugins/lisa-cursor/skills/prd-backlink/SKILL.md +5 -5
- package/plugins/lisa-cursor/skills/prd-ticket-coverage/SKILL.md +2 -2
- package/plugins/lisa-cursor/skills/repair-intake/SKILL.md +1 -1
- package/plugins/lisa-cursor/skills/setup-linear/SKILL.md +5 -5
- package/plugins/lisa-cursor/skills/tracker-journey/SKILL.md +1 -1
- package/plugins/lisa-cursor/skills/verify-prd/SKILL.md +2 -2
- package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-agy/plugin.json +1 -1
- package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-cursor/.claude-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-harper-fabric-agy/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-agy/plugin.json +1 -1
- package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-agy/plugin.json +1 -1
- package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-agy/plugin.json +1 -1
- package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-agy/plugin.json +1 -1
- package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-cursor/.claude-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/lisa-typescript-agy/plugin.json +1 -1
- package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-agy/plugin.json +1 -1
- package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/src/base/agents/linear-agent.md +3 -3
- package/plugins/src/base/rules/reference/repo-scope-split.md +1 -1
- package/plugins/src/base/skills/analyze-claude-remote/SKILL.md +39 -5
- package/plugins/src/base/skills/generate-claude-remote-build-script/SKILL.md +20 -7
- package/plugins/src/base/skills/intake/SKILL.md +2 -2
- package/plugins/src/base/skills/linear-add-journey/SKILL.md +3 -3
- package/plugins/src/base/skills/linear-build-intake/SKILL.md +11 -11
- package/plugins/src/base/skills/linear-create/SKILL.md +3 -3
- package/plugins/src/base/skills/linear-evidence/SKILL.md +5 -5
- package/plugins/src/base/skills/linear-journey/SKILL.md +2 -2
- package/plugins/src/base/skills/linear-prd-intake/SKILL.md +11 -11
- package/plugins/src/base/skills/linear-read-issue/SKILL.md +11 -11
- package/plugins/src/base/skills/linear-sync/SKILL.md +7 -7
- package/plugins/src/base/skills/linear-to-tracker/SKILL.md +7 -7
- package/plugins/src/base/skills/linear-validate-issue/SKILL.md +8 -8
- package/plugins/src/base/skills/linear-verify/SKILL.md +3 -3
- package/plugins/src/base/skills/linear-write-issue/SKILL.md +20 -20
- package/plugins/src/base/skills/linear-write-prd/SKILL.md +6 -6
- package/plugins/src/base/skills/prd-backlink/SKILL.md +5 -5
- package/plugins/src/base/skills/prd-ticket-coverage/SKILL.md +2 -2
- package/plugins/src/base/skills/repair-intake/SKILL.md +1 -1
- package/plugins/src/base/skills/setup-linear/SKILL.md +5 -5
- package/plugins/src/base/skills/tracker-journey/SKILL.md +1 -1
- package/plugins/src/base/skills/verify-prd/SKILL.md +2 -2
|
@@ -69,4 +69,4 @@ The procedure is vendor-neutral; the create + link + edit mechanics differ:
|
|
|
69
69
|
|
|
70
70
|
- **JIRA** — create via `mcp__atlassian__createJiraIssue` (clone fields, set the same epic parent); link via `mcp__atlassian__createIssueLink` with `Blocks` / `is blocked by` (resolve names via `mcp__atlassian__getIssueLinkTypes`); narrow the original via `mcp__atlassian__editJiraIssue`; comment via `mcp__atlassian__addCommentToJiraIssue`. See `jira-write-ticket` Phase 6.
|
|
71
71
|
- **GitHub** — create the sibling issue with the same labels and parent sub-issue; encode the dependency in the body (`Blocked by #<n>` / `Blocks #<n>`) and via the sub-issue/parent graph where used; edit the original's body to narrow scope. See `github-write-issue` Phase 6.
|
|
72
|
-
- **Linear** — create via `
|
|
72
|
+
- **Linear** — create via `lisa:linear-access operation: save-issue` (clone fields, set the same `projectId`); add a blocking relation via the `relations` field or a paired relation call; edit the original to narrow scope. See `linear-write-issue` Phase 6.
|
|
@@ -148,9 +148,14 @@ Group the findings as:
|
|
|
148
148
|
7. **Platform constraints** — surface the non-config constraints as `GAP`/`RISK` so the user is
|
|
149
149
|
not surprised: routines run with no interactive permission prompts and cannot ask the user
|
|
150
150
|
mid-run; interactive auth (SSO/OAuth browser, keychain) is unavailable; GitHub org IP
|
|
151
|
-
allowlisting blocks cloud sessions;
|
|
152
|
-
|
|
153
|
-
|
|
151
|
+
allowlisting blocks cloud sessions; raw GitHub clone/fetch/push operations are handled by
|
|
152
|
+
Claude's connected-GitHub proxy/identity and do not need a separate PAT; the `gh` CLI is not the
|
|
153
|
+
same substrate and still needs `GH_TOKEN`; outbound traffic is controlled by the routine
|
|
154
|
+
environment network tier, where the default Trusted tier includes common development domains and
|
|
155
|
+
package registries but arbitrary integration hosts need Custom or Full access; environment
|
|
156
|
+
variables and setup scripts are stored in the cloud environment configuration and are visible to
|
|
157
|
+
anyone who can edit that environment; resource limits (~4 vCPU / 16 GB RAM / 30 GB disk); no
|
|
158
|
+
desktop/computer-use; no statusline/theme rendering.
|
|
154
159
|
|
|
155
160
|
8. **Host-project app needs** — note any build/test/run command a routine would invoke and any
|
|
156
161
|
runtime service it depends on (database, queue, external API) that will not exist in a fresh
|
|
@@ -168,9 +173,18 @@ unsuffixed `…_TOKEN`/`…_KEY` is the simplest to set in a single-account rout
|
|
|
168
173
|
|
|
169
174
|
### GitHub — `tracker: github` and/or `source: github`
|
|
170
175
|
- Headless substrate: `gh` CLI authed by token (every Lisa GitHub script gates on `gh auth status`).
|
|
171
|
-
-
|
|
176
|
+
- Platform substrate: Claude's connected-GitHub proxy/identity authenticates raw git
|
|
177
|
+
clone/fetch/push for repositories the routine can access. Do not ask for a PAT solely for raw git
|
|
178
|
+
or sibling-repo clones.
|
|
179
|
+
- Env: `GH_TOKEN` for the `gh` CLI only; set it because Lisa's PR/issue lifecycle shells out to
|
|
180
|
+
`gh`. Do not describe it as required for raw git clone/fetch/push.
|
|
172
181
|
- Acquire: fine-grained — `https://github.com/settings/personal-access-tokens`; classic — `https://github.com/settings/tokens`.
|
|
173
|
-
- Access: fine-grained → Repository access to the
|
|
182
|
+
- Access: fine-grained → Repository access to the repo(s) where Lisa will run `gh` commands (the
|
|
183
|
+
project repo, and the Lisa repo only if filing Lisa issues); Repository permissions: Contents R/W,
|
|
184
|
+
Issues R/W, Pull requests R/W, Metadata R (mandatory); add Workflows R/W only if editing
|
|
185
|
+
`.github/workflows`, and Organization → Projects R/W only if using ProjectV2. Do not include
|
|
186
|
+
sibling repos that are only cloned/fetched with raw git. Classic equivalent: `repo` + `workflow`
|
|
187
|
+
(+ `project`, `read:org` for boards). The identity must hold WRITE/MAINTAIN/ADMIN on the repo.
|
|
174
188
|
|
|
175
189
|
### JIRA — `tracker: jira`
|
|
176
190
|
- Headless substrate: `jira-cli` + curl (Basic auth). The acli and Atlassian-MCP tiers need prior interactive/OAuth auth → not viable headless.
|
|
@@ -242,6 +256,18 @@ so the generator can render acquisition comments into its template:
|
|
|
242
256
|
{ "name": "linear-server", "transport": "http", "auth": "oauth", "headlessUsable": false, "replacedBy": "LINEAR_API_KEY + Linear GraphQL", "dormant": true }
|
|
243
257
|
],
|
|
244
258
|
"gaps": [ "auto-memory not synced to cloud", "bun package fetch behind proxy", "OS keychain absent — env-var token form only" ],
|
|
259
|
+
"platform": {
|
|
260
|
+
"githubProxy": {
|
|
261
|
+
"rawGitAuthenticated": true,
|
|
262
|
+
"crossRepoAccess": "repositories reachable by the connected GitHub identity/routine access do not need a PAT for raw git",
|
|
263
|
+
"ghCliNeedsToken": true
|
|
264
|
+
},
|
|
265
|
+
"secretsVisibility": "environment variables and setup scripts are visible to environment editors"
|
|
266
|
+
},
|
|
267
|
+
"networkAccess": {
|
|
268
|
+
"tier": "custom",
|
|
269
|
+
"allowlistDomains": []
|
|
270
|
+
},
|
|
245
271
|
"allowlistDomains": []
|
|
246
272
|
}
|
|
247
273
|
```
|
|
@@ -269,5 +295,13 @@ so the generator can render acquisition comments into its template:
|
|
|
269
295
|
Lisa's `setup-*` skills) — transcribe them exactly; never guess at the access a token needs.
|
|
270
296
|
- For the active `tracker`/`source`, always report the **env-var** form of the secret, never the OS
|
|
271
297
|
keychain form — keychain reads do not work in a cloud routine.
|
|
298
|
+
- For GitHub, keep the split explicit: raw git uses the platform GitHub proxy/identity, while
|
|
299
|
+
`GH_TOKEN` is for `gh` CLI commands. Sibling repos that are only cloned or fetched with raw git do
|
|
300
|
+
not belong in the token scope.
|
|
301
|
+
- Add GitHub/npm/PyPI/Docker Hub/common development domains to neither `allowlistDomains` nor
|
|
302
|
+
`networkAccess.allowlistDomains`; those are covered by the routine environment's default Trusted
|
|
303
|
+
list. Only non-default integration hosts require Custom-network allowlisting.
|
|
304
|
+
- Always include a `RISK`/`GAP` finding when environment secrets or setup scripts would be visible
|
|
305
|
+
to environment editors; never imply the generated script can hide them.
|
|
272
306
|
- A browser-OAuth MCP (or interactively-authed CLI) backing an active integration is a `GAP`; the
|
|
273
307
|
remediation is its token substrate from the table, not "authenticate the MCP".
|
|
@@ -30,8 +30,9 @@ tracker/source, plus the host project's own package manager and tooling — not
|
|
|
30
30
|
## Procedure
|
|
31
31
|
|
|
32
32
|
1. **Inventory.** Invoke `/lisa:analyze-claude-remote --json` and parse its machine-readable
|
|
33
|
-
inventory block (`packageManager`, `tools`, `env`, `mcp`, `gaps`, `
|
|
34
|
-
analysis cannot run, stop and report why — never
|
|
33
|
+
inventory block (`packageManager`, `tools`, `env`, `mcp`, `gaps`, `platform`,
|
|
34
|
+
`networkAccess`, `allowlistDomains`). If the analysis cannot run, stop and report why — never
|
|
35
|
+
emit a script from guesses.
|
|
35
36
|
|
|
36
37
|
2. **Compose the setup script** from the inventory. The script must be:
|
|
37
38
|
- **Idempotent & detect-before-install** — every install guarded by a `command -v <tool>` check
|
|
@@ -62,11 +63,17 @@ tracker/source, plus the host project's own package manager and tooling — not
|
|
|
62
63
|
where to get the token and what permissions it needs. Emit only the **env-var form** of the name
|
|
63
64
|
that the analysis reported (including any per-account suffixed form like `LINEAR_API_KEY_<slug>`);
|
|
64
65
|
never emit a keychain instruction — keychain does not exist in a cloud routine.
|
|
66
|
+
When the entry is `GH_TOKEN`, add a comment from `platform.githubProxy` clarifying that the token
|
|
67
|
+
is for `gh` CLI commands against the project/Lisa repos, not for raw git clone/fetch/push or
|
|
68
|
+
sibling repos reachable through the routine's GitHub proxy.
|
|
65
69
|
|
|
66
70
|
4. **Emit the allowlist + gaps notice.** List any custom domains the setup or runtime reaches
|
|
67
|
-
(from `allowlistDomains
|
|
68
|
-
|
|
69
|
-
|
|
71
|
+
(from `networkAccess.allowlistDomains`, falling back to legacy `allowlistDomains`) that the user
|
|
72
|
+
must add when the environment needs Custom network access. Do not include default Trusted domains
|
|
73
|
+
such as GitHub, npm/PyPI registries, or Docker Hub. Echo the `gaps` from the analysis
|
|
74
|
+
(auto-memory not synced, interactive-auth/stdio-MCP unavailable, etc.) and the
|
|
75
|
+
`platform.secretsVisibility` warning as a header comment so the user knows what the script
|
|
76
|
+
**cannot** fix.
|
|
70
77
|
|
|
71
78
|
5. **Write and report.** Write the script to `--out` (default `scripts/claude-remote-setup.sh`),
|
|
72
79
|
`chmod +x` it, and print: the path, a one-line summary of what it installs and which env vars to
|
|
@@ -92,9 +99,11 @@ shape, not a fixed payload):
|
|
|
92
99
|
# # --- credentials for the active tracker/source (set in the environment UI) ---
|
|
93
100
|
# # Acquire: https://github.com/settings/personal-access-tokens
|
|
94
101
|
# # Access: fine-grained PAT on target repo: Contents R/W, Issues R/W, Pull requests R/W, Metadata R
|
|
102
|
+
# # Note: GH_TOKEN is for gh CLI only. Raw git uses Claude's connected-GitHub proxy/identity;
|
|
103
|
+
# # sibling repos reached only by raw git do not need to be in this token scope.
|
|
95
104
|
# - GH_TOKEN=<token> # REQUIRED, github is the active tracker+source
|
|
96
|
-
# NETWORK: allowlist these domains
|
|
97
|
-
# - <allowlistDomains, if any>
|
|
105
|
+
# NETWORK: set the environment to Custom and allowlist these non-default domains if not on Full:
|
|
106
|
+
# - <networkAccess.allowlistDomains, if any>
|
|
98
107
|
set -uo pipefail
|
|
99
108
|
|
|
100
109
|
need() { command -v "$1" >/dev/null 2>&1; }
|
|
@@ -152,8 +161,12 @@ to stop are: the analysis could not run, or the `--out` path is not writable.
|
|
|
152
161
|
- Never write real secret values into the script or template — names and placeholders only.
|
|
153
162
|
- For active tracker/source credentials, carry the analysis's `Acquire:` URL and `Access:` scope into
|
|
154
163
|
the template as comments, and emit only the env-var form of the name — never a keychain command.
|
|
164
|
+
- For `GH_TOKEN`, preserve the analysis's GitHub proxy split: it is for `gh` CLI commands only, and
|
|
165
|
+
raw git/cross-repo clone guidance must not expand the token scope to sibling repositories.
|
|
155
166
|
- Never emit an install for a tool the analysis did not surface, and never install `OPTIONAL` tools
|
|
156
167
|
unless `--include-optional` is set.
|
|
168
|
+
- Prefer `networkAccess.allowlistDomains` over legacy top-level `allowlistDomains`; never emit
|
|
169
|
+
domains already covered by the routine environment's default Trusted list.
|
|
157
170
|
- Keep the script idempotent and detect-before-install so it is safe to re-run and cache.
|
|
158
171
|
- Preserve the inventory's `REQUIRED` vs `OPTIONAL` distinction in both fail-behavior (fatal vs
|
|
159
172
|
warn) and section placement.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: intake
|
|
3
3
|
description: "Vendor-agnostic scanner for Ready queues. Given a Notion PRD database URL → finds the first Ready PRD and runs lisa:plan. Given a Confluence space or parent page URL → finds the first prd-ready PRD and runs lisa:plan. Given a Linear workspace URL or team key → finds the first prd-ready Linear project and runs lisa:plan. Given a GitHub repo URL or `org/repo` token → finds the first prd-ready GitHub issue and runs lisa:plan. Given a JIRA project key or JQL filter → finds the first Ready ticket and runs lisa:implement. Given a GitHub repo URL or `org/repo` token when `tracker = github` → finds the first `status:ready` issue and runs lisa:implement. On the PRD side it also closes the loop: each cycle rolls a ticketed PRD up to shipped and dispatches lisa:verify-prd for one shipped PRD (shipped → verified on pass; on fail, re-opened shipped → ticketed with build-ready fix tickets that auto-build and re-verify — never blocked). Designed as the cron target for /schedule — one eligible item per invocation, 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"
|
|
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
|
|
@@ -87,7 +87,7 @@ Disambiguation rules:
|
|
|
87
87
|
- The literal token `linear` (case-insensitive) → Linear queue, default workspace from `linear.workspace` in `.lisa.config.json`.
|
|
88
88
|
- A `github.com` URL or an `<org>/<repo>` token → GitHub queue. The PRD-vs-build dispatch is determined by which label namespace the repo currently uses: PRD-side (`prd-ready`) → `lisa:github-prd-intake`; build-side (`status:ready` and `tracker = github` in `.lisa.config.json`) → `lisa:tracker-build-intake`. If both namespaces are present, prefer the PRD queue unless `$ARGUMENTS` includes `intake_mode=build`. If the URL points at a single issue (`https://github.com/<org>/<repo>/issues/<n>`), this skill is batch-only — direct the caller to `lisa:plan` (for a single PRD issue) or `lisa:implement` (for a single build issue).
|
|
89
89
|
- The literal token `github` (case-insensitive) → GitHub queue, default repo from `.lisa.config.json` `github.org` / `github.repo`.
|
|
90
|
-
- A bare alphanumeric token that matches the JIRA project key regex (uppercase letters / digits / hyphen, ≤10 chars — typically the value of `jira.project` in `.lisa.config.json`) is treated as a JIRA project key by default. A token that does not match the regex is treated as a Confluence space key. If it does not resolve as a Confluence space key either, attempt to resolve as a Linear team key via `
|
|
90
|
+
- A bare alphanumeric token that matches the JIRA project key regex (uppercase letters / digits / hyphen, ≤10 chars — typically the value of `jira.project` in `.lisa.config.json`) is treated as a JIRA project key by default. A token that does not match the regex is treated as a Confluence space key. If it does not resolve as a Confluence space key either, attempt to resolve as a Linear team key via `lisa:linear-access operation: list-teams({query})` before giving up. The only time to stop and ask is when the token resolves to more than one of {JIRA project, Confluence space, Linear team, GitHub `org/repo`} simultaneously — in that overlap the user must disambiguate which queue to scan.
|
|
91
91
|
- An `<org>/<repo>` token (slash-separated, both halves are GitHub-name-shaped) → GitHub queue.
|
|
92
92
|
- A string starting with `project = ` or containing JQL operators (`AND`, `OR`, `=`, `!=`, `~`, etc.) → JQL filter.
|
|
93
93
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: linear-add-journey
|
|
3
3
|
description: "Add a Validation Journey section to an existing Linear Issue by analyzing the change type and generating appropriate verification steps with evidence markers. Linear counterpart of lisa:jira-add-journey."
|
|
4
|
-
allowed-tools: ["Bash", "Read", "Glob", "Grep", "Skill"
|
|
4
|
+
allowed-tools: ["Bash", "Read", "Glob", "Grep", "Skill"]
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# Add Validation Journey to Existing Linear Issue
|
|
@@ -22,7 +22,7 @@ Reads `linear.workspace`, `linear.teamKey` from `.lisa.config.json` (with `.loca
|
|
|
22
22
|
|
|
23
23
|
### Step 1: Read the Issue
|
|
24
24
|
|
|
25
|
-
Fetch via `
|
|
25
|
+
Fetch via `lisa:linear-access operation: get-issue` and extract: title, description (markdown), labels, project, parent, attachments.
|
|
26
26
|
|
|
27
27
|
### Step 2: Check for Existing Journey
|
|
28
28
|
|
|
@@ -91,7 +91,7 @@ Display the drafted journey and ask for confirmation before appending.
|
|
|
91
91
|
|
|
92
92
|
### Step 7: Append to Issue Description
|
|
93
93
|
|
|
94
|
-
After approval, fetch the current description, append the new Validation Journey section, and update via `
|
|
94
|
+
After approval, fetch the current description, append the new Validation Journey section, and update via `lisa:linear-access operation: save-issue({id, description: <new-description>})`. Preserve all existing description content — never overwrite.
|
|
95
95
|
|
|
96
96
|
### Step 8: Verify
|
|
97
97
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: linear-build-intake
|
|
3
3
|
description: "Symmetric counterpart to lisa:jira-build-intake on the Linear side. Scans a Linear team for Issues carrying the configured `ready` build label, claims the first eligible Issue by relabeling to the configured `claimed` label, runs the implementation/build flow via lisa:linear-agent, relabels to the configured `done` label on completion, then exits. Enforces the claim-time arm of the `leaf-only-lifecycle` rule: a parent/container with open child work (or a childless Epic) that still carries a stale build-ready label is skipped or safe-blocked with a lifecycle-repair comment, never claimed. The `ready` label is the human-flipped signal that an Issue is truly ready for development — mirroring how Notion PRDs work Draft → Ready → (us) In Review → Blocked|Ticketed."
|
|
4
|
-
allowed-tools: ["Skill", "Bash"
|
|
4
|
+
allowed-tools: ["Skill", "Bash"]
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# Linear Build Intake: $ARGUMENTS
|
|
@@ -107,7 +107,7 @@ ready → claimed → review → done(env-keyed) (downstream)
|
|
|
107
107
|
|
|
108
108
|
This skill ONLY transitions `$READY → $CLAIMED` on claim, and `$CLAIMED → $DONE` on completion. It never touches `status:done`-as-terminal, `$REVIEW` (owned by `lisa:linear-agent` / `lisa:linear-evidence`), or `status:blocked` (owned by `lisa:linear-agent`'s pre-flight gate).
|
|
109
109
|
|
|
110
|
-
**Pre-flight check**: at start of each cycle, confirm `$READY`, `$CLAIMED`, and the relevant `$DONE` variants exist on the team via `
|
|
110
|
+
**Pre-flight check**: at start of each cycle, confirm `$READY`, `$CLAIMED`, and the relevant `$DONE` variants exist on the team via `lisa:linear-access operation: list-issue-labels`. If `$READY` is missing, stop and report adoption needed. The other labels can be created on demand.
|
|
111
111
|
|
|
112
112
|
## Phases
|
|
113
113
|
|
|
@@ -116,11 +116,11 @@ This skill ONLY transitions `$READY → $CLAIMED` on claim, and `$CLAIMED → $D
|
|
|
116
116
|
1. Parse `$ARGUMENTS`:
|
|
117
117
|
- Bare team key → use as-is.
|
|
118
118
|
- Literal `linear` → fall back to `linear.teamKey` from config.
|
|
119
|
-
2. Resolve team ID via `
|
|
119
|
+
2. Resolve team ID via `lisa:linear-access operation: list-teams({query: <teamKey>})`.
|
|
120
120
|
|
|
121
121
|
### Phase 2 — Find ready Issues
|
|
122
122
|
|
|
123
|
-
Query: `
|
|
123
|
+
Query: `lisa:linear-access operation: list-issues({team: <teamId>, label: "$READY"})`.
|
|
124
124
|
|
|
125
125
|
Capture each Issue's: identifier, title, type label, priority, assignee, project, labels, description summary.
|
|
126
126
|
|
|
@@ -138,7 +138,7 @@ A Linear team can oversee multiple repos (`frontend` / `backend` / `infrastructu
|
|
|
138
138
|
2. **Cheap path first.** Prefer candidates already carrying the `repo:<current>` label. Keep the Phase 2 scan broad so unlabeled Issues are still seen, determined, and stamped.
|
|
139
139
|
3. **Per candidate, apply the repo-scope decision (`repo-scope-split`):**
|
|
140
140
|
- Carries `repo:<other>` → **skip** (leave it `ready` for that repo's own intake); next candidate.
|
|
141
|
-
- **Unlabeled** → determine the target repo(s) from the Issue + code surfaces, then **stamp** `repo:<name>` via `
|
|
141
|
+
- **Unlabeled** → determine the target repo(s) from the Issue + code surfaces, then **stamp** `repo:<name>` via `lisa:linear-access operation: save-issue` (resolve/create the label via `list_issue_labels`/`create_issue_label`) so later cycles filter cheaply; re-apply with the now-known repo.
|
|
142
142
|
- **Multi-repo leaf → split, never claim.** Run the `repo-scope-split` work-time procedure into single-repo siblings, each created **build-ready** (`build_ready: true`) and stamped with its own `repo:<name>`; the current repo's sibling becomes a normal candidate.
|
|
143
143
|
- **Single-repo leaf for the current repo** → fall through to 3a (leaf-only gate) and 3b (claim).
|
|
144
144
|
4. Continue until a claimable current-repo leaf is found (claim it; one per cycle) or the ready set is exhausted — exit cleanly with `"No ready Issues for repo <current>. Nothing to do."`.
|
|
@@ -151,7 +151,7 @@ Run this gate **before** the claim relabel, starting with the oldest/highest-pri
|
|
|
151
151
|
|
|
152
152
|
**Resolve container vs. leaf — structural first, then nominal.** Per `leaf-only-lifecycle` the classification is structural: an Issue is a **container** if it has **open** child work, whatever its declared type; otherwise the **type label** decides. Resolve child work using the same hierarchy `lisa:linear-read-issue` uses — Linear's native parentage: an Issue groups **sub-issues** via `parentId`, and a **Project** (the Epic equivalent) groups Issues via `projectId`. Relations (`save_issue_relation` — `blocks` / `is blocked by`) express dependencies and are **not** parentage — do not count them as children.
|
|
153
153
|
|
|
154
|
-
Fetch the Issue's sub-issues via `
|
|
154
|
+
Fetch the Issue's sub-issues via `lisa:linear-access operation: get-issue` (which returns the children) or `lisa:linear-access operation: list-issues({parentId: <issueId>})`, then count those still open (Linear `state.type` not in the completed/canceled set):
|
|
155
155
|
|
|
156
156
|
```text
|
|
157
157
|
# Children of <issueId>: native sub-issues via parentId.
|
|
@@ -176,7 +176,7 @@ The childless-parent exception promotes every childless type **except Epic** to
|
|
|
176
176
|
|
|
177
177
|
**Safe-block (default action for a flagged container).** Leave the build-ready label in place (don't silently strip it — that hides the lifecycle error), post a single lifecycle-repair comment, record the Issue under "Skipped (container)" in the summary, and end the cycle. Do NOT relabel to `$CLAIMED`. Keep the comment idempotent — skip posting if an identical `[claude-build-intake]` lifecycle-repair comment already exists on the Issue, so a re-entrant cycle doesn't spam it.
|
|
178
178
|
|
|
179
|
-
Post via `
|
|
179
|
+
Post via `lisa:linear-access operation: save-comment` with:
|
|
180
180
|
|
|
181
181
|
```text
|
|
182
182
|
[claude-build-intake] Not claimed: this Issue carries the build-ready label ($READY) but is a container with open child work (or a childless Epic), which violates the leaf-only-lifecycle rule. Build-ready (status:ready) is leaf-only per leaf-only-lifecycle — an agent claims and implements leaves, never a container. Repair: move $READY off this parent onto its leaf children (or, for a childless Epic, decompose it into leaf children or reclassify it to a leaf type). A parent's lifecycle state rolls up from its children and is never set to ready directly.
|
|
@@ -186,9 +186,9 @@ This gate never blocks a legitimate flat Task/Bug: those have no open children a
|
|
|
186
186
|
|
|
187
187
|
#### 3b. Claim
|
|
188
188
|
|
|
189
|
-
Update labels via `
|
|
189
|
+
Update labels via `lisa:linear-access operation: save-issue`: remove `$READY`, add `$CLAIMED`. Resolve label IDs via `list_issue_labels` (create `$CLAIMED` if missing).
|
|
190
190
|
|
|
191
|
-
**Assign to the authenticated user when the Issue is unassigned.** A claim must be attributable. If the Issue has no assignee, set its `assigneeId` to the authenticated viewer (resolve the viewer's id via the Linear MCP identity — e.g. `get_user` for the current actor) through `
|
|
191
|
+
**Assign to the authenticated user when the Issue is unassigned.** A claim must be attributable. If the Issue has no assignee, set its `assigneeId` to the authenticated viewer (resolve the viewer's id via the Linear MCP identity — e.g. `get_user` for the current actor) through `lisa:linear-access operation: save-issue`. Leave an already-assigned Issue's assignee untouched — never reassign work that already has an owner.
|
|
192
192
|
|
|
193
193
|
Post a `[claude-build-intake]` comment via `save_comment`: `"Claimed by Claude. Starting build."`
|
|
194
194
|
|
|
@@ -264,7 +264,7 @@ If `lisa:linear-agent` returned Success:
|
|
|
264
264
|
- If `linear.labels.build.done` is a string, that string is terminal.
|
|
265
265
|
- If `linear.labels.build.done` is an object, only the production/final environment value is terminal (default: `status:done`). Intermediate env values such as `status:on-dev` and `status:on-stg` are not terminal and must keep the native Issue open.
|
|
266
266
|
- If the project uses a different final environment name, resolve it from the configured deployment topology; if ambiguous, record an Error and do not change the native state.
|
|
267
|
-
4. Update labels via `
|
|
267
|
+
4. Update labels via `lisa:linear-access operation: save-issue`: remove `$CLAIMED` (or `$REVIEW` if `lisa:linear-evidence` already moved it forward), add `$DONE`.
|
|
268
268
|
5. If `$DONE` is terminal, move the native Linear Issue state to the configured Done / Completed state. Resolve that state from project configuration if present; otherwise inspect the team workflow for a terminal state with `state.type = "completed"` and a name such as `Done` or `Completed`. If no terminal state can be resolved, record an Error and leave the labels as the source of truth — do not invent a state name.
|
|
269
269
|
6. Post a `[claude-build-intake]` comment: `"Build complete. PR <URL> merged. Transitioned to $DONE."` Include whether native closure was applied, already satisfied, skipped for an intermediate env, or unavailable for setup reasons.
|
|
270
270
|
|
|
@@ -275,7 +275,7 @@ For any non-Success outcome, do NOT transition. The Issue sits where the agent l
|
|
|
275
275
|
Run this **only after a successful `$DONE` transition in 3d**. This is the **forward** arm of the `leaf-only-lifecycle` rule's *"rollup is evaluated whenever a child transitions"* requirement: a leaf reaching `$DONE` may complete its parent Issue, which may in turn complete its Project. Without this step a fully-built parent stays open until the recovery `lisa:repair-intake` cron happens to run.
|
|
276
276
|
|
|
277
277
|
1. Resolve the Issue's parent using the same hierarchy `lisa:linear-read-issue` uses — native parentage: a sub-issue's `parentId`, and Project membership via `projectId` for the Epic-equivalent. If the Issue has no parent, skip — nothing to roll up.
|
|
278
|
-
2. Walk **up the ancestor chain bottom-up** (sub-issue → parent Issue → Project): for each ancestor invoke `lisa:linear-sync <ANCESTOR-ID> --rollup`. That skill derives the ancestor's `status:*` from its children per `leaf-only-lifecycle`, applies it via `
|
|
278
|
+
2. Walk **up the ancestor chain bottom-up** (sub-issue → parent Issue → Project): for each ancestor invoke `lisa:linear-sync <ANCESTOR-ID> --rollup`. That skill derives the ancestor's `status:*` from its children per `leaf-only-lifecycle`, applies it via `lisa:linear-access operation: save-issue` only when it differs (never `status:ready`), and moves the native Linear `state` to the configured Done / Completed state when the derived env is the terminal `$DONE`. It is idempotent and safe-defaults (suggests, does not guess) when the rolled state is ambiguous.
|
|
279
279
|
3. Stop walking up when an ancestor has no parent, or when `--rollup` reports no change. Record each rolled-up ancestor and its derived state in the summary.
|
|
280
280
|
|
|
281
281
|
This does not re-implement the state machine — it delegates to `lisa:linear-sync --rollup`, the single rollup implementation `lisa:repair-intake` also uses, so the forward and recovery paths can never drift. Children closed **outside** this flow are not observed here; `lisa:repair-intake` remains the recovery net for those.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: linear-create
|
|
3
3
|
description: "Creates Linear Projects (Epic-equivalent), Issues (Story / Task / Bug / Spike), and sub-Issues (Sub-task) from code files or descriptions. Analyzes the input, determines the appropriate hierarchy, and creates items with comprehensive quality requirements including test-first development and Validation Journey. The Linear counterpart of lisa:jira-create — delegates every write to lisa:linear-write-issue."
|
|
4
|
-
allowed-tools: ["Read", "Glob", "LS", "Skill"
|
|
4
|
+
allowed-tools: ["Read", "Glob", "LS", "Skill"]
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# Create Linear Work Items from $ARGUMENTS
|
|
8
8
|
|
|
9
|
-
Analyze the provided file(s) and plan a Linear hierarchy. **This skill plans structure only — every individual write is delegated to `lisa:linear-write-issue`.** Do not call `
|
|
9
|
+
Analyze the provided file(s) and plan a Linear hierarchy. **This skill plans structure only — every individual write is delegated to `lisa:linear-write-issue`.** Do not call `lisa:linear-access operation: save-project` or `lisa:linear-access operation: save-issue` from this skill; those write tools are intentionally not in `allowed-tools`.
|
|
10
10
|
|
|
11
11
|
This skill is the destination of the `lisa:tracker-create` shim when `tracker = "linear"`.
|
|
12
12
|
|
|
@@ -104,7 +104,7 @@ Default team: from `linear.teamKey` config (override via arguments).
|
|
|
104
104
|
|
|
105
105
|
## Delegation to linear-write-issue
|
|
106
106
|
|
|
107
|
-
**Mandatory.** Every item created by this skill MUST go through `lisa:linear-write-issue`. This skill never
|
|
107
|
+
**Mandatory.** Every item created by this skill MUST go through `lisa:linear-write-issue`. This skill never performs Linear save operations itself — those tools are intentionally excluded from `allowed-tools` so the gate cannot be bypassed.
|
|
108
108
|
|
|
109
109
|
`lisa:linear-write-issue` enforces:
|
|
110
110
|
- 3-audience description (Context / Technical Approach / Acceptance Criteria)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: linear-evidence
|
|
3
3
|
description: "Uploads text evidence to the GitHub `pr-assets` release, updates the PR description, posts a comment on the originating Linear Issue with code blocks, and transitions the Issue from the configured `claimed` label to the configured `review` label. Reusable by any skill that captures evidence and generates evidence/comment.txt + evidence/code-blocks.md. Linear counterpart of lisa:jira-evidence and lisa:github-evidence."
|
|
4
|
-
allowed-tools: ["Bash", "Skill"
|
|
4
|
+
allowed-tools: ["Bash", "Skill"]
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# Linear Evidence: $ARGUMENTS
|
|
@@ -44,7 +44,7 @@ If any of these are missing, stop and report.
|
|
|
44
44
|
## Phase 1 — Resolve Linear Issue
|
|
45
45
|
|
|
46
46
|
1. Parse the identifier from `$ARGUMENTS`.
|
|
47
|
-
2. Fetch via `
|
|
47
|
+
2. Fetch via `lisa:linear-access operation: get-issue` to confirm it exists and capture its current state, label set, and Project membership.
|
|
48
48
|
|
|
49
49
|
## Phase 2 — Upload Evidence Files (optional)
|
|
50
50
|
|
|
@@ -64,7 +64,7 @@ If no PR is open, skip this phase.
|
|
|
64
64
|
|
|
65
65
|
## Phase 4 — Post Linear Comment
|
|
66
66
|
|
|
67
|
-
Call `
|
|
67
|
+
Call `lisa:linear-access operation: save-comment({issueId: <id>, body: <body>})` where `<body>` is:
|
|
68
68
|
|
|
69
69
|
```markdown
|
|
70
70
|
[<comment.txt contents verbatim>]
|
|
@@ -83,7 +83,7 @@ Linear comments support markdown including `<details>` collapsibles, fenced code
|
|
|
83
83
|
|
|
84
84
|
## Phase 5 — Transition Status
|
|
85
85
|
|
|
86
|
-
Update labels via `
|
|
86
|
+
Update labels via `lisa:linear-access operation: save-issue` to remove `$CLAIMED` and add `$REVIEW`. Resolve label IDs first via `lisa:linear-access operation: list-issue-labels` (create the label via `create_issue_label` if it doesn't exist on the team).
|
|
87
87
|
|
|
88
88
|
The native Linear `state` field is also updated to the team's "In Review" state if one exists — but the label remains the source of truth for cross-team consistency.
|
|
89
89
|
|
|
@@ -99,5 +99,5 @@ Return:
|
|
|
99
99
|
|
|
100
100
|
- Never modify the Issue description as part of evidence posting — comments only. Description edits go through `lisa:linear-write-issue`.
|
|
101
101
|
- Never skip the label transition. The build queue is keyed off the configured `linear.labels.build.*` labels; an item that ships without transitioning is invisible to monitoring.
|
|
102
|
-
- If `
|
|
102
|
+
- If `lisa:linear-access operation: save-comment` fails, retry once. If it fails again, surface the error — don't pretend the comment was posted.
|
|
103
103
|
- Do not delete prior comments. The history is the audit trail.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: linear-journey
|
|
3
3
|
description: "Parse a Linear Issue's Validation Journey section, execute the verification steps using appropriate tools (curl, test commands, database queries, Playwright), capture evidence at each [EVIDENCE: name] marker, and post to Linear + GitHub PR using the linear-evidence skill. Linear counterpart of lisa:jira-journey."
|
|
4
|
-
allowed-tools: ["Bash", "Read", "Glob", "Grep", "Skill"
|
|
4
|
+
allowed-tools: ["Bash", "Read", "Glob", "Grep", "Skill"]
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# Linear Validation Journey
|
|
@@ -31,7 +31,7 @@ Reads `linear.workspace`, `linear.teamKey` from `.lisa.config.json` (with `.loca
|
|
|
31
31
|
|
|
32
32
|
### Step 1: Parse the Validation Journey
|
|
33
33
|
|
|
34
|
-
Fetch the Issue via `
|
|
34
|
+
Fetch the Issue via `lisa:linear-access operation: get-issue` and extract the `## Validation Journey` section from the markdown description. Parse:
|
|
35
35
|
|
|
36
36
|
- `### Prerequisites` — list of required services / env / setup
|
|
37
37
|
- `### Steps` — numbered steps, each potentially containing `[EVIDENCE: name]` markers
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: linear-prd-intake
|
|
3
3
|
description: "Scans a Linear workspace (or a specific team) for projects carrying the configured `ready` PRD label and runs the first eligible one through the dry-run validation pipeline. A project that passes every gate gets tickets written and the label flipped to the configured `ticketed` label; a project that fails gets clarifying-question comments (on a sentinel feedback issue under the project) and the label flipped to the configured `blocked` label. Linear counterpart of `lisa:notion-prd-intake` and `lisa:confluence-prd-intake` — the workflow is identical; only the source-of-truth tools differ. Composes existing skills (linear-to-tracker, tracker-validate, tracker-source-artifacts, product-walkthrough)."
|
|
4
|
-
allowed-tools: ["Skill", "Bash"
|
|
4
|
+
allowed-tools: ["Skill", "Bash"]
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# Linear PRD Intake: $ARGUMENTS
|
|
@@ -96,13 +96,13 @@ If the project does not yet use these labels, this skill cannot run. Adopting th
|
|
|
96
96
|
- Bare team key → use as-is; the scope is that team.
|
|
97
97
|
- The literal `linear` → fall back to `linear.workspace` from `.lisa.config.json`; error if not set.
|
|
98
98
|
2. Verify the scope is reachable:
|
|
99
|
-
- For a workspace: call `
|
|
100
|
-
- For a team: call `
|
|
101
|
-
3. Resolve the project-label IDs for `$READY`, `$IN_REVIEW`, `$BLOCKED`, `$TICKETED` via `
|
|
99
|
+
- For a workspace: call `lisa:linear-access operation: list-teams` and confirm at least one team is returned (non-empty workspaces are readable; empty results indicate auth or workspace-mismatch).
|
|
100
|
+
- For a team: call `lisa:linear-access operation: list-teams({query: <KEY>})` and confirm the team resolves.
|
|
101
|
+
3. Resolve the project-label IDs for `$READY`, `$IN_REVIEW`, `$BLOCKED`, `$TICKETED` via `lisa:linear-access operation: list-project-labels`. Cache them — every transition uses these IDs. If any of the four are missing, surface a label-convention error and exit (see "Adoption").
|
|
102
102
|
|
|
103
103
|
### Phase 2 — Find ready PRDs
|
|
104
104
|
|
|
105
|
-
Call `
|
|
105
|
+
Call `lisa:linear-access operation: list-projects({label: "$READY", ...scope-filter})`:
|
|
106
106
|
|
|
107
107
|
- For a workspace scope: pass `label: "$READY"` only.
|
|
108
108
|
- For a team scope: pass `label: "$READY"` AND `team: "<KEY>"`.
|
|
@@ -123,7 +123,7 @@ Select the first ready project returned by Phase 2 and process only that project
|
|
|
123
123
|
|
|
124
124
|
#### 3a. Claim
|
|
125
125
|
|
|
126
|
-
Transition labels via `
|
|
126
|
+
Transition labels via `lisa:linear-access operation: save-project({id, labels})`: pass the full new label set with `$READY` removed and `$IN_REVIEW` added. This is the idempotency lock — a re-entrant cycle running concurrently won't see this project because its query filters on `label: "$READY"`.
|
|
127
127
|
|
|
128
128
|
If the update fails (permission error, race condition), log it and skip this project. Do not proceed to validation on a project you didn't successfully claim.
|
|
129
129
|
|
|
@@ -145,7 +145,7 @@ This call also indirectly invokes `lisa:tracker-source-artifacts` (artifact extr
|
|
|
145
145
|
|
|
146
146
|
1. Re-invoke `lisa:linear-to-tracker` with `dry_run: false` to actually write the tickets. This re-runs Phases 1-5 and runs the preservation gate (Phase 5.5).
|
|
147
147
|
2. Capture the created ticket keys from the skill's output.
|
|
148
|
-
3. Ensure the project has a sentinel feedback issue (see "Sentinel feedback issue" below for the helper). Post a comment on it via `
|
|
148
|
+
3. Ensure the project has a sentinel feedback issue (see "Sentinel feedback issue" below for the helper). Post a comment on it via `lisa:linear-access operation: save-comment` 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 $SHIPPED label to the Linear project after the work is delivered."`
|
|
149
149
|
4. Transition labels: remove `$IN_REVIEW`, add `$TICKETED` via `save_project`.
|
|
150
150
|
5. **Run Phase 3e (coverage audit)** before considering this PRD done.
|
|
151
151
|
|
|
@@ -160,7 +160,7 @@ The audience for these comments is the **product team**, not engineers. They are
|
|
|
160
160
|
|
|
161
161
|
##### 3c.2 Render each comment
|
|
162
162
|
|
|
163
|
-
Ensure the project has a sentinel feedback issue (see helper below). For each anchored group (`prd_anchor` is a sub-issue identifier), post a comment on THAT sub-issue via `
|
|
163
|
+
Ensure the project has a sentinel feedback issue (see helper below). For each anchored group (`prd_anchor` is a sub-issue identifier), post a comment on THAT sub-issue via `lisa:linear-access operation: save-comment({issueId: <prd_anchor>, body: <template>})`. For the unanchored group, post a single comment on the sentinel feedback issue using the same template, prefixed with `Issues without a specific sub-issue anchor:` and one block per failure.
|
|
164
164
|
|
|
165
165
|
If `save_comment` fails for a specific anchored sub-issue (the issue was deleted between fetch and post, or the agent lacks comment permission), fall back to the sentinel feedback issue for that group. Do not silently drop the failure.
|
|
166
166
|
|
|
@@ -246,7 +246,7 @@ Rollup is keyed by the PRD's current state. If the PRD project already carries `
|
|
|
246
246
|
|
|
247
247
|
Read the PRD's **generated top-level work** — its created Epics and any top-level Stories created directly under it, **excluding** leaf Sub-tasks and any Story nested under a generated Epic (`prd-lifecycle-rollup` rule, generated-top-level-work contract). Use two sources, native first:
|
|
248
248
|
|
|
249
|
-
1. **Native parent / project relationships (primary).** Linear records the PRD→child relationship natively where the PRD also lives in Linear: a generated top-level Issue uses `parentId`, or a generated Project groups the generated Issues. Read the PRD project's generated top-level Issues via `
|
|
249
|
+
1. **Native parent / project relationships (primary).** Linear records the PRD→child relationship natively where the PRD also lives in Linear: a generated top-level Issue uses `parentId`, or a generated Project groups the generated Issues. Read the PRD project's generated top-level Issues via `lisa:linear-access operation: list-issues({project: <id>})` and take the **top-level** ones (no `parentId`, or whose parent is the PRD itself) — those are the PRD's direct children. Fetch each with `lisa:linear-access operation: get-issue` for its workflow state.
|
|
250
250
|
|
|
251
251
|
2. **Documented `## Tickets` section (fallback).** When the native relationship is unavailable (the destination tracker is a *different* system — e.g. Linear PRD → JIRA tracker — so the children were never linked as Linear issues), parse the machine-readable generated-work section `lisa:prd-backlink` writes to the PRD (`## Tickets`, alias `## Generated Work`; see #582). Top-level children are the `### <Epic key>: <title>` group headers' first line (`- [<ref>](<url>) — Epic`) plus any top-level Story listed directly under `### Unparented items`. Lines nested deeper (` - ... — Story:` under an Epic, ` - ... — Sub-task:`) are descendants, NOT top-level children — skip them.
|
|
252
252
|
|
|
@@ -266,7 +266,7 @@ The set of **required** children for the all-terminal check is the top-level chi
|
|
|
266
266
|
|
|
267
267
|
**All required children terminal** (every required top-level child is terminal; at least one required child exists):
|
|
268
268
|
|
|
269
|
-
1. Transition labels: remove `$TICKETED`, add `$SHIPPED` via `
|
|
269
|
+
1. Transition labels: remove `$TICKETED`, add `$SHIPPED` via `lisa:linear-access operation: save-project({id, labels})`. Verify exactly one lifecycle label remains (the single-label invariant).
|
|
270
270
|
2. Leave the PRD active for `/lisa:verify-prd`; do not archive at the shipped hop.
|
|
271
271
|
3. Post a short rollup comment on the sentinel feedback issue naming the terminal child set and (when dropped children exist) the dropped set, so the audit trail records *why* the PRD shipped. Lead with `"Shipped by Claude — all generated top-level work is complete."`
|
|
272
272
|
|
|
@@ -283,7 +283,7 @@ This phase implements exactly one PRD-lifecycle hop — `$TICKETED → $SHIPPED`
|
|
|
283
283
|
|
|
284
284
|
`shipped` and `verified` are distinct facts about a PRD (see the `prd-lifecycle-rollup` rule's "PRD-level verification vs ticket verification" and "Closing the loop" sections). Rollup (3f) only reaches `$SHIPPED`; the `shipped → verified` (pass) / `shipped → ticketed` (fail) hops are owned by `/lisa:verify-prd`. This phase **closes that loop** by dispatching the initiative-level acceptance gate for shipped PRDs. It never performs the verification transition itself — the "never sets the verification outcome" invariant holds: `lisa:verify-prd`, not this skill, sets `verified` (or, on failure, re-opens the PRD to `ticketed`).
|
|
285
285
|
|
|
286
|
-
Re-query the projects currently carrying the `$SHIPPED` label via `
|
|
286
|
+
Re-query the projects currently carrying the `$SHIPPED` label via `lisa:linear-access operation: list-projects` (filtered by the `$SHIPPED` project label, **including archived projects** — so shipped PRDs remain active for `lisa:verify-prd`). Pick the **first** one and invoke `lisa:verify-prd <project-url>`. Process **one shipped PRD per cycle** — `lisa:verify-prd` is a heavy full flow (spec-conformance + empirical verification + fix-issue creation), so it is bounded exactly like the single-ready-PRD claim in Phase 3; the scheduler drains the rest.
|
|
287
287
|
|
|
288
288
|
**Per-cycle combined bound:** each scheduler cycle dispatches at most one ready PRD (the Phase 3 single-ready-PRD claim) **and** at most one shipped PRD for verification (this Phase 3g dispatch), for a maximum of two PRD operations per cycle. Ready intake runs first (Phase 3), then shipped verify (Phase 3g).
|
|
289
289
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: linear-read-issue
|
|
3
3
|
description: "Fetches the full scope of a Linear work item — Issue or Project — including metadata, description, acceptance criteria, all comments, attachments, native relations (blocks/blocked_by/relates_to/duplicates), Project parent (if any) with siblings, and sub-Issues. Produces a consolidated context bundle that downstream agents consume so they never act on a single item in isolation."
|
|
4
|
-
allowed-tools: ["Bash", "Skill"
|
|
4
|
+
allowed-tools: ["Bash", "Skill"]
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# Read Linear Work Item: $ARGUMENTS
|
|
@@ -21,13 +21,13 @@ Reads `linear.workspace`, `linear.teamKey` from `.lisa.config.json` (with `.loca
|
|
|
21
21
|
1. If `$ARGUMENTS` matches `<TEAM>-<n>` → Issue mode.
|
|
22
22
|
2. If `$ARGUMENTS` is a URL containing `/project/<slug>-<short-id>` → Project mode (extract `<short-id>`).
|
|
23
23
|
3. Otherwise stop and report. Do NOT guess.
|
|
24
|
-
4. Resolve team ID via `
|
|
24
|
+
4. Resolve team ID via `lisa:linear-access operation: list-teams({query: <teamKey>})`.
|
|
25
25
|
|
|
26
26
|
## Phase 2 — Fetch Primary Item
|
|
27
27
|
|
|
28
28
|
### Issue mode
|
|
29
29
|
|
|
30
|
-
Call `
|
|
30
|
+
Call `lisa:linear-access operation: get-issue`. Extract and preserve:
|
|
31
31
|
|
|
32
32
|
**Metadata**
|
|
33
33
|
- Identifier, title, issue type (typically a label or workflow state), state, priority (0–4)
|
|
@@ -43,13 +43,13 @@ Call `mcp__linear-server__get_issue`. Extract and preserve:
|
|
|
43
43
|
- Attachment URLs (capture, do not download unless needed)
|
|
44
44
|
|
|
45
45
|
**Comments**
|
|
46
|
-
Fetch ALL comments via `
|
|
46
|
+
Fetch ALL comments via `lisa:linear-access operation: list-comments({issueId: <id>})` in chronological order. Walk thread parents/children — Linear comments are threaded via `parentId`. Do not truncate. For each comment:
|
|
47
47
|
- Author, timestamp, body
|
|
48
48
|
- Flag comments that contain: credentials, reproduction steps, status updates from stakeholders, decisions, or triage headers.
|
|
49
49
|
|
|
50
50
|
### Project mode
|
|
51
51
|
|
|
52
|
-
Call `
|
|
52
|
+
Call `lisa:linear-access operation: get-project` with `includeMilestones: true`, `includeResources: true`. Extract:
|
|
53
53
|
|
|
54
54
|
**Metadata**
|
|
55
55
|
- ID, slug, name, state, priority, lead, color
|
|
@@ -58,10 +58,10 @@ Call `mcp__linear-server__get_project` with `includeMilestones: true`, `includeR
|
|
|
58
58
|
|
|
59
59
|
**Body**
|
|
60
60
|
- Description (markdown)
|
|
61
|
-
- Attached documents — call `
|
|
61
|
+
- Attached documents — call `lisa:linear-access operation: list-documents({projectId})` then `lisa:linear-access operation: get-document` per result. Treat each as additional spec content.
|
|
62
62
|
|
|
63
63
|
**Member Issues**
|
|
64
|
-
- Call `
|
|
64
|
+
- Call `lisa:linear-access operation: list-issues({project: <id>})` to enumerate the Project's Issues. Capture identifier, title, state, parent Issue (for sub-Issue tree).
|
|
65
65
|
|
|
66
66
|
## Phase 3 — Fetch Attachments / Remote Links
|
|
67
67
|
|
|
@@ -81,7 +81,7 @@ Linear native Issue relations are returned in the `get_issue` response under `re
|
|
|
81
81
|
- `relates_to`
|
|
82
82
|
- `duplicates` / `duplicated_by`
|
|
83
83
|
|
|
84
|
-
For each related Issue, call `
|
|
84
|
+
For each related Issue, call `lisa:linear-access operation: get-issue` and capture:
|
|
85
85
|
- Identifier, title, state, priority, assignee
|
|
86
86
|
- Description (full, unless cancelled — then summary only)
|
|
87
87
|
- Acceptance Criteria section
|
|
@@ -96,9 +96,9 @@ For Project-level relationships (Project ↔ Project), Linear doesn't model nati
|
|
|
96
96
|
|
|
97
97
|
If the primary Item is an Issue with a Project parent:
|
|
98
98
|
|
|
99
|
-
1. Fetch the Project via `
|
|
99
|
+
1. Fetch the Project via `lisa:linear-access operation: get-project` — full description, milestones, labels, lead.
|
|
100
100
|
2. Fetch Project documents (Phase 2 procedure).
|
|
101
|
-
3. Find Project siblings via `
|
|
101
|
+
3. Find Project siblings via `lisa:linear-access operation: list-issues({project: <projectId>})` excluding the primary identifier.
|
|
102
102
|
4. For each sibling, capture: identifier, title, state, priority, assignee, summary (first paragraph of description).
|
|
103
103
|
5. If a sibling is `Started` or `In Review` with a different assignee, flag it prominently.
|
|
104
104
|
|
|
@@ -106,7 +106,7 @@ If the primary Item IS a Project, Phase 5 is the same as fetching all member Iss
|
|
|
106
106
|
|
|
107
107
|
## Phase 6 — Fetch Sub-Issues
|
|
108
108
|
|
|
109
|
-
If the primary Issue has children (sub-Issues), fetch each via `
|
|
109
|
+
If the primary Issue has children (sub-Issues), fetch each via `lisa:linear-access operation: get-issue`: identifier, title, state, assignee, description (first paragraph), Acceptance Criteria.
|
|
110
110
|
|
|
111
111
|
## Phase 7 — Assemble Context Bundle
|
|
112
112
|
|