@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 +4 -4
- package/instructions/dbd-primer.md +34 -39
- package/package.json +1 -1
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
|
|
16
|
-
|
|
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** —
|
|
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 —
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
"
|
|
67
|
-
are
|
|
68
|
-
|
|
69
|
-
|
|
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
|
-
- **"
|
|
76
|
-
the
|
|
77
|
-
|
|
78
|
-
|
|
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`.
|
|
123
|
-
(`SearchSkills`) before
|
|
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