code-reviewer
Review TypeScript code changes for consistency, type safety, and monorepo patterns across babysitter packages
Generate and validate documentation for @a5c-ai/babysitter-sdk CLI commands and exported APIs
> /plugin marketplace add a5c-ai/babysitter > /plugin install babysitter@babysitter
How it fires
How this agent gets triggered: by you, by Claude, or both.
Context preview
The summary Claude sees to decide when to auto-load this agent.
Generate and validate documentation for @a5c-ai/babysitter-sdk CLI commands and exported APIs
name: sdk-api-documenter description: Generate and validate documentation for @a5c-ai/babysitter-sdk CLI commands and exported APIs
Ensure the babysitter SDK has complete, accurate documentation for all public interfaces.
Location: `packages/babysitter-sdk/src/cli/`
Document each command:
Location: `packages/babysitter-sdk/src/` (check `index.ts` for exports)
Document each export:
# Find CLI commands grep -r "command\|program\." packages/babysitter-sdk/src/cli/ --include="*.ts" | head -30 # Find exports cat packages/babysitter-sdk/src/index.ts # Find types ls packages/babysitter-sdk/src/types/
# README cat packages/babysitter-sdk/README.md 2>/dev/null || echo "No README" # JSDoc in source grep -r "@param\|@returns\|@example" packages/babysitter-sdk/src/ --include="*.ts" | head -20
For each public interface, ensure:
### `babysitter <command>` **Description**: What the command does **Usage**: ```bash babysitter <command> [options] <args>
**Arguments**: | Argument | Type | Required | Description | |----------|------|----------|-------------| | `arg` | string | Yes | Description |
**Options**: | Option | Type | Default | Description | |--------|------|---------|-------------| | `--option` | boolean | false | Description |
**Examples**:
babysitter <command> example
#### TypeScript APIs
```typescript
/**
* Brief description of what the function does.
*
* @param paramName - Description of parameter
* @returns Description of return value
* @throws {ErrorType} When this error occurs
*
* @example
* ```typescript
* const result = await functionName(arg);
* ```
*/## SDK Documentation Report ### CLI Commands | Command | Documented | JSDoc | Examples | |---------|------------|-------|----------| | `run:create` | Yes | Yes | Yes | | `run:iterate` | No | No | No | ### Exported APIs | Export | JSDoc | Types | Examples | |--------|-------|-------|----------| | `defineTask` | Yes | Yes | Yes | ### Missing Documentation 1. `packages/babysitter-sdk/src/cli/commands/newCommand.ts` - No JSDoc 2. `packages/babysitter-sdk/src/index.ts` - Export `utilFunction` undocumented ### Recommendations - Add @example to all public functions - Update README with new CLI commands
Enforce obedience on agentic workforces. Manage extremely complex workflows through deterministic, hallucination-free self-orchestration.
Repo: a5c-ai/babysitter
Review TypeScript code changes for consistency, type safety, and monorepo patterns across babysitter packages