be-development

Create FastAPI routers, Pydantic models, and service layers for Supabase-backed backends.

Updated Apr 6, 2026
One-click install
npx skills add https://github.com/xmun74/chordlens --skill be-development
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: be-development
Source: https://github.com/xmun74/chordlens/tree/main/.claude/skills/be-development
Command: npx skills add https://github.com/xmun74/chordlens --skill be-development

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides a clear, reusable backend development blueprint for chordlens-be using FastAPI, including routers, Pydantic models, service layers, and consistent environment patterns to accelerate server-side implementation.

Core Features & Use Cases

  • Router templates for standard endpoints with separation of concerns between routing and business logic.
  • Pydantic models & validation patterns for request/response schemas and data integrity.
  • Service layer guidance to encapsulate business rules and enable testability, with a focus on Supabase-backed data access.
  • Environment handling guidance that discourages direct os.environ usage in business logic and promotes a centralized config module.

Quick Start

Create a new endpoint by scaffolding a router, Pydantic models, and a service that uses the config pattern to access Supabase.

Frequently Asked Questions about be-development

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

FAQPage Schema
How do I structure a FastAPI backend with a service layer and routers?

To structure a FastAPI backend, separate routing logic from business rules by using router templates for endpoints and a dedicated service layer to encapsulate data access and business logic.

What is the best way to handle environment configuration in a FastAPI and Supabase project?

The best way to handle environment configuration is to use a centralized config module rather than direct os.environ access in business logic, ensuring secure and consistent environment patterns across the Supabase-backed data layer.

How do I validate request and response data using Pydantic models in FastAPI?

Validate request and response data in FastAPI by defining Pydantic models that enforce schema patterns and data integrity, passing these models directly into your router endpoints for automatic validation.

Can I use this backend scaffolding for new routes beyond the initial ChordLens endpoints?

Yes, you can use this scaffolding for new routes because it provides reusable blueprints and project-wide architecture conventions that can be applied to scaffold additional endpoints consistently.

Why should I separate business logic from routing logic in a FastAPI application?

Separating business logic from routing logic in a FastAPI application enables better testability and maintainability by encapsulating business rules and Supabase data access within a distinct service layer.

Does this FastAPI scaffolding require any specific database setup to function?

This FastAPI scaffolding is designed to work with a Supabase-backed data layer, requiring you to configure your Supabase connection through the centralized config module before implementing service layer data access.