@codyswann/lisa 1.86.3 → 1.87.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 CHANGED
@@ -78,7 +78,7 @@
78
78
  "lodash": ">=4.18.1"
79
79
  },
80
80
  "name": "@codyswann/lisa",
81
- "version": "1.86.3",
81
+ "version": "1.87.0",
82
82
  "description": "Claude Code governance framework that applies guardrails, guidance, and automated enforcement to projects",
83
83
  "main": "dist/index.js",
84
84
  "exports": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "1.86.3",
3
+ "version": "1.87.0",
4
4
  "description": "Universal governance — agents, skills, commands, hooks, and rules for all projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -5,6 +5,8 @@ argument-hint: "<description-or-ticket-id-or-url>"
5
5
 
6
6
  Apply the `intent-routing` rule (loaded via the lisa plugin) and execute the **Implement** flow with the **Build** work type.
7
7
 
8
+ **Orchestration: agent team.** Build runs a long multi-specialist sequence with parallel review. After echoing the flow and orchestration mode, your FIRST tool call MUST be `TeamCreate`. Do not call `TaskCreate`, `Agent`, or implementation tools before the team exists.
9
+
8
10
  If the argument is a JIRA ticket ID or URL, hand off to the `jira-agent` which will read the ticket, extract context, and delegate back to the Implement flow.
9
11
 
10
12
  $ARGUMENTS
@@ -5,6 +5,8 @@ argument-hint: "<description-or-ticket-id-or-url>"
5
5
 
6
6
  Apply the `intent-routing` rule (loaded via the lisa plugin) and execute the **Implement** flow with the **Fix** work type.
7
7
 
8
+ **Orchestration: agent team.** Fix runs a long multi-specialist sequence with parallel review. After echoing the flow and orchestration mode, your FIRST tool call MUST be `TeamCreate`. Do not call `TaskCreate`, `Agent`, or implementation tools before the team exists.
9
+
8
10
  If the argument is a JIRA ticket ID or URL, hand off to the `jira-agent` which will read the ticket, extract context, and delegate back to the Implement flow.
9
11
 
10
12
  $ARGUMENTS
@@ -5,6 +5,8 @@ argument-hint: "<target-description>"
5
5
 
6
6
  Apply the `intent-routing` rule (loaded via the lisa plugin) and execute the **Implement** flow with the **Improve** work type.
7
7
 
8
+ **Orchestration: agent team.** Improve runs a multi-specialist sequence with parallel review. After echoing the flow and orchestration mode, your FIRST tool call MUST be `TeamCreate`. Do not call `TaskCreate`, `Agent`, or implementation tools before the team exists.
9
+
8
10
  For specific improvement types, you can also use:
9
11
  - `/lisa:plan:add-test-coverage` -- increase test coverage
10
12
  - `/lisa:plan:fix-linter-error` -- fix lint rule violations
@@ -5,6 +5,8 @@ argument-hint: "<description-or-ticket-id-or-url>"
5
5
 
6
6
  Apply the `intent-routing` rule (loaded via the lisa plugin) and execute the **Plan** flow.
7
7
 
8
+ **Orchestration: agent team.** Plan is a multi-specialist flow feeding a shared decomposition. After echoing the flow and orchestration mode, your FIRST tool call MUST be `TeamCreate`. Do not call `TaskCreate`, `Agent`, or implementation tools before the team exists.
9
+
8
10
  If no PRD or specification exists, suggest running the **Research** flow first to produce one.
9
11
 
10
12
  If the argument is a JIRA ticket ID or URL, hand off to the `jira-agent` which will read the ticket and extract context.
@@ -5,4 +5,6 @@ argument-hint: "<problem-statement-or-feature-idea>"
5
5
 
6
6
  Apply the `intent-routing` rule (loaded via the lisa plugin) and execute the **Research** flow.
7
7
 
8
+ **Orchestration: agent team.** Research is a multi-specialist flow feeding a shared PRD. After echoing the flow and orchestration mode, your FIRST tool call MUST be `TeamCreate`. Do not call `TaskCreate`, `Agent`, or implementation tools before the team exists.
9
+
8
10
  $ARGUMENTS
