nitm-ai-dev-toolkit 3.0.22 → 4.0.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.
Files changed (67) hide show
  1. package/CHANGELOG.md +15 -2
  2. package/README.md +56 -4
  3. package/bin/cli.js +29 -14
  4. package/package.json +3 -2
  5. package/src/monorepo/.claude/commands/ponytail-audit.md +4 -6
  6. package/src/monorepo/.claude/commands/ponytail-debt.md +3 -5
  7. package/src/monorepo/.claude/commands/ponytail-gain.md +2 -4
  8. package/src/monorepo/.claude/commands/ponytail-help.md +2 -4
  9. package/src/monorepo/.claude/commands/ponytail-review.md +3 -5
  10. package/src/monorepo/.claude/commands/ponytail.md +3 -5
  11. package/src/monorepo/.claude/prompt-snippets/bootstrap-patch.md +37 -17
  12. package/src/monorepo/.claude/prompt-snippets/bootstrap-upgrade.md +76 -51
  13. package/src/monorepo/.claude/prompt-snippets/bootstrap.md +130 -94
  14. package/src/monorepo/.codex/config.toml +6 -0
  15. package/src/monorepo/.github/prompts/review-staged.prompt.md +1 -1
  16. package/src/monorepo/.opencode/agents/admin-portal.md +10 -4
  17. package/src/monorepo/.opencode/agents/api-specialist.md +10 -4
  18. package/src/monorepo/.opencode/agents/backend-architect.md +10 -4
  19. package/src/monorepo/.opencode/agents/documenter.md +10 -4
  20. package/src/monorepo/.opencode/agents/feature-builder.md +13 -5
  21. package/src/monorepo/.opencode/agents/frontend-developer.md +10 -4
  22. package/src/monorepo/.opencode/agents/green.md +10 -4
  23. package/src/monorepo/.opencode/agents/implementer.md +10 -4
  24. package/src/monorepo/.opencode/agents/planner.md +10 -4
  25. package/src/monorepo/.opencode/agents/red.md +10 -4
  26. package/src/monorepo/.opencode/agents/refactor.md +10 -4
  27. package/src/monorepo/.opencode/agents/researcher.md +10 -4
  28. package/src/monorepo/.opencode/agents/reviewer.md +10 -4
  29. package/src/monorepo/.opencode/agents/tdd.md +13 -5
  30. package/src/monorepo/.opencode/opencode.jsonc +8 -10
  31. package/src/monorepo/AGENTS.md +16 -0
  32. package/src/monorepo/CLAUDE.md +1 -1
  33. package/src/monorepo/README.md +22 -0
  34. package/src/repo/.claude/agents/documenter.agent.md +1 -1
  35. package/src/repo/.claude/agents/planner.agent.md +1 -1
  36. package/src/repo/.claude/agents/researcher.agent.md +1 -1
  37. package/src/repo/.claude/agents/reviewer.agent.md +1 -1
  38. package/src/repo/.claude/commands/ponytail-audit.md +4 -6
  39. package/src/repo/.claude/commands/ponytail-debt.md +3 -5
  40. package/src/repo/.claude/commands/ponytail-gain.md +2 -4
  41. package/src/repo/.claude/commands/ponytail-help.md +2 -4
  42. package/src/repo/.claude/commands/ponytail-review.md +3 -5
  43. package/src/repo/.claude/commands/ponytail.md +3 -5
  44. package/src/repo/.claude/prompt-snippets/bootstrap-patch.md +37 -17
  45. package/src/repo/.claude/prompt-snippets/bootstrap-upgrade.md +87 -77
  46. package/src/repo/.claude/prompt-snippets/bootstrap.md +129 -125
  47. package/src/repo/.codex/config.toml +6 -0
  48. package/src/repo/.opencode/agents/admin-portal.md +10 -4
  49. package/src/repo/.opencode/agents/api-specialist.md +10 -4
  50. package/src/repo/.opencode/agents/backend-architect.md +10 -4
  51. package/src/repo/.opencode/agents/documenter.md +10 -4
  52. package/src/repo/.opencode/agents/feature-builder.md +13 -5
  53. package/src/repo/.opencode/agents/frontend-developer.md +10 -4
  54. package/src/repo/.opencode/agents/green.md +10 -4
  55. package/src/repo/.opencode/agents/implementer.md +10 -4
  56. package/src/repo/.opencode/agents/planner.md +10 -4
  57. package/src/repo/.opencode/agents/red.md +10 -4
  58. package/src/repo/.opencode/agents/refactor.md +10 -4
  59. package/src/repo/.opencode/agents/researcher.md +10 -4
  60. package/src/repo/.opencode/agents/reviewer.md +10 -4
  61. package/src/repo/.opencode/agents/tdd.md +13 -5
  62. package/src/repo/.opencode/opencode.jsonc +8 -10
  63. package/src/repo/AGENTS.md +16 -0
  64. package/src/repo/CLAUDE.md +1 -1
  65. package/src/repo/README.md +22 -0
  66. package/src/monorepo/.opencode/plugins/ponytail.mjs +0 -93
  67. package/src/repo/.opencode/plugins/ponytail.mjs +0 -93
@@ -2,6 +2,24 @@ You are helping to bootstrap AI instructions for this monorepo by analyzing the
2
2
 
3
3
  > **Merge, don't clobber.** If a target file already exists and carries project-specific content — customized agents, rules, skills, or `{{PLACEHOLDER}}` values already replaced — preserve it. Add missing structure; never overwrite a customized file with template defaults. When a template change conflicts with an existing customization, merge the addition and flag it for the user rather than replacing the file. For incremental updates after the first bootstrap, prefer `/bootstrap-patch`, which is purpose-built for meticulous merging.
4
4
 
5
+ ## OpenCode version preflight (before any changes)
6
+
7
+ - Confirm OpenCode use from actual session/runtime evidence or ask the user; directory presence alone is not proof. If only other harnesses are used, skip this preflight and all OpenCode steps.
8
+ - For confirmed OpenCode use, run `opencode --version` before any project writes. Trim output and parse numeric major/minor/patch components, accepting an optional leading `v`; toolkit 4.x requires `major >= 2`.
9
+ - If OpenCode V1 (`major < 2`) is detected, **STOP** before customizing/migrating OpenCode files or writing `.toolkit-version` as `4.0.0`. Ask the user to upgrade OpenCode to V2 or remain on toolkit 3.x.
10
+ - If the CLI is missing, fails, or output is unparseable, **STOP OpenCode steps** and leave the version marker unchanged; ask the user to confirm/install a supported OpenCode version, then rerun this check. Never assume V2.
11
+ - If oh-my-opencode-slim >=3.0.0 is used or planned, require OpenCode >=2.0.7 (compare version components numerically); otherwise **STOP** before changes and ask to upgrade. Proceed only after this gate passes.
12
+
13
+ ## Harness selection and native Codex targets
14
+
15
+ **Codex:** `/bootstrap` is not a native Codex command. For npm installs, ask Codex to read and follow `.nitm/BOOTSTRAP.md`. For manually copied templates without `.nitm/`, ask it to read and follow `.claude/prompt-snippets/bootstrap.md` as a task document.
16
+
17
+ - Identify the actual running harness from session/runtime information or ask which harnesses the user uses. Directory presence alone is not evidence: the default installer scaffolds every supported harness.
18
+ - Codex uses root and more-specific nested `AGENTS.md` instructions and `.agents/skills/*/SKILL.md` natively. Customize app/package instructions for their scopes. Read linked standards when relevant; Claude snippets and `.github/instructions/` are not automatically loaded as Codex rules.
19
+ - `.codex/config.toml` is optional and comment-only. Preserve inherited defaults and existing user settings. Project config is loaded only after the user explicitly trusts the project; never write self-trust or change model/provider, approvals, sandbox, security, or feature settings during bootstrap.
20
+ - Codex MCP uses native `[mcp_servers.name]` TOML, not `.mcp.json`. Treat other harness MCP templates as references only; do not activate servers, copy credentials, or install hooks automatically.
21
+ - Update and audit only confirmed harness targets. For Codex-only setup, the native targets are root/nested `AGENTS.md`, `.agents/skills/`, and `.codex/config.toml`. `--env codex` also includes `.github/instructions/` and `.claude/rules-snippets/` solely as AGENTS-linked standards and their wrapper sources, not automatically loaded rules or evidence of Copilot/Claude use; other harness command, agent, and config directories are excluded. Tool-specific steps below are conditional.
22
+
5
23
  ## Your Task
6
24
 
7
25
  1. **Analyze the Monorepo**:
@@ -123,8 +141,12 @@ You are helping to bootstrap AI instructions for this monorepo by analyzing the
123
141
 
124
142
  7. **Update Template Files**:
125
143
 
144
+ For confirmed OpenCode use, complete the Ponytail pre-activation cleanup below before customizing OpenCode files or marking the migration complete.
145
+
126
146
  **Root Level:**
127
147
  - `AGENTS.md` (include project management section)
148
+ - `.agents/skills/*/SKILL.md` (shared native skills, including Codex)
149
+ - `.codex/config.toml` (optional Codex config; retain comment-only inherited defaults)
128
150
  - `.github/copilot-instructions.md` (include PM context)
129
151
  - `.github/instructions/*.instructions.md`
130
152
  - `.github/prompts/*.prompt.md`
@@ -136,27 +158,36 @@ You are helping to bootstrap AI instructions for this monorepo by analyzing the
136
158
  - `.claude/rules-snippets/*.md` (rules content — source of truth)
137
159
  - `.claude/prompt-snippets/*.md` (prompt content — source of truth)
138
160
  - `.claude/agents-snippets/*.md` (agent definitions — source of truth)
139
- - `.opencode/opencode.jsonc` (OpenCode configuration — ⚠️ see schema validation below)
161
+ - `.opencode/opencode.jsonc` (OpenCode configuration — see native V2 checks below)
140
162
  - `.opencode/commands/*.md` (OpenCode commands)
141
163
  - `.opencode/rules/*.md` (OpenCode rules)
142
164
  - `.opencode/agents/*.md` (OpenCode agents)
143
165
  - `.toolkit-version` (version tracking)
144
166
  - `CLAUDE.md` (if it contains placeholders)
145
167
 
146
- **⚠️ OpenCode `opencode.jsonc` Schema Validation:**
168
+ **OpenCode native V2 checks (only for confirmed OpenCode use):**
147
169
 
