Prisma to Swagger 3.0 Schema Conversion
Converts Prisma schema model definitions into Swagger 3.0 (OpenAPI) compatible JSON schemas.
npx skills add ECNU-ICALK/AutoSkill --skill prisma-to-swagger-3-0-schema-conversion --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 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 fi
- Prompt
- Triggers
What does the Prisma to Swagger 3.0 Schema Conversion skill do?
Converts Prisma schema model definitions into Swagger 3.0 (OpenAPI) compatible JSON schemas.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill prisma-to-swagger-3-0-schema-conversion --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
