spec-json-schema — JSON Schema Draft 2020-12 validation spec-json-schema, idp-server, community, JSON Schema Draft 2020-12 validation, ide skills, spec-json-schema install, spec-json-schema documentation, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Ideal for AI Agents requiring robust JSON data validation and security, such as Cursor, Windsurf, and AutoGPT. spec-json-schema is a JSON Schema Validation layer that checks input data structure, type, and constraints, supporting JSON Schema Draft 2020-12.

Features

Supports JSON Schema Draft 2020-12 for robust validation
Enables user registration validation with custom schemas per tenant
Performs identity verification validation for secure data processing
Validates external API requests and responses for data integrity
Provides detailed error messages for field-specific error handling

# Core Topics

hirokazu-kobayashi-koba-hiro hirokazu-kobayashi-koba-hiro
[7]
[1]
Updated: 2/27/2026

Agent Capability Analysis

The spec-json-schema skill by hirokazu-kobayashi-koba-hiro is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance. Optimized for JSON Schema Draft 2020-12 validation, spec-json-schema install, spec-json-schema documentation.

Ideal Agent Persona

Ideal for AI Agents requiring robust JSON data validation and security, such as Cursor, Windsurf, and AutoGPT.

Core Value

Empowers agents to enforce JSON Schema Draft 2020-12 standards, ensuring data integrity and security through features like user registration validation, identity verification, and external API request/response validation, utilizing detailed error messages for efficient debugging.

Capabilities Granted for spec-json-schema

Validating user input data against custom JSON schemas
Verifying identity verification requests for security compliance
Debugging external API integrations using detailed error messages

! Prerequisites & Limits

  • Requires JSON Schema Draft 2020-12 compatibility
  • Limited to JSON data format
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

spec-json-schema

Install spec-json-schema, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

JSONスキーマ検証(JSON Schema Validation)開発ガイド

ドキュメント

  • documentation/docs/content_03_concepts/06-security-extensions/concept-03-schema-validation.md - JSONスキーマ検証概念

機能概要

JSONスキーマ検証は、入力データの構造・型・制約を検証する層。

  • JSON Schema Draft 2020-12準拠
  • ユーザー登録検証: テナント別カスタムスキーマ
  • Identity Verification検証: 本人確認申請データ検証
  • 外部API検証: リクエスト/レスポンス検証
  • 詳細エラーメッセージ: フィールド別エラー

モジュール構成

libs/
└── idp-server-platform/                     # プラットフォーム基盤
    └── .../platform/json/schema/
        ├── JsonSchemaDefinition.java       # スキーマ定義
        ├── JsonSchemaValidator.java        # スキーマ検証
        └── JsonSchemaValidationException.java

ユーザー登録でのスキーマ検証

idp-server-core/openid/identity/IdPUserCreator.java 内:

java
1public class IdPUserCreator { 2 3 JsonSchemaDefinition definition; 4 AuthenticationInteractionRequest request; 5 6 public User create() { 7 User user = User.initialized(); 8 9 // スキーマ定義に基づいてフィールドを設定 10 if (definition.hasProperty("name") && 11 request.containsKey("name")) { 12 user.setName(request.getValueAsString("name")); 13 } 14 15 if (definition.hasProperty("email") && 16 request.containsKey("email")) { 17 user.setEmail(request.getValueAsString("email")); 18 } 19 20 // その他のフィールドも同様に処理 21 // ... 22 23 return user; 24 } 25}

注意: JsonSchemaDefinitionが、許可されたフィールドを定義します。

スキーマ定義例

ユーザー登録スキーマ

json
1{ 2 "$schema": "https://json-schema.org/draft/2020-12/schema", 3 "type": "object", 4 "properties": { 5 "email": { 6 "type": "string", 7 "format": "email" 8 }, 9 "name": { 10 "type": "string", 11 "minLength": 1, 12 "maxLength": 100 13 }, 14 "birthdate": { 15 "type": "string", 16 "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$" 17 } 18 }, 19 "required": ["email", "name"] 20}

Identity Verification申請スキーマ

json
1{ 2 "$schema": "https://json-schema.org/draft/2020-12/schema", 3 "type": "object", 4 "properties": { 5 "document_type": { 6 "type": "string", 7 "enum": ["passport", "drivers_license", "national_id"] 8 }, 9 "document_number": { 10 "type": "string", 11 "minLength": 5 12 } 13 }, 14 "required": ["document_type", "document_number"] 15}

スキーマ検証エラー

java
1public class JsonSchemaValidationException { 2 // フィールド別の詳細エラーメッセージ 3 // - 必須フィールド不足 4 // - 型不一致 5 // - フォーマット違反 6 // - 制約違反(minLength, maxLength, pattern等) 7}

E2Eテスト

e2e/src/tests/
└── integration/ida/
    └── (Identity Verificationスキーマ検証テスト)

コマンド

bash
1# ビルド 2./gradlew :libs:idp-server-platform:compileJava 3 4# テスト 5cd e2e && npm test -- integration/ida/

トラブルシューティング

スキーマ検証失敗

  • スキーマ定義が正しいか確認(JSON Schema Draft 2020-12形式)
  • 必須フィールドが含まれているか確認

型エラー

  • フィールドの型がスキーマと一致するか確認
  • string, number, boolean, object, arrayを正しく使用

フォーマット検証失敗

  • email, uri, date-time等のフォーマットが正しいか確認
  • カスタムpattern(正規表現)が正しいか確認

カスタムスキーマが反映されない

  • テナント別スキーマ設定が正しいか確認
  • JsonSchemaDefinitionが正しくロードされているか確認

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is spec-json-schema?

Ideal for AI Agents requiring robust JSON data validation and security, such as Cursor, Windsurf, and AutoGPT. spec-json-schema is a JSON Schema Validation layer that checks input data structure, type, and constraints, supporting JSON Schema Draft 2020-12.

How do I install spec-json-schema?

Run the command: npx killer-skills add hirokazu-kobayashi-koba-hiro/idp-server. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for spec-json-schema?

Key use cases include: Validating user input data against custom JSON schemas, Verifying identity verification requests for security compliance, Debugging external API integrations using detailed error messages.

Which IDEs are compatible with spec-json-schema?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for spec-json-schema?

Requires JSON Schema Draft 2020-12 compatibility. Limited to JSON data format.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add hirokazu-kobayashi-koba-hiro/idp-server. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use spec-json-schema immediately in the current project.

Related Skills

Looking for an alternative to spec-json-schema or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI