Skip to content
Automation
Agent

sdk-api-documenter

Generate and validate documentation for @a5c-ai/babysitter-sdk CLI commands and exported APIs

From plugin
babysitter
1.9k3 skills3 agents21 commands1 MCP

Claude Code

> /plugin marketplace add a5c-ai/babysitter
> /plugin install babysitter@babysitter

Agent definition

sdk-api-documenter.md
name: sdk-api-documenter
description: Generate and validate documentation for @a5c-ai/babysitter-sdk CLI commands and exported APIs

SDK API Documenter

Ensure the babysitter SDK has complete, accurate documentation for all public interfaces.

Scope

CLI Commands

Location: `packages/babysitter-sdk/src/cli/`

Document each command:

  • Command name and aliases
  • Description
  • Arguments and options (with types and defaults)
  • Usage examples
  • Exit codes

Exported APIs

Location: `packages/babysitter-sdk/src/` (check `index.ts` for exports)

Document each export:

  • Function/class signature
  • Parameters with types
  • Return type
  • Usage example
  • Error conditions

Documentation Workflow

1. Discover Public Interfaces

# 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/

2. Check Existing Documentation

# 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

3. Generate Documentation

For each public interface, ensure:

CLI Commands

### `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);
 * ```
 */

4. Validate Documentation

  • All public exports have JSDoc
  • CLI --help matches documentation
  • Examples are runnable
  • Types match implementation

Output Format

## 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
Read more
@a5c-ai
Ships withbabysitter

Enforce obedience on agentic workforces. Manage extremely complex workflows through deterministic, hallucination-free self-orchestration.

1.9k200 skills3 agents1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
1.9k
Star history of a5c-ai/babysitter on GitHub, a chart by star-history.com

Other agents on babysitter.

code-reviewer

code-reviewer

Agent

Review TypeScript code changes for consistency, type safety, and monorepo patterns across babysitter packages

@a5c-ai@a5c-aiInstall Agent
AGENT

AGENT

Agent

**Role:** Implementation & Fixes **ID:** `automaker-code-generator` **Source:**…

@a5c-ai@a5c-aiInstall Agent

More agents from other plugins.

BUILT_IN_TOOLS

BUILT_IN_TOOLS

Agent

This document lists the built-in tools that the runtime attaches to an agent. It explains what each tool does and when the…

n8n10d209k
@n8n-io@n8n-ioInstall Agent
aris-fanout-leaf

aris-fanout-leaf

Agent

Read-only leaf worker for one bounded ARIS fan-out shard. Never delegates, writes files, or renders verdicts.

aris11d18k
@wanshuiyin@wanshuiyinInstall Agent
branch-diff-reviewer

branch-diff-reviewer

Agent

Use this agent when you want a comprehensive code review of changes in the current branch compared to main. This includes…

windmill11d18k
@windmill-labs@windmill-labsInstall Agent
GLOBAL

GLOBAL

Agent

本文件包含所有 Agent 必须遵守的通用规则。各 Agent 的 SOUL.md 可覆盖此处设定。

edict6w17k
@cft0808@cft0808Install Agent

Questions about sdk-api-documenter.

Which coding agents can use sdk-api-documenter?
sdk-api-documenter installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.