stacks-router

Manage HTTP routing, middleware, and request-response lifecycles in Stacks applications.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @stacksjs/router, ts-rate-limiter.

What problem does it solve?

This Skill simplifies the management of complex routing, middleware, and request handling in Stacks applications, reducing boilerplate code and ensuring consistent API behavior.

Core Features & Use Cases

  • Route Management: Define HTTP routes, groups, and middleware with a clean, chainable syntax.
  • Request Enhancement: Access Laravel-style input, query, file, and authentication helpers for robust request processing.
  • Response & Error Handling: Utilize built-in response helpers and standardized error responses to maintain API consistency.

Quick Start

Use the stacks-router skill to define a new authenticated route group for your API endpoints.

Frequently Asked Questions about stacks-router

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

FAQPage Schema
How do I define HTTP routes and middleware in a Stacks application?

Define HTTP routes and middleware in a Stacks application using a clean, chainable syntax to manage request-response lifecycles and API endpoint groups. This reduces boilerplate code and ensures consistent API behavior.

Can I use Laravel-style request helpers for input validation in TypeScript web development?

You can use Laravel-style request helpers for input validation in TypeScript web development. This facilitates accessing query, file, and authentication data to robustly process HTTP requests within your route registry.

Does the Stacks router require any specific dependencies for API endpoint management?

The Stacks router requires the @stacksjs/router package and ts-rate-limiter dependency for API endpoint management. You must integrate these packages and adhere to the application's route registry structure.

What is the best way to maintain consistent error responses across API endpoints?

The best way to maintain consistent error responses across API endpoints is to use built-in response helpers and standardized error handling mechanisms. This simplifies request handling and ensures API consistency.

How do I set up an authenticated route group for my API endpoints?

Set up an authenticated route group for API endpoints by defining a new group with chainable middleware syntax. This manages the request-response lifecycle and applies authentication rules across your Stacks application.