Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

schema-creator

БесплатноЗапускает вложенные скриптыНе проверен

Creates JSON Schema validation files for skills, agents, hooks, workflows, and data structures. Ensures type safety and input validation across the framework.

oimiragieoот oimiragieo★ 48 звёзд на GitHub

Об этом скилле

Schema Creator Skill

WARNING: DO NOT WRITE DIRECTLY TO .claude/schemas/

Schema files are protected by unified-creator-guard.cjs (Gate 4 in CLAUDE.md). Direct writes bypass post-creation steps (catalog updates, consumer assignment, integration verification). Always use the schema-creator skill workflow for creating schemas. Direct writes create "invisible artifacts" that no validator or agent can discover.

Creates JSON Schema validation files for the Claude Code Enterprise Framework. Schemas enforce type safety, input validation, and structural consistency across skills, agents, hooks, workflows, and custom data structures.

SYSTEM IMPACT ANALYSIS (CRITICAL - DO NOT SKIP)

After creating ANY schema, you MUST:

  1. Register in appropriate location (global vs skill-local)
  2. Update related validators to use the new schema
  3. Add schema reference to CLAUDE.md if globally significant

Verification:

# Verify schema is valid JSON
node -e "JSON.parse(require('fs').readFileSync('.claude/schemas/<schema-name>.json'))"

# Check schema exists
ls .claude/schemas/<schema-name>.json || ls .claude/skills/<skill>/schemas/<schema-name>.json

WHY: Invalid schemas cause silent validation failures. Unregistered schemas are never used.


Purpose

Schemas provide structured validation for:

  1. Skill Inputs/Outputs - Validate data passed to and from skills
  2. Agent Definitions - Validate agent YAML frontmatter and structure
  3. Hook Definitions - Validate hook configuration and registration
  4. Workflow Definitions - Validate workflow steps and configuration
  5. Custom Data Structures - Validate project-specific data formats

Schema Types

Type Location Purpose
Skill Input .claude/skills/{name}/schemas/input.schema.json Validate skill invocation inputs
Skill Output .claude/skills/{name}/schemas/output.schema.json Validate skill execution outputs
Agent Definition .claude/schemas/agent-definition.schema.json Validate agent YAML frontmatter
Skill Definition .claude/schemas/skill-definition.schema.json Validate skill YAML frontmatter
Hook Definition .claude/schemas/hook-definition.schema.json Validate hook configuration
Workflow Definition .claude/schemas/workflow-definition.schema.json Validate workflow structure
Custom .claude/schemas/{name}.schema.json Project-specific validation

Reference Schema

Use .claude/schemas/agent-definition.schema.json as the canonical reference schema.

Before finalizing any schema, compare against reference:

  • Follows JSON Schema draft-07 or later (draft-2020-12 preferred)
  • Has $schema, $id, title, description, type fields
  • Required fields are documented in "required" array
  • All properties have description fields
  • Includes examples where helpful
  • Uses proper patterns (kebab-case names, semver versions)

CLAUDE.md Registration (MANDATORY)

After creating a schema, update CLAUDE.md if the schema enables new capabilities:

  1. New artifact type schema - Add to relevant section (Section 3 for agents, Section 8.5 for skills)
  2. Agent/skill/workflow validation schema - Document in Section 4 (Self-Evolution)
  3. Framework-wide schema - Add to Existing Schemas Reference table in this skill

Verification:

grep "schema-name" .claude/CLAUDE.md || echo "WARNING: Schema not registered in CLAUDE.md"

BLOCKING: Schema without documentation may not be discovered by other agents.

Workflow

Step 0: Research Synthesis (MANDATORY - ALWAYS FIRST)

BEFORE creating ANY schema, invoke research-synthesis:

Skill({ skill: 'research-synthesis' });

Research Requirements:

  • Minimum 3 Exa searches for JSON Schema best practices
  • Review existing schemas in .claude/schemas/ for patterns
  • Check schema catalog at .claude/context/artifacts/catalogs/schema-catalog.md
  • Identify similar schemas that can be used as references
  • Document research findings before proceeding

Why: Research-synthesis ensures schemas follow industry best practices and maintain consistency with existing framework schemas.


Step 1: Existence Check and Updater Delegation (MANDATORY - SECOND STEP)

BEFORE creating any schema file, check if it already exists:

  1. Check if schema already exists:

    test -f .claude/schemas/<schema-name>.json && echo "EXISTS" || echo "NEW"
    
  2. If schema EXISTS:

    • DO NOT proceed with creation

    • Invoke artifact-updater workflow instead:

      Skill({
        skill: 'artifact-updater',
        args: {
          name: '<schema
      
Полный SKILL.md на GitHub

Установить schema-creator в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Write
Edit
Bash
Glob
Grep

Вложенные файлы

commands/schema-creator.mdhooks/post-execute.cjshooks/pre-execute.cjsreferences/research-requirements.mdrules/schema-creator.mdschemas/input.schema.jsonschemas/output.schema.jsonscripts/main.cjsscripts/schema-templates.cjstemplates/implementation-template.md

FAQ

Что делает скилл schema-creator?

Creates JSON Schema validation files for skills, agents, hooks, workflows, and data structures. Ensures type safety and input validation across the framework.

Как установить скилл schema-creator?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл schema-creator запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить schema-creator с