@@ -2,6 +2,14 @@ Intent Routing (FIRST — before anything else):
2
2
 
3
3
  Before starting any work in a session, classify the user's initial request using the Intent Routing rule. Determine which flow applies (Research, Plan, Implement, Verify, or None) and check its readiness gate. Once a flow is established, all subsequent messages operate within it. Do not skip this step — even if the request seems simple. See the `intent-routing` rule for the full protocol.
4
4
 
5
+ Orchestration Selection (SECOND — immediately after classifying the flow):
6
+
7
+ After echoing the chosen flow and BEFORE doing any work, state the orchestration mode explicitly — either `Orchestration: agent team` or `Orchestration: single agent` — with a one-sentence justification. This echo is mandatory and must appear in the same message as the flow classification.
8
+
9
+ Default to an agent team for Research, Plan, Implement (Build/Fix/Improve), and any flow that invokes the Review sub-flow. Use a single agent only for Verify (standalone), Monitor (standalone), and Investigate Only spikes. See the `intent-routing` rule's Orchestration section for the full decision matrix.
10
+
11
+ When the mode is `agent team`, your FIRST tool call after the classification echo MUST be `TeamCreate`. Do not reach for `TaskCreate`, `Agent`, or direct tool calls before the team exists — those are bypass paths that skip durable task state and parallel review.
12
+
5
13
  Requirement Verification:
6
14
 
7
15
  Never assume the person providing instructions has given you complete, correct, or technically precise requirements. Treat every request as potentially underspecified. Before starting any work:
@@ -21,6 +21,19 @@ This protocol runs **once per session**, on the first user message. After that,
21
21
  This echo is mandatory. Do not skip it, abbreviate it, or bury it in other output. The user must see the flow classification before any work begins.
22
22
  5. If you are a subagent: your parent agent has already determined the flow -- do NOT ask the user to choose a flow. Execute your assigned work within the established flow context.
23
23
 
24
+ ## Orchestration Selection Protocol
25
+
26
+ Immediately after echoing the flow (and before any work begins), state the orchestration mode in the same message. The format is:
27
+
28
+ > **Orchestration: agent team** (or **single agent**)
29
+ > One-sentence justification.
30
+
31
+ This echo is mandatory. The user must see the orchestration mode before any work begins. See the **Orchestration** section below for the full decision matrix and team-setup protocol.
32
+
33
+ Quick rule: Research, Plan, Implement (Build/Fix/Improve), and any flow invoking the Review sub-flow → **agent team**. Verify standalone, Monitor standalone, Investigate Only spikes → **single agent**. When in doubt, use a team.
34
+
35
+ If the mode is `agent team`, the first tool call after the echo MUST be `TeamCreate`. Do not call `TaskCreate`, `Agent`, or direct implementation tools before the team exists.
36
+
24
37
  ## Readiness Gate Protocol
25
38
 
26
39
  Every flow begins with a gate check. The gate defines what information must be present before the flow can begin.
@@ -46,6 +59,7 @@ Gate:
46
59
  - If none is provided, ask: "What problem are you trying to solve or what capability are you trying to add?"
47
60
 
48
61
  Sequence:
62
+ 0. **Create agent team via `TeamCreate`** (see Orchestration section) -- Research is a multi-specialist flow; do this before any other work.
49
63
  1. **Investigate sub-flow** -- gather context from codebase, git history, existing behavior, and external sources
50
64
  2. `product-specialist` -- define user goals, user flows (Gherkin), acceptance criteria, error states, UX concerns, and out-of-scope items
51
65
  3. `architecture-specialist` -- assess technical feasibility, identify constraints, map existing system boundaries
@@ -66,6 +80,7 @@ Gate:
66
80
  - If the specification has unresolved ambiguities, stop and list them
67
81
 
68
82
  Sequence:
83
+ 0. **Create agent team via `TeamCreate`** (see Orchestration section) -- Plan is a multi-specialist flow feeding a shared decomposition; do this before any other work.
69
84
  1. **Investigate sub-flow** -- explore codebase for architecture, patterns, dependencies relevant to the spec
