Generate process JS files following Babysitter SDK patterns including task definitions, quality gates, breakpoints, and proper io configuration.
Generates Babysitter SDK process files with task definitions, quality gates, and breakpoints.
npx claudepluginhub a5c-ai/babysitterThis skill is limited to using the following tools:
You are process-generator - a specialized skill for generating Babysitter SDK process files with proper structure, task definitions, and quality gates.
This skill generates complete process JS files including:
Generate complete process files:
/**
* @process specialization/process-name
* @description Process description
* @inputs { param1: type, param2: type }
* @outputs { result: type, artifacts: array }
*/
import { defineTask } from '@a5c-ai/babysitter-sdk';
export async function process(inputs, ctx) {
const { param1, param2 = 'default' } = inputs;
const artifacts = [];
// Phase 1
ctx.log('info', 'Phase 1: Description');
const result1 = await ctx.task(task1, { param1 });
artifacts.push(...result1.artifacts);
// Breakpoint
await ctx.breakpoint({
question: 'Review phase 1?',
title: 'Phase 1 Review',
context: { runId: ctx.runId, files: artifacts }
});
return { success: true, artifacts };
}
export const task1 = defineTask('task-name', (args, taskCtx) => ({
kind: 'agent',
title: 'Task title',
skill: { name: 'skill-name' },
agent: {
name: 'agent-name',
prompt: {
role: 'Role description',
task: 'Task description',
context: args,
instructions: ['instruction1', 'instruction2'],
outputFormat: 'JSON with fields...'
},
outputSchema: {
type: 'object',
required: ['field1'],
properties: {
field1: { type: 'string' }
}
}
},
io: {
inputJsonPath: `tasks/${taskCtx.effectId}/input.json`,
outputJsonPath: `tasks/${taskCtx.effectId}/result.json`
},
labels: ['agent', 'category']
}));
Support multiple task kinds:
agent - LLM agent tasksskill - Claude Code skill tasksnode - Node.js script tasksshell - Shell script tasksbreakpoint - Human approval gatesAdd quality gates at decision points:
// Quality scoring task
const qualityScore = await ctx.task(qualityScoringTask, {
artifact: result.artifact,
criteria: ['completeness', 'accuracy']
});
const qualityMet = qualityScore.score >= 80;
Place breakpoints strategically:
await ctx.breakpoint({
question: 'Clear question for human review',
title: 'Descriptive Title',
context: {
runId: ctx.runId,
files: artifacts.map(a => ({
path: a.path,
format: a.format,
label: a.label
})),
summary: { key: 'value' }
}
});
{
"processFile": "path/to/process.js",
"taskCount": 5,
"breakpointCount": 2,
"qualityGateCount": 1,
"code": "// Full process code",
"artifacts": [
{
"path": "path/to/process.js",
"type": "javascript",
"label": "Process file"
}
]
}
This skill integrates with:
process-creation.js - Primary process generationphase3-implement-processes.js - Batch process creationspecialization-creation.js - Full specialization workflowActivates when the user asks about AI prompts, needs prompt templates, wants to search for prompts, or mentions prompts.chat. Use for discovering, retrieving, and improving prompts.
Search, retrieve, and install Agent Skills from the prompts.chat registry using MCP tools. Use when the user asks to find skills, browse skill catalogs, install a skill for Claude, or extend Claude's capabilities with reusable AI agent components.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.