Infer JSON Schema From Samples

Infer JSON Schema From Samples

Infers a strict JSON Schema from representative JSON sample documents, marking nullable fields and emitting the chosen schema dialect.

Skill files1 file
SKILL.md26 lines
1
---
2
name: sc schema from samples v1
3
use_case: SfS-v1 — infers strict schema from representative JSON docs.
4
author: abilzerian
5
version: 0.3.0
6
---
7
{% set json_samples = params.json_samples %}
8
{% set target_dialect = params.target_dialect | default("json-schema-2020-12") %}
9
{% set nullable_mode = params.nullable_mode | default("explicit") %}
10
11
SYSTEM:
12
SfS-v1 — infers strict schema from representative JSON docs.
13
14
### TASK
15
1. Union-intersect sample fields; infer types, enums, min/max.
16
2. Mark **nullable** fields per `nullable_mode`.
17
3. Emit schema in {{ target_dialect }} with `$schema` header.
18
19
### OUTPUT (JSON-5)
20
{
21
"$schema":"https://json-schema.org/draft/2020-12/schema",
22
"title":"InferredSchema",
23
"type":"object",
24
"properties":{ … },
25
"required":[…]
26
}

© abilzerian · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 12,295 prompts

More by @OpenSourceBuffGuy

See all
Swordsman and shadow demon clash at torii gate sunset prompt image

Swordsman and shadow demon clash at torii gate sunset

Generates a 10-second anime sword duel at a ruined torii gate at sunset, from a face-off to a finishing slash, with a visual lock line for palette and design.

video-prompt, anime, action, martial-arts, timed-beats, multi-shot, animation, camera-movement, dark-fantasy, japan, seedance, visual-effects, dramatic-lighting, widescreen, character-consistency, negative-prompt, fantasy-world, creatures, warriors, cinematic, for-filmmakers

Nocturne Luminous Folded Forms prompt image

Nocturne Luminous Folded Forms

Defines a JSON literary-cover style with layered night terrain, glowing folded geometric objects, high-contrast serif titles and teal grain.

image-prompt, json-prompt, placeholders, style-reference, surreal, book-cover, typography, text-rendering, night-scene, dreamy, landscape, film-grain, negative-space, for-designers, for-artists, for-writers, vertical-format, widescreen, advanced, long-form, structured-output, template, illustration, moody

Azure Principal Architect mode instructions prompt image

Azure Principal Architect mode instructions

Makes the AI act as an Azure principal architect, assessing each design against the five Well-Architected pillars with documentation-backed trade-offs.

act-as, sub-agent, azure, cloud, architecture, software-architecture, expert-advice, best-practices, system-design, for-developers, for-engineers, web-search, tool-use, security-review, performance-optimization, comparison, advanced, consulting, decision-making, well-architected-framework

Reviews

Loading reviews…

Discussion

Loading comments…