backend

Automate server-side API route creation and maintenance in Astro projects.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/cherinodiaz-lang/energievergleichnrw --skill backend-cherinodiaz-lang
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: backend
Source: https://github.com/cherinodiaz-lang/energievergleichnrw/tree/main/.emdash/skills/backend
Command: npx skills add https://github.com/cherinodiaz-lang/energievergleichnrw --skill backend-cherinodiaz-lang

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a structured pattern for building and maintaining server-side API routes and backend logic within Astro projects.

Core Features & Use Cases

  • Define API routes under src/pages/api with per-method HTTP handlers (GET, POST, PUT, DELETE, PATCH, ALL).
  • Leverage Astro SSR (output: "server") and file-path-based routing for clean, scalable backends.
  • Include dynamic and catch-all routes, JSON responses, and standard API conventions for backend workflows.

Quick Start

Create API routes under src/pages/api and implement GET/POST handlers to expose your backend logic.

Frequently Asked Questions about backend

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

FAQPage Schema
How do I create server-side API routes in an Astro project?▼

To create API routes in Astro, define files under src/pages/api and export per-method HTTP handlers like GET or POST to return standard Response objects. This leverages Astro SSR for clean, scalable backend endpoints.

Can I build dynamic API endpoints with Astro SSR?▼

Yes, Astro SSR supports dynamic and catch-all routes for API endpoints. By configuring output: "server", you can build dynamic backend routes that process requests and return standard JSON responses.

What HTTP methods can I handle in Astro backend endpoints?▼

Astro backend endpoints handle GET, POST, PUT, DELETE, PATCH, and ALL methods. You export a dedicated handler function for each required HTTP method inside your API route files under src/pages/api.

Does the backend Skill work for form submission handlers and REST-like APIs?▼

Yes, the backend Skill works for form submission handlers and REST-like APIs. It automates designing REST-like endpoints and server-side logic, returning standard Response objects within the Astro server SSR model.

Do I need to configure my Astro project for SSR to use server-side endpoints?▼

Yes, you need to configure your Astro project for SSR by setting output: "server". This enables the server SSR model required to run server-side logic and process dynamic API endpoint requests.

Why use file-path-based routing for backend APIs in Astro?▼

File-path-based routing in Astro maps URLs directly to files under src/pages/api, enforcing standard API conventions. This approach eliminates manual route configuration, streamlining scalable backend workflows and endpoint maintenance.