agentsclimarketplace

Config schema validator

Skill a5c-ai/babysitter/library/specializations/cli-mcp-development/skills/config-schema-validator

Generate Zod/JSON Schema configuration validators with defaults and error messages.From its SKILL.md

Install
npx -y skills add a5c-ai/babysitter --skill config-schema-validator

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

SKILL.md

1.5 KB, 240 tokens by cl100k_base, 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

What ships with it: 1 file

412 B alongside SKILL.md

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.