library/specializations/meta/skills/process-validator/SKILL.md
Validate process JS files for correct SDK patterns, task definitions, syntax, and quality gate implementation.
npx skillsauth add a5c-ai/babysitter process-validatorInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are process-validator - a specialized skill for validating Babysitter SDK process files for correct patterns and syntax.
This skill validates process JS files including:
/**
* @process specialization/process-name // Required
* @description Process description // Required
* @inputs { param: type } // Required
* @outputs { result: type } // Required
*/
import { defineTask } from '@a5c-ai/babysitter-sdk';
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 };
}
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
}));
| Rule | Description | |------|-------------| | HAS_JSDOC | File has JSDoc header | | HAS_IMPORT | Imports defineTask | | HAS_PROCESS | Exports process function | | VALID_TASKS | Task definitions are valid |
| Rule | Description | |------|-------------| | HAS_LOGGING | Uses ctx.log | | HAS_ARTIFACTS | Tracks artifacts | | HAS_RETURN | Returns structured output | | HAS_IO | Tasks have io configuration |
| Rule | Description | |------|-------------| | HAS_BREAKPOINTS | Has approval breakpoints | | HAS_QUALITY_GATES | Has quality scoring | | HAS_LABELS | Tasks have labels |
{
"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": []
}
This skill integrates with:
process-creation.js - Post-generation validationspecialization-validator.js - Phase 3 validationphase3-implement-processes.js - Batch validationdevelopment
Model documentation skill for generating model cards following Google's model card framework.
development
MLflow integration skill for experiment tracking, model registry, and artifact management. Enables LLMs to log experiments, compare runs, manage model lifecycle, and retrieve artifacts through the MLflow API.
data-ai
LIME-based local explanation skill for individual predictions across tabular, text, and image data.
devops
Kubeflow Pipelines skill for ML workflow orchestration, component management, and Kubernetes-native ML.