70
85
  2. `product-specialist` -- validate and refine acceptance criteria for the whole scope
71
86
  3. `architecture-specialist` -- map dependencies, identify cross-cutting concerns, determine execution order
@@ -95,6 +110,7 @@ Determine the work type and execute the matching variant:
95
110
 
96
111
  #### Build (features, stories, tasks)
97
112
 
113
+ 0. **Create agent team via `TeamCreate`** (see Orchestration section) -- Build runs a long sequence with parallel review; do this before any other work.
98
114
  1. **Investigate sub-flow** -- explore codebase for related code, patterns, dependencies
99
115
  2. `product-specialist` -- define acceptance criteria, user flows, error states
100
116
  3. `architecture-specialist` -- design approach, map files to modify, identify reusable code
@@ -108,6 +124,7 @@ Determine the work type and execute the matching variant:
108
124
 
109
125
  #### Fix (bugs)
110
126
 
127
+ 0. **Create agent team via `TeamCreate`** (see Orchestration section) -- Fix runs a long sequence with parallel review; do this before any other work.
111
128
  1. **Reproduce sub-flow** -- write failing test or script that demonstrates the bug (MANDATORY before any fix is attempted)
112
129
  2. **Investigate sub-flow** -- git history, root cause analysis
113
130
  3. `debug-specialist` -- prove root cause with evidence
@@ -122,6 +139,7 @@ Determine the work type and execute the matching variant:
122
139
 
123
140
  #### Improve (refactoring, optimization, coverage improvement)
124
141
 
142
+ 0. **Create agent team via `TeamCreate`** (see Orchestration section) -- Improve runs a long sequence with parallel review; do this before any other work.
125
143
  1. **Investigate sub-flow** -- understand current state, measure baseline
126
144
  2. `architecture-specialist` -- identify target, plan approach
127
145
  3. `test-specialist` -- ensure existing test coverage before refactoring (safety net)
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-cdk",
3
- "version": "1.86.3",
3
+ "version": "1.87.0",
4
4
  "description": "AWS CDK-specific plugin",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-expo",
3
- "version": "1.86.3",
3
+ "version": "1.87.0",
4
4
  "description": "Expo/React Native-specific skills, agents, rules, and MCP servers",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-nestjs",
3
- "version": "1.86.3",
3
+ "version": "1.87.0",
4
4
  "description": "NestJS-specific skills (GraphQL, TypeORM) and hooks (migration write-protection)",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-rails",
3
- "version": "1.86.3",
3
+ "version": "1.87.0",
4
4
  "description": "Ruby on Rails-specific hooks — RuboCop linting/formatting and ast-grep scanning on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-typescript",
3
- "version": "1.86.3",
3
+ "version": "1.87.0",
4
4
  "description": "TypeScript-specific hooks — Prettier formatting, ESLint linting, and ast-grep scanning on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -5,6 +5,8 @@ argument-hint: "<description-or-ticket-id-or-url>"
5
5
 
6
6
  Apply the `intent-routing` rule (loaded via the lisa plugin) and execute the **Implement** flow with the **Build** work type.
7
7
 
8
+ **Orchestration: agent team.** Build runs a long multi-specialist sequence with parallel review. After echoing the flow and orchestration mode, your FIRST tool call MUST be `TeamCreate`. Do not call `TaskCreate`, `Agent`, or implementation tools before the team exists.
9
+
8
10
  If the argument is a JIRA ticket ID or URL, hand off to the `jira-agent` which will read the ticket, extract context, and delegate back to the Implement flow.
9
11
 
10
12
  $ARGUMENTS
@@ -5,6 +5,8 @@ argument-hint: "<description-or-ticket-id-or-url>"
5
5
 
6
6
  Apply the `intent-routing` rule (loaded via the lisa plugin) and execute the **Implement** flow with the **Fix** work type.
7
7
 
8
+ **Orchestration: agent team.** Fix runs a long multi-specialist sequence with parallel review. After echoing the flow and orchestration mode, your FIRST tool call MUST be `TeamCreate`. Do not call `TaskCreate`, `Agent`, or implementation tools before the team exists.
9
+
8
10
  If the argument is a JIRA ticket ID or URL, hand off to the `jira-agent` which will read the ticket, extract context, and delegate back to the Implement flow.
