Config schema validator
Skill a5c-ai/babysitter/library/specializations/cli-mcp-development/skills/config-schema-validator
Babysitter enforces obedience on agentic workforces and enables them to manage extremely complex tasks and workflows through deterministic, hallucination-free self-orchestration
npx -y skills add a5c-ai/babysitter --skill config-schema-validatorAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
What its author says it does
Copied from the file, not written here
Generate Zod/JSON Schema configuration validators with defaults and error messages.
SKILL.md
1.5 KB, as published. Nobody here has run it
Config Schema Validator
Generate configuration schema validators.
Generated Patterns
import { z } from 'zod';
export const configSchema = z.object({
server: z.object({
host: z.string().default('localhost'),
port: z.number().int().min(1).max(65535).default(3000),
cors: z.object({
origins: z.array(z.string().url()).default(['*']),
credentials: z.boolean().default(false),
}).default({}),
}).default({}),
logging: z.object({
level: z.enum(['debug', 'info', 'warn', 'error']).default('info'),
format: z.enum(['json', 'pretty']).default('pretty'),
}).default({}),
}).strict();
export type Config = z.infer<typeof configSchema>;
export function validateConfig(input: unknown): Config {
return configSchema.parse(input);
}
export function getConfigWithDefaults(partial: Partial<Config> = {}): Config {
return configSchema.parse(partial);
}
Target Processes
- configuration-management-system
- mcp-tool-implementation
- cli-application-bootstrap