@softspark/ai-toolkit 2.0.1 → 2.1.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.
@@ -5,15 +5,15 @@ service: ai-toolkit
5
5
  tags: [plugins, plugin-packs, conventions, manifests, hooks, policy-packs]
6
6
  version: "1.0.0"
7
7
  created: "2026-03-28"
8
- last_updated: "2026-04-02"
9
- description: "Conventions for experimental ai-toolkit plugin packs, policy packs, hook packs, and plugin-creator scaffolding."
8
+ last_updated: "2026-04-13"
9
+ description: "Conventions for experimental ai-toolkit plugin packs, policy packs, hook packs, and plugin-creator scaffolding across Claude and Codex runtimes."
10
10
  ---
11
11
 
12
12
  # Plugin Pack Conventions
13
13
 
14
14
  ## Purpose
15
15
 
16
- `ai-toolkit` now includes experimental plugin packs under `app/plugins/` to formalize a Claude Code-compatible plugin direction without changing the default global install surface.
16
+ `ai-toolkit` now includes experimental plugin packs under `app/plugins/` to formalize a runtime-aware plugin direction for Claude and optional global Codex layering without changing the default core install surface.
17
17
 
18
18
  ## Pack Types
19
19
 
@@ -73,32 +73,34 @@ Required keys:
73
73
 
74
74
  ```bash
75
75
  ai-toolkit plugin list # show all 11 packs with install status
76
- ai-toolkit plugin install <name> # install a single pack
77
- ai-toolkit plugin install --all # install all 11 packs
78
- ai-toolkit plugin update <name> # update a pack (remove + reinstall, preserves data)
79
- ai-toolkit plugin update --all # update all installed packs
76
+ ai-toolkit plugin install --editor claude <name> # Claude global target
77
+ ai-toolkit plugin install --editor codex <name> # Codex global target
78
+ ai-toolkit plugin install --editor all --all # install all 11 packs for both runtimes
79
+ ai-toolkit plugin update --editor all --all # update all installed packs
80
80
  ai-toolkit plugin clean <name> # prune data older than 90 days (default)
81
81
  ai-toolkit plugin clean <name> --days 30 # prune data older than 30 days
82
- ai-toolkit plugin remove <name> # remove a pack
83
- ai-toolkit plugin remove --all # remove all installed packs
84
- ai-toolkit plugin status # show installed packs with data stats
82
+ ai-toolkit plugin remove --editor codex <name> # remove from one runtime only
83
+ ai-toolkit plugin remove --editor all --all # remove all installed packs everywhere
84
+ ai-toolkit plugin status --editor all # show installed packs with runtime details
85
85
  ```
86
86
 
87
87
  ### What `plugin install` Does
88
88
 
89
- 1. **Verifies** referenced agents/skills exist in `~/.claude/` (links them from core if missing)
89
+ 1. **Parses** `--editor claude|codex|all` (default: `claude`)
90
90
  2. **Copies** plugin-specific hooks to `~/.softspark/ai-toolkit/hooks/plugin-<pack>-<hook>.sh`
91
91
  3. **Copies** plugin-specific scripts to `~/.softspark/ai-toolkit/plugin-scripts/<pack>/`
92
92
  4. **Runs** init scripts if present (e.g. `init_db.py` for memory-pack — safe to re-run, preserves data)
93
- 5. **Merges** plugin hooks into `~/.claude/settings.json` (tagged with `_source: ai-toolkit-plugin-<name>`)
94
- 6. **Records** installed state to `~/.softspark/ai-toolkit/plugins.json`
93
+ 5. **Claude target**: links missing agents/skills into `~/.claude/`, injects plugin-local rules into `~/.claude/CLAUDE.md`, and merges plugin hook entries into `~/.claude/settings.json`
94
+ 6. **Codex target**: bootstraps global Codex assets in `HOME` (`~/AGENTS.md`, `~/.agents/skills`, `~/.agents/rules`, `~/.codex/hooks.json`) and then layers plugin-specific rules/hooks on top
95
+ 7. **Records** installed state per runtime in `~/.softspark/ai-toolkit/plugins.json`
95
96
 
96
97
  ### What `plugin update` Does
97
98
 
98
- 1. **Removes** existing plugin hooks, scripts, and settings.json entries (same as `remove`)
99
+ 1. **Removes** existing plugin runtime entries for the selected editor(s) (same as `remove`)
99
100
  2. **Reinstalls** from the current source (same as `install`)
100
101
  3. **Preserves plugin data** (e.g. memory-pack SQLite database is never deleted)
101
- 4. `--all` updates only currently installed packs (not all available)
102
+ 4. Shared plugin scripts/hooks are kept if another runtime still has the same pack installed
103
+ 5. `--all` updates only currently installed packs for the selected runtime(s)
102
104
 
103
105
  ### What `plugin clean` Does
104
106
 
@@ -108,10 +110,10 @@ ai-toolkit plugin status # show installed packs with data stats
108
110
 
109
111
  ### What `plugin remove` Does
110
112
 
111
- 1. **Removes** plugin hooks from `~/.softspark/ai-toolkit/hooks/`
112
- 2. **Removes** plugin scripts from `~/.softspark/ai-toolkit/plugin-scripts/`
113
- 3. **Strips** plugin hook entries from `settings.json` (by `_source` tag)
114
- 4. **Updates** `plugins.json` state
113
+ 1. **Claude target**: strips plugin hook entries from `~/.claude/settings.json` and removes plugin-local rule sections from `~/.claude/CLAUDE.md`
114
+ 2. **Codex target**: strips plugin hook entries from `~/.codex/hooks.json` and removes `~/.agents/rules/plugin-<pack>-*.md`
115
+ 3. **Shared assets** (`~/.softspark/ai-toolkit/hooks/plugin-*`, `plugin-scripts/<pack>/`) are removed only when no remaining runtime still uses that pack
116
+ 4. **Updates** `plugins.json` state per runtime
115
117
  5. **Leaves** core agents/skills untouched (they belong to the base install)
116
118
  6. **Leaves** plugin data intact (e.g. `memory.db` — use `clean` to prune)
117
119
 
@@ -119,7 +121,7 @@ ai-toolkit plugin status # show installed packs with data stats
119
121
 
120
122
  - **Auto-retention**: `session-summary.sh` hook auto-prunes observations older than 90 days on every session end (configurable via `MEMORY_RETENTION_DAYS` env var)
121
123
  - **Manual clean**: `ai-toolkit plugin clean memory-pack --days 30`
122
- - **Status**: `ai-toolkit plugin status` shows DB size, observation count, date range
124
+ - **Status**: `ai-toolkit plugin status --editor claude|codex|all` shows runtime-specific install details plus DB size, observation count, and date range where relevant
123
125
 
124
126
  ## Current Experimental Packs
125
127
 
@@ -148,4 +150,3 @@ ai-toolkit plugin status # show installed packs with data stats
148
150
  - `hooks/session-summary.sh` — summarizes session on Stop
149
151
 
150
152
  These are intentionally excluded from the default install until explicitly enabled via `ai-toolkit plugin install`.
151
-
@@ -3,10 +3,10 @@ title: "AI Toolkit - Skills Catalog"
3
3
  category: reference
4
4
  service: ai-toolkit
5
5
  tags: [skills, domain-knowledge, catalog, task-skills, hybrid-skills]
6
- version: "1.4.2"
6
+ version: "1.4.3"
7
7
  created: "2026-03-23"
8
- last_updated: "2026-04-09"
9
- description: "Complete skills catalog with task, hybrid, and knowledge skills. Includes effort levels, skill-scoped hooks, executable scripts, security auditor, and persona presets."
8
+ last_updated: "2026-04-12"
9
+ description: "Complete skills catalog with task, hybrid, and knowledge skills. Includes Codex adaptation notes, effort levels, skill-scoped hooks, executable scripts, security auditor, and persona presets."
10
10
  ---
11
11
 
12
12
  # Skills Catalog
@@ -73,9 +73,9 @@ Hybrid skills combine slash-command invocation with domain knowledge that agents
73
73
  | **docs** | `/docs` | high | Generate/update docs: README, API docs, architecture notes, changelogs (Tier 1 — single agent) |
74
74
  | **search** | `/search` | medium | Search knowledge base (MCP tools with local fallback) |
75
75
  | **explain** | `/explain` | medium | Explain architecture of a file/module using Mermaid diagrams |
76
- | **orchestrate** | `/orchestrate` | max | Custom multi-agent parallelism — Tier 3, spawns agents via Agent tool |
76
+ | **orchestrate** | `/orchestrate` | max | Custom multi-agent parallelism — Tier 3, native in Claude, Codex-adapted to `spawn_agent` workflows |
77
77
  | **swarm** | `/swarm` | max | Massive parallelism: map-reduce, consensus, relay — Tier 3 |
78
- | **workflow** | `/workflow` | max | 15 predefined multi-agent workflow types — Tier 2 |
78
+ | **workflow** | `/workflow` | max | 15 predefined multi-agent workflow types — Tier 2, Codex-adapted to native subagent orchestration |
79
79
  | **instinct-review** | `/instinct-review` | low | Review, curate, and manage learned instincts from past sessions |
80
80
  | **teams** | `/teams` | max | Launch pre-configured Agent Teams compositions for common workflows |
81
81
  | **write-a-prd** | `/write-a-prd` | high | Create PRD through interactive interview, codebase exploration, and module design |
@@ -250,6 +250,28 @@ Step 0 interview before setup — 5 targeted questions to capture undocumented p
250
250
  - `allowed-tools: ...` — tools available to the agent when processing this skill
251
251
  - `depends-on: skill-a, skill-b` — declares dependencies on other skills (validated by `validate.py`)
252
252
 
253
+ ### Codex CLI Adaptation
254
+
255
+ Codex CLI receives the full skill catalog during `ai-toolkit install --local --editors codex`.
256
+
257
+ - Native Codex-compatible skills are symlinked directly into `.agents/skills/`
258
+ - Claude-oriented orchestration skills are generated as Codex wrappers
259
+ - Adapted wrappers translate `Agent`, `Team*`, and `Task*` guidance to `spawn_agent`, `send_input`, `wait_agent`, `close_agent`, and `update_plan`
260
+
261
+ Common adapted skills:
262
+
263
+ - `/orchestrate`
264
+ - `/workflow`
265
+ - `/swarm`
266
+ - `/teams`
267
+ - `/subagent-development`
268
+ - `/tdd`
269
+
270
+ The translated skill content keeps the original support assets (`reference/`,
271
+ `scripts/`, `assets/`) while replacing Claude-specific runtime instructions.
272
+
273
+ See `kb/reference/codex-cli-compatibility.md` for the detailed mapping and hook limits.
274
+
253
275
  ### Skill Dependencies (`depends-on`)
254
276
  Skills can declare dependencies on other skills (primarily knowledge skills) for documentation and validation:
255
277
  ```yaml