process-builder
Skill1.8k starsChanged 5 months agoMITView on GitHub
Scaffold new babysitter process definitions following SDK patterns, proper structure, and best practices. Guides the 3-phase workflow from research to implementation.
Trending
Quiet since October.about the whole repository
Who's talking about a5c-ai/babysitter
- @iam.slys.dev“Babysitter makes a useful trade: deterministic self-orchestration only appears after someone writes the …”Bluesky · Sep 22, 2026 · 2 likes
- @iam.slys.dev“Babysitter makes a useful trade: deterministic self-orchestration only appears after someone writes the …”Bluesky · Sep 26, 2026 · 1 likes
- @github-trending.bsky.social“📦 a5c-ai / babysitter ⭐ 1,072 (+58) 🗒 JavaScript Babysitter enforces obedience on agentic workforces and …”Bluesky · May 31, 2026 · 1 likes
- sudosubin/agents.nix“codex-plugins.github.a5c-ai.babysitter: init at 6.0.3-21ded0e52f96”GitHub · Oct 4, 2026
- sudosubin/agents.nix“codex-marketplaces.github.a5c-ai.babysitter: init at 6.0.3-21ded0e52f96”GitHub · Oct 4, 2026
The biggest 5 of 15 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 15
Talked about on GitHub and Bluesky (15 times).
On GitHub · 12
- Oct 4, 2026codex-plugins.github.a5c-ai.babysitter: init at 6.0.3-21ded0e52f96 — sudosubin/agents.nix0 reactions
- Oct 4, 2026codex-marketplaces.github.a5c-ai.babysitter: init at 6.0.3-21ded0e52f96 — sudosubin/agents.nix0 reactions
- Oct 4, 2026claude-code-marketplaces.github.a5c-ai.babysitter: init at 6.0.3-21ded0e52f96 — sudosubin/agents.nix0 reactions
- Oct 3, 2026agent-skills.github.a5c-ai.babysitter: init at 6.0.3-21ded0e52f96 — sudosubin/agents.nix0 reactions
- Sep 5, 2026feat(agents): install babysitter for Claude Code, Codex and hermes — webdavis/dotfiles0 reactions
7 more on GitHub
- Aug 10, 2026Upstream skill updates require security review — openkartr/skills0 reactions
- Aug 5, 2026技能侦察 DIGEST 2026-08-05 04:03Z:+5 UE-AgentFramework Skills — NyphSan/CursorSkill0 reactions
- Jun 12, 2026Event-sourced run journal with integrity verification — xsovad06/sova0 reactions
- Apr 18, 2026Audit candidate: a5c-ai/babysitter — xiaolai/nlpm0 reactions · 4 comments
- Mar 9, 2026[Skill Submission] A5C Ai Babysitter Plugins Babysitter Skills Babysit Process Specializations Domains Science Aerospace Engineering Skills Avionics Integration — ProSkillsMD/proskills0 reactions · 4 comments
- Mar 6, 2026[discovery] terraformer: SKILL.md in a5c-ai/babysitter/plugins/babysitter/skills/babysit/process/specializations/code-migration-modernization/skills/iac-generator/SKILL.md — LederWorks/veiled-market0 reactions
- Mar 4, 2026feat(gemini-cli): add Gemini CLI extension and harness adapter — MaTriXy/babysitter0 reactions · 1 comment
On Bluesky · 3
- Sep 22, 2026Babysitter makes a useful trade: deterministic self-orchestration only appears after someone writes the process. The wrapper is cheap. The… — @iam.slys.dev2 likes and reposts
- Sep 26, 2026Babysitter makes a useful trade: deterministic self-orchestration only appears after someone writes the process. The wrapper is cheap. The… — @iam.slys.dev1 likes and repost
- May 31, 2026📦 a5c-ai / babysitter ⭐ 1,072 (+58) 🗒 JavaScript Babysitter enforces obedience on agentic workforces and enables them to manage extremely… — @github-trending.bsky.social1 likes and repost
In this repository7 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- assimilate-popular-workflowsSkill
- babysit-babysitter-issuesSkill
- catalog-babysitter-usersSkill
- fix-failing-pipelinesSkill
- retrospect-external-babysitter-runSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 2 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Create new process definitions for the babysitter event-sourced orchestration framework.
- Very specific: line 52
Create processes-backlog.md with identified processes:
- Very specific: line 70
Create .js process files following SDK patterns (see below).
- Distinctive: line 76
Every process file follows this pattern:
- Very specific: line 515
Create methodologies/[name]/README.md (comprehensive documentation)
- Very specific: line 516
Create methodologies/[name]/[name].js (process implementation)
- Very specific: line 517
Create methodologies/[name]/examples/ (sample inputs)
- Distinctive: line 522
Create README.md, references.md, processes-backlog.md first
- Very specific: line 593
Every generated process file MUST include a @graph JSDoc block in its file header comment alongside the standard @process, @description, …
- Very specific: line 615
Read the atlas graph domain directory (packages/atlas/graph/domain/) to find valid node IDs.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Process Builder
Create new process definitions for the babysitter event-sourced orchestration framework.
Quick Reference
Processes live in: library/
├── methodologies/ # Reusable development approaches (TDD, BDD, Scrum, etc.)
│ └── [name]/
│ ├── README.md # Documentation
│ ├── [name].js # Main process
│ └── examples/ # Sample inputs
│
└── specializations/ # Domain-specific processes
├── [category]/ # Engineering specializations (direct children)
│ └── [process].js
└── domains/
└── [domain]/ # Business, Science, Social Sciences
└── [spec]/
├── README.md
├── references.md
├── processes-backlog.md
└── [process].js3-Phase Workflow
Phase 1: Research & Documentation
Create foundational documentation:
# Check existing specializations
ls library/specializations/
# Check methodologies
ls library/methodologies/Create:
README.md- Overview, roles, goals, use cases, common flowsreferences.md- External references, best practices, links to sources
Phase 2: Identify Processes
Create processes-backlog.md with identified processes:
# Processes Backlog - [Specialization Name]
## Identified Processes
- [ ] **process-name** - Short description of what this process accomplishes
- Reference: [Link to methodology or standard]
- Inputs: list key inputs
- Outputs: list key outputs
- [ ] **another-process** - Description
...Phase 3: Create Process Files
Create .js process files following SDK patterns (see below).
Process File Structure
Every process file follows this pattern:
/**
* @process [category]/[process-name]
* @description Clear description of what the process accomplishes end-to-end
* @inputs { inputName: type, optionalInput?: type }
* @outputs { success: boolean, outputName: type, artifacts: array }
*
* @graph
* domains: [domain:software-engineering]
* skillAreas: [skill-area:your-skill-area]
* topics: [topic:your-topic]
* roles: [role:your-role]
* workflows: [workflow:your-workflow]
*
* @example
* const result = await orchestrate('[category]/[process-name]', {
* inputName: 'value',
* optionalInput: 'optional-value'
* });
*
* @references
* - Book: "Relevant Book Title" by Author
* - Article: [Title](https://link)
* - Standard: ISO/IEEE reference
*/
import { defineTask } from '@a5c-ai/babysitter-sdk';
/**
* [Process Name] Process
*
* Methodology: Brief description of the approach
*
* Phases:
* 1. Phase Name - What happens
* 2. Phase Name - What happens
* ...
*
* Benefits:
* - Benefit 1
* - Benefit 2
*
* @param {Object} inputs - Process inputs
* @param {string} inputs.inputName - Description of input
* @param {Object} ctx - Process context (see SDK)
* @returns {Promise<Object>} Process result
*/
export async function process(inputs, ctx) {
const {
inputName,
optionalInput = 'default-value',
// ... destructure with defaults
} = inputs;
const artifacts = [];
// ============================================================================
// PHASE 1: [PHASE NAME]
// ============================================================================
ctx.log?.('info', 'Starting Phase 1...');
const phase1Result = await ctx.task(someTask, {
// task inputs
});
artifacts.push(...(phase1Result.artifacts || []));
// Breakpoint for human review (when needed)
await ctx.breakpoint({
question: 'Review the results and approve to continue?',
title: 'Phase 1 Review',
context: {
runId: ctx.runId,
files: [
{ path: 'artifacts/output.md', format: 'markdown', label: 'Output' }
]
}
});
// ============================================================================
// PHASE 2: [PHASE NAME] - Parallel Execution Example
// ============================================================================
const [result1, result2, result3] = await ctx.parallel.all([
() => ctx.task(task1, { /* args */ }),
() => ctx.task(task2, { /* args */ }),
() => ctx.task(task3, { /* args */ })
]);
// ============================================================================
// PHASE 3: [ITERATION EXAMPLE]
// ============================================================================
let iteration = 0;
let targetMet = false;
while (!targetMet && iteration < maxIterations) {
iteration++;
const iterResult = await ctx.task(iterativeTask, {
iteration,
previousResults: /* ... */
});
targetMet = iterResult.meetsTarget;
if (!targetMet && iteration % 3 === 0) {
// Periodic checkpoint
await ctx.breakpoint({
question: `Iteration ${iteration}: Target not met. Continue?`,
title: 'Progress Checkpoint',
context: { /* ... */ }
});
}
}
// ============================================================================
// COMPLETION
// ============================================================================
return {
success: targetMet,
iterations: iteration,
artifacts,
// ... other outputs matching @outputs
};
}
// ============================================================================
// TASK DEFINITIONS
// ============================================================================
/**
* Task: [Task Name]
* Purpose: What this task accomplishes
*/
const someTask = defineTask({
name: 'task-name',
description: 'What this task does',
// Task definition - executed externally by orchestrator
// This returns a TaskDef that describes HOW to run the task
inputs: {
inputName: { type: 'string', required: true },
optionalInput: { type: 'number', default: 10 }
},
outputs: {
result: { type: 'object' },
artifacts: { type: 'array' }
},
async run(inputs, taskCtx) {
const effectId = taskCtx.effectId;
return {
kind: 'node', // or 'agent', 'skill', 'shell', 'breakpoint'
title: `Task: ${inputs.inputName}`,
node: {
entry: 'scripts/task-runner.js',
args: ['--input', inputs.inputName, '--effect-id', effectId]
},
io: {
inputJsonPath: `tasks/${effectId}/input.json`,
outputJsonPath: `tasks/${effectId}/result.json`
},
labels: ['category', 'subcategory']
};
}
});SDK Context API Reference
The ctx object provides these intrinsics:
| Method | Purpose | Behavior |
ctx.task(taskDef, args, opts?) | Execute a task | Returns result or throws typed exception |
ctx.breakpoint(payload) | Human approval gate | Pauses until approved via human |
ctx.sleepUntil(isoOrEpochMs) | Time-based gate | Pauses until specified time |
ctx.parallel.all([...thunks]) | Parallel execution | Runs independent tasks concurrently |
ctx.parallel.map(items, fn) | Parallel map | Maps items through task function |
ctx.now() | Deterministic time | Returns current Date (or provided time) |
ctx.log?.(level, msg, data?) | Logging | Optional logging helper |
ctx.runId | Run identifier | Current run's unique ID |
Task Kinds
| Kind | Use Case | Executor |
node | Scripts, builds, tests | Node.js process |
agent | LLM-powered analysis, generation | Claude Code agent |
skill | Claude Code skills | Skill invocation |
shell | System commands | Shell execution |
breakpoint | Human approval | Breakpoints UI/service |
sleep | Time gates | Orchestrator scheduling |
orchestrator_task | Internal orchestrator work | Self-routed |
Breakpoint Patterns
Basic Approval Gate
await ctx.breakpoint({
question: 'Approve to continue?',
title: 'Checkpoint',
context: { runId: ctx.runId }
});With File References (for UI display)
await ctx.breakpoint({
question: 'Review the generated specification. Does it meet requirements?',
title: 'Specification Review',
context: {
runId: ctx.runId,
files: [
{ path: 'artifacts/spec.md', format: 'markdown', label: 'Specification' },
{ path: 'artifacts/spec.json', format: 'json', label: 'JSON Schema' },
{ path: 'src/implementation.ts', format: 'code', language: 'typescript', label: 'Implementation' }
]
}
});Conditional Breakpoint
if (qualityScore < targetScore) {
await ctx.breakpoint({
question: `Quality score ${qualityScore} is below target ${targetScore}. Continue iterating or accept current result?`,
title: 'Quality Gate',
context: {
runId: ctx.runId,
data: { qualityScore, targetScore, iteration }
}
});
}Common Patterns
Quality Convergence Loop
let quality = 0;
let iteration = 0;
const targetQuality = inputs.targetQuality || 85;
const maxIterations = inputs.maxIterations || 10;
while (quality < targetQuality && iteration < maxIterations) {
iteration++;
ctx.log?.('info', `Iteration ${iteration}/${maxIterations}`);
// Execute improvement tasks
const improvement = await ctx.task(improveTask, { iteration });
// Score quality (parallel checks)
const [coverage, lint, security, tests] = await ctx.parallel.all([
() => ctx.task(coverageTask, {}),
() => ctx.task(lintTask, {}),
() => ctx.task(securityTask, {}),
() => ctx.task(runTestsTask, {})
]);
// Agent scores overall quality
const score = await ctx.task(agentScoringTask, {
coverage, lint, security, tests, iteration
});
quality = score.overall;
ctx.log?.('info', `Quality: ${quality}/${targetQuality}`);
if (quality >= targetQuality) {
ctx.log?.('info', 'Quality target achieved!');
break;
}
}
return {
success: quality >= targetQuality,
quality,
iterations: iteration
};Phased Workflow with Reviews
// Phase 1: Research
const research = await ctx.task(researchTask, { topic: inputs.topic });
await ctx.breakpoint({
question: 'Review research findings before proceeding to planning.',
title: 'Research Review',
context: { runId: ctx.runId }
});
// Phase 2: Planning
const plan = await ctx.task(planningTask, { research });
await ctx.breakpoint({
question: 'Review plan before implementation.',
title: 'Plan Review',
context: { runId: ctx.runId }
});
// Phase 3: Implementation
const implementation = await ctx.task(implementTask, { plan });
// Phase 4: Verification
const verification = await ctx.task(verifyTask, { implementation, plan });
await ctx.breakpoint({
question: 'Final review before completion.',
title: 'Final Approval',
context: { runId: ctx.runId }
});
return { success: verification.passed, plan, implementation };Parallel Fan-out with Aggregation
// Fan out to multiple parallel analyses
const analyses = await ctx.parallel.map(components, component =>
ctx.task(analyzeTask, { component }, { label: `analyze:${component.name}` })
);
// Aggregate results
const aggregated = await ctx.task(aggregateTask, { analyses });
return { analyses, summary: aggregated.summary };Testing Processes
CLI Commands
# Create a new run
babysitter run:create \
--process-id methodologies/my-process \
--entry ./library/methodologies/my-process.js#process \
--inputs ./test-inputs.json \
--json
# Iterate the run
babysitter run:iterate .a5c/runs/<runId> --json
# List pending tasks
babysitter task:list .a5c/runs/<runId> --pending --json
# Post a task result
babysitter task:post .a5c/runs/<runId> <effectId> \
--status ok \
--value ./result.json
# Check run status
babysitter run:status .a5c/runs/<runId>
# View events
babysitter run:events .a5c/runs/<runId> --limit 20 --reverseSample Test Input File
{
"feature": "User authentication with JWT",
"acceptanceCriteria": [
"Users can register with email and password",
"Users can login and receive a JWT token",
"Invalid credentials are rejected"
],
"testFramework": "jest",
"targetQuality": 85,
"maxIterations": 5
}Process Builder Workflow
1. Gather Requirements
Ask the user:
| Question | Purpose |
| Domain/Category | Determines directory location |
| Process Name | kebab-case identifier |
| Goal | What should the process accomplish? |
| Inputs | What data does the process need? |
| Outputs | What artifacts/results does it produce? |
| Phases | What are the major steps? |
| Quality Gates | Where should humans review? |
| Iteration Strategy | Fixed phases vs. convergence loop? |
2. Research Similar Processes
# Find similar processes
ls library/methodologies/
ls library/specializations/
# Read similar process for patterns
cat library/methodologies/atdd-tdd/atdd-tdd.js | head -200
# Check methodology README structure
cat library/methodologies/atdd-tdd/README.md3. Check Methodologies Backlog
cat library/methodologies/backlog.md4. Create the Process
For Methodologies:
- Create
methodologies/[name]/README.md(comprehensive documentation) - Create
methodologies/[name]/[name].js(process implementation) - Create
methodologies/[name]/examples/(sample inputs)
For Specializations:
- If domain-specific:
specializations/domains/[domain]/[spec]/ - If engineering:
specializations/[category]/[process].js - Create README.md, references.md, processes-backlog.md first
- Then create individual process.js files
5. Validate Structure
Checklist:
- JSDoc header with @process, @description, @inputs, @outputs, @example, @references
@graphblock with relevant atlas node IDs (at minimum one domain)- Import from
@a5c-ai/babysitter-sdk - Main
export async function process(inputs, ctx) - Input destructuring with defaults
- Clear phase comments (
// === PHASE N: NAME ===) - Logging via
ctx.log?.('info', message) - Tasks via
ctx.task(taskDef, inputs) - Breakpoints at key decision points
- Artifact collection throughout
- Return object matches @outputs schema
Examples by Type
Methodology Process (atdd-tdd style)
/**
* @process methodologies/my-methodology
* @description My development methodology with quality convergence
* @inputs { feature: string, targetQuality?: number }
* @outputs { success: boolean, quality: number, artifacts: array }
*/
export async function process(inputs, ctx) {
const { feature, targetQuality = 85 } = inputs;
// ... implementation
}Specialization Process (game-development style)
/**
* @process specializations/game-development/core-mechanics-prototyping
* @description Prototype and validate core gameplay mechanics through iteration
* @inputs { prototypeName: string, mechanicsToTest: array, engine?: string }
* @outputs { success: boolean, mechanicsValidated: array, playtestResults: object }
*/
export async function process(inputs, ctx) {
const { prototypeName, mechanicsToTest, engine = 'Unity' } = inputs;
// ... implementation
}Domain Process (science/research style)
/**
* @process specializations/domains/science/bioinformatics/sequence-analysis
* @description Analyze genomic sequences using standard bioinformatics workflows
* @inputs { sequences: array, analysisType: string, referenceGenome?: string }
* @outputs { success: boolean, alignments: array, variants: array, report: object }
*/
export async function process(inputs, ctx) {
const { sequences, analysisType, referenceGenome = 'GRCh38' } = inputs;
// ... implementation
}Atlas Graph Metadata
Every generated process file MUST include a @graph JSDoc block in its file header comment alongside the standard @process, @description, @inputs, and @outputs tags.
Format
/**
* @process specializations/my-domain/my-process
* @description ...
* @inputs { ... }
* @outputs { ... }
*
* @graph
* domains: [domain:software-engineering, domain:devops]
* skillAreas: [skill-area:caching-strategies]
* topics: [topic:microservices, topic:event-sourcing]
* roles: [role:backend-engineer, role:sre]
* workflows: [workflow:code-review]
*/How to choose node IDs
Read the atlas graph domain directory (packages/atlas/graph/domain/) to find valid node IDs. The directory contains YAML files grouped by category:
domains/— high-level domain nodes (e.g.domain:software-engineering,domain:devops,domain:data-engineering)skill-areas/— specific skill area nodestopics/— granular topic nodesroles/— role nodes (engineers, practitioners, researchers)workflows/— workflow nodes
Pick 2–4 edges that genuinely relate to the process. Do not guess IDs — read the actual YAML files to find valid ones. At minimum, every process must reference at least one domain: node.
Why this matters
This metadata connects the process to the atlas knowledge graph. A pre-build generator script parses the @graph block and creates graph nodes and edges for discoverability. Processes without this block will not appear in graph-based search results or recommendations.
Resources
- SDK Reference:
library/reference/sdk.md - Methodology Backlog:
library/methodologies/backlog.md - Specializations Backlog:
library/specializations/backlog.md - Example: ATDD/TDD:
library/methodologies/atdd-tdd/ - Example: Spec-Driven:
library/methodologies/spec-driven-development.js - README: Root
README.mdfor full framework documentation
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

