@a5c-ai/babysitter-github 0.1.5-staging.f6cb97d6 → 5.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 (48) hide show
  1. package/bin/cli.js +14 -26
  2. package/bin/install-shared.js +398 -215
  3. package/bin/install.js +49 -89
  4. package/bin/uninstall.js +30 -60
  5. package/commands/call.md +7 -7
  6. package/commands/contrib.md +31 -31
  7. package/commands/doctor.md +5 -5
  8. package/commands/forever.md +6 -6
  9. package/commands/help.md +245 -244
  10. package/commands/observe.md +12 -12
  11. package/commands/plan.md +7 -7
  12. package/commands/plugins.md +249 -249
  13. package/commands/project-install.md +10 -10
  14. package/commands/resume.md +8 -8
  15. package/commands/retrospect.md +55 -55
  16. package/commands/user-install.md +10 -10
  17. package/commands/yolo.md +7 -7
  18. package/hooks/babysitter-proxied-session-end.ps1 +12 -0
  19. package/hooks/babysitter-proxied-session-end.sh +3 -0
  20. package/hooks/babysitter-proxied-session-start.ps1 +12 -0
  21. package/hooks/babysitter-proxied-session-start.sh +11 -0
  22. package/hooks/babysitter-proxied-user-prompt-submitted.ps1 +12 -0
  23. package/hooks/babysitter-proxied-user-prompt-submitted.sh +3 -0
  24. package/hooks.json +9 -9
  25. package/package.json +20 -21
  26. package/plugin.json +9 -5
  27. package/scripts/create-release-tag.mjs +18 -0
  28. package/scripts/publish-from-tag.mjs +12 -0
  29. package/scripts/team-install.js +14 -84
  30. package/skills/babysit/SKILL.md +2 -0
  31. package/skills/cleanup/SKILL.md +21 -0
  32. package/skills/contrib/SKILL.md +34 -0
  33. package/skills/doctor/SKILL.md +5 -5
  34. package/skills/forever/SKILL.md +8 -0
  35. package/skills/help/SKILL.md +3 -2
  36. package/skills/observe/SKILL.md +1 -1
  37. package/skills/plugins/SKILL.md +257 -0
  38. package/skills/project-install/SKILL.md +18 -0
  39. package/skills/yolo/SKILL.md +8 -0
  40. package/versions.json +2 -1
  41. package/.github/plugin.json +0 -25
  42. package/hooks/session-end.ps1 +0 -68
  43. package/hooks/session-end.sh +0 -65
  44. package/hooks/session-start.ps1 +0 -110
  45. package/hooks/session-start.sh +0 -100
  46. package/hooks/user-prompt-submitted.ps1 +0 -51
  47. package/hooks/user-prompt-submitted.sh +0 -41
  48. package/scripts/sync-command-surfaces.js +0 -62