148
- When creating or modifying `.opencode/opencode.jsonc`, **only use supported top-level keys**. The schema is defined at `https://opencode.ai/config.json`. Adding unsupported keys will cause validation errors.
170
+ Follow official V2 [migration](https://opencode.ai/v2/docs/migrate-v1), [config](https://opencode.ai/v2/docs/config), [agents](https://opencode.ai/v2/docs/agents), and [plugins](https://opencode.ai/v2/docs/build/plugins) docs, not V1 API/schema fetches. The published schema may describe V1; do not reject native plural keys based on it.
149
171
 
150
- **Supported top-level keys:** `$schema`, `instructions`, `skills`, `agent`, `default_agent`, `model`, `small_model`, `provider`, `mcp`, `tools`, `permission`, `lsp`, `formatter`, `server`, `shell`, `command`, `plugin`, `watcher`, `snapshot`, `share`, `autoupdate`, `compaction`, `attachment`, `logLevel`, `disabled_providers`, `enabled_providers`, `tool_output`, `enterprise`, `experimental`
172
+ - After the version preflight passes, use `agents`/JSON `system` (Markdown bodies for file agents), `request.body.temperature`, ordered `permissions` (`action`/`resource`/`effect`, `shell`/`subagent`, last match wins), `commands`/`subagent`, `plugins` with `{ "package": "…", "options": {} }`, skill-directory arrays, and `mcp.servers` with inverse `disabled` and `timeout.catalog`/`timeout.execution`.
173
+ - Back up V1; native-converted files are incompatible with V1. Merge rather than clobber models/providers/user-global plugins. Only with approval, merge pinned `"plugins": ["oh-my-opencode-slim@3.0.0"]` locally. Slim's separate strict schema retains `prompt`/`permission`/`variant`; do not host-migrate it or silently upgrade the separate external starter.
174
+ - Templates register the author's native V2 package `@dietrichgebert/ponytail@4.12.0` locally; no local Ponytail source is bundled or ported. Keep `opentmux` commented as V1-only. Native local discovery needs no duplicate registration; do not introduce API ports or bridges or claim tested runtime integration.
175
+ - Config `instructions` entries are not loaded; ambient root/nested `AGENTS.md` works. `@refs` are ordinary text: explicitly read snippets. `request.body.temperature` remains in config, but the current runner does not send it. Preserve `lsp: true`; use workspace lint/typecheck/compiler commands (no V2 LSP tools/diagnostics currently).
176
+ - `--env opencode` supplies minimal shared references without other harness activation. Activate on the next run/restart; report only checks actually run with installed V2. Scaffold/placeholder checks are not runtime validation; publishing 4.0.0 has not been executed.
151
177
 
152
- **Do NOT add keys not listed above** (e.g., `rules`, `agents`, `commands`, `prompts` as top-level keys — these are configured via `instructions`, `skills`, and the `.opencode/` directory structure instead).
178
+ **Ponytail pre-activation cleanup (confirmed OpenCode use only):**
179
+
180
+ 1. In this bootstrap flow, inspect `.opencode/plugins/ponytail.js`, `.opencode/plugins/ponytail.mjs`, and `.opencode/plugins/ponytail.ts` for existing-target leftovers. Verify obsolete toolkit ownership from contents/provenance, not filename alone; absent paths need no deletion. Preserve unrelated/custom plugins and global config.
181
+ 2. Back up the local config and verified obsolete toolkit copies, obtain explicit removal approval, then remove ONLY those copies. Do not automatically delete files in the CLI or remove custom plugins.
182
+ 3. With approval, merge/deduplicate upstream `@dietrichgebert/ponytail@4.12.0` registration locally where appropriate, preserving other registrations/options and leaving global config untouched. No API port or bridge.
183
+ 4. If any present copy's ownership or safe removal is unverified, or required removal approval is denied, **STOP OpenCode activation and migration completion**; leave `.toolkit-version` unchanged and report blocked, not complete. Proceed/restart only after this gate passes; runtime integration remains untested.
153
184
 
154
185
  **Create Toolkit Version File:**
155
186
 
156
- Create a `.toolkit-version` file in the project root with the current toolkit version:
187
+ Create a `.toolkit-version` file in the project root with the current toolkit version only after the OpenCode preflight and Ponytail cleanup gate pass (or OpenCode is confirmed out of scope):
157
188
 
158
189
  ```
159
- 3.0.0
190
+ 4.0.0
160
191
  ```
161
192
 
162
193
  This file enables `bootstrap-patch` to detect version changes and apply migrations automatically.
@@ -239,7 +270,9 @@ For multi-app monorepos with different frameworks, list all with app context (e.
239
270
 
240
271
  #### Agent Tool & Permission Calibration
241
272
 
242
- The `tools:` block (Claude Code, GitHub Copilot) and `permission:` block (OpenCode) must match each agent's role **and** the detected project. Templates ship with defaults, but calibrate them during bootstrap so every agent can do its job without being over-provisioned.
273
+ The `tools:` block (Claude Code, GitHub Copilot) and ordered `permissions:` rules (OpenCode V2) must match each agent's role **and** the detected project. Inspect actual defaults before proposing changes; calibrate without over-provisioning.
274
+
275
+ **Codex native calibration:** customize project instructions and skills, not Claude/Copilot `tools:` frontmatter or OpenCode `permissions:` rules. This toolkit ships no Codex custom-agent format. Use only delegation capabilities actually available in the running harness; do not generate agent files from this table or change native security settings to simulate per-role tool gating.
243
276
 
244
277
  **1. Capability baseline per role** — what the agent functionally needs:
245
278
 
@@ -254,22 +287,22 @@ The `tools:` block (Claude Code, GitHub Copilot) and `permission:` block (OpenCo
254
287
 
255
288
  **2. Translate the baseline to each platform's syntax:**
256
289
 
257
- | Capability | Claude Code | GitHub Copilot | OpenCode (`permission:`) | Cursor |
290
+ | Capability | Claude Code | GitHub Copilot | OpenCode (`permissions:` rule) | Cursor |
258
291
  | ------------------ | --------------- | -------------------------------------- | ------------------------ | ------- |
259
292
  | read | `Read` | `read` | default | default |
260
293
  | search | `Grep` | `search` | default | default |
261
- | write / edit files | `Write`, `Edit` | `edit` | `edit: allow` | default |
262
- | terminal | `Bash(*)` | `runInTerminal`, `terminalLastCommand` | `bash: allow` | default |
263
- | spawn subagents | `agent` | n/a | `task: allow` | default |
294
+ | write / edit files | `Write`, `Edit` | `edit` | `{action: edit, resource: "*", effect: allow}` | default |
295
+ | terminal | `Bash(*)` | `runInTerminal`, `terminalLastCommand` | `{action: shell, resource: "*", effect: allow}` | default |
296
+ | spawn subagents | `agent` | n/a | `{action: subagent, resource: "*", effect: allow}` | default |
264
297
 
265
298
  > **Cursor note:** these templates declare no `tools:` field, so Cursor subagents inherit the full default toolset. Read-only intent (Researcher, Reviewer) is enforced by the agent's instructions, not tool gating. If your Cursor version supports per-agent tool restriction, add a `tools:` field to match the baseline.
266
299
 
267
300
  **3. Project-driven adjustments** (widen or narrow from the baseline):
268
301
 
269
- - **Planner** — If plans are persisted to files (e.g. `docs/plans/`, `docs/features/`), it MUST have write + terminal. The Copilot default is read-only (`["read","search"]`) and the OpenCode default denies `edit`/`bash` — **widen both** to the baseline. The Claude default already has `Write` but lacks `Bash(*)` — add it so the planner can run `git log` / discover tests.
270
- - **Documenter** — Always needs edit (updates existing docs); needs terminal when the project uses doc generators (mkdocs, typedoc, sphinx, docusaurus). The OpenCode default denies `edit`/`bash` and the Claude default omits `Edit`/`Bash(*)` — **widen both** to the baseline. The Copilot default is already correct.
302
+ - **Planner** — Persisted plans need write + terminal. If Copilot is read-only (`["read","search"]`), widen to the baseline. If Claude lacks `Bash(*)`, add it for `git log` / test discovery. For OpenCode, inspect ordered rules and propose `edit`/`shell` allows only when missing and approved.
303
+ - **Documenter** — Needs edit for docs, terminal for doc generators. If Claude omits `Edit`/`Bash(*)`, propose them. For OpenCode, inspect ordered `edit`/`shell` rules against this baseline, not presumed legacy defaults.
271
304
  - **Researcher** — Must stay read-only on every platform. The Claude Code default currently grants `Write` — **remove it** (`["Read","Grep"]`).
272
- - **Reviewer** — Read + terminal only; never grant write/edit. The OpenCode default denies `bash` — **allow `bash`** (keep `edit: deny`) so it can run `git diff` / tests. The Claude default grants `Write` — **remove it** (keep `Bash(*)`).
305
+ - **Reviewer** — Read + terminal only; never grant write/edit. OpenCode ordered rules should allow `shell` and deny `edit` for this baseline. If Claude grants `Write`, remove it (keep `Bash(*)`).
273
306
  - **Worker agents** (Planner, Implementer, Red, Green, Refactor) — in a monorepo keep `user-invocable: false`; they are coordinator-dispatched only.
274
307
 
275
308
  **4. Apply:** for each agent file (`.claude/agents/*.agent.md`, `.github/agents/*.agent.md`, `.opencode/agents/*.md`), compare the declared tools/permissions to the calibrated baseline and adjust. List the changes, then confirm before applying.
@@ -278,16 +311,16 @@ Present the replacements and confirm before applying.
278
311
 
279
312
  9. **Detect Installed AI Agents**:
280
313
 
281
- Before recommending skills, detect which AI agent directories exist in the workspace. Supported agents are located here: https://github.com/vercel-labs/skills?tab=readme-ov-file#available-agents:
314
+ Before recommending skills, identify the running harness from session/runtime information and confirm additional harnesses with the user. Consult supported installer IDs at https://github.com/vercel-labs/skills?tab=readme-ov-file#available-agents.
282
315
 
283
- **Note:** `.agents/` directory is used by multiple agents: `amp`, `codex`, `gemini-cli`, `github-copilot`, `opencode`, `replit`. If only `.agents/` exists, default to `codex` or `github-copilot` based on other indicators.
316
+ **Note:** `.agents/` is shared by multiple agents. Neither it nor scaffolded `.codex/`, `.claude/`, `.cursor/`, or `.github/` directories proves a harness is installed or used. If runtime evidence is unavailable, ask rather than defaulting to an agent.
284
317
 
285
- **Note:** `.claude/` directory indicates Claude Code is installed. Add `-a claude-code` to agent flags.
318
+ **Codex:** the skills installer supports agent ID `codex`; confirmed Codex use maps to `-a codex` and native `.agents/skills/`.
286
319
 
287
320
  **Build the agent flags string:**
288
- - For each detected agent, add `-a <agent>` to the command
289
- - Example: If `.cursor/`, `.claude/`, and `.github/` exist → use `-a cursor -a claude-code -a github-copilot`
290
- - If no agents detected, omit `-a` flags (CLI will prompt)
321
+ - For each confirmed harness, add `-a <supported-agent-id>` to the command
322
+ - Example: confirmed Cursor, Claude Code, and Copilot → `-a cursor -a claude-code -a github-copilot`
323
+ - If no harness is confirmed, ask before installing (or let the CLI prompt); do not infer from scaffold directories
291
324
 
292
325
  10. **Recommend and Install AI Agent Skills**:
293
326
 
@@ -303,11 +336,11 @@ Based on detected ecosystem and frameworks, recommend relevant skills from [skil
303
336
  | `trailofbits/skills` | Security analysis, Semgrep, property-based testing |
304
337
  | `softaworks/agent-toolkit` | README writing, clear documentation |
305
338
 
306
- **Example commands** (replace `<detected-agents>` with the actual flags from step 9, e.g., `-a cursor -a github-copilot`):
339
+ **Example commands** (replace `{{AGENT_FLAGS}}` with confirmed harness flags from step 9, e.g., `-a codex`):
307
340
 
308
341
  ```bash
309
- npx -y skills add <detected-agents> obra/superpowers --skill '*' --agent github-copilot cursor
310
- npx -y skills add <detected-agents> trailofbits/skills --skill '*' --agent github-copilot cursor
342
+ npx -y skills add {{AGENT_FLAGS}} obra/superpowers --skill '*'
343
+ npx -y skills add {{AGENT_FLAGS}} trailofbits/skills --skill '*'
311
344
  ```
312
345
 
313
346
  **Issue Tracker Skills Health Check (if {{ISSUE_TRACKER}} is configured):**
@@ -361,25 +394,25 @@ When recommending framework-specific skills, include the detected agent flags. E
361
394
 
362
395
  | Language/Framework | Skill Repository | Install Command |
363
396
  | ------------------ | ------------------------------------- | -------------------------------------------------------------------------------------------------------- |
364
- | PHP | `vapvarun/claude-backup` (php) | `npx -y skills add <detected-agents> vapvarun/claude-backup --skill "php"` |
365
- | Laravel | `vapvarun/claude-backup` (laravel) | `npx -y skills add <detected-agents> vapvarun/claude-backup --skill "laravel"` |
366
- | Python | `siviter-xyz/dot-agent` (python) | `npx -y skills add <detected-agents> siviter-xyz/dot-agent --skill "python"` |
367
- | Django | `vintasoftware/django-ai-plugins` | `npx -y skills add <detected-agents> vintasoftware/django-ai-plugins --skill "django-expert"` |
368
- | Next.js | `sickn33/antigravity-awesome-skills` | `npx -y skills add <detected-agents> sickn33/antigravity-awesome-skills --skill "nextjs-best-practices"` |
369
- | React | `vercel-labs/agent-skills` | `npx -y skills add <detected-agents> vercel-labs/agent-skills --skill "vercel-react-best-practices"` |
370
- | Vue | `onmax/nuxt-skills` (vue) | `npx -y skills add <detected-agents> onmax/nuxt-skills --skill "vue"` |
371
- | Nuxt | `onmax/nuxt-skills` (nuxt) | `npx -y skills add <detected-agents> onmax/nuxt-skills --skill "nuxt"` |
372
- | Expo | `expo/skills` | `npx -y skills add <detected-agents> expo/skills --skill '*' --agent github-copilot cursor` |
373
- | TypeScript | `pproenca/dot-skills` (typescript) | `npx -y skills add <detected-agents> pproenca/dot-skills --skill '*' --agent github-copilot cursor` |
374
- | Advanced Types | `wshobson/agents` (ts-advanced-types) | `npx -y skills add <detected-agents> wshobson/agents --skill '*' --agent github-copilot cursor` |
397
+ | PHP | `vapvarun/claude-backup` (php) | `npx -y skills add {{AGENT_FLAGS}} vapvarun/claude-backup --skill "php"` |
398
+ | Laravel | `vapvarun/claude-backup` (laravel) | `npx -y skills add {{AGENT_FLAGS}} vapvarun/claude-backup --skill "laravel"` |
399
+ | Python | `siviter-xyz/dot-agent` (python) | `npx -y skills add {{AGENT_FLAGS}} siviter-xyz/dot-agent --skill "python"` |
400
+ | Django | `vintasoftware/django-ai-plugins` | `npx -y skills add {{AGENT_FLAGS}} vintasoftware/django-ai-plugins --skill "django-expert"` |
401
+ | Next.js | `sickn33/antigravity-awesome-skills` | `npx -y skills add {{AGENT_FLAGS}} sickn33/antigravity-awesome-skills --skill "nextjs-best-practices"` |
402
+ | React | `vercel-labs/agent-skills` | `npx -y skills add {{AGENT_FLAGS}} vercel-labs/agent-skills --skill "vercel-react-best-practices"` |
403
+ | Vue | `onmax/nuxt-skills` (vue) | `npx -y skills add {{AGENT_FLAGS}} onmax/nuxt-skills --skill "vue"` |
404
+ | Nuxt | `onmax/nuxt-skills` (nuxt) | `npx -y skills add {{AGENT_FLAGS}} onmax/nuxt-skills --skill "nuxt"` |
405
+ | Expo | `expo/skills` | `npx -y skills add {{AGENT_FLAGS}} expo/skills --skill '*'` |
406
+ | TypeScript | `pproenca/dot-skills` (typescript) | `npx -y skills add {{AGENT_FLAGS}} pproenca/dot-skills --skill '*'` |
407
+ | Advanced Types | `wshobson/agents` (ts-advanced-types) | `npx -y skills add {{AGENT_FLAGS}} wshobson/agents --skill '*'` |
375
408
 
376
409
  **Skill Creation for Unsupported Frameworks:**
377
410
 
378
- Use `npx -y skills add <detected-agents> anthropics/skills --skill '*' --agent github-copilot cursor` (includes `skill-creator`) to create custom skills.
411
+ Use `npx -y skills add {{AGENT_FLAGS}} anthropics/skills --skill '*'` (includes `skill-creator`) to create custom skills.
379
412
 
380
413
  **Monorepo-Specific Considerations:**
381
414
 
382
- - Install skills at workspace root (`.cursor/skills/{skill-name}/` or `.github/skills/{skill-name}/`)
415
+ - Install skills at workspace root (Codex: `.agents/skills/{skill-name}/`); verify the installer's reported paths for other harnesses
383
416
  - Skills are installed by skill name, not org/repo path (e.g., `superpowers/` not `obra/superpowers/`)
384
417
  - Consider per-app skills if apps use different frameworks
385
418
  - Update root `AGENTS.md` to reference installed skills
@@ -397,9 +430,9 @@ Using flags: {{AGENT_FLAGS}}
397
430
  Based on your monorepo ({{BUILD_SYSTEM}}/{{LANGUAGE}}):
398
431
 
399
432
  Core Skills (recommended for all projects):
400
- npx -y skills add {{AGENT_FLAGS}} obra/superpowers --skill '*' --agent github-copilot cursor
401
- npx -y skills add {{AGENT_FLAGS}} trailofbits/skills --skill '*' --agent github-copilot cursor
402
- npx -y skills add {{AGENT_FLAGS}} softaworks/agent-toolkit --skill '*' --agent github-copilot cursor
433
+ npx -y skills add {{AGENT_FLAGS}} obra/superpowers --skill '*'
434
+ npx -y skills add {{AGENT_FLAGS}} trailofbits/skills --skill '*'
435
+ npx -y skills add {{AGENT_FLAGS}} softaworks/agent-toolkit --skill '*'
403
436
 
404
437
  Issue Tracker Skills (bundled — {{ISSUE_TRACKER}}):
405
438
  ✅ .agents/skills/issue-tracker/SKILL.md (shared strategy)
@@ -407,49 +440,42 @@ Issue Tracker Skills (bundled — {{ISSUE_TRACKER}}):
407
440
  ⚠️ Prune any issue-tracker CLI skills that do not match {{ISSUE_TRACKER}} (if any)
408
441
 
409
442
  Framework-Specific Skills:
410
- - web (Next.js): npx -y skills add {{AGENT_FLAGS}} vercel-labs/agent-skills --skill '*' --agent github-copilot cursor
411
- - api (Hono): npx -y skills add {{AGENT_FLAGS}} elysiajs/skills --skill '*' --agent github-copilot cursor
443
+ - web (Next.js): npx -y skills add {{AGENT_FLAGS}} vercel-labs/agent-skills --skill '*'
444
+ - api (Hono): npx -y skills add {{AGENT_FLAGS}} elysiajs/skills --skill '*'
412
445
 
413
446
  Install All? (Y/n)
414
447
  ```
415
448
 
416
449
  **Example with detected agents:**
417
450
 
418
- - If `.cursor/` and `.github/` exist: `AGENT_FLAGS="-a cursor -a github-copilot"`
419
- - If only `.cursor/` exists: `AGENT_FLAGS="-a cursor"`
420
- - Commands become: `npx -y skills add -a cursor -a github-copilot obra/superpowers --skill '*' --agent github-copilot cursor`
451
+ - If Cursor and Copilot are confirmed: `AGENT_FLAGS="-a cursor -a github-copilot"`
452
+ - If only Codex is confirmed: `AGENT_FLAGS="-a codex"`
453
+ - Codex-only command: `npx -y skills add -a codex obra/superpowers --skill '*'`
421
454
 
422
455
  **On Confirmation:**
423
456
 
424
457
  - Run skill installation commands at workspace root
425
- - Skills installed to `.cursor/skills/`
458
+ - Verify the installer's reported paths; Codex uses `.agents/skills/`
426
459
  - Update root `AGENTS.md` to reference installed skills
427
460
  - Add skill references to relevant app `AGENTS.md` files
428
461
 
429
462
  10. **Report Completion**:
430
463
 
464
+ Populate this example with only files actually changed and skills actually installed. Omit unconfirmed harness targets; for Codex, include native targets and shared reference standards only when changed. This is a change inventory, not proof of runtime loading or trust.
465
+
431
466
  ```
432
467
  ✅ Monorepo Bootstrap Complete!
433
468
 
434
469
  Ecosystem: {{LANGUAGE}} / {{BUILD_SYSTEM}}
435
470
 
436
471
  Root Files Updated:
437
- - AGENTS.md
438
- - .github/copilot-instructions.md
439
- - .github/instructions/*.instructions.md
440
- - .cursor/rules/*.mdc
441
- - .cursor/commands/*.md
442
- - .claude/rules/*.md (thin wrappers)
443
- - .claude/commands/*.md (thin wrappers)
444
- - .claude/agents/*.agent.md (thin wrappers)
445
- - .claude/rules-snippets/*.md (rules content)
446
- - .claude/prompt-snippets/*.md (prompt content)
447
- - .claude/agents-snippets/*.md (agent content)
448
- - .opencode/opencode.jsonc
449
- - .opencode/commands/*.md
450
- - .opencode/rules/*.md
451
- - .opencode/agents/*.md
452
- - .toolkit-version
472
+ - AGENTS.md (if changed)
473
+ - .agents/skills/*/SKILL.md (if changed)
474
+ - .codex/config.toml (Codex; if changed)
475
+ - .github/instructions/*.instructions.md (linked standards or confirmed Copilot; if changed)
476
+ - .claude/rules-snippets/*.md (reference sources; if changed)
477
+ - Other confirmed harness files actually changed (list exact paths)
478
+ - .toolkit-version (if changed)
453
479
 
454
480
  App Files Created/Updated:
455
481
  - {{APP_DIR}}/{{APP_1}}/AGENTS.md
@@ -459,9 +485,9 @@ Package/Library Files Updated:
459
485
  - {{PACKAGES_DIR}}/{{PACKAGE_1}}/README.md
460
486
 
461
487
  Installed Skills:
462
- - obra/superpowers - Development workflow
463
- - trailofbits/skills - Security & quality
464
- - {{FRAMEWORK_SKILL}} - Framework patterns
488
+ - obra/superpowers - Development workflow (only if installed)
489
+ - trailofbits/skills - Security & quality (only if installed)
490
+ - {{FRAMEWORK_SKILL}} - Framework patterns (only if installed)
465
491
 
466
492
  Next Steps:
467
493
  1. Review root AGENTS.md for accuracy
@@ -475,7 +501,7 @@ Next Steps:
475
501
  9. **Review Installed Skills**:
476
502
 
477
503
  After completion, audit all installed skills:
478
- - Scan `.github/skills/` and `.cursor/skills/` directories
504
+ - Scan `.agents/skills/` and confirmed harness skill directories, including `.github/skills/` and `.cursor/skills/` if used
479
505
  - Compare each skill against detected ecosystems and frameworks
480
506
  - Flag skills that don't match any app's tech stack
481
507
 
@@ -507,8 +533,12 @@ Next Steps:
507
533
 
508
534
  Check for required instruction files at root and app levels:
509
535
 
536
+ For Codex, verify root/app/package `AGENTS.md` instructions and `.agents/skills/*/SKILL.md`; parse optional `.codex/config.toml` as TOML and confirm inherited defaults are preserved. The Copilot-specific audit below applies only when Copilot is confirmed in use; do not create Copilot instructions merely to satisfy a Codex audit.
537
+
538
+ **Copilot Audit Example (only if Copilot is confirmed in use):**
539
+
510
540
  ```
511
- ## 📋 Instruction Files Audit
541
+ ## 📋 Copilot Instruction Files Audit — confirmed Copilot use only
512
542
 
513
543
  ### ✅ Found ({{N}} files)
514
544
  | File | Purpose | Status |
@@ -523,48 +553,54 @@ Next Steps:
523
553
  | fastapi.instructions.md | FastAPI patterns | api app uses FastAPI |
524
554
  | testing.instructions.md | Test conventions | Multiple frameworks |
525
555
 
526
- Create missing instruction files? (Y/n)
556
+ Create missing Copilot instruction files? (confirmed Copilot use only; Y/n)
527
557
  ```
528
558
 
529
- **On Confirmation:**
530
- - Generate instruction files with appropriate templates
559
+ **On Confirmation (only if Copilot is confirmed in use):**
560
+ - Generate missing Copilot instruction files with appropriate templates; skip creation for a Codex-only audit even when shared reference standards are present
531
561
  - Include app-specific scoping (applyTo paths)
532
562
  - Include framework-specific patterns from skills
533
563
  - Report created files
534
564
 
535
565
  11. **Final Verification Report**:
536
566
 
567
+ Report only actual changes and checks for confirmed harnesses. For Codex, distinguish file inspection and TOML validation from runtime instruction/skill discovery, project trust, and config loading. Mark runtime behavior unverified unless directly confirmed; file presence alone proves none of these. Remove inapplicable rows and mark checklist items complete only after performing the check.
568
+
537
569
  ```
538
- ## ✅ Bootstrap Complete & Verified!
570
+ ## Bootstrap Verification Report
539
571
 
540
572
  ### Summary
541
573
  | Category | Count | Status |
542
574
  |----------|-------|--------|
543
- | Root files updated | {{N}} | ✓ |
544
- | App files created | {{N}} | ✓ |
545
- | Package files updated | {{N}} | ✓ |
546
- | Skills installed | {{N}} | ✓ |
547
- | Skills removed | {{N}} | ✓ |
548
- | Instructions created | {{N}} | ✓ |
575
+ | Root files updated | {{N}} | Report actual result |
576
+ | App files created | {{N}} | Report actual result |
577
+ | Package files updated | {{N}} | Report actual result |
578
+ | Skills installed | {{N}} | Report actual result |
579
+ | Skills removed | {{N}} | Report actual result |
580
+ | Instructions created | {{N}} | Report actual result |
549
581
 
550
582
  ### Quality Checks
551
- - [x] Placeholders replaced
552
- - [x] Skills match tech stack
553
- - [x] No duplicate skills
554
- - [x] All apps have AGENTS.md
555
- - [x] Instructions cover all frameworks
556
- - [x] Snippet directories created
557
- - [x] Thin wrappers reference correct snippets
558
- - [x] .opencode/ directory configured
559
- - [x] .toolkit-version file created
560
-
561
- ### Your Monorepo is Ready! 🎉
562
-
563
- GitHub Copilot and Cursor understand:
564
- - Monorepo structure
565
- - App-specific frameworks
566
- - Shared packages
567
- - Cross-cutting patterns
583
+ - [ ] Placeholders replaced (list any remaining)
584
+ - [ ] Skills match tech stack
585
+ - [ ] No duplicate skills
586
+ - [ ] Applicable apps/packages have scoped AGENTS.md
587
+ - [ ] Instructions cover applicable frameworks
588
+ - [ ] Required reference snippet sources present and links resolve
589
+ - [ ] Thin wrappers reference correct snippets (if applicable)
590
+ - [ ] OpenCode configuration validated (only if OpenCode is confirmed in use)
591
+ - [ ] .toolkit-version file created or checked
592
+
593
+ ### Native Codex Check Example (only if Codex is confirmed in use)
594
+
595
+ | Target | Check to report | Result |
596
+ | ------ | --------------- | ------ |
597
+ | Root/app/package `AGENTS.md` | Contents, scopes, and linked standards inspected | Actual inspection result |
598
+ | `.agents/skills/*/SKILL.md` | Skill contents and relevance inspected | Actual inspection result; runtime discovery unverified unless confirmed |
599
+ | `.codex/config.toml` (if present) | TOML syntax and inherited defaults inspected | Actual validation result; user trust and native loading unverified unless confirmed |
600
+
601
+ ### Next Steps for Confirmed Harnesses
602
+
603
+ List the confirmed harnesses, checks actually performed, remaining issues, and runtime checks still needed. Do not infer Copilot/Cursor readiness or Codex trust/loading from scaffold files.
568
604
 
569
605
  Try asking:
570
606
  - "Create an endpoint in apps/api using our patterns"
@@ -0,0 +1,6 @@
1
+ # Codex project configuration (optional).
2
+ # Instructions: AGENTS.md; reusable skills: .agents/skills/.
3
+ # Intentionally comment-only: inherit the user's Codex defaults.
4
+ # Codex loads project config only after the user explicitly trusts the project.
5
+ # Configure optional MCP servers in native [mcp_servers.name] TOML, not .mcp.json.
6
+ # Reference: https://learn.chatgpt.com/docs/config-file/config-basic
@@ -1,5 +1,5 @@
1
1
  ---
2
- description: Review currently staged files before committing
2
+ description: Review staged files with detailed code review
3
3
  tools: ["read", "search"]
4
4
  argument-hint: "no arguments required"
5
5
  ---
@@ -1,10 +1,16 @@
1
1
  ---
2
2
  description: "Build administrator portals with RBAC, system dashboards, reporting, analytics, and operational tooling. Specializes in admin frameworks and monitoring ecosystem tools."
3
3
  mode: subagent
4
- temperature: 0.1
5
- permission:
6
- edit: allow
7
- bash: allow
4
+ request:
5
+ body:
6
+ temperature: 0.1
7
+ permissions:
8
+ - action: edit
9
+ resource: "*"
10
+ effect: allow
11
+ - action: shell
12
+ resource: "*"
13
+ effect: allow
8
14
  ---
9
15
 
10
16
  # Admin Portal Specialist
@@ -1,10 +1,16 @@
1
1
  ---
2
2
  description: "Design and implement API architecture, documentation, and developer experience. Use for REST design, GraphQL, OpenAPI specs, SDK generation, API versioning, and integration patterns."
3
3
  mode: subagent
4
- temperature: 0.1
5
- permission:
6
- edit: allow
7
- bash: allow
4
+ request:
5
+ body:
6
+ temperature: 0.1
7
+ permissions:
8
+ - action: edit
9
+ resource: "*"
10
+ effect: allow
11
+ - action: shell
12
+ resource: "*"
13
+ effect: allow
8
14
  ---
9
15
 
10
16
  # API Specialist
@@ -1,10 +1,16 @@
1
1
  ---
2
2
  description: "Design APIs, databases, and server-side architecture. Use for scalable backend systems, data modeling, caching strategies, system design, and infrastructure decisions."
3
3
  mode: subagent
4
- temperature: 0.1
5
- permission:
6
- edit: allow
7
- bash: allow
4
+ request:
5
+ body:
6
+ temperature: 0.1
7
+ permissions:
8
+ - action: edit
9
+ resource: "*"
10
+ effect: allow
11
+ - action: shell
12
+ resource: "*"
13
+ effect: allow
8
14
  ---
9
15
 
10
16
  # Backend Architect
@@ -1,10 +1,16 @@
1
1
  ---
2
2
  description: "Analyze codebases and create comprehensive documentation. Use for AGENTS.md, README files, API docs, architecture documentation, and onboarding guides."
3
3
  mode: subagent
4
- temperature: 0.1
5
- permission:
6
- edit: allow
7
- bash: allow
4
+ request:
5
+ body:
6
+ temperature: 0.1
7
+ permissions:
8
+ - action: edit
9
+ resource: "*"
10
+ effect: allow
11
+ - action: shell
12
+ resource: "*"
13
+ effect: allow
8
14
  ---
9
15
 
10
16
  # Documenter
@@ -1,11 +1,19 @@
1
1
  ---
2
2
  description: "Coordinate end-to-end feature development using subagents for planning, implementation, and review. Orchestrates the full development lifecycle."
3
3
  mode: subagent
4
- temperature: 0.3
5
- permission:
6
- edit: allow
7
- bash: allow
8
- task: allow
4
+ request:
5
+ body:
6
+ temperature: 0.3
7
+ permissions:
8
+ - action: edit
9
+ resource: "*"
10
+ effect: allow
11
+ - action: shell
12
+ resource: "*"
13
+ effect: allow
14
+ - action: subagent
15
+ resource: "*"
16
+ effect: allow
9
17
  ---
10
18
 
11
19
  # Feature Builder — Coordinator
@@ -1,10 +1,16 @@
1
1
  ---
2
2
  description: "Build user interfaces, implement components, handle state management, and optimize frontend performance. Use for responsive, accessible, and performant web applications."
3
3
  mode: subagent
4
- temperature: 0.1
5
- permission:
6
- edit: allow
7
- bash: allow
4
+ request:
5
+ body:
6
+ temperature: 0.1
7
+ permissions:
8
+ - action: edit
9
+ resource: "*"
10
+ effect: allow
11
+ - action: shell
12
+ resource: "*"
13
+ effect: allow
8
14
  ---
9
15
 
10
16
  # Frontend Developer
@@ -1,10 +1,16 @@
1
1
  ---
2
2
  description: "Write minimal code to make failing tests pass. Part of the TDD red-green-refactor cycle."
3
3
  mode: subagent
4
- temperature: 0.1
5
- permission:
6
- edit: allow
7
- bash: allow
4
+ request:
5
+ body:
6
+ temperature: 0.1
7
+ permissions:
8
+ - action: edit
9
+ resource: "*"
10
+ effect: allow
11
+ - action: shell
12
+ resource: "*"
13
+ effect: allow
8
14
  ---
9
15
 
10
16
  # Green Agent (TDD — Make Tests Pass)
@@ -1,10 +1,16 @@
1
1
  ---
2
2
  description: "Implement code changes for a specific task. Follow TDD, write tests alongside code, and self-review before reporting completion."
3
3
  mode: subagent
4
- temperature: 0.1
5
- permission:
6
- edit: allow
7
- bash: allow
4
+ request:
5
+ body:
6
+ temperature: 0.1
7
+ permissions:
8
+ - action: edit
9
+ resource: "*"
10
+ effect: allow
11
+ - action: shell
12
+ resource: "*"
13
+ effect: allow
8
14
  ---
9
15
 
10
16
  # Implementer Agent
@@ -1,10 +1,16 @@
1
1
  ---
2
2
  description: "Break down feature requests into implementation tasks. Read specifications, analyze codebase patterns, and produce structured plans with dependencies."
3
3
  mode: subagent
4
- temperature: 0.1
5
- permission:
6
- edit: allow
7
- bash: allow
4
+ request:
5
+ body:
6
+ temperature: 0.1
7
+ permissions:
8
+ - action: edit
9
+ resource: "*"
10
+ effect: allow
11
+ - action: shell
12
+ resource: "*"
13
+ effect: allow
8
14
  ---
9
15
 
10
16
  # Planner Agent