@cubis/foundry 0.3.28 → 0.3.30
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/Ai Agent Workflow/powers/postman/POWER.md +2 -2
- package/Ai Agent Workflow/powers/postman/SKILL.md +2 -2
- package/Ai Agent Workflow/skills/postman/POWER.md +2 -2
- package/Ai Agent Workflow/skills/postman/SKILL.md +2 -2
- package/CHANGELOG.md +32 -1
- package/README.md +242 -398
- package/bin/cubis.js +876 -107
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,509 +1,353 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @cubis/foundry
|
|
2
2
|
|
|
3
|
-
Workflow-first installer for AI agent environments
|
|
3
|
+
Workflow-first installer for multi-platform AI agent environments.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Last updated: 2026-02-27.
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
- Antigravity
|
|
7
|
+
`cbx` installs workflows, skills, wrappers, and rule files for:
|
|
10
8
|
- Codex
|
|
11
|
-
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
-
|
|
9
|
+
- Antigravity (Gemini)
|
|
10
|
+
- GitHub Copilot
|
|
11
|
+
|
|
12
|
+
## Table of Contents
|
|
13
|
+
|
|
14
|
+
- [What This CLI Manages](#what-this-cli-manages)
|
|
15
|
+
- [Install](#install)
|
|
16
|
+
- [Quickstarts](#quickstarts)
|
|
17
|
+
- [Scope Model (Global vs Project)](#scope-model-global-vs-project)
|
|
18
|
+
- [Credential Model (`cbx_config.json` only)](#credential-model-cbx_configjson-only)
|
|
19
|
+
- [Postman and Stitch Setup Flows](#postman-and-stitch-setup-flows)
|
|
20
|
+
- [MCP Placement Matrix](#mcp-placement-matrix)
|
|
21
|
+
- [Command Reference](#command-reference)
|
|
22
|
+
- [Troubleshooting](#troubleshooting)
|
|
23
|
+
- [Migration Notes](#migration-notes)
|
|
24
|
+
- [Platform Docs](#platform-docs)
|
|
25
|
+
|
|
26
|
+
## What This CLI Manages
|
|
27
|
+
|
|
28
|
+
- Workflow files (`/plan`, `/create`, etc.)
|
|
29
|
+
- Skill folders
|
|
30
|
+
- Codex callable wrapper skills (`$workflow-*`, `$agent-*`)
|
|
31
|
+
- Platform rule files (`AGENTS.md`, `GEMINI.md`, etc.)
|
|
32
|
+
- Engineering artifacts in workspace (`ENGINEERING_RULES.md`, `TECH.md`)
|
|
33
|
+
- Managed MCP config for Postman and Stitch
|
|
17
34
|
|
|
18
35
|
## Install
|
|
19
36
|
|
|
20
37
|
```bash
|
|
21
38
|
npm install -g @cubis/foundry
|
|
22
|
-
cbx --help
|
|
23
39
|
```
|
|
24
40
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
- `cubiskill`
|
|
28
|
-
- `cubis`
|
|
29
|
-
|
|
30
|
-
## Quick Setup (Simple)
|
|
41
|
+
Recommended environment setup:
|
|
31
42
|
|
|
32
43
|
```bash
|
|
33
|
-
# 1) Install CLI
|
|
34
|
-
npm install -g @cubis/foundry
|
|
35
|
-
|
|
36
|
-
# 2) Set API keys once (recommended: env mode)
|
|
37
44
|
export POSTMAN_API_KEY="<your-postman-api-key>"
|
|
38
45
|
export STITCH_API_KEY="<your-stitch-api-key>" # Antigravity StitchMCP only
|
|
39
|
-
|
|
40
|
-
# 3) Install workflow bundle for your platform
|
|
41
|
-
cbx workflows install --platform codex --bundle agent-environment-setup --postman
|
|
42
|
-
|
|
43
|
-
# 4) Optional: install for other platforms too
|
|
44
|
-
cbx workflows install --platform antigravity --bundle agent-environment-setup --postman
|
|
45
|
-
cbx workflows install --platform copilot --bundle agent-environment-setup --postman
|
|
46
46
|
```
|
|
47
47
|
|
|
48
|
-
##
|
|
48
|
+
## Quickstarts
|
|
49
49
|
|
|
50
|
-
|
|
50
|
+
### Codex (recommended baseline)
|
|
51
51
|
|
|
52
52
|
```bash
|
|
53
|
-
cbx workflows install --platform
|
|
54
|
-
cbx workflows install --platform codex
|
|
55
|
-
cbx workflows install --platform copilot
|
|
56
|
-
cbx workflows remove <bundle-or-workflow> --platform antigravity
|
|
57
|
-
cbx workflows sync-rules --platform codex
|
|
58
|
-
cbx workflows doctor codex
|
|
59
|
-
cbx workflows platforms
|
|
60
|
-
cbx workflows install --platform antigravity --dry-run
|
|
61
|
-
cbx workflows install --platform antigravity --terminal-integration --terminal-verifier codex
|
|
62
|
-
cbx workflows install --platform codex --postman
|
|
63
|
-
cbx workflows install --platform codex --postman --postman-workspace-id null
|
|
64
|
-
cbx workflows install --platform codex --postman --postman-workspace-id "<workspace-id>"
|
|
65
|
-
cbx workflows install --platform codex --postman --postman-api-key "<key>"
|
|
66
|
-
cbx workflows install --platform codex --postman --mcp-scope global
|
|
67
|
-
cbx workflows install --platform copilot --postman --mcp-scope project
|
|
68
|
-
cbx workflows install --platform antigravity --postman
|
|
69
|
-
cbx workflows install --platform antigravity --postman --stitch-api-key "<key>"
|
|
70
|
-
cbx workflows install --platform copilot --postman
|
|
53
|
+
cbx workflows install --platform codex --bundle agent-environment-setup --postman
|
|
71
54
|
```
|
|
72
55
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
-
|
|
76
|
-
- When install scope is `global` (default), skills/powers install to global paths, while workflows + agents stay in workspace (`project`) paths.
|
|
77
|
-
- Rule sync + engineering artifacts (`AGENTS.md`/`GEMINI.md`/Copilot instructions, `ENGINEERING_RULES.md`, `TECH.md`) are maintained in workspace (`project`) scope.
|
|
78
|
-
- Codex workflow templates are maintained in workspace `.agents/workflows` so workflow-wrapper routing remains discoverable in project rules.
|
|
79
|
-
- Optional `--postman` bootstrap creates `cbx_config.json`, stores managed MCP definitions in `.cbx/mcp/`, and installs/configures Postman MCP for Codex, Antigravity, and Copilot.
|
|
80
|
-
- For Antigravity only, `--postman` also installs a default `StitchMCP` entry (`stitch.googleapis.com/mcp`) using key from `--stitch-api-key` or `STITCH_API_KEY`.
|
|
81
|
-
- Use `--mcp-scope <project|workspace|global|user>` to choose where MCP runtime config is installed (interactive installs prompt for this when not provided).
|
|
82
|
-
- Use `cbx rules init --platform <platform> --overwrite` to force-regenerate both files.
|
|
83
|
-
|
|
84
|
-
Postman + Antigravity Stitch setup behavior:
|
|
85
|
-
|
|
86
|
-
- `cbx_config.json` is generated in workspace root (project MCP scope) or `~/.cbx/cbx_config.json` (global MCP scope).
|
|
87
|
-
- Managed MCP definition files are generated under `.cbx/mcp/<platform>/postman.json` (workspace scope) or `~/.cbx/mcp/<platform>/postman.json` (global scope).
|
|
88
|
-
- Env-first auth is supported: when `POSTMAN_API_KEY` is set, generated settings keep `apiKey: null` and MCP config uses `Bearer ${POSTMAN_API_KEY}`.
|
|
89
|
-
- Inline auth is supported with `--postman-api-key <key>`.
|
|
90
|
-
- `--postman-workspace-id null` writes JSON `null` for `defaultWorkspaceId`.
|
|
91
|
-
- If `POSTMAN_API_KEY` is available and install is interactive (no `--yes`) without `--postman-workspace-id`, `cbx` fetches your Postman workspaces and prompts you to pick one as default.
|
|
92
|
-
- Antigravity gets an additional managed file at `.cbx/mcp/antigravity/stitch.json` (or `~/.cbx/mcp/antigravity/stitch.json` in global MCP scope).
|
|
93
|
-
- Stitch key source priority for Antigravity: `--stitch-api-key` then `STITCH_API_KEY`; when unset, generated config keeps placeholder `X-Goog-Api-Key: ur stitch key`.
|
|
94
|
-
- In project MCP scope, `cbx_config.json` and `.cbx/mcp/` are auto-added to `.gitignore` (no duplicate entries).
|
|
56
|
+
Important:
|
|
57
|
+
- Do not use `--yes` if you want interactive Postman workspace selection.
|
|
58
|
+
- Interactive install can fetch your Postman workspaces and save the selected workspace as the active profile `workspaceId`.
|
|
95
59
|
|
|
96
|
-
|
|
60
|
+
### Antigravity
|
|
97
61
|
|
|
98
62
|
```bash
|
|
99
|
-
|
|
100
|
-
export POSTMAN_API_KEY="<your-postman-api-key>"
|
|
101
|
-
|
|
102
|
-
# Interactive workspace selector (recommended)
|
|
103
|
-
cbx workflows install --platform codex --bundle agent-environment-setup --postman
|
|
63
|
+
cbx workflows install --platform antigravity --bundle agent-environment-setup --postman
|
|
104
64
|
```
|
|
105
65
|
|
|
106
|
-
|
|
107
|
-
- You will get a workspace selector and the selected value is saved as `defaultWorkspaceId`.
|
|
66
|
+
This also manages default `StitchMCP` wiring for Antigravity.
|
|
108
67
|
|
|
109
|
-
|
|
68
|
+
### Copilot
|
|
110
69
|
|
|
111
70
|
```bash
|
|
112
|
-
cbx workflows install --platform
|
|
71
|
+
cbx workflows install --platform copilot --bundle agent-environment-setup --postman
|
|
113
72
|
```
|
|
114
73
|
|
|
115
|
-
|
|
74
|
+
## Scope Model (Global vs Project)
|
|
116
75
|
|
|
117
|
-
|
|
118
|
-
cbx workflows install --platform codex --bundle agent-environment-setup --postman --postman-workspace-id null --yes
|
|
119
|
-
```
|
|
76
|
+
Default install scope is `global`.
|
|
120
77
|
|
|
121
|
-
|
|
78
|
+
Behavior:
|
|
79
|
+
- Skills are installed in global platform skill directories.
|
|
80
|
+
- Workflows and agents are installed in project paths for active workspace behavior.
|
|
81
|
+
- Rule files remain workspace-oriented for current repo context.
|
|
82
|
+
- Engineering files (`ENGINEERING_RULES.md`, `TECH.md`) are workspace files.
|
|
83
|
+
|
|
84
|
+
### Where files go
|
|
85
|
+
|
|
86
|
+
Codex:
|
|
87
|
+
- Global skills: `~/.agents/skills`
|
|
88
|
+
- Project workflows: `<workspace>/.agents/workflows`
|
|
89
|
+
- Project rules: `<workspace>/AGENTS.md`
|
|
90
|
+
- Global rules: `~/.codex/AGENTS.md`
|
|
91
|
+
|
|
92
|
+
Antigravity:
|
|
93
|
+
- Global skills: `~/.gemini/antigravity/skills`
|
|
94
|
+
- Project workflows: `<workspace>/.agent/workflows`
|
|
95
|
+
- Project rules: `<workspace>/.agent/rules/GEMINI.md`
|
|
96
|
+
- Global rules: `~/.gemini/GEMINI.md`
|
|
97
|
+
|
|
98
|
+
Copilot:
|
|
99
|
+
- Global skills: `~/.copilot/skills`
|
|
100
|
+
- Project workflows: `<workspace>/.github/copilot/workflows`
|
|
101
|
+
- Project rules: `<workspace>/AGENTS.md` and `<workspace>/.github/copilot-instructions.md`
|
|
102
|
+
- Global rules: `~/.copilot/copilot-instructions.md`
|
|
103
|
+
|
|
104
|
+
## Credential Model (`cbx_config.json` only)
|
|
105
|
+
|
|
106
|
+
`cbx_config.json` is the single supported credentials/config source.
|
|
107
|
+
|
|
108
|
+
Paths:
|
|
109
|
+
- Global: `~/.cbx/cbx_config.json`
|
|
110
|
+
- Project: `<workspace>/cbx_config.json`
|
|
111
|
+
|
|
112
|
+
### Profile schema
|
|
113
|
+
|
|
114
|
+
Postman and Stitch now support multiple named profiles with active selection.
|
|
115
|
+
|
|
116
|
+
```json
|
|
117
|
+
{
|
|
118
|
+
"postman": {
|
|
119
|
+
"profiles": [
|
|
120
|
+
{
|
|
121
|
+
"name": "default",
|
|
122
|
+
"apiKey": null,
|
|
123
|
+
"apiKeyEnvVar": "POSTMAN_API_KEY",
|
|
124
|
+
"workspaceId": null
|
|
125
|
+
}
|
|
126
|
+
],
|
|
127
|
+
"activeProfileName": "default",
|
|
128
|
+
"mcpUrl": "https://mcp.postman.com/minimal"
|
|
129
|
+
},
|
|
130
|
+
"stitch": {
|
|
131
|
+
"profiles": [
|
|
132
|
+
{
|
|
133
|
+
"name": "default",
|
|
134
|
+
"apiKey": null,
|
|
135
|
+
"apiKeyEnvVar": "STITCH_API_KEY"
|
|
136
|
+
}
|
|
137
|
+
],
|
|
138
|
+
"activeProfileName": "default",
|
|
139
|
+
"mcpUrl": "https://stitch.googleapis.com/mcp"
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
```
|
|
122
143
|
|
|
123
|
-
|
|
124
|
-
- If install output shows `Config file: skipped (...)`, your newly selected workspace is not persisted. Use `--overwrite` or edit with the config command below.
|
|
144
|
+
Compatibility fields (`apiKey`, `apiKeyEnvVar`, `apiKeySource`, `defaultWorkspaceId`) are still mirrored for older consumers, but profile fields are authoritative.
|
|
125
145
|
|
|
126
|
-
|
|
146
|
+
### List/Add/Use/Remove profiles
|
|
127
147
|
|
|
128
148
|
```bash
|
|
129
|
-
#
|
|
130
|
-
cbx workflows config --scope global
|
|
149
|
+
# List profiles
|
|
150
|
+
cbx workflows config keys list --service all --scope global
|
|
131
151
|
|
|
132
|
-
#
|
|
133
|
-
cbx workflows config --scope global
|
|
152
|
+
# Add profile (env-alias-first)
|
|
153
|
+
cbx workflows config keys add --service postman --name team-a --env-var POSTMAN_API_KEY_TEAM_A --scope global
|
|
154
|
+
cbx workflows config keys add --service stitch --name prod --env-var STITCH_API_KEY_PROD --scope global
|
|
134
155
|
|
|
135
|
-
#
|
|
136
|
-
cbx workflows config --
|
|
156
|
+
# Switch active profile
|
|
157
|
+
cbx workflows config keys use --service postman --name team-a --scope global
|
|
137
158
|
|
|
138
|
-
#
|
|
139
|
-
cbx workflows config --
|
|
159
|
+
# Remove non-active profile
|
|
160
|
+
cbx workflows config keys remove --service postman --name old-profile --scope global
|
|
140
161
|
```
|
|
141
162
|
|
|
142
|
-
|
|
163
|
+
Alias commands are also available:
|
|
164
|
+
- `cbx skills config keys ...`
|
|
143
165
|
|
|
144
|
-
|
|
145
|
-
- Global MCP scope: `~/.codex/config.toml` via `codex mcp add`.
|
|
146
|
-
- Workspace MCP scope: `.vscode/mcp.json`.
|
|
147
|
-
- Antigravity (Gemini CLI):
|
|
148
|
-
- Global MCP scope: `~/.gemini/settings.json` (`mcpServers`, includes `postman` + default `StitchMCP`).
|
|
149
|
-
- Workspace MCP scope: `.gemini/settings.json` (`mcpServers`, includes `postman` + default `StitchMCP`).
|
|
150
|
-
- Copilot:
|
|
151
|
-
- Workspace MCP scope: `.vscode/mcp.json`.
|
|
152
|
-
- Global MCP scope: `~/.copilot/mcp-config.json`.
|
|
166
|
+
## Postman and Stitch Setup Flows
|
|
153
167
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
- Google Stitch MCP setup docs: [stitch.withgoogle.com/docs/mcp/setup](https://stitch.withgoogle.com/docs/mcp/setup)
|
|
157
|
-
- Google Stitch settings (create API key): [stitch.withgoogle.com/settings](https://stitch.withgoogle.com/settings)
|
|
158
|
-
- Google Cloud API key guidance: [Authenticate to Google and Google Cloud MCP servers](https://docs.cloud.google.com/mcp/authenticate-mcp)
|
|
159
|
-
- Postman API key creation: [Generate and use Postman API keys](https://learning.postman.com/docs/developer/postman-api/authentication/)
|
|
160
|
-
- Postman MCP setup: [Set up the Postman MCP Server](https://learning.postman.com/docs/developer/postman-api/postman-mcp-server/set-up-postman-mcp-server)
|
|
161
|
-
|
|
162
|
-
`rules` manages strict engineering policy and a generated codebase tech map:
|
|
168
|
+
### Interactive Postman workspace selection
|
|
163
169
|
|
|
164
170
|
```bash
|
|
165
|
-
cbx
|
|
166
|
-
cbx rules init --platform codex
|
|
167
|
-
cbx rules init --platform copilot
|
|
168
|
-
cbx rules init --platform codex --scope global
|
|
169
|
-
cbx rules tech-md --overwrite
|
|
170
|
-
cbx rules init --platform codex --dry-run
|
|
171
|
+
cbx workflows install --platform codex --bundle agent-environment-setup --postman
|
|
171
172
|
```
|
|
172
173
|
|
|
173
|
-
|
|
174
|
+
If `POSTMAN_API_KEY` is available and `--yes` is not used, installer can show workspace chooser and save selected `workspaceId` in active Postman profile.
|
|
174
175
|
|
|
175
|
-
|
|
176
|
-
- Appends/patches one managed engineering block in that rule file.
|
|
177
|
-
- Generates `TECH.md` at workspace root by scanning the current codebase.
|
|
178
|
-
- Preserves user content outside managed markers.
|
|
176
|
+
### Manual workspace ID
|
|
179
177
|
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
- Language/file signals from workspace scan.
|
|
183
|
-
- JS/TS package signals from `package.json` (including nested/monorepo package files).
|
|
184
|
-
- Flutter/Dart package signals from `pubspec.yaml`.
|
|
185
|
-
- Go module signals from `go.mod`.
|
|
186
|
-
- Python package signals from `requirements*.txt` and `pyproject.toml`.
|
|
187
|
-
- Rust crate signals from `Cargo.toml`.
|
|
188
|
-
|
|
189
|
-
### Deprecated Alias
|
|
190
|
-
|
|
191
|
-
`cbx skills ...` still works for one minor cycle and prints a deprecation notice.
|
|
192
|
-
|
|
193
|
-
## Bundle Catalog
|
|
194
|
-
|
|
195
|
-
Catalog root:
|
|
196
|
-
|
|
197
|
-
```text
|
|
198
|
-
Ai Agent Workflow/workflows/
|
|
178
|
+
```bash
|
|
179
|
+
cbx workflows install --platform codex --bundle agent-environment-setup --postman --postman-workspace-id "<workspace-id>" --yes
|
|
199
180
|
```
|
|
200
181
|
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
- `agent-environment-setup`
|
|
182
|
+
Clear workspace ID:
|
|
204
183
|
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
```text
|
|
208
|
-
Ai Agent Workflow/workflows/agent-environment-setup/manifest.json
|
|
184
|
+
```bash
|
|
185
|
+
cbx workflows install --platform codex --bundle agent-environment-setup --postman --postman-workspace-id null --yes
|
|
209
186
|
```
|
|
210
187
|
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
- workflow templates (`workflows/*.md`)
|
|
214
|
-
- specialist agent templates (`agents/*.md`)
|
|
215
|
-
- mapped reusable skills copied from `Ai Agent Workflow/skills/<id>/`
|
|
216
|
-
- Codex callable wrapper skills generated from workflow/agent templates
|
|
217
|
-
- rule templates (`rules/*.md`)
|
|
218
|
-
|
|
219
|
-
## Installed Capability Set (v1)
|
|
220
|
-
|
|
221
|
-
Database capability stack:
|
|
222
|
-
|
|
223
|
-
- `database-skills` (engine hub)
|
|
224
|
-
- `database-design` (schema/migration design)
|
|
225
|
-
- `database-optimizer` (query/index/tuning triage)
|
|
226
|
-
- `drift-flutter` (Flutter local persistence)
|
|
227
|
-
|
|
228
|
-
Core workflows:
|
|
229
|
-
|
|
230
|
-
- `/brainstorm`
|
|
231
|
-
- `/plan`
|
|
232
|
-
- `/create`
|
|
233
|
-
- `/test`
|
|
234
|
-
- `/debug`
|
|
235
|
-
- `/implement-track`
|
|
236
|
-
- `/backend`
|
|
237
|
-
- `/security`
|
|
238
|
-
- `/database`
|
|
239
|
-
- `/mobile`
|
|
240
|
-
- `/devops`
|
|
241
|
-
- `/qa`
|
|
242
|
-
|
|
243
|
-
Routing behavior:
|
|
244
|
-
|
|
245
|
-
- Antigravity/Copilot: workflow + agent markdown can be routed by platform conventions.
|
|
246
|
-
- Codex: use generated callable wrapper skills (`$workflow-*`, `$agent-*`).
|
|
247
|
-
- Example for backend intent in Codex: `$workflow-backend` or `$agent-backend-specialist`.
|
|
248
|
-
- Backend workflow policy: always include OpenAPI updates plus Swagger UI and Stoplight Elements status in output.
|
|
249
|
-
|
|
250
|
-
### Codex Runtime Mode
|
|
251
|
-
|
|
252
|
-
Codex does not currently execute custom workflow slash commands or custom `@agent` markdown files as first-class runtime entities.
|
|
253
|
-
Codex skill invocation syntax is `$skill-name` (not `@agent-name`).
|
|
188
|
+
If config already exists and you want to overwrite saved values:
|
|
254
189
|
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
- Agent wrappers: `$agent-<name>` (for example `$agent-backend-specialist`)
|
|
259
|
-
|
|
260
|
-
Use these wrappers directly in Codex prompts.
|
|
261
|
-
Do not rely on custom `/workflow` execution or custom `@agent` invocation in Codex runtime.
|
|
262
|
-
|
|
263
|
-
## Platform Paths
|
|
264
|
-
|
|
265
|
-
### Antigravity
|
|
266
|
-
|
|
267
|
-
Project scope:
|
|
268
|
-
|
|
269
|
-
- Workflows: `.agent/workflows`
|
|
270
|
-
- Agents: `.agent/agents`
|
|
271
|
-
- Skills: `.agent/skills`
|
|
272
|
-
- Rules: `.agent/rules/GEMINI.md`
|
|
273
|
-
- Terminal integration (optional): `.agent/terminal-integration`
|
|
274
|
-
|
|
275
|
-
Global scope:
|
|
276
|
-
|
|
277
|
-
- Skills: `~/.gemini/antigravity/skills`
|
|
278
|
-
- Rules: `~/.gemini/GEMINI.md`
|
|
279
|
-
- Workflows/agents/terminal-integration: default install keeps these in workspace (`.agent/...`) paths.
|
|
280
|
-
|
|
281
|
-
### Antigravity Terminal Integration (Optional)
|
|
282
|
-
|
|
283
|
-
Install-time options:
|
|
284
|
-
|
|
285
|
-
- `--terminal-integration`
|
|
286
|
-
- `--terminal-verifier <codex|gemini>`
|
|
287
|
-
|
|
288
|
-
Behavior:
|
|
289
|
-
|
|
290
|
-
- Interactive installs prompt whether to enable terminal verification integration.
|
|
291
|
-
- If enabled, cbx writes managed scripts/config under `.agent/terminal-integration`.
|
|
292
|
-
- cbx also writes a managed terminal verification block into Antigravity rule files so post-task verification commands are explicit.
|
|
293
|
-
- Removing the bundle cleans the managed terminal integration directory and block.
|
|
294
|
-
|
|
295
|
-
### Codex
|
|
296
|
-
|
|
297
|
-
Project scope:
|
|
298
|
-
|
|
299
|
-
- Workflow templates (reference docs): `.agents/workflows`
|
|
300
|
-
- Skills: `.agents/skills`
|
|
301
|
-
- Rules: `AGENTS.md`
|
|
302
|
-
- Agents: not installed for Codex runtime
|
|
303
|
-
- Callable wrappers: generated into `.agents/skills` as:
|
|
304
|
-
- `workflow-<workflow-id>`
|
|
305
|
-
- `agent-<agent-id>`
|
|
306
|
-
- Example usage: `$workflow-plan`, `$agent-backend-specialist`
|
|
307
|
-
|
|
308
|
-
Global scope:
|
|
309
|
-
|
|
310
|
-
- Skills: `~/.agents/skills`
|
|
311
|
-
- Rules: `~/.codex/AGENTS.md`
|
|
312
|
-
- Workflow templates (reference docs): default install keeps these in workspace `.agents/workflows`
|
|
313
|
-
- Agents: not installed for Codex runtime
|
|
314
|
-
|
|
315
|
-
Legacy compatibility note:
|
|
316
|
-
|
|
317
|
-
- `.codex/skills` is treated as legacy and flagged by `doctor` with migration guidance.
|
|
318
|
-
|
|
319
|
-
### Copilot
|
|
190
|
+
```bash
|
|
191
|
+
cbx workflows install --platform codex --bundle agent-environment-setup --postman --overwrite --yes
|
|
192
|
+
```
|
|
320
193
|
|
|
321
|
-
|
|
194
|
+
### StitchMCP (Antigravity)
|
|
195
|
+
|
|
196
|
+
Antigravity includes managed Stitch MCP support using active Stitch profile from `cbx_config.json`.
|
|
197
|
+
|
|
198
|
+
Default managed command template:
|
|
199
|
+
|
|
200
|
+
```json
|
|
201
|
+
{
|
|
202
|
+
"StitchMCP": {
|
|
203
|
+
"$typeName": "exa.cascade_plugins_pb.CascadePluginCommandTemplate",
|
|
204
|
+
"command": "npx",
|
|
205
|
+
"args": [
|
|
206
|
+
"-y",
|
|
207
|
+
"mcp-remote",
|
|
208
|
+
"https://stitch.googleapis.com/mcp",
|
|
209
|
+
"--header",
|
|
210
|
+
"X-Goog-Api-Key: ur stitch key"
|
|
211
|
+
],
|
|
212
|
+
"env": {}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
```
|
|
322
216
|
|
|
323
|
-
|
|
324
|
-
- Agents: `.github/agents`
|
|
325
|
-
- Skills: `.github/skills`
|
|
326
|
-
- Rules: `AGENTS.md` (preferred), fallback `.github/copilot-instructions.md`
|
|
327
|
-
- Skill schema note: `cbx` normalizes Copilot skill frontmatter by removing unsupported top-level keys like `displayName` and `keywords` during install.
|
|
217
|
+
## MCP Placement Matrix
|
|
328
218
|
|
|
329
|
-
|
|
219
|
+
Managed MCP definition files (`.cbx/mcp/...`):
|
|
220
|
+
- Global scope: `~/.cbx/mcp/<platform>/postman.json`
|
|
221
|
+
- Project scope: `<workspace>/.cbx/mcp/<platform>/postman.json`
|
|
330
222
|
|
|
331
|
-
|
|
332
|
-
- Rules: `~/.copilot/copilot-instructions.md`
|
|
333
|
-
- Workflows/agents: default install keeps these in workspace (`.github/...`) paths.
|
|
223
|
+
Runtime target patching:
|
|
334
224
|
|
|
335
|
-
|
|
225
|
+
Codex:
|
|
226
|
+
- Global MCP runtime target: `~/.codex/config.toml` (via `codex mcp add/remove`)
|
|
227
|
+
- Project MCP runtime target: `<workspace>/.vscode/mcp.json`
|
|
336
228
|
|
|
337
|
-
|
|
229
|
+
Antigravity:
|
|
230
|
+
- Global runtime target: `~/.gemini/settings.json` (`mcpServers`)
|
|
231
|
+
- Project runtime target: `<workspace>/.gemini/settings.json` (`mcpServers`)
|
|
338
232
|
|
|
339
|
-
|
|
233
|
+
Copilot:
|
|
234
|
+
- Global runtime target: `~/.copilot/mcp-config.json` (`servers`)
|
|
235
|
+
- Project runtime target: `<workspace>/.vscode/mcp.json` (`servers`)
|
|
340
236
|
|
|
341
|
-
|
|
342
|
-
<!-- cbx:workflows:auto:start platform=<platform-id> version=1 -->
|
|
237
|
+
## Command Reference
|
|
343
238
|
|
|
344
|
-
|
|
239
|
+
### Install / Remove / Doctor / Rule Sync
|
|
345
240
|
|
|
346
|
-
|
|
241
|
+
```bash
|
|
242
|
+
cbx workflows install --platform <codex|antigravity|copilot> --bundle agent-environment-setup
|
|
243
|
+
cbx workflows remove <bundle-or-workflow> --platform <platform>
|
|
244
|
+
cbx workflows doctor --platform <platform> --scope <project|global>
|
|
245
|
+
cbx workflows sync-rules --platform <platform> --scope <project|global>
|
|
347
246
|
```
|
|
348
247
|
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
- Preserves user content outside markers.
|
|
352
|
-
- Replaces first valid managed block in place.
|
|
353
|
-
- Appends a managed block if missing.
|
|
354
|
-
- On malformed/multiple markers, patches first valid range and warns.
|
|
355
|
-
- Keeps markers even when no workflows are installed.
|
|
248
|
+
### Config commands
|
|
356
249
|
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
250
|
+
```bash
|
|
251
|
+
# Show config (+ computed status block)
|
|
252
|
+
cbx workflows config --scope global --show
|
|
360
253
|
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
- `cbx install` (legacy alias)
|
|
367
|
-
- `cbx init` (legacy alias)
|
|
368
|
-
- Default scope for these commands is `global`.
|
|
369
|
-
- In this default global mode, only skills/powers install globally. Workflows/agents and rule/engineering files remain workspace-scoped.
|
|
370
|
-
- Other workflow/rules commands default to `project`.
|
|
254
|
+
# Edit active Postman workspace ID
|
|
255
|
+
cbx workflows config --scope global --edit
|
|
256
|
+
cbx workflows config --scope global --workspace-id "<workspace-id>"
|
|
257
|
+
cbx workflows config --scope global --clear-workspace-id
|
|
258
|
+
```
|
|
371
259
|
|
|
372
|
-
|
|
260
|
+
`--show` now includes computed `status`:
|
|
261
|
+
- stored source (from active profile config)
|
|
262
|
+
- effective source (resolved at runtime with env)
|
|
263
|
+
- active profile name
|
|
264
|
+
- effective env var alias
|
|
373
265
|
|
|
374
|
-
|
|
375
|
-
- `--scope project`
|
|
266
|
+
### Rules commands
|
|
376
267
|
|
|
377
|
-
|
|
268
|
+
```bash
|
|
269
|
+
cbx rules init --platform <platform> --scope project --overwrite
|
|
270
|
+
cbx rules tech-md --overwrite
|
|
271
|
+
```
|
|
378
272
|
|
|
379
|
-
|
|
380
|
-
- Prompts when ambiguous.
|
|
381
|
-
- Remembers last selected platform in local state.
|
|
273
|
+
### Legacy alias
|
|
382
274
|
|
|
383
|
-
|
|
275
|
+
`cbx skills ...` remains as a compatibility alias for `cbx workflows ...`.
|
|
384
276
|
|
|
385
|
-
|
|
386
|
-
- Global: `~/.cbx/state.json`
|
|
277
|
+
## Troubleshooting
|
|
387
278
|
|
|
388
|
-
|
|
279
|
+
### `MCP startup failed: Environment variable POSTMAN_API_KEY ... is not set`
|
|
389
280
|
|
|
390
|
-
|
|
281
|
+
Cause:
|
|
282
|
+
- Active profile uses env alias but variable is not exported in current shell/process.
|
|
391
283
|
|
|
284
|
+
Fix:
|
|
392
285
|
```bash
|
|
393
|
-
|
|
394
|
-
cbx workflows
|
|
395
|
-
cbx workflows remove agent-environment-setup --platform antigravity --dry-run
|
|
396
|
-
cbx workflows sync-rules --platform codex --dry-run
|
|
286
|
+
export POSTMAN_API_KEY="<key>"
|
|
287
|
+
cbx workflows config --scope global --show
|
|
397
288
|
```
|
|
398
289
|
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
- prints planned file changes
|
|
402
|
-
- prints planned managed-block action (`would-create`/`would-patch`)
|
|
403
|
-
- does not write files
|
|
404
|
-
- does not update state files
|
|
290
|
+
Then confirm `status.postman.effectiveSource` is `env`.
|
|
405
291
|
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
Use this script-style sequence to validate end-to-end behavior:
|
|
292
|
+
### `apiKeySource` looks unset even after export
|
|
409
293
|
|
|
294
|
+
Use:
|
|
410
295
|
```bash
|
|
411
|
-
|
|
412
|
-
TMP_DIR="$(mktemp -d /tmp/cbx-smoke.XXXXXX)"
|
|
413
|
-
cd "$TMP_DIR"
|
|
414
|
-
|
|
415
|
-
# 2) Antigravity preview + apply + doctor
|
|
416
|
-
cbx workflows install --platform antigravity --bundle agent-environment-setup --dry-run
|
|
417
|
-
cbx workflows install --platform antigravity --bundle agent-environment-setup --terminal-integration --terminal-verifier codex --yes
|
|
418
|
-
cbx workflows doctor antigravity --json
|
|
419
|
-
|
|
420
|
-
# 3) Codex preview + apply + doctor
|
|
421
|
-
mkdir -p .codex/skills # optional: simulate legacy path warning
|
|
422
|
-
cbx workflows install --platform codex --bundle agent-environment-setup --dry-run
|
|
423
|
-
cbx workflows install --platform codex --bundle agent-environment-setup --yes
|
|
424
|
-
cbx workflows doctor codex --json
|
|
425
|
-
# Codex runtime usage (in prompt): $workflow-review or $agent-backend-specialist
|
|
426
|
-
|
|
427
|
-
# 4) Copilot preview + apply + doctor
|
|
428
|
-
cbx workflows install --platform copilot --bundle agent-environment-setup --dry-run
|
|
429
|
-
cbx workflows install --platform copilot --bundle agent-environment-setup --yes
|
|
430
|
-
cbx workflows doctor copilot --json
|
|
431
|
-
|
|
432
|
-
# 5) Remove bundle preview + apply
|
|
433
|
-
cbx workflows remove agent-environment-setup --platform antigravity --dry-run
|
|
434
|
-
cbx workflows remove agent-environment-setup --platform antigravity --yes
|
|
296
|
+
cbx workflows config --scope global --show
|
|
435
297
|
```
|
|
436
298
|
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
299
|
+
Check these fields:
|
|
300
|
+
- `status.postman.storedSource`
|
|
301
|
+
- `status.postman.effectiveSource`
|
|
302
|
+
- `status.postman.effectiveEnvVar`
|
|
440
303
|
|
|
441
|
-
|
|
442
|
-
- active rule file status
|
|
443
|
-
- managed block health
|
|
444
|
-
- Codex wrapper-skill readiness (`$workflow-*`, `$agent-*`) through installed skills path
|
|
445
|
-
- Codex legacy path warnings (`.codex/skills`)
|
|
446
|
-
- Antigravity `.gitignore` warning for `.agent/` with recommendation to use `.git/info/exclude` for local-only excludes
|
|
447
|
-
- Antigravity terminal integration status (directory/config/rule block)
|
|
448
|
-
- Copilot project/global path health (`.github/agents`, `.github/skills`, `AGENTS.md` / `.github/copilot-instructions.md`)
|
|
304
|
+
If stored source is env but effective source is unset, your env var alias is missing in the running process.
|
|
449
305
|
|
|
450
|
-
|
|
306
|
+
### Existing config skipped during install
|
|
451
307
|
|
|
452
|
-
|
|
308
|
+
If installer says config was skipped:
|
|
309
|
+
- Re-run with `--overwrite`, or
|
|
310
|
+
- Use `cbx workflows config` / `cbx workflows config keys ...` to mutate existing config.
|
|
453
311
|
|
|
454
|
-
|
|
312
|
+
### Duplicate skills shown in UI after older installs
|
|
455
313
|
|
|
456
|
-
|
|
314
|
+
Installer now auto-cleans nested duplicate skills (for example duplicates under `postman/*`).
|
|
457
315
|
|
|
458
|
-
Run
|
|
316
|
+
Run refresh install:
|
|
459
317
|
|
|
460
318
|
```bash
|
|
461
|
-
|
|
319
|
+
cbx workflows install --platform codex --bundle agent-environment-setup --overwrite --yes
|
|
462
320
|
```
|
|
463
321
|
|
|
464
|
-
|
|
322
|
+
### Legacy Postman config file exists without `cbx_config.json`
|
|
465
323
|
|
|
466
|
-
|
|
467
|
-
npm run test:attributes
|
|
468
|
-
```
|
|
469
|
-
|
|
470
|
-
Run attribute validation (strict, fails on warnings):
|
|
324
|
+
Behavior is now hard-fail. Create/repair `cbx_config.json` first:
|
|
471
325
|
|
|
472
326
|
```bash
|
|
473
|
-
|
|
327
|
+
cbx workflows config --scope global --clear-workspace-id
|
|
474
328
|
```
|
|
475
329
|
|
|
476
|
-
|
|
330
|
+
## Migration Notes
|
|
477
331
|
|
|
478
|
-
|
|
479
|
-
npm run test:tech-md
|
|
480
|
-
```
|
|
332
|
+
### Behavior changes in this release
|
|
481
333
|
|
|
482
|
-
|
|
334
|
+
- `cbx_config.json` is now the only supported config source for Postman/Stitch credentials.
|
|
335
|
+
- Multi-profile key model added (`profiles[]` + `activeProfileName`).
|
|
336
|
+
- `config keys` commands added (`list/add/use/remove`).
|
|
337
|
+
- `config --show` now reports stored vs effective auth source.
|
|
338
|
+
- Install now defaults to indexed top-level all-skill install.
|
|
339
|
+
- Nested duplicate skill directories are auto-cleaned during install.
|
|
483
340
|
|
|
484
|
-
|
|
485
|
-
bash scripts/smoke-workflows.sh
|
|
486
|
-
```
|
|
487
|
-
|
|
488
|
-
Run the full suite:
|
|
341
|
+
### Suggested refresh
|
|
489
342
|
|
|
490
343
|
```bash
|
|
491
|
-
npm
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
Run the full suite in strict mode:
|
|
495
|
-
|
|
496
|
-
```bash
|
|
497
|
-
npm run test:all:strict
|
|
344
|
+
npm install -g @cubis/foundry
|
|
345
|
+
cbx workflows install --platform codex --bundle agent-environment-setup --overwrite --yes
|
|
346
|
+
cbx workflows config --scope global --show
|
|
498
347
|
```
|
|
499
348
|
|
|
500
|
-
##
|
|
349
|
+
## Platform Docs
|
|
501
350
|
|
|
502
|
-
-
|
|
503
|
-
-
|
|
504
|
-
-
|
|
505
|
-
- [Codex Config Basics](https://developers.openai.com/codex/config-basic)
|
|
506
|
-
- [OpenCode Skills](https://opencode.ai/docs/skills/)
|
|
507
|
-
- [OpenCode Rules](https://opencode.ai/docs/rules/)
|
|
508
|
-
- [Claude Code Skills](https://docs.anthropic.com/en/docs/claude-code/skills)
|
|
509
|
-
- [GitHub Copilot Skills](https://docs.github.com/en/copilot/how-tos/context/configure-custom-instructions/add-repository-instructions#using-skills-to-group-custom-instructions)
|
|
351
|
+
- Postman API keys: <https://learning.postman.com/docs/developer/postman-api/authentication/>
|
|
352
|
+
- Postman MCP setup: <https://learning.postman.com/docs/developer/postman-api/postman-mcp-server/set-up-postman-mcp-server>
|
|
353
|
+
- Google Stitch MCP: <https://developers.google.com/stitch>
|