@@ -1,255 +1,255 @@
1
- ---
2
- description: manage babysitter plugins. use this command to see the list of installed babysitter plugins, their status, and manage them (install, update, uninstall, list from marketplace, add marketplace, configure plugin, create new plugin, etc).
3
- argument-hint: Specific instructions.
4
- ---
5
-
6
- This command installs and manages plugins for babysitter. A plugin is a version-managed package of contextual instructions (for install, uninstall, configure, and update/migrate between versions), not a conventional software plugin.
7
-
8
- if the command is run without arguments, it lists all installed plugins with their name, version, marketplace, installation date, and last update date. as well as marketplaces added to the system. and instructions on how to install new plugins from marketplaces.
9
- if there are no marketplaces added, add the default marketplace:
10
- ```bash
11
- babysitter plugin:add-marketplace --marketplace-url https://github.com/a5c-ai/babysitter --marketplace-path plugins/a5c/marketplace/marketplace.json --global --json
12
- ```
13
-
14
- Plugins can be installed at two scopes:
15
- - **global** (`--global`): stored under `~/.a5c/`, available for all projects
16
- - **project** (`--project`): stored under `<projectDir>/.a5c/`, project-specific
17
-
18
- ## Marketplace Management
19
-
20
- Marketplaces are git repositories containing a `marketplace.json` manifest and plugin package directories. The SDK clones them locally with `--depth 1`.
21
-
22
- **Storage locations:**
23
- - Global: `~/.a5c/marketplaces/<name>/`
24
- - Project: `<projectDir>/.a5c/marketplaces/<name>/`
25
-
26
- The marketplace name is derived from the git URL's last path segment (stripping `.git` suffix and trailing slashes).
27
-
28
- ### Adding a marketplace
29
-
30
- ```bash
31
- babysitter plugin:add-marketplace --marketplace-url <url> [--marketplace-path <relative-path>] [--marketplace-branch <ref>] [--force] --global|--project [--json]
32
- ```
33
-
34
- Clones the marketplace repository to the local marketplaces directory. Use `--marketplace-path` to specify the relative path to `marketplace.json` within the repo (for monorepos or repos where the manifest is not at the root). Use `--marketplace-branch` to clone a specific branch, tag, or ref (defaults to the repo's default branch). Use `--force` to replace an existing marketplace clone (deletes and re-clones).
35
-
36
- ### Updating a marketplace
37
-
38
- ```bash
39
- babysitter plugin:update-marketplace --marketplace-name <name> [--marketplace-branch <ref>] --global|--project [--json]
40
- ```
41
-
42
- Runs `git pull` on the local marketplace clone to fetch latest changes. Use `--marketplace-branch` to switch to a different branch before pulling (works even with shallow clones).
43
-
44
- ### Listing plugins in a marketplace
45
-
46
- ```bash
47
- babysitter plugin:list-plugins --marketplace-name <name> --global|--project [--json]
48
- ```
49
-
50
- Reads the `marketplace.json` manifest and returns all available plugins sorted alphabetically by name. Each entry includes: name, description, latestVersion, versions array, packagePath, tags, and author.
51
-
52
- ## Plugin Installation
53
-
54
- **Note:** For `plugin:install`, `plugin:update`, `plugin:configure`, and `plugin:list-plugins`, the `--marketplace-name` flag is auto-detected when only one marketplace is cloned for the given scope. You can omit it if there's only one marketplace.
55
-
56
- ### Flow
57
-
58
- 1. Update the marketplace: `babysitter plugin:update-marketplace --marketplace-name <name> --global|--project`
59
- 2. Check current state: `babysitter plugin:list-installed --global|--project` to see installed plugins and versions
60
- 3. Install the plugin:
61
-
62
- ```bash
63
- babysitter plugin:install --plugin-name <name> [--marketplace-name <mp>] --global|--project [--json]
64
- ```
65
-
66
- This command resolves the plugin package path from the marketplace manifest, reads `install.md` from the plugin package directory, and returns the installation instructions. If an `install-process.js` file exists, the instructions may reference it as an automated install process.
67
-
68
- 4. The agent performs the installation steps as defined in `install.md`
69
- 5. The agent updates the registry:
70
-
71
- ```bash
72
- babysitter plugin:update-registry --plugin-name <name> --plugin-version <ver> --marketplace-name <mp> --global|--project [--json]
73
- ```
74
-
75
- ## Plugin Update (with migrations)
76
-
77
- ```bash
78
- babysitter plugin:update --plugin-name <name> --marketplace-name <mp> --global|--project [--json]
79
- ```
80
-
81
- This command:
82
- 1. Reads the currently installed version from the registry
83
- 2. Resolves the latest version from the marketplace manifest
84
- 3. Looks in the plugin package's `migrations/` directory for migration files
85
- 4. Uses BFS over the migration graph to find the shortest path from the installed version to the target version
86
- 5. Returns the ordered migration instructions (content of each migration file in sequence)
87
-
88
- **Migration filename format:** `<fromVersion>_to_<toVersion>.<ext>` where:
89
- - Versions may contain alphanumerics, dots, dashes (e.g. `1.0.0`, `2.0.0-beta`)
90
- - Extensions: `.md` for markdown instructions, `.js` for executable process files
91
- - Examples: `1.0.0_to_1.1.0.md`, `2.0.0-beta_to_2.0.0.js`
92
-
93
- After performing the migration steps, update the registry:
94
-
95
- ```bash
96
- babysitter plugin:update-registry --plugin-name <name> --plugin-version <new-ver> --marketplace-name <mp> --global|--project [--json]
97
- ```
98
-
99
- ## Plugin Uninstallation
100
-
101
- ```bash
102
- babysitter plugin:uninstall --plugin-name <name> --marketplace-name <mp> --global|--project [--json]
103
- ```
104
-
105
- Reads `uninstall.md` from the plugin package directory and returns the uninstall instructions. After performing the uninstall steps, remove from registry:
106
-
107
- ```bash
108
- babysitter plugin:remove-from-registry --plugin-name <name> --global|--project [--json]
109
- ```
110
-
111
- ## Plugin Configuration
112
-
113
- ```bash
114
- babysitter plugin:configure --plugin-name <name> --marketplace-name <mp> --global|--project [--json]
115
- ```
116
-
117
- Reads `configure.md` from the plugin package directory and returns configuration instructions.
118
-
119
- ## Registry Management
120
-
121
- The plugin registry (`plugin-registry.json`) tracks installed plugins with schema version `2026.01.plugin-registry-v1`. Writes use atomic file operations (temp + rename) for crash safety.
122
-
123
- **Storage locations:**
124
- - Global: `~/.a5c/plugin-registry.json`
125
- - Project: `<projectDir>/.a5c/plugin-registry.json`
126
-
127
- ### List installed plugins
128
-
129
- ```bash
130
- babysitter plugin:list-installed --global|--project [--json]
131
- ```
132
-
133
- Returns all installed plugins sorted alphabetically. In `--json` mode, returns an array of registry entries. In human mode, displays a formatted table with name, version, marketplace, and timestamps.
134
-
135
- ### Remove from registry
136
-
137
- ```bash
138
- babysitter plugin:remove-from-registry --plugin-name <name> --global|--project [--json]
139
- ```
140
-
141
- Removes a plugin entry from the registry. Returns error if the plugin is not present.
142
-
143
- ## Plugin Creation
144
-
145
- To create a new plugin package from scratch, use the `meta/plugin-creation` babysitter process. This process guides you through requirements analysis, structure design, instruction authoring, optional process file generation, validation, and marketplace integration.
146
-
147
- ### Using the plugin creation process
148
-
149
- Orchestrate a babysitter run with the plugin creation process:
150
-
151
- ```bash
152
- # Create inputs file
153
- cat > /tmp/plugin-inputs.json << 'EOF'
154
- {
155
- "pluginName": "my-plugin",
156
- "description": "What the plugin does — be specific about install/configure/uninstall behavior",
157
- "scope": "project",
158
- "outputDir": "./plugins",
159
- "components": {
160
- "installProcess": false,
161
- "configureProcess": false,
162
- "uninstallProcess": false,
163
- "migrations": false,
164
- "processFiles": false
165
- },
166
- "marketplace": {
167
- "name": "my-marketplace",
168
- "author": "my-org",
169
- "tags": ["category1", "category2"]
170
- }
171
- }
172
- EOF
173
-
174
- # Create and run
1
+ ---
2
+ description: manage babysitter plugins. use this command to see the list of installed babysitter plugins, their status, and manage them (install, update, uninstall, list from marketplace, add marketplace, configure plugin, create new plugin, etc).
3
+ argument-hint: Specific instructions.
4
+ ---
5
+
6
+ This command installs and manages plugins for babysitter. A plugin is a version-managed package of contextual instructions (for install, uninstall, configure, and update/migrate between versions), not a conventional software plugin.
7
+
8
+ if the command is run without arguments, it lists all installed plugins with their name, version, marketplace, installation date, and last update date. as well as marketplaces added to the system. and instructions on how to install new plugins from marketplaces.
9
+ if there are no marketplaces added, add the default marketplace:
10
+ ```bash
11
+ babysitter plugin:add-marketplace --marketplace-url https://github.com/a5c-ai/babysitter --marketplace-path plugins/a5c/marketplace/marketplace.json --global --json
12
+ ```
13
+
14
+ Plugins can be installed at two scopes:
15
+ - **global** (`--global`): stored under `~/.a5c/`, available for all projects
16
+ - **project** (`--project`): stored under `<projectDir>/.a5c/`, project-specific
17
+
18
+ ## Marketplace Management
19
+
20
+ Marketplaces are git repositories containing a `marketplace.json` manifest and plugin package directories. The SDK clones them locally with `--depth 1`.
21
+
22
+ **Storage locations:**
23
+ - Global: `~/.a5c/marketplaces/<name>/`
24
+ - Project: `<projectDir>/.a5c/marketplaces/<name>/`
25
+
26
+ The marketplace name is derived from the git URL's last path segment (stripping `.git` suffix and trailing slashes).
27
+
28
+ ### Adding a marketplace
29
+
30
+ ```bash
31
+ babysitter plugin:add-marketplace --marketplace-url <url> [--marketplace-path <relative-path>] [--marketplace-branch <ref>] [--force] --global|--project [--json]
32
+ ```
33
+
34
+ Clones the marketplace repository to the local marketplaces directory. Use `--marketplace-path` to specify the relative path to `marketplace.json` within the repo (for monorepos or repos where the manifest is not at the root). Use `--marketplace-branch` to clone a specific branch, tag, or ref (defaults to the repo's default branch). Use `--force` to replace an existing marketplace clone (deletes and re-clones).
35
+
36
+ ### Updating a marketplace
37
+
38
+ ```bash
39
+ babysitter plugin:update-marketplace --marketplace-name <name> [--marketplace-branch <ref>] --global|--project [--json]
40
+ ```
41
+
42
+ Runs `git pull` on the local marketplace clone to fetch latest changes. Use `--marketplace-branch` to switch to a different branch before pulling (works even with shallow clones).
43
+
44
+ ### Listing plugins in a marketplace
45
+
46
+ ```bash
47
+ babysitter plugin:list-plugins --marketplace-name <name> --global|--project [--json]
48
+ ```
49
+
50
+ Reads the `marketplace.json` manifest and returns all available plugins sorted alphabetically by name. Each entry includes: name, description, latestVersion, versions array, packagePath, tags, and author.
51
+
52
+ ## Plugin Installation
53
+
54
+ **Note:** For `plugin:install`, `plugin:update`, `plugin:configure`, and `plugin:list-plugins`, the `--marketplace-name` flag is auto-detected when only one marketplace is cloned for the given scope. You can omit it if there's only one marketplace.
55
+
56
+ ### Flow
57
+
58
+ 1. Update the marketplace: `babysitter plugin:update-marketplace --marketplace-name <name> --global|--project`
59
+ 2. Check current state: `babysitter plugin:list-installed --global|--project` to see installed plugins and versions
60
+ 3. Install the plugin:
61
+
62
+ ```bash
63
+ babysitter plugin:install --plugin-name <name> [--marketplace-name <mp>] --global|--project [--json]
64
+ ```
65
+
66
+ This command resolves the plugin package path from the marketplace manifest, reads `install.md` from the plugin package directory, and returns the installation instructions. If an `install-process.js` file exists, the instructions may reference it as an automated install process.
67
+
68
+ 4. The agent performs the installation steps as defined in `install.md`
69
+ 5. The agent updates the registry:
70
+
71
+ ```bash
72
+ babysitter plugin:update-registry --plugin-name <name> --plugin-version <ver> --marketplace-name <mp> --global|--project [--json]
73
+ ```
74
+
75
+ ## Plugin Update (with migrations)
76
+
77
+ ```bash
78
+ babysitter plugin:update --plugin-name <name> --marketplace-name <mp> --global|--project [--json]
79
+ ```
80
+
81
+ This command:
82
+ 1. Reads the currently installed version from the registry
83
+ 2. Resolves the latest version from the marketplace manifest
84
+ 3. Looks in the plugin package's `migrations/` directory for migration files
85
+ 4. Uses BFS over the migration graph to find the shortest path from the installed version to the target version
86
+ 5. Returns the ordered migration instructions (content of each migration file in sequence)
87
+
88
+ **Migration filename format:** `<fromVersion>_to_<toVersion>.<ext>` where:
89
+ - Versions may contain alphanumerics, dots, dashes (e.g. `1.0.0`, `2.0.0-beta`)
90
+ - Extensions: `.md` for markdown instructions, `.js` for executable process files
91
+ - Examples: `1.0.0_to_1.1.0.md`, `2.0.0-beta_to_2.0.0.js`
92
+
93
+ After performing the migration steps, update the registry:
94
+
95
+ ```bash
96
+ babysitter plugin:update-registry --plugin-name <name> --plugin-version <new-ver> --marketplace-name <mp> --global|--project [--json]
97
+ ```
98
+
99
+ ## Plugin Uninstallation
100
+
101
+ ```bash
102
+ babysitter plugin:uninstall --plugin-name <name> --marketplace-name <mp> --global|--project [--json]
103
+ ```
104
+
105
+ Reads `uninstall.md` from the plugin package directory and returns the uninstall instructions. After performing the uninstall steps, remove from registry:
106
+
107
+ ```bash
108
+ babysitter plugin:remove-from-registry --plugin-name <name> --global|--project [--json]
109
+ ```
110
+
111
+ ## Plugin Configuration
112
+
113
+ ```bash
114
+ babysitter plugin:configure --plugin-name <name> --marketplace-name <mp> --global|--project [--json]
115
+ ```
116
+
117
+ Reads `configure.md` from the plugin package directory and returns configuration instructions.
118
+
119
+ ## Registry Management
120
+
121
+ The plugin registry (`plugin-registry.json`) tracks installed plugins with schema version `2026.01.plugin-registry-v1`. Writes use atomic file operations (temp + rename) for crash safety.
122
+
123
+ **Storage locations:**
124
+ - Global: `~/.a5c/plugin-registry.json`
125
+ - Project: `<projectDir>/.a5c/plugin-registry.json`
126
+
127
+ ### List installed plugins
128
+
129
+ ```bash
130
+ babysitter plugin:list-installed --global|--project [--json]
131
+ ```
132
+
133
+ Returns all installed plugins sorted alphabetically. In `--json` mode, returns an array of registry entries. In human mode, displays a formatted table with name, version, marketplace, and timestamps.
134
+
135
+ ### Remove from registry
136
+
137
+ ```bash
138
+ babysitter plugin:remove-from-registry --plugin-name <name> --global|--project [--json]
139
+ ```
140
+
141
+ Removes a plugin entry from the registry. Returns error if the plugin is not present.
142
+
143
+ ## Plugin Creation
144
+
145
+ To create a new plugin package from scratch, use the `meta/plugin-creation` babysitter process. This process guides you through requirements analysis, structure design, instruction authoring, optional process file generation, validation, and marketplace integration.
146
+
147
+ ### Using the plugin creation process
148
+
149
+ Orchestrate a babysitter run with the plugin creation process:
150
+
151
+ ```bash
152
+ # Create inputs file
153
+ cat > /tmp/plugin-inputs.json << 'EOF'
154
+ {
155
+ "pluginName": "my-plugin",
156
+ "description": "What the plugin does — be specific about install/configure/uninstall behavior",
157
+ "scope": "project",
158
+ "outputDir": "./plugins",
159
+ "components": {
160
+ "installProcess": false,
161
+ "configureProcess": false,
162
+ "uninstallProcess": false,
163
+ "migrations": false,
164
+ "processFiles": false
165
+ },
166
+ "marketplace": {
167
+ "name": "my-marketplace",
168
+ "author": "my-org",
169
+ "tags": ["category1", "category2"]
170
+ }
171
+ }
172
+ EOF
173
+
174
+ # Create and run
175
175
  babysitter run:create \
176
176
  --process-id meta/plugin-creation \
177
177
  --entry library/specializations/meta/plugin-creation.js#process \
178
178
  --inputs /tmp/plugin-inputs.json \
179
179
  --prompt "Create a new babysitter plugin package" \
180
180
  --json
181
- ```
182
-
183
- ### What the process generates
184
-
185
- The process creates a complete plugin package directory:
186
-
187
- | File | Description |
188
- |------|-------------|
189
- | `install.md` | Agent-readable installation instructions with numbered steps |
190
- | `uninstall.md` | Reversal instructions for clean removal |
191
- | `configure.md` | Configuration options table and adjustment instructions |
192
- | `install-process.js` | *(optional)* Automated babysitter process for complex install steps |
193
- | `configure-process.js` | *(optional)* Automated configuration process |
194
- | `process/main.js` | *(optional)* Main process the plugin contributes |
195
- | `marketplace-entry.json` | Ready-to-use marketplace.json entry for publishing |
196
-
197
- ### Process phases
198
-
199
- 1. **Requirements Analysis** — Analyzes plugin purpose, prerequisites, config options, file structure
200
- 2. **Structure Design** — Plans directory layout and file inventory (with review breakpoint)
201
- 3. **Instruction Authoring** — Writes install.md, uninstall.md, configure.md
202
- 4. **Process Files** — Creates optional babysitter process files (install-process.js, configure-process.js, process/main.js)
203
- 5. **Validation** — Verifies package completeness, instruction quality, path correctness
204
- 6. **Marketplace Integration** — Generates marketplace.json entry for publishing
205
-
206
- ### Quick creation (without orchestration)
207
-
208
- For simple plugins that only need instruction files, you can create the package manually following the structure below and the [Plugin Author Guide](docs/plugins/plugin-author-guide.md).
209
-
210
- ## Plugin Package Structure
211
-
212
- ```
213
- my-plugin/
214
- package.json # Optional (name field used as plugin ID, falls back to directory name)
215
- install.md # Markdown instructions for installation
216
- uninstall.md # Markdown instructions for removal
217
- configure.md # Markdown instructions for configuration
218
- install-process.js # Optional automated install process
219
- uninstall-process.js # Optional automated uninstall process
220
- configure-process.js # Optional automated configure process
221
- migrations/ # Version migration files
222
- 1.0.0_to_1.1.0.md
223
- 1.1.0_to_2.0.0.js
224
- process/ # Process definition files (collected recursively)
225
- main.js
226
- ```
227
-
228
- ## All CLI Commands Summary
229
-
230
- All commands accept `--json` for machine-readable output and `--global|--project`.
231
-
232
- | Command | Required Flags | Description |
233
- |---------|---------------|-------------|
234
- | `plugin:add-marketplace` | `--marketplace-url`, `--global\|--project` [`--marketplace-path`, `--marketplace-branch`, `--force`] | Clone a marketplace repository |
235
- | `plugin:update-marketplace` | `--marketplace-name`, `--global\|--project` [`--marketplace-branch`] | Pull latest marketplace changes (optionally switch branch) |
236
- | `plugin:list-plugins` | `--marketplace-name`, `--global\|--project` | List available plugins in a marketplace |
237
- | `plugin:install` | `--plugin-name`, `--marketplace-name`, `--global\|--project` | Get install instructions for a plugin |
238
- | `plugin:uninstall` | `--plugin-name`, `--marketplace-name`, `--global\|--project` | Get uninstall instructions for a plugin |
239
- | `plugin:update` | `--plugin-name`, `--marketplace-name`, `--global\|--project` | Resolve migration chain and get update instructions |
240
- | `plugin:configure` | `--plugin-name`, `--marketplace-name`, `--global\|--project` | Get configuration instructions for a plugin |
241
- | `plugin:list-installed` | `--global\|--project` | List all installed plugins |
242
- | `plugin:update-registry` | `--plugin-name`, `--plugin-version`, `--marketplace-name`, `--global\|--project` | Register or update a plugin entry |
243
- | `plugin:remove-from-registry` | `--plugin-name`, `--global\|--project` | Remove a plugin entry from the registry |
244
-
245
- ## After Plugin Work: Contribute Back
246
-
247
- After working with plugins, prompt the user to share improvements or report issues:
248
-
249
- - **Improved a plugin's install/configure/uninstall instructions**: `/babysitter:contrib library contribution: improved [plugin-name] [install|configure|uninstall] instructions`
250
- - **Created a new plugin**: `/babysitter:contrib library contribution: new plugin [plugin-name] -- [description]`
251
- - **Found a bug in a plugin or the plugin system**: `/babysitter:contrib bug report: [description, e.g. "plugin:update-registry fails when marketplace hasn't been cloned"]`
252
- - **Plugin install/configure instructions were confusing or wrong**: `/babysitter:contrib bug report: [plugin-name] install instructions [description of what was wrong]`
253
- - **Have an idea for a new plugin**: `/babysitter:contrib feature request: plugin idea -- [description]`
254
-
255
- Even reporting that a plugin's instructions were unclear helps improve it for the next user.
181
+ ```
182
+
183
+ ### What the process generates
184
+
185
+ The process creates a complete plugin package directory:
186
+
187
+ | File | Description |
188
+ |------|-------------|
189
+ | `install.md` | Agent-readable installation instructions with numbered steps |
190
+ | `uninstall.md` | Reversal instructions for clean removal |
191
+ | `configure.md` | Configuration options table and adjustment instructions |
192
+ | `install-process.js` | *(optional)* Automated babysitter process for complex install steps |
193
+ | `configure-process.js` | *(optional)* Automated configuration process |
194
+ | `process/main.js` | *(optional)* Main process the plugin contributes |
195
+ | `marketplace-entry.json` | Ready-to-use marketplace.json entry for publishing |
196
+
197
+ ### Process phases
198
+
199
+ 1. **Requirements Analysis** — Analyzes plugin purpose, prerequisites, config options, file structure
200
+ 2. **Structure Design** — Plans directory layout and file inventory (with review breakpoint)
201
+ 3. **Instruction Authoring** — Writes install.md, uninstall.md, configure.md
202
+ 4. **Process Files** — Creates optional babysitter process files (install-process.js, configure-process.js, process/main.js)
203
+ 5. **Validation** — Verifies package completeness, instruction quality, path correctness
204
+ 6. **Marketplace Integration** — Generates marketplace.json entry for publishing
205
+
206
+ ### Quick creation (without orchestration)
207
+
208
+ For simple plugins that only need instruction files, you can create the package manually following the structure below and the [Plugin Author Guide](docs/plugins/plugin-author-guide.md).
209
+
210
+ ## Plugin Package Structure
211
+
212
+ ```
213
+ my-plugin/
214
+ package.json # Optional (name field used as plugin ID, falls back to directory name)
215
+ install.md # Markdown instructions for installation
216
+ uninstall.md # Markdown instructions for removal
217
+ configure.md # Markdown instructions for configuration
218
+ install-process.js # Optional automated install process
219
+ uninstall-process.js # Optional automated uninstall process
220
+ configure-process.js # Optional automated configure process
221
+ migrations/ # Version migration files
222
+ 1.0.0_to_1.1.0.md
223
+ 1.1.0_to_2.0.0.js
224
+ process/ # Process definition files (collected recursively)
225
+ main.js
226
+ ```
227
+
228
+ ## All CLI Commands Summary
229
+
230
+ All commands accept `--json` for machine-readable output and `--global|--project`.
231
+
232
+ | Command | Required Flags | Description |
233
+ |---------|---------------|-------------|
234
+ | `plugin:add-marketplace` | `--marketplace-url`, `--global\|--project` [`--marketplace-path`, `--marketplace-branch`, `--force`] | Clone a marketplace repository |
235
+ | `plugin:update-marketplace` | `--marketplace-name`, `--global\|--project` [`--marketplace-branch`] | Pull latest marketplace changes (optionally switch branch) |
236
+ | `plugin:list-plugins` | `--marketplace-name`, `--global\|--project` | List available plugins in a marketplace |
237
+ | `plugin:install` | `--plugin-name`, `--marketplace-name`, `--global\|--project` | Get install instructions for a plugin |
238
+ | `plugin:uninstall` | `--plugin-name`, `--marketplace-name`, `--global\|--project` | Get uninstall instructions for a plugin |
239
+ | `plugin:update` | `--plugin-name`, `--marketplace-name`, `--global\|--project` | Resolve migration chain and get update instructions |
240
+ | `plugin:configure` | `--plugin-name`, `--marketplace-name`, `--global\|--project` | Get configuration instructions for a plugin |
241
+ | `plugin:list-installed` | `--global\|--project` | List all installed plugins |
242
+ | `plugin:update-registry` | `--plugin-name`, `--plugin-version`, `--marketplace-name`, `--global\|--project` | Register or update a plugin entry |
243
+ | `plugin:remove-from-registry` | `--plugin-name`, `--global\|--project` | Remove a plugin entry from the registry |
244
+
245
+ ## After Plugin Work: Contribute Back
246
+
247
+ After working with plugins, prompt the user to share improvements or report issues:
248
+
249
+ - **Improved a plugin's install/configure/uninstall instructions**: `/babysitter:contrib library contribution: improved [plugin-name] [install|configure|uninstall] instructions`
250
+ - **Created a new plugin**: `/babysitter:contrib library contribution: new plugin [plugin-name] -- [description]`
251
+ - **Found a bug in a plugin or the plugin system**: `/babysitter:contrib bug report: [description, e.g. "plugin:update-registry fails when marketplace hasn't been cloned"]`
252
+ - **Plugin install/configure instructions were confusing or wrong**: `/babysitter:contrib bug report: [plugin-name] install instructions [description of what was wrong]`
253
+ - **Have an idea for a new plugin**: `/babysitter:contrib feature request: plugin idea -- [description]`
254
+
255
+ Even reporting that a plugin's instructions were unclear helps improve it for the next user.
@@ -1,11 +1,11 @@
1
- ---
2
- description: Set up a project for babysitting. Guides you through onboarding a new or existing project — researches the codebase, interviews you about goals and workflows, builds the project profile, installs the best tools, and optionally configures CI/CD integration.
3
- argument-hint: Specific instructions for the run.
4
- allowed-tools: Read, Grep, Write, Task, Bash, Edit, Grep, Glob, WebFetch, WebSearch, Search, AskUserQuestion, TodoWrite, TodoRead, Skill, BashOutput, KillShell, MultiEdit, LS
5
- ---
6
-
7
- Invoke the babysitter:babysit skill (using the Skill tool) and follow its instructions (SKILL.md).
8
-
1
+ ---
2
+ description: Set up a project for babysitting. Guides you through onboarding a new or existing project — researches the codebase, interviews you about goals and workflows, builds the project profile, installs the best tools, and optionally configures CI/CD integration.
3
+ argument-hint: Specific instructions for the run.
4
+ allowed-tools: Read, Grep, Write, Task, Bash, Edit, Grep, Glob, WebFetch, WebSearch, Search, AskUserQuestion, TodoWrite, TodoRead, Skill, BashOutput, KillShell, MultiEdit, LS
5
+ ---
6
+
7
+ Invoke the babysitter:babysit skill (using the Skill tool) and follow its instructions (SKILL.md).
8
+
9
9
  Before using the process library, resolve the active library root through the SDK CLI. If no binding exists yet, initialize the shared global SDK binding with:
10
10
 
11
11
  ```bash
@@ -13,5 +13,5 @@ babysitter process-library:active --json
13
13
  ```
14
14
 
15
15
  Then use the `cradle/project-install` process from the active process library.
16
-
17
- When the run completes, end with a friendly message that includes a polite and humorous ask to star the repo on GitHub: https://github.com/a5c-ai/babysitter
16
+
17
+ When the run completes, end with a friendly message that includes a polite and humorous ask to star the repo on GitHub: https://github.com/a5c-ai/babysitter
@@ -1,8 +1,8 @@
1
- ---
2
- description: Resume orchestrating of a babysitter run. use this command to resume babysitting a complex workflow.
3
- argument-hint: Specific run to resume
4
- allowed-tools: Read, Grep, Write, Task, Bash, Edit, Grep, Glob, WebFetch, WebSearch, Search, AskUserQuestion, TodoWrite, TodoRead, Skill, BashOutput, KillShell, MultiEdit, LS
5
- ---
6
-
7
- Invoke the babysitter:babysit skill (using the Skill tool) and follow its instructions (SKILL.md). to resume a run.
8
- if no run was given, discover the runs and suggest which incomplete run to resume based on the run's status, inputs, process , etc.
1
+ ---
2
+ description: Resume orchestrating of a babysitter run. use this command to resume babysitting a complex workflow.
3
+ argument-hint: Specific run to resume
4
+ allowed-tools: Read, Grep, Write, Task, Bash, Edit, Grep, Glob, WebFetch, WebSearch, Search, AskUserQuestion, TodoWrite, TodoRead, Skill, BashOutput, KillShell, MultiEdit, LS
5
+ ---
6
+
7
+ Invoke the babysitter:babysit skill (using the Skill tool) and follow its instructions (SKILL.md). to resume a run.
8
+ if no run was given, discover the runs and suggest which incomplete run to resume based on the run's status, inputs, process , etc.