@a5c-ai/babysitter-github 0.1.1-staging.0825aadb
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/.github/plugin.json +25 -0
- package/AGENTS.md +41 -0
- package/README.md +545 -0
- package/bin/cli.js +104 -0
- package/bin/install-shared.js +450 -0
- package/bin/install.js +81 -0
- package/bin/uninstall.js +76 -0
- package/commands/assimilate.md +37 -0
- package/commands/call.md +7 -0
- package/commands/cleanup.md +20 -0
- package/commands/contrib.md +33 -0
- package/commands/doctor.md +426 -0
- package/commands/forever.md +7 -0
- package/commands/help.md +244 -0
- package/commands/observe.md +12 -0
- package/commands/plan.md +7 -0
- package/commands/plugins.md +255 -0
- package/commands/project-install.md +17 -0
- package/commands/resume.md +8 -0
- package/commands/retrospect.md +55 -0
- package/commands/user-install.md +17 -0
- package/commands/yolo.md +7 -0
- package/hooks/session-end.ps1 +68 -0
- package/hooks/session-end.sh +65 -0
- package/hooks/session-start.ps1 +110 -0
- package/hooks/session-start.sh +100 -0
- package/hooks/user-prompt-submitted.ps1 +51 -0
- package/hooks/user-prompt-submitted.sh +41 -0
- package/hooks.json +29 -0
- package/package.json +50 -0
- package/plugin.json +25 -0
- package/scripts/sync-command-surfaces.js +62 -0
- package/scripts/team-install.js +86 -0
- package/skills/assimilate/SKILL.md +38 -0
- package/skills/babysit/SKILL.md +77 -0
- package/skills/call/SKILL.md +8 -0
- package/skills/doctor/SKILL.md +427 -0
- package/skills/help/SKILL.md +245 -0
- package/skills/observe/SKILL.md +13 -0
- package/skills/plan/SKILL.md +8 -0
- package/skills/resume/SKILL.md +9 -0
- package/skills/retrospect/SKILL.md +56 -0
- package/skills/user-install/SKILL.md +18 -0
- package/versions.json +3 -0
package/commands/help.md
ADDED
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: help and documentation for babysitter command usage, processes, skills, agents, and methodologies. use this command to understand how to use babysitter effectively.
|
|
3
|
+
argument-hint: Specific command, process, skill, agent, or methodology you want help with (e.g. "help command doctor" or "help process retrospect").
|
|
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
|
+
## if no arguments provided:
|
|
8
|
+
|
|
9
|
+
show this message:
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
Welcome to the Babysitter Help Center! Here you can find documentation and guidance on how to use Babysitter effectively.
|
|
13
|
+
|
|
14
|
+
Documentation: Explore our comprehensive documentation to understand Babysitter's features, processes, skills, agents, and methodologies. Read the Docs: https://github.com/a5c-ai/babysitter
|
|
15
|
+
|
|
16
|
+
Or ask specific questions about commands, processes, skills, agents, methodologies, domains, specialities to get targeted help.
|
|
17
|
+
|
|
18
|
+
Just type /babysitter:help followed by your question or the topic you want to learn more about.
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
PRIMARY COMMANDS
|
|
22
|
+
================
|
|
23
|
+
|
|
24
|
+
/babysitter:call [input]
|
|
25
|
+
Start a babysitter-orchestrated run. Babysitter analyzes your request, interviews you
|
|
26
|
+
to gather requirements, selects or creates the best process definition (from 50+
|
|
27
|
+
domain-specific processes covering science, business, engineering, and more), then
|
|
28
|
+
executes it step by step with breakpoints where you can steer direction.
|
|
29
|
+
|
|
30
|
+
How it works: The babysitter skill reads your input, explores the process library to
|
|
31
|
+
find matching processes, interviews you to refine scope, creates an SDK run with
|
|
32
|
+
run:create, and orchestrates iterations with run:iterate -- dispatching tasks,
|
|
33
|
+
handling breakpoints, and posting results until the run completes or you pause it.
|
|
34
|
+
|
|
35
|
+
Example: /babysitter:call migrate our Express.js REST API to Fastify, keeping all
|
|
36
|
+
existing routes and middleware behavior identical, with integration tests proving
|
|
37
|
+
parity
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
/babysitter:resume [run id or name]
|
|
41
|
+
Resume a paused or interrupted babysitter run. If you don't specify a run, babysitter
|
|
42
|
+
discovers all runs under .a5c/runs/, shows their status (created, waiting, completed,
|
|
43
|
+
failed), and suggests which incomplete run to pick up based on its process, pending
|
|
44
|
+
effects, and last activity.
|
|
45
|
+
|
|
46
|
+
How it works: Reads run metadata and journal, rebuilds state cache if stale, identifies
|
|
47
|
+
pending effects (breakpoints awaiting approval, tasks needing results), and continues
|
|
48
|
+
orchestration from exactly where it left off -- no work is repeated thanks to the
|
|
49
|
+
replay engine.
|
|
50
|
+
|
|
51
|
+
Example: /babysitter:resume
|
|
52
|
+
(discovers runs and offers: "Run abc123 is waiting on a breakpoint in the 'review
|
|
53
|
+
test results' phase of your API migration -- resume this one?")
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
/babysitter:yolo [input]
|
|
57
|
+
Start a babysitter run in fully autonomous mode. Identical to /call but all breakpoints
|
|
58
|
+
are auto-approved and no user interaction is requested. The babysitter makes every
|
|
59
|
+
decision on its own until the run completes or hits a critical failure it can't recover
|
|
60
|
+
from. Best for well-understood tasks where you trust the process.
|
|
61
|
+
|
|
62
|
+
How it works: Same orchestration as /call, but the process context is configured to
|
|
63
|
+
skip breakpoint effects -- instead of pausing for human approval, each breakpoint
|
|
64
|
+
resolves immediately with an auto-approve result.
|
|
65
|
+
|
|
66
|
+
Example: /babysitter:yolo add comprehensive unit tests for all functions in
|
|
67
|
+
src/utils/ using vitest with >90% branch coverage
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
/babysitter:plan [input]
|
|
71
|
+
Generate a detailed execution plan without running anything. Babysitter goes through
|
|
72
|
+
the full interview and process selection flow, designs the process definition with
|
|
73
|
+
all tasks, breakpoints, and dependencies, but stops before creating the actual SDK run.
|
|
74
|
+
You get a complete plan you can review, modify, or execute later with /call.
|
|
75
|
+
|
|
76
|
+
How it works: Runs the babysitter skill's planning phase only -- analyzes input,
|
|
77
|
+
matches to domain processes, interviews for requirements, then outputs the process
|
|
78
|
+
definition file and a human-readable execution plan showing each phase, task, and
|
|
79
|
+
decision point.
|
|
80
|
+
|
|
81
|
+
Example: /babysitter:plan redesign our database schema to support multi-tenancy,
|
|
82
|
+
migrate existing data, and update all queries -- I want to review the plan before
|
|
83
|
+
we touch anything
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
/babysitter:forever [input]
|
|
87
|
+
Start a babysitter run that loops indefinitely with sleep intervals. Designed for
|
|
88
|
+
ongoing operational tasks: monitoring, periodic maintenance, continuous improvement,
|
|
89
|
+
or recurring workflows. The process uses an infinite loop with ctx.sleepUntil() to
|
|
90
|
+
pause between iterations.
|
|
91
|
+
|
|
92
|
+
How it works: Creates a process definition with a while(true) loop. Each cycle performs
|
|
93
|
+
the task (e.g., check metrics, process tickets, run audits), then calls ctx.sleepUntil()
|
|
94
|
+
to pause for a configured interval. The run stays in "waiting" state during sleep and
|
|
95
|
+
resumes automatically when the sleep expires on the next orchestration iteration.
|
|
96
|
+
|
|
97
|
+
Example: /babysitter:forever every 4 hours, check our GitHub issues labeled "bug",
|
|
98
|
+
attempt to reproduce and fix any that look straightforward, and submit PRs for the fixes
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
SECONDARY COMMANDS
|
|
102
|
+
==================
|
|
103
|
+
|
|
104
|
+
/babysitter:doctor [issue]
|
|
105
|
+
Run a comprehensive 10-point health check on a babysitter run. Inspects journal
|
|
106
|
+
integrity (checksum verification, sequence gaps, timestamp ordering), state cache
|
|
107
|
+
consistency, stuck/errored effects, stale locks, session state, log files, disk usage,
|
|
108
|
+
process validation, and hook execution health. Produces a structured diagnostic report
|
|
109
|
+
with PASS/WARN/FAIL status per check and specific fix commands.
|
|
110
|
+
|
|
111
|
+
If no run ID is provided, automatically targets the most recent run. Can also diagnose
|
|
112
|
+
environment-wide issues like missing CLI, unregistered hooks, or plugin problems.
|
|
113
|
+
|
|
114
|
+
Example: /babysitter:doctor
|
|
115
|
+
(checks the latest run: "CRITICAL -- Check 5 Lock Status: FAIL -- stale lock detected,
|
|
116
|
+
process 12847 is no longer running. Fix: rm .a5c/runs/abc123/run.lock")
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
/babysitter:assimilate [target]
|
|
120
|
+
Convert an external methodology, AI coding harness, or specification into native
|
|
121
|
+
babysitter process definitions. Takes a GitHub repo URL, harness name, or spec file
|
|
122
|
+
and produces a complete process package with skills/ and agents/ directories.
|
|
123
|
+
|
|
124
|
+
Two workflows available:
|
|
125
|
+
- Methodology assimilation: clones the repo, learns its procedures and commands,
|
|
126
|
+
converts manual flows into babysitter processes with refactored skills and agents
|
|
127
|
+
- Harness integration: wires babysitter's SDK into a specific AI coding tool
|
|
128
|
+
(codex, opencode, gemini-cli, antigravity, etc.) so it can orchestrate runs
|
|
129
|
+
|
|
130
|
+
Example: /babysitter:assimilate https://github.com/some-org/their-deployment-playbook
|
|
131
|
+
(clones the repo, analyzes their deployment procedures, and generates babysitter
|
|
132
|
+
processes that replicate the same workflow with proper task definitions and breakpoints)
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
/babysitter:user-install
|
|
136
|
+
First-time onboarding for new babysitter users. Installs dependencies, runs an
|
|
137
|
+
interactive interview about your development specialties, preferred tools, coding
|
|
138
|
+
style, and how much autonomy you want babysitter to have. Builds a user profile
|
|
139
|
+
stored at ~/.a5c/user-profile.json that personalizes future runs.
|
|
140
|
+
|
|
141
|
+
Uses the cradle/user-install process which covers: dependency verification, user
|
|
142
|
+
interview (expertise areas, preferred languages, IDE, terminal setup), profile
|
|
143
|
+
generation, tool configuration, and optional global plugin installation.
|
|
144
|
+
|
|
145
|
+
Example: /babysitter:user-install
|
|
146
|
+
(walks you through: "What's your primary programming language? What frameworks do
|
|
147
|
+
you use most? Do you prefer babysitter to auto-approve routine tasks or always ask?")
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
/babysitter:project-install
|
|
151
|
+
Onboard a new or existing project for babysitter orchestration. Researches the
|
|
152
|
+
codebase (reads package.json, scans directory structure, identifies frameworks and
|
|
153
|
+
patterns), interviews you about project goals and workflows, generates a project
|
|
154
|
+
profile at .a5c/project-profile.json, and optionally sets up CI/CD integration.
|
|
155
|
+
|
|
156
|
+
Uses the cradle/project-install process which covers: codebase analysis, project
|
|
157
|
+
interview, profile creation, recommended plugin installation, hook configuration,
|
|
158
|
+
and optional CI pipeline setup.
|
|
159
|
+
|
|
160
|
+
Example: /babysitter:project-install
|
|
161
|
+
(scans your repo: "I see this is a Next.js 16 app with Tailwind, using vitest for
|
|
162
|
+
tests and PostgreSQL. What are your main development goals for this project?")
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
/babysitter:retrospect [run id or name]
|
|
166
|
+
Analyze a completed run to extract lessons and improve future runs. Reviews what
|
|
167
|
+
happened (journal events, task results, timing, errors), evaluates the process that
|
|
168
|
+
was followed, and suggests concrete improvements to process definitions, skills,
|
|
169
|
+
and agents. Interactive -- multiple breakpoints let you steer the analysis and
|
|
170
|
+
decide which improvements to implement.
|
|
171
|
+
|
|
172
|
+
Covers: run result analysis, process effectiveness review, improvement suggestions,
|
|
173
|
+
implementation of changes, and routing to /contrib if improvements belong in the
|
|
174
|
+
shared process library.
|
|
175
|
+
|
|
176
|
+
Example: /babysitter:retrospect
|
|
177
|
+
(analyzes the last run: "The API migration run completed but the 'verify parity'
|
|
178
|
+
phase took 8 iterations because test assertions were too brittle. Suggestion: add
|
|
179
|
+
a fuzzy comparison step before strict assertion. Implement this fix?")
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
/babysitter:plugins [action]
|
|
183
|
+
Manage babysitter plugins: list installed plugins, browse marketplaces, install,
|
|
184
|
+
update, configure, uninstall, or create new plugins. Plugins are version-managed
|
|
185
|
+
instruction packages (not executable code) that guide the agent through install,
|
|
186
|
+
configure, and uninstall steps via markdown files.
|
|
187
|
+
|
|
188
|
+
Without arguments: shows installed plugins (name, version, marketplace, dates) and
|
|
189
|
+
available marketplaces. With arguments: routes to the specific action.
|
|
190
|
+
|
|
191
|
+
Key actions:
|
|
192
|
+
- install <name> --global|--project: fetch install.md from marketplace and execute
|
|
193
|
+
- configure <name> --global|--project: fetch configure.md and walk through options
|
|
194
|
+
- update <name> --global|--project: resolve migration chain via BFS and apply steps
|
|
195
|
+
- uninstall <name> --global|--project: fetch uninstall.md and execute removal
|
|
196
|
+
- create: scaffold a new plugin package with the meta/plugin-creation process
|
|
197
|
+
|
|
198
|
+
Example: /babysitter:plugins install sound-hooks --project
|
|
199
|
+
(fetches sound-hooks from marketplace, reads install.md, walks you through player
|
|
200
|
+
detection, sound selection, hook configuration, and registers in plugin-registry.json)
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
/babysitter:contrib [feedback]
|
|
204
|
+
Submit feedback or contribute to the babysitter project. Routes to the appropriate
|
|
205
|
+
workflow based on what you want to do:
|
|
206
|
+
|
|
207
|
+
Issue-based (opens GitHub issue in a5c-ai/babysitter):
|
|
208
|
+
- Bug report: describe a bug in the SDK, CLI, or process library
|
|
209
|
+
- Feature request: propose a new feature or enhancement
|
|
210
|
+
- Documentation question: flag undocumented behavior or missing docs
|
|
211
|
+
|
|
212
|
+
PR-based (forks repo, creates branch, submits PR):
|
|
213
|
+
- Bugfix: you already have a fix ready
|
|
214
|
+
- Feature implementation: you've built a new feature
|
|
215
|
+
- Library contribution: new or improved process/skill/agent for the library
|
|
216
|
+
- Harness integration: CI/CD or IDE integration
|
|
217
|
+
|
|
218
|
+
Without arguments: shows all contribution types and helps you pick the right one.
|
|
219
|
+
Breakpoints are placed before all GitHub actions (fork, star, PR, issue) so you
|
|
220
|
+
can review before anything is submitted.
|
|
221
|
+
|
|
222
|
+
Example: /babysitter:contrib bug report: plugin:update-registry fails when the
|
|
223
|
+
marketplace hasn't been cloned yet, even though the registry update doesn't need
|
|
224
|
+
marketplace access
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
/babysitter:observe
|
|
228
|
+
Launch the babysitter observer dashboard -- a real-time web UI that monitors active
|
|
229
|
+
and past runs. Displays task progress, journal events, orchestration state, and
|
|
230
|
+
effect status in your browser. Useful when running /yolo or /forever to watch
|
|
231
|
+
progress without interrupting the run.
|
|
232
|
+
|
|
233
|
+
How it works: Runs npx @yoavmayer/babysitter-observer-dashboard@latest which watches
|
|
234
|
+
the .a5c/runs/ directory (or a parent directory containing multiple projects) and
|
|
235
|
+
serves a live dashboard. The process is blocking -- it runs until you stop it.
|
|
236
|
+
|
|
237
|
+
Example: /babysitter:observe
|
|
238
|
+
(opens browser showing all runs with live-updating task
|
|
239
|
+
status, journal event stream, and effect resolution timeline)
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
## if arguments provided:
|
|
243
|
+
|
|
244
|
+
if the argument is "command [command name]", "process [process name]", "skill [skill name]", "agent [agent name]", or "methodology [methodology name]", then show the detailed documentation for that specific command, process, skill, agent, or methodology after reading the relevant files.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Launch the babysitter observer dashboard. Installs and runs the real-time observer UI that watches babysitter runs, displaying task progress, journal events, and orchestration state in your browser.
|
|
3
|
+
argument-hint: [--watch-dir <dir>]
|
|
4
|
+
allowed-tools: Read, Grep, Write, Task, Bash
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Run the babysitter observer dashboard:
|
|
8
|
+
|
|
9
|
+
1. Determine the watch directory — this is usually the project's container directory (the parent of the project dir), or the current working directory if not specified.
|
|
10
|
+
2. Launch the dashboard: `npx -y @a5c-ai/babysitter-observer-dashboard@latest --watch-dir <dir>`
|
|
11
|
+
3. This is a blocking process — it will keep running until stopped.
|
|
12
|
+
4. Open the browser at the URL printed by the dashboard.
|
package/commands/plan.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Plan a babysitter run. use this command to plan a complex workflow, without actually running it.
|
|
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). focus on creating the best process possible, but without creating and running the actual run.
|
|
@@ -0,0 +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
|
|
175
|
+
babysitter run:create \
|
|
176
|
+
--process-id meta/plugin-creation \
|
|
177
|
+
--entry library/specializations/meta/plugin-creation.js#process \
|
|
178
|
+
--inputs /tmp/plugin-inputs.json \
|
|
179
|
+
--prompt "Create a new babysitter plugin package" \
|
|
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.
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
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
|
+
|
|
11
|
+
```bash
|
|
12
|
+
babysitter process-library:active --json
|
|
13
|
+
```
|
|
14
|
+
|
|
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
|
|
@@ -0,0 +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.
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Analysis for a run and its results, process, suggestions for process improvements, process optimizations, fixes, etc. for the next runs.
|
|
3
|
+
argument-hint: "[run-id...] [--all] Specific run IDs, --all for all runs, or defaults to latest"
|
|
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
|
+
create and run a retrospect process:
|
|
10
|
+
|
|
11
|
+
### Run Selection
|
|
12
|
+
|
|
13
|
+
- `--all` or "all runs": list all completed/failed runs and analyze collectively
|
|
14
|
+
- Multiple run IDs: analyze each specified run
|
|
15
|
+
- Single run ID or no ID: existing behavior (latest run)
|
|
16
|
+
- In interactive mode with no run specified: ask user whether to analyze latest, select specific runs, or all runs
|
|
17
|
+
|
|
18
|
+
### Cross-Run Analysis (multi-run mode)
|
|
19
|
+
|
|
20
|
+
When analyzing multiple runs, the retrospect process should additionally cover:
|
|
21
|
+
- Common failure patterns across runs
|
|
22
|
+
- Velocity trends (tasks/time across runs)
|
|
23
|
+
- Process evolution (how processes changed)
|
|
24
|
+
- Repeated breakpoint patterns
|
|
25
|
+
- Aggregate quality metrics
|
|
26
|
+
|
|
27
|
+
implementations notes (for the process):
|
|
28
|
+
- The process should analyze the run, the process that was followed, and provide suggestions for improvements, optimizations, and fixes.
|
|
29
|
+
- The process should such have many breakpoints where the user can steer the process, provide feedback, and make decisions about how to proceed with the retrospect.
|
|
30
|
+
- The process should be designed to be flexible and adaptable to different types of runs, projects, and goals, and should be able to provide insights and suggestions that are relevant and actionable for the user. (modification to the process, skills, etc.)
|
|
31
|
+
- The process should be designed to be iterative, allowing the user to go through multiple rounds of analysis and improvement, and should be able to track the changes and improvements made over time.
|
|
32
|
+
- The process should cover:
|
|
33
|
+
- Analysis of the run and its results, including what went well, what didn't go well, and what could be improved.
|
|
34
|
+
- Analysis of the process that was followed, including what steps were taken, what tools were used, and how effective they were.
|
|
35
|
+
- Suggestions for improvements, optimizations, and fixes for both the run and the process.
|
|
36
|
+
- Implementing the improvements, optimizations, and fixes, and tracking the changes made over time.
|
|
37
|
+
### Cleanup Suggestion
|
|
38
|
+
|
|
39
|
+
After retrospect analysis, suggest running `/babysitter:cleanup` to clean up old run data and reclaim disk space.
|
|
40
|
+
|
|
41
|
+
- Ending by explicitly prompting the user to contribute back -- even just reporting an issue is valuable, they don't need to implement the fix themselves. After analysis, display a clear call-to-action:
|
|
42
|
+
|
|
43
|
+
"You've identified [specific insight/improvement]. This could help other babysitter users too. Run `/babysitter:contrib` to share it upstream -- you can either report it as an issue or submit a PR with the fix."
|
|
44
|
+
|
|
45
|
+
Route to the specific contrib workflow based on what the user wants to do:
|
|
46
|
+
|
|
47
|
+
**Just reporting (no code changes needed):**
|
|
48
|
+
- Found a bug or weakness in a process -> `/babysitter:contrib bug report: [description of what went wrong]`
|
|
49
|
+
- Found missing or confusing documentation -> `/babysitter:contrib documentation question: [what was unclear]`
|
|
50
|
+
- Have an idea for improvement but don't want to implement it -> `/babysitter:contrib feature request: [description]`
|
|
51
|
+
|
|
52
|
+
**Contributing code changes:**
|
|
53
|
+
- Process/skill/agent improvements -> `/babysitter:contrib library contribution: [description]`
|
|
54
|
+
- Bug fixes in SDK or CLI -> `/babysitter:contrib bugfix: [description]`
|
|
55
|
+
- Plugin instruction improvements -> `/babysitter:contrib library contribution: improved [plugin-name] [install|configure|uninstall] instructions`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Set up babysitter for yourself. Guides you through onboarding — installs dependencies, interviews you about your specialties and preferences, builds your user profile, and configures the best tools for your workflow.
|
|
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
|
+
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
|
+
|
|
11
|
+
```bash
|
|
12
|
+
babysitter process-library:active --json
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Then use the `cradle/user-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
|
package/commands/yolo.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Orchestrate a babysitter run. use this command to start babysitting a complex workflow in a non-interactive mode, without any user interaction or breakpoints in the run.
|
|
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). but without any user interaction or breakpoints in the run.
|