Skip to content

Commit bfd2d37

Browse files
docs(cli): align agent command conventions
1 parent ef93bae commit bfd2d37

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

docs/product/command-principles.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ Use the other convention docs for adjacent concerns:
2929
The long-term command surface grows through workflow groups such as:
3030

3131
- `init`
32+
- `agent`
3233
- `auth`
3334
- `project`
3435
- `branch`
@@ -38,7 +39,7 @@ The long-term command surface grows through workflow groups such as:
3839
- `app`
3940
- `git`
4041

41-
The preview implements only `auth`, `project`, `git`, `branch`, `database`, and `app`.
42+
The preview implements only `agent`, `auth`, `project`, `git`, `branch`, `database`, and `app`.
4243

4344
## Stable Nouns
4445

docs/product/error-conventions.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ Rules:
143143
- `ok` is always `false`
144144
- `command` is always present
145145
- `error.code` is stable and machine-readable
146-
- `error.domain` is a stable logical area such as `cli`, `auth`, `project`, `branch`, `app`, or `database`
146+
- `error.domain` is a stable logical area such as `cli`, `agent`, `auth`, `project`, `branch`, `app`, or `database`
147147
- `error.severity` is stable and machine-readable
148148
- `error.summary` is the short human-readable headline
149149
- `error.why` explains the immediate cause when known
@@ -161,6 +161,7 @@ These codes are the minimum stable set for the MVP:
161161
- `USAGE_ERROR`
162162
- `AUTH_REQUIRED`
163163
- `AUTH_CONFIG_INVALID`
164+
- `AGENT_SKILLS_INSTALL_FAILED`
164165
- `WORKSPACE_SWITCH_UNAVAILABLE`
165166
- `WORKSPACE_NOT_AUTHENTICATED`
166167
- `WORKSPACE_AMBIGUOUS`
@@ -222,6 +223,7 @@ Recommended meanings:
222223
- `USAGE_ERROR`: invalid arguments or invalid command combination
223224
- `AUTH_REQUIRED`: command needs an authenticated session
224225
- `AUTH_CONFIG_INVALID`: environment auth configuration is present but unusable, such as an empty `PRISMA_SERVICE_TOKEN`
226+
- `AGENT_SKILLS_INSTALL_FAILED`: installing Prisma skills through the external skills CLI failed; callers should inspect the command, exit code, and stderr in `error.meta`
225227
- `WORKSPACE_SWITCH_UNAVAILABLE`: `PRISMA_SERVICE_TOKEN` is the active auth source, so local OAuth workspace switching cannot apply
226228
- `WORKSPACE_NOT_AUTHENTICATED`: requested workspace is not present in the local OAuth credentials store for a switch/logout operation; callers should run `auth login` for that workspace
227229
- `WORKSPACE_AMBIGUOUS`: requested workspace name matches more than one local OAuth workspace; callers should switch by workspace id

0 commit comments

Comments
 (0)