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★ 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 theschema-creatorskill 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:
- Register in appropriate location (global vs skill-local)
- Update related validators to use the new schema
- 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:
- Skill Inputs/Outputs - Validate data passed to and from skills
- Agent Definitions - Validate agent YAML frontmatter and structure
- Hook Definitions - Validate hook configuration and registration
- Workflow Definitions - Validate workflow steps and configuration
- 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:
- New artifact type schema - Add to relevant section (Section 3 for agents, Section 8.5 for skills)
- Agent/skill/workflow validation schema - Document in Section 4 (Self-Evolution)
- 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:
Check if schema already exists:
test -f .claude/schemas/<schema-name>.json && echo "EXISTS" || echo "NEW"If schema EXISTS:
DO NOT proceed with creation
Invoke artifact-updater workflow instead:
Skill({ skill: 'artifact-updater', args: { name: '<schema
Установить schema-creator в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadWriteEditBashGlobGrepВложенные файлы
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 запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic