backend-fastapi

Documentation for the FastAPI backend, endpoints, and dependency injection.

242 stars

Best use case

backend-fastapi is best used when you need a repeatable AI agent workflow instead of a one-off prompt. It is especially useful for teams working in multi. Documentation for the FastAPI backend, endpoints, and dependency injection.

Documentation for the FastAPI backend, endpoints, and dependency injection.

Users should expect a more consistent workflow output, faster repeated execution, and less time spent rewriting prompts from scratch.

Practical example

Example input

Use the "backend-fastapi" skill to help with this workflow task. Context: Documentation for the FastAPI backend, endpoints, and dependency injection.

Example output

A structured workflow result with clearer steps, more consistent formatting, and an output that is easier to reuse in the next run.

When to use this skill

  • Use this skill when you want a reusable workflow rather than writing the same prompt again and again.

When not to use this skill

  • Do not use this when you only need a one-off answer and do not need a reusable workflow.
  • Do not use it if you cannot install or maintain the related files, repository context, or supporting tools.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/backend-fastapi/SKILL.md --create-dirs "https://raw.githubusercontent.com/aiskillstore/marketplace/main/skills/abdulsamad94/backend-fastapi/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/backend-fastapi/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How backend-fastapi Compares

Feature / Agentbackend-fastapiStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Documentation for the FastAPI backend, endpoints, and dependency injection.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Backend Architecture (FastAPI)

## Overview

The backend is a **FastAPI** application located in `backend/`. It powers the chatbot and RAG functionality.

## Entry Point

- **File**: `backend/main.py`
- **Run**: `uvicorn backend.main:app --reload` (or via `npm run dev`)
- **Port**: Defaults to `8000`.

## Endpoints

### `POST /api/chat`

- **Purpose**: Main RAG chat endpoint.
- **Input**: `ChatRequest` (query, history, user_context).
- **Process**:
  1. Embed query.
  2. Search Qdrant (`search_qdrant`).
  3. Build prompt (`build_rag_prompt`).
  4. Generate Agent response.
- **Output**: `ChatResponse` (answer, contexts).

### `POST /api/ask-selection`

- **Purpose**: Targeted Q&A on selected text.
- **Input**: `AskSelectionRequest` (question, selected_text).
- **Process**:
  1. Validates selection length.
  2. Builds selection-specific prompt.
  3. specific Agent instructions.

## Dependencies & Utils

- `backend/utils/config.py`: Qdrant initialization.
- `backend/utils/helpers.py`: Embedding and Prompt building logic.
- `backend/models.py`: OpenAI/Gemini client setup.

## Environment Variables

- `GEMINI_API_KEY`: For LLM and Embeddings.
- `QDRANT_URL`, `QDRANT_API_KEY`: Vector DB connection.

Related Skills

woocommerce-backend-dev

242
from aiskillstore/marketplace

Add or modify WooCommerce backend PHP code following project conventions. Use when creating new classes, methods, hooks, or modifying existing backend code. **MUST be invoked before writing any PHP unit tests.**

backend-testing

242
from aiskillstore/marketplace

Write comprehensive backend tests including unit tests, integration tests, and API tests. Use when testing REST APIs, database operations, authentication flows, or business logic. Handles Jest, Pytest, Mocha, testing strategies, mocking, and test coverage.

python-fastapi-development

242
from aiskillstore/marketplace

Python FastAPI backend development with async patterns, SQLAlchemy, Pydantic, authentication, and production API patterns.

nodejs-backend-patterns

242
from aiskillstore/marketplace

Build production-ready Node.js backend services with Express/Fastify, implementing middleware patterns, error handling, authentication, database integration, and API design best practices. Use when creating Node.js servers, REST APIs, GraphQL backends, or microservices architectures.

fastapi-templates

242
from aiskillstore/marketplace

Create production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling. Use when building new FastAPI applications or setting up backend API projects.

fastapi-router-py

242
from aiskillstore/marketplace

Create FastAPI routers with CRUD operations, authentication dependencies, and proper response models. Use when building REST API endpoints, creating new routes, implementing CRUD operations, or adding authenticated endpoints in FastAPI applications.

fastapi-pro

242
from aiskillstore/marketplace

Build high-performance async APIs with FastAPI, SQLAlchemy 2.0, and Pydantic V2. Master microservices, WebSockets, and modern Python async patterns. Use PROACTIVELY for FastAPI development, async optimization, or API architecture.

dotnet-backend

242
from aiskillstore/marketplace

Build ASP.NET Core 8+ backend services with EF Core, auth, background jobs, and production API patterns.

dotnet-backend-patterns

242
from aiskillstore/marketplace

Master C#/.NET backend development patterns for building robust APIs, MCP servers, and enterprise applications. Covers async/await, dependency injection, Entity Framework Core, Dapper, configuration, caching, and testing with xUnit. Use when developing .NET backends, reviewing C# code, or designing API architectures.

cc-skill-backend-patterns

242
from aiskillstore/marketplace

Backend architecture patterns, API design, database optimization, and server-side best practices for Node.js, Express, and Next.js API routes.

backend-security-coder

242
from aiskillstore/marketplace

Expert in secure backend coding practices specializing in input validation, authentication, and API security. Use PROACTIVELY for backend security implementations or security code reviews.

backend-patterns

242
from aiskillstore/marketplace

Backend architecture patterns, API design, database optimization, and server-side best practices for Node.js, Express, and Next.js API routes.