process-validator
Validate process JS files for correct SDK patterns, task definitions, syntax, and quality gate implementation.
Best use case
process-validator is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Validate process JS files for correct SDK patterns, task definitions, syntax, and quality gate implementation.
Teams using process-validator should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/process-validator/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How process-validator Compares
| Feature / Agent | process-validator | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Validate process JS files for correct SDK patterns, task definitions, syntax, and quality gate implementation.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
SKILL.md Source
# process-validator
You are **process-validator** - a specialized skill for validating Babysitter SDK process files for correct patterns and syntax.
## Overview
This skill validates process JS files including:
- JSDoc metadata completeness
- Import statement correctness
- Process function structure
- Task definition validity
- Quality gate implementation
## Validation Checklist
### 1. JSDoc Metadata
```javascript
/**
* @process specialization/process-name // Required
* @description Process description // Required
* @inputs { param: type } // Required
* @outputs { result: type } // Required
*/
```
### 2. Import Statement
```javascript
import { defineTask } from '@a5c-ai/babysitter-sdk';
```
### 3. Process Function
```javascript
export async function process(inputs, ctx) {
// Destructure inputs
const { param1, param2 = 'default' } = inputs;
// Initialize artifacts
const artifacts = [];
// Use ctx.log for logging
ctx.log('info', 'Starting process');
// Use ctx.task for task execution
const result = await ctx.task(taskName, args);
// Use ctx.breakpoint for approvals
await ctx.breakpoint({ question, title, context });
// Return structured output
return { success: true, artifacts };
}
```
### 4. Task Definition
```javascript
export const taskName = defineTask('task-name', (args, taskCtx) => ({
kind: 'agent', // Required: agent|skill|node|shell|breakpoint
title: 'Task title', // Required: descriptive title
skill: { name: 'skill-name' }, // Optional: skill reference
agent: { // Required for kind: 'agent'
name: 'agent-name', // Required: agent reference
prompt: { // Required: prompt configuration
role: 'Role',
task: 'Task description',
context: args,
instructions: [],
outputFormat: 'format'
},
outputSchema: { // Required: JSON schema
type: 'object',
required: [],
properties: {}
}
},
io: { // Required: io paths
inputJsonPath: `tasks/${taskCtx.effectId}/input.json`,
outputJsonPath: `tasks/${taskCtx.effectId}/result.json`
},
labels: [] // Optional: categorization
}));
```
## Validation Rules
### Critical (Must Pass)
| Rule | Description |
|------|-------------|
| HAS_JSDOC | File has JSDoc header |
| HAS_IMPORT | Imports defineTask |
| HAS_PROCESS | Exports process function |
| VALID_TASKS | Task definitions are valid |
### Important (Should Pass)
| Rule | Description |
|------|-------------|
| HAS_LOGGING | Uses ctx.log |
| HAS_ARTIFACTS | Tracks artifacts |
| HAS_RETURN | Returns structured output |
| HAS_IO | Tasks have io configuration |
### Recommended
| Rule | Description |
|------|-------------|
| HAS_BREAKPOINTS | Has approval breakpoints |
| HAS_QUALITY_GATES | Has quality scoring |
| HAS_LABELS | Tasks have labels |
## Output Format
```json
{
"valid": true,
"score": 95,
"results": {
"hasJsdoc": true,
"hasImport": true,
"hasProcessFunction": true,
"taskCount": 5,
"validTasks": 5,
"hasLogging": true,
"hasBreakpoints": true,
"hasQualityGates": true
},
"issues": [
{
"severity": "warning",
"rule": "HAS_LABELS",
"message": "Task 'task-3' missing labels"
}
],
"artifacts": []
}
```
## Process Integration
This skill integrates with:
- `process-creation.js` - Post-generation validation
- `specialization-validator.js` - Phase 3 validation
- `phase3-implement-processes.js` - Batch validation
## Best Practices
1. **Validate Early**: Check before committing
2. **Fix Critical First**: Address critical issues immediately
3. **Incremental Fixes**: Fix one category at a time
4. **Consistent Style**: Follow established patterns
5. **Document Deviations**: Explain any non-standard patterns
## Constraints
- Read-only validation
- Parse JavaScript safely
- Handle syntax errors gracefully
- Report all issues found
- Provide actionable feedbackRelated Skills
process-builder
Scaffold new babysitter process definitions following SDK patterns, proper structure, and best practices. Guides the 3-phase workflow from research to implementation.
design-system-validator
Validate design system compliance in code and detect token usage violations
link-validator
Comprehensive link checking and validation for documentation. Validate internal links, external URLs, anchors, detect redirects, monitor link rot, and generate sitemap validation reports.
code-sample-validator
Extract, validate, and test code samples in documentation. Verify syntax, execute samples, check outputs, validate imports, and ensure code samples are up-to-date with current APIs.
openapi-validator
Validate OpenAPI specifications for correctness, security, and best practices
markdown-processor
Specialized skill for processing Markdown and MDX documentation. Supports parsing, rendering, TOC generation, link validation, frontmatter processing, and diagram embedding.
k8s-validator
Validate Kubernetes manifests for security, best practices, and resource limits
Point Cloud Processing Skill
Specialized skill for 3D point cloud processing and analysis using PCL and Open3D
specialization-validator
Validate specialization completeness across all 7 phases, score each phase, identify gaps, and generate validation reports.
process-integrator
Integrate skills and agents into process files by updating task definitions with appropriate skill.name and agent.name references.
process-generator
Generate process JS files following Babysitter SDK patterns including task definitions, quality gates, breakpoints, and proper io configuration.
process-analyzer
Analyze processes, identify workflows, define boundaries and scope, and map process requirements for specialization creation.