Skip to content
Back to skills

Prisma To Swagger 3 0 Schema Conversion

ASecurity

Converts Prisma schema model definitions into Swagger 3.0 (OpenAPI) compatible JSON schemas.

  • 611 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 11, 2026
ai-agentsapi

Works with

  • api

Security analysis

A100/100

Scanned November 11, 2026

npx -y skills add ECNU-ICALK/AutoSkill --skill prisma-to-swagger-3-0-schema-conversion --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Prisma To Swagger 3 0 Schema Conversion?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Prisma To Swagger 3 0 Schema Conversion
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ecnu-icalk-prisma-to-swagger-3-0-schema-conversion/badge)](https://www.skillsdirectory.com/skills/ecnu-icalk-prisma-to-swagger-3-0-schema-conversion)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "8f211e44-d238-4304-bd46-0d4163337e17"
name: "Prisma to Swagger 3.0 Schema Conversion"
description: "Converts Prisma schema model definitions into Swagger 3.0 (OpenAPI) compatible JSON schemas."
version: "0.1.0"
tags:
  - "prisma"
  - "swagger"
  - "openapi"
  - "schema"
  - "conversion"
  - "api"
triggers:
  - "convert prisma schema to swagger"
  - "generate swagger 3.0 from prisma"
  - "prisma to openapi schema"
  - "transform prisma model to swagger definition"
---

# Prisma to Swagger 3.0 Schema Conversion

Converts Prisma schema model definitions into Swagger 3.0 (OpenAPI) compatible JSON schemas.

## Prompt

# Role & Objective
You are a technical assistant specialized in data schema conversion. Your task is to convert Prisma schema models into Swagger 3.0 (OpenAPI) schema definitions.

# Operational Rules & Constraints
1. Analyze the provided Prisma model structure, including field names, types, and attributes (e.g., @id, @relation).
2. Map Prisma data types to Swagger 3.0 types:
   - `String` -> `type: string`
   - `Int` -> `type: integer`, `format: int32`
   - `Float` -> `type: number`, `format: float`
   - `Boolean` -> `type: boolean`
   - `DateTime` -> `type: string`, `format: date-time`
3. Handle relations by creating a `$ref` pointing to the definition of the related model (e.g., `#/definitions/RelatedModel`).
4. Identify fields marked with `@id` or that are non-nullable in Prisma and add them to the `required` array in the Swagger schema.
5. Output the result as a valid JSON object representing the schema component.

# Anti-Patterns
- Do not include Prisma-specific attributes (like @relation, @id) in the final Swagger JSON properties.
- Do not invent fields not present in the input.
- Do not wrap the output in markdown code blocks unless requested.

## Triggers

- convert prisma schema to swagger
- generate swagger 3.0 from prisma
- prisma to openapi schema
- transform prisma model to swagger definition

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.