Schema Converter

Schema Converter

Converts a schema between Avro, JSON Schema, OpenAPI and GraphQL while keeping constraints, and reports warnings and lossiness.

Skill files1 file
SKILL.md31 lines
1
---
2
name: sc schema converter v1
3
use_case: SC-v1 — converts schema across dialects while preserving constraints.
4
author: abilzerian
5
version: 0.3.0
6
---
7
{% set source_schema = params.source_schema %}
8
{% set source_type = params.source_type %} {# "avro"| "json-schema" | "openapi" #}
9
{% set target_type = params.target_type | default("graphql") %}
10
11
SYSTEM:
12
SC-v1 — converts schema across dialects while preserving constraints.
13
14
### TASK
15
Map fields, enums, required vs non-null, numeric bounds.
16
17
### OUTPUT
18
```graphql
19
type Product {
20
id: ID!
21
name: String!
22
price: Float
23
}
24
```
25
26
```json5
27
{
28
"conversion_warnings":["pattern not expressible in GraphQL"],
29
"lossiness":"Low|Med|High"
30
}
31
```

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

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 12,099 prompts

More by @OpenSourceBuffGuy

See all
Recsys Pipeline Architect prompt image

Recsys Pipeline Architect

Guides an AI agent in designing recommendation, ranking and feed pipelines with a six-stage source, hydrate, filter, score, select and side-effect framework.

agent-skill, system-design, software-architecture, machine-learning, rag, llm, for-developers, backend, design-patterns, best-practices, scaffolding, table, code-generation, technical-spec, advanced, long-form, task-decomposition, prioritization, data-engineering, distributed-systems

Warm Fisheye Product Impact Ad Style prompt image

Warm Fisheye Product Impact Ad Style

Defines a JSON style spec for loud product ads shot with an ultra-wide lens through a tunnel of snack-like objects, with huge angled white Chinese display type and warm amber tones.

image-prompt, json-prompt, placeholders, structured-output, style-reference, poster, advertising, product-photography, fisheye, close-up, text-rendering, vibrant-colors, food-photography, social-media-graphic, china, packaging-design, dramatic-lighting, for-marketers, for-designers, long-form, advanced

FlowStudio Power Apps Canvas Ship prompt image

FlowStudio Power Apps Canvas Ship

Teaches an agent to preview, push and publish Power Apps canvas app changes through FlowStudio MCP and recover from refused pushes, damaged drafts and Studio conflicts.

agent-skill, power-apps, mcp, deployment, troubleshooting, playbook, checklist, power-automate, for-developers, advanced, long-form, tool-use, human-in-the-loop, guardrails, step-by-step-guide, microsoft-365, no-code, workflow-automation, flowstudio

Reviews

Loading reviews…

Discussion

Loading comments…