api-generator

Generate CRUD API endpoints with async patterns, Pydantic validation, and JWT authentication.

2|2|Updated Nov 4, 2025
One-click install
npx skills add https://github.com/gizix/cc_projects --skill api-generator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-generator
Source: https://github.com/gizix/cc_projects/tree/main/quart-template/.claude/skills/api-generator
Command: npx skills add https://github.com/gizix/cc_projects --skill api-generator

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires quart, quart-schema, quart-jwt-extended, sqlalchemy, pydantic.

What problem does it solve?

This Skill automates the creation of complete CRUD (Create, Read, Update, Delete) API endpoints for Quart applications, saving developers from writing repetitive boilerplate code for async patterns, Pydantic validation, and JWT authentication.

Core Features & Use Cases

  • Full CRUD Endpoint Generation: Creates all necessary GET, POST, PATCH, and DELETE routes for a given resource.
  • Integrated Validation & Authentication: Automatically includes Pydantic schemas for request/response validation and JWT authentication decorators.
  • Async & SQLAlchemy: Leverages Quart's asynchronous capabilities and SQLAlchemy for efficient database interactions.
  • Use Case: When adding a new "Order" resource to your e-commerce backend, use this skill to generate the API routes, Pydantic schemas, and SQLAlchemy model, ready for immediate integration.

Quick Start

Use the api-generator skill to create a complete CRUD API for a "Book" resource in my Quart application, including models and schemas.

Frequently Asked Questions about api-generator

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

FAQPage Schema
How do I generate complete CRUD API endpoints for a new resource in Quart?

CRUD API endpoint generation automates creation of GET, POST, PATCH, and DELETE routes with async patterns and validation. The api-generator Skill produces all four operations—list, retrieve, create, update, and delete—integrated with Pydantic schemas and SQLAlchemy models, ready to wire into your Quart application.

Can I use Pydantic validation and JWT authentication together in a Quart API?

Yes. The Skill combines Pydantic request/response validation with JWT authentication decorators automatically. Every generated endpoint includes both layers: validation ensures data shape correctness, and JWT checks enforce user ownership and authorization before database operations execute.

What's the fastest way to add async CRUD routes without writing boilerplate?

Use the api-generator Skill to generate async CRUD routes for your resource. It outputs complete endpoint handlers with SQLAlchemy ORM integration, async/await patterns, error handling, and pagination—eliminating repetitive route and schema code.

Does Quart support async database operations with SQLAlchemy for REST APIs?

Yes. The Skill leverages Quart's async capabilities paired with SQLAlchemy to handle async database queries efficiently. Generated endpoints use async patterns throughout, from request handling to database commits, maximizing throughput in I/O-bound REST operations.

How do I ensure REST endpoints include pagination and user ownership checks?

The api-generator Skill builds pagination and ownership validation into generated list and retrieve endpoints automatically. Each operation respects user scope through JWT claims, and list endpoints support limit/offset parameters for scalable result browsing.

What happens if I need to add a new resource to an existing Quart backend quickly?

Apply the api-generator Skill to your new resource. It generates the full endpoint suite, Pydantic schemas, and model integration in one step, letting you focus on business logic rather than async wiring, validation plumbing, and authentication decorators.