type-get-json-schema

Generate a JSON Schema from a C# type name using reflection.

1|Updated Jan 26, 2026
One-click install
npx skills add https://github.com/lightvu25/Echoes --skill type-get-json-schema-lightvu25
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: type-get-json-schema
Source: https://github.com/lightvu25/Echoes/tree/main/SKILLS/type-get-json-schema
Command: npx skills add https://github.com/lightvu25/Echoes --skill type-get-json-schema-lightvu25

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generates a JSON Schema for a given C# type name using reflection to support primitives, enums, arrays, generic collections, dictionaries, and complex objects; the type must be present in any loaded assembly.

Core Features & Use Cases

  • Supports primitives, enums, arrays, dictionaries, and complex object graphs.
  • Generates JSON Schema with optional definitions for nested types via $defs when includeNestedTypes is true.
  • Use Case: Generate a schema for a runtime type such as UnityEngine.Vector3 to validate JSON payloads or API contracts.

Quick Start

Post a request to the type-get-json-schema tool with a full type name (e.g., System.String) to obtain its schema.

Frequently Asked Questions about type-get-json-schema

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a JSON Schema from a C# type at runtime?

You can generate a JSON Schema from a C# type via reflection by supplying its full type name. The tool supports primitives, enums, arrays, generic collections, dictionaries, and complex objects to validate data contracts.

Does C# reflection JSON Schema generation support nested types and complex object graphs?

Yes, C# reflection JSON Schema generation supports complex object graphs. Setting the includeNestedTypes option to true outputs nested type definitions within the schema using the $defs keyword.

How do I get a JSON Schema for runtime types like UnityEngine.Vector3 to validate API payloads?

To get a JSON Schema for runtime types like UnityEngine.Vector3, post a request to the generation tool with the full type name. The type must be present in a loaded assembly to validate API payloads.

Can I control formatting and descriptions when generating JSON Schema from C# types?

Yes, you can control formatting and descriptions when generating JSON Schema from C# types. The tool provides options to manage descriptions, nested definitions, and output formatting for the generated schema.

What are the limitations of generating JSON Schema using C# reflection?

A key limitation of generating JSON Schema using C# reflection is that the target type must be present in a loaded assembly. The tool requires a full type name to accurately reflect the runtime structure.