@alis-build/opencode-plugin 0.1.0 → 0.2.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/README.md CHANGED
@@ -12,8 +12,8 @@ builds, deploys, and related workspace context — the opencode counterpart of t
12
12
  - OAuth sign-in through Alis Build identity (handled by opencode)
13
13
  - Alis Build tools available inside opencode after sign-in
14
14
  - A standing Define → Build → Deploy primer loaded into every session via opencode
15
- `instructions`, so the agent knows the workflow, how to route requests, and to run
16
- the `alis` CLI no trigger word required
15
+ `instructions`, so the agent always knows the workflow, how to route requests (it wakes
16
+ skill discovery when you address **alis**), and how to run the `alis` CLI
17
17
  - `/build-it` and `/fix-it` workflow commands
18
18
  - The `alis` CLI auto-approved via opencode `permission.bash`, so command-line calls
19
19
  run without a permission prompt each time
@@ -97,11 +97,11 @@ opencode mcp auth api
97
97
  After sign-in, ask opencode to use Alis Build:
98
98
 
99
99
  ```text
100
- build it
100
+ alis, build it
101
101
  ```
102
102
 
103
103
  ```text
104
- fix it
104
+ alis, fix it
105
105
  ```
106
106
 
107
107
  ```text
@@ -7,7 +7,7 @@ Alis Build task, and walk the user through DBD rather than handing over a discon
7
7
  This primer is the standing how-to guide for Alis Build work. It carries three things:
8
8
 
9
9
  1. The **mental model** — what DBD is and where things live on disk.
10
- 2. The **routing contract** — when to discover a skill, when to run a command directly.
10
+ 2. The **routing contract** — saying "alis" wakes skill discovery; when to run a command directly.
11
11
  3. The **execution contract** — how to actually run Define / Build / Deploy.
12
12
 
13
13
  > The Alis Build MCP provides the *tools*; this primer provides *how to operate*. When a
@@ -41,47 +41,42 @@ This primer is the standing how-to guide for Alis Build work. It carries three t
41
41
  - Deploy makes the service reachable infrastructure (commonly Cloud Run plus supporting resources).
42
42
  - Validate end-to-end via the generated playground, usually `<neuron>/.playground/main_test.go`.
43
43
 
44
- ## Routing — discover a skill vs run a command directly
45
-
46
- Not every Alis Build request is the same kind of work. Classify first, then act.
47
-
48
- - **Routers discover a skill before acting.** For an ambiguous *functional* request — the
49
- user wants to build, fix, add, or change something and the agent needs to know *how* — treat
50
- it as a router, not a direct task. Triggers: "build it", "fix it", "add X", "change Y", and
51
- capability questions ("can you help with tracing?", "are you able to add X?").
52
- - Work out the intended outcome (ask ONE concise question only if it is genuinely ambiguous),
53
- then call the Alis Build MCP `SearchSkills` tool FIRST with that outcome as the query (fall
54
- back to `ListSkills` if it returns nothing).
55
- - Present the matching skills (id, what each does, when to choose it), ask which to use, and
56
- only then call `LoadSkill` and follow that skill's workflow — the loaded skill owns
57
- execution.
58
- - **Do NOT inspect, write, or edit code, run Define / Build / Deploy, or make commits before
59
- a skill is loaded.** If no skill fits, say so and offer `RequestSkill`.
60
- - For a capability question, briefly confirm it is Alis Build work, then ask the user to name
61
- the specific change so you can route it through `SearchSkills`. Do not dive into the
62
- codebase or give a generic how-to before they name the concrete change.
63
-
64
- - **Direct DBD commands — run the CLI, no skill needed.** When the user asks to run a *DBD
65
- step* on an already-known target service, just run it (see **Executing DBD**). Triggers:
66
- "define it", "deploy it", "ship it", "run define/build/deploy", "define and install". These
67
- are deterministic; they do not need skill reasoning.
68
-
69
- - **Spec it — call `SpecIt` directly.** "spec it" / "spec it up", or a request to turn the
44
+ ## Routing — say "alis" to wake the skill router
45
+
46
+ Skill discovery is **opt-in, gated on the wake word.** What wakes the routing flow is the
47
+ developer *speaking to alis* — not the shape of the request. Do **NOT** run `SearchSkills` on
48
+ ordinary build/fix/add-sounding prompts; firing it on every functional-looking message floods
49
+ the session. Wait to be addressed.
50
+
51
+ - **Addressed to alis wake up and route.** When the developer speaks to alis "alis, …",
52
+ "hey alis", "ask alis to …", "get alis to …", or otherwise invokes alis by name — wake up
53
+ and find a skill: work out the intended outcome (ask ONE concise question only if it is
54
+ genuinely ambiguous), call the Alis Build MCP `SearchSkills` tool FIRST with that outcome as
55
+ the query (fall back to `ListSkills` if it returns nothing), present the matches (id, what
56
+ each does, when to choose it), then `LoadSkill` and follow that skill — the loaded skill owns
57
+ execution. **Do NOT inspect, write, or edit code, run Define / Build / Deploy, or make
58
+ commits before a skill is loaded.** If nothing fits, say so and offer `RequestSkill`. Explicitly
59
+ running the `build it` / `fix it` command is itself a way to address alis and invoke this flow.
60
+
61
+ - **Not addressed to alis just respond.** Handle the request directly, or ask what they
62
+ need do not auto-route it through `SearchSkills`. If a skill would clearly help, you may
63
+ suggest the developer "ask alis" to wake the router, but don't force it.
64
+
65
+ - **Direct DBD commands run the CLI, no skill needed.** "define it", "deploy it", "ship it",
66
+ "run define/build/deploy", "define and install" on an already-known target are deterministic
67
+ — run `alis …` (see **Executing DBD**). These are explicit instructions, not skill
68
+ discovery; they don't need the wake word.
69
+
70
+ - **Spec it → call `SpecIt` directly.** "spec it" / "spec it up", or a request to turn the
70
71
  current session into a build specification → call the `SpecIt` tool DIRECTLY (do not route
71
72
  through `SearchSkills`). It needs no arguments (session context is resolved server-side);
72
73
  pass `build_spec` only when the user names an existing one to append to. Report the returned
73
74
  BuildSpec back to the user.
74
75
 
75
- - **"alis" (vocative) / "dbd"** engage Alis Build context generally then disambiguate with
76
- the cases above.
77
-
78
- - **"build it" is overloaded.** It can mean "construct this feature" (a router) or "run the
79
- Build step" (the `alis build` command). If a build target/context is already established and
80
- the user means the DBD step, run `alis build`; if it is a functional request, route via
81
- `SearchSkills`; when genuinely unclear, ask one concise question.
82
-
83
- Whenever a later request in the session would benefit from an Alis Build skill, use
84
- `SearchSkills` to discover one before doing the work yourself.
76
+ - **"build it" without "alis" does not wake discovery.** A bare "build it" on an
77
+ already-established target means the DBD Build step → run `alis build`. To discover a build
78
+ skill instead, the developer addresses alis ("alis, build …") or runs the `build it`
79
+ command. When genuinely unclear, ask one concise question.
85
80
 
86
81
  ## Executing DBD — prefer the `alis` CLI
87
82
 
@@ -119,5 +114,5 @@ needs an explicit commit (never `HEAD`).
119
114
  ## Getting deeper
120
115
 
121
116
  For onboarding or the full step-by-step Simple API quickstart, load the `getting-started` skill
122
- via `LoadSkill`. For an ambiguous "build it" / "fix it" request, route through skill discovery
123
- (`SearchSkills`) before executing any DBD step.
117
+ via `LoadSkill`. When the developer addresses alis ("alis, "), wake the skill router
118
+ (`SearchSkills`) before doing the work; otherwise respond directly.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alis-build/opencode-plugin",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Connect opencode to Alis Build through MCP, workflow commands, and the Define-Build-Deploy primer.",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",