9
11
 
10
12
  $ARGUMENTS
@@ -5,6 +5,8 @@ argument-hint: "<target-description>"
5
5
 
6
6
  Apply the `intent-routing` rule (loaded via the lisa plugin) and execute the **Implement** flow with the **Improve** work type.
7
7
 
8
+ **Orchestration: agent team.** Improve runs a multi-specialist sequence with parallel review. After echoing the flow and orchestration mode, your FIRST tool call MUST be `TeamCreate`. Do not call `TaskCreate`, `Agent`, or implementation tools before the team exists.
9
+
8
10
  For specific improvement types, you can also use:
9
11
  - `/lisa:plan:add-test-coverage` -- increase test coverage
10
12
  - `/lisa:plan:fix-linter-error` -- fix lint rule violations
@@ -5,6 +5,8 @@ argument-hint: "<description-or-ticket-id-or-url>"
5
5
 
6
6
  Apply the `intent-routing` rule (loaded via the lisa plugin) and execute the **Plan** flow.
7
7
 
8
+ **Orchestration: agent team.** Plan is a multi-specialist flow feeding a shared decomposition. After echoing the flow and orchestration mode, your FIRST tool call MUST be `TeamCreate`. Do not call `TaskCreate`, `Agent`, or implementation tools before the team exists.
9
+
8
10
  If no PRD or specification exists, suggest running the **Research** flow first to produce one.
9
11
 
10
12
  If the argument is a JIRA ticket ID or URL, hand off to the `jira-agent` which will read the ticket and extract context.
@@ -5,4 +5,6 @@ argument-hint: "<problem-statement-or-feature-idea>"
5
5
 
6
6
  Apply the `intent-routing` rule (loaded via the lisa plugin) and execute the **Research** flow.
7
7
 
8
+ **Orchestration: agent team.** Research is a multi-specialist flow feeding a shared PRD. After echoing the flow and orchestration mode, your FIRST tool call MUST be `TeamCreate`. Do not call `TaskCreate`, `Agent`, or implementation tools before the team exists.
9
+
8
10
  $ARGUMENTS
@@ -2,6 +2,14 @@ Intent Routing (FIRST — before anything else):
2
2
 
3
3
  Before starting any work in a session, classify the user's initial request using the Intent Routing rule. Determine which flow applies (Research, Plan, Implement, Verify, or None) and check its readiness gate. Once a flow is established, all subsequent messages operate within it. Do not skip this step — even if the request seems simple. See the `intent-routing` rule for the full protocol.
4
4
 
5
+ Orchestration Selection (SECOND — immediately after classifying the flow):
6
+
7
+ After echoing the chosen flow and BEFORE doing any work, state the orchestration mode explicitly — either `Orchestration: agent team` or `Orchestration: single agent` — with a one-sentence justification. This echo is mandatory and must appear in the same message as the flow classification.
8
+
9
+ Default to an agent team for Research, Plan, Implement (Build/Fix/Improve), and any flow that invokes the Review sub-flow. Use a single agent only for Verify (standalone), Monitor (standalone), and Investigate Only spikes. See the `intent-routing` rule's Orchestration section for the full decision matrix.
10
+
11
+ When the mode is `agent team`, your FIRST tool call after the classification echo MUST be `TeamCreate`. Do not reach for `TaskCreate`, `Agent`, or direct tool calls before the team exists — those are bypass paths that skip durable task state and parallel review.
12
+
5
13
  Requirement Verification:
6
14
 
7
15
  Never assume the person providing instructions has given you complete, correct, or technically precise requirements. Treat every request as potentially underspecified. Before starting any work:
@@ -21,6 +21,19 @@ This protocol runs **once per session**, on the first user message. After that,
21
21
  This echo is mandatory. Do not skip it, abbreviate it, or bury it in other output. The user must see the flow classification before any work begins.
22
22
  5. If you are a subagent: your parent agent has already determined the flow -- do NOT ask the user to choose a flow. Execute your assigned work within the established flow context.
23
23
 
24
+ ## Orchestration Selection Protocol
25
+
26
+ Immediately after echoing the flow (and before any work begins), state the orchestration mode in the same message. The format is:
27
+
28
+ > **Orchestration: agent team** (or **single agent**)
29
+ > One-sentence justification.
30
+
31
+ This echo is mandatory. The user must see the orchestration mode before any work begins. See the **Orchestration** section below for the full decision matrix and team-setup protocol.
32
+
33
+ Quick rule: Research, Plan, Implement (Build/Fix/Improve), and any flow invoking the Review sub-flow → **agent team**. Verify standalone, Monitor standalone, Investigate Only spikes → **single agent**. When in doubt, use a team.
34
+
35
+ If the mode is `agent team`, the first tool call after the echo MUST be `TeamCreate`. Do not call `TaskCreate`, `Agent`, or direct implementation tools before the team exists.
36
+
24
37
  ## Readiness Gate Protocol
25
38
 
26
39
  Every flow begins with a gate check. The gate defines what information must be present before the flow can begin.
@@ -46,6 +59,7 @@ Gate:
46
59
  - If none is provided, ask: "What problem are you trying to solve or what capability are you trying to add?"
47
60
 
48
61
  Sequence:
62
+ 0. **Create agent team via `TeamCreate`** (see Orchestration section) -- Research is a multi-specialist flow; do this before any other work.
49
63
  1. **Investigate sub-flow** -- gather context from codebase, git history, existing behavior, and external sources
50
64
  2. `product-specialist` -- define user goals, user flows (Gherkin), acceptance criteria, error states, UX concerns, and out-of-scope items
51
65
  3. `architecture-specialist` -- assess technical feasibility, identify constraints, map existing system boundaries
@@ -66,6 +80,7 @@ Gate:
66
80
  - If the specification has unresolved ambiguities, stop and list them
67
81
 
68
82
  Sequence:
83
+ 0. **Create agent team via `TeamCreate`** (see Orchestration section) -- Plan is a multi-specialist flow feeding a shared decomposition; do this before any other work.
69
84
  1. **Investigate sub-flow** -- explore codebase for architecture, patterns, dependencies relevant to the spec
70
85
  2. `product-specialist` -- validate and refine acceptance criteria for the whole scope
71
86
  3. `architecture-specialist` -- map dependencies, identify cross-cutting concerns, determine execution order
@@ -95,6 +110,7 @@ Determine the work type and execute the matching variant:
95
110
 
96
111
  #### Build (features, stories, tasks)
97
112
 
113
+ 0. **Create agent team via `TeamCreate`** (see Orchestration section) -- Build runs a long sequence with parallel review; do this before any other work.
98
114
  1. **Investigate sub-flow** -- explore codebase for related code, patterns, dependencies
99
115
  2. `product-specialist` -- define acceptance criteria, user flows, error states
100
116
  3. `architecture-specialist` -- design approach, map files to modify, identify reusable code
@@ -108,6 +124,7 @@ Determine the work type and execute the matching variant:
108
124
 
109
125
  #### Fix (bugs)
110
126
 
127
+ 0. **Create agent team via `TeamCreate`** (see Orchestration section) -- Fix runs a long sequence with parallel review; do this before any other work.
111
128
  1. **Reproduce sub-flow** -- write failing test or script that demonstrates the bug (MANDATORY before any fix is attempted)
112
129
  2. **Investigate sub-flow** -- git history, root cause analysis
113
130
  3. `debug-specialist` -- prove root cause with evidence
@@ -122,6 +139,7 @@ Determine the work type and execute the matching variant:
122
139
 
123
140
  #### Improve (refactoring, optimization, coverage improvement)
124
141
 
142
+ 0. **Create agent team via `TeamCreate`** (see Orchestration section) -- Improve runs a long sequence with parallel review; do this before any other work.
125
143
  1. **Investigate sub-flow** -- understand current state, measure baseline
126
144
  2. `architecture-specialist` -- identify target, plan approach
127
145
  3. `test-specialist` -- ensure existing test coverage before refactoring (safety net)