stacks-api

Manage API routes, middleware, and OpenAPI generation in Stacks applications.

2|Updated Jul 8, 2026
One-click install
npx skills add https://github.com/bughq/bughq --skill stacks-api-bughq
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: stacks-api
Source: https://github.com/bughq/bughq/tree/main/.claude/skills/stacks-api
Command: npx skills add https://github.com/bughq/bughq --skill stacks-api-bughq

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines the development and maintenance of API endpoints within a Stacks application, reducing the complexity of routing, middleware management, and OpenAPI documentation.

Core Features & Use Cases

  • Unified Routing: Define and manage API routes with support for middleware, versioning, and automatic OpenAPI generation.
  • Fluent HTTP Client: Utilize the built-in fetcher for robust, type-safe API communication with built-in support for authentication and file uploads.
  • Resource Transformation: Easily transform database models into consistent JSON responses using Laravel-style JsonResource classes.
  • Use Case: Quickly scaffold a new authenticated API endpoint by defining a route, creating an Action class, and applying the Auth middleware to secure the request.

Quick Start

Use the stacks-api skill to generate a new API route and corresponding Action class for handling user profile updates.

Frequently Asked Questions about stacks-api

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

FAQPage Schema
How do I create API endpoints with middleware and automatic OpenAPI generation?

To create API endpoints, you define routes and corresponding Action classes within a Stacks application, applying middleware like Auth to secure requests while the system automatically generates OpenAPI specifications for standardized documentation.

How do I transform database models into consistent JSON responses in a backend application?

You transform database models into consistent JSON responses using Laravel-style JsonResource classes for resource serialization, ensuring structured and standardized API response formatting throughout your backend services.

What is the best way to handle type-safe API communication with authentication and file uploads?

The best way to handle type-safe API communication is using a built-in fluent HTTP client fetcher, which robustly manages API requests with integrated support for authentication and file uploads.

Does Stacks support API versioning and standardized Action resolution for backend routing?

Yes, Stacks supports API versioning and standardized Action resolution within its unified routing system, ensuring consistent API structure and robust error handling mechanisms for backend services.

How do I scaffold an authenticated API route for user profile updates?

You scaffold an authenticated API route by defining the route, creating an Action class to handle the user profile update logic, and applying the Auth middleware to secure the incoming request.