Rechercher

PythonReactSEOPDF
OpenClaw

Afrexai Fastapi Production

FastAPI Production Engineering

1kalin0 installations selon la source☆ 0 Étoiles du dépôt

Installation

Suivez les instructions du dépôt pour votre agent. Consultez les fichiers et dépendances avant l’installation.

SkillHub CLI

skillhub install 1kalin/afrexai-fastapi-production

Examinez la source et la compatibilité, puis suivez les étapes d’installation.

Donnez le lien à votre agent et demandez-lui d’examiner instructions et dépendances avant d’expliquer les étapes.

Voir la source ↗Guides

Instructions

FastAPI Production Engineering

Complete methodology for building, deploying, and scaling production FastAPI applications. Not a tutorial — a production operating system.

Quick Health Check (/16)

Score 2 points each. Total < 8 = critical work needed.

Signal Healthy Unhealthy
Type safety Pydantic v2 models everywhere dict returns, no validation
Error handling Structured error hierarchy Bare HTTPException strings
Auth JWT + dependency injection Manual token parsing
Testing 80%+ coverage, async tests No tests or sync-only
Database Async ORM, migrations Raw SQL, no migrations
Observability Structured logging + tracing print() debugging
Deployment Multi-stage Docker, health checks uvicorn main:app on bare metal
Documentation Auto-generated, accurate OpenAPI Default /docs untouched

Phase 1: Project Architecture

Recommended Structure
src/
├── app/
│   ├── __init__.py
│   ├── main.py              # App factory
│   ├── config.py             # Pydantic Settings
│   ├── dependencies.py       # Shared DI
│   ├── middleware.py          # Custom middleware
│   ├── features/
│   │   ├── users/
│   │   │   ├── __init__.py
│   │   │   ├── router.py     # Endpoints
│   │   │   ├── schemas.py    # Pydantic models
│   │   │   ├── service.py    # Business logic
│   │   │   ├── repository.py # Data access
│   │   │   ├── models.py     # SQLAlchemy/SQLModel
│   │   │   ├── dependencies.py
│   │   │   └── exceptions.py
│   │   ├── auth/
│   │   ├── orders/
│   │   └── ...
│   ├── core/
│   │   ├── database.py       # Engine, session factory
│   │   ├── security.py       # JWT, hashing
│   │   ├── errors.py         # Error hierarchy
│   │   └── logging.py        # Structlog config
│   └── shared/
│       ├── pagination.py
│       ├── filters.py
│       └── responses.py
├── migrations/               # Alembic
├── tests/
│   ├── conftest.py
│   ├── unit/
│...

Informations sur la source

Source
github
Repository
openclaw/skills
Path
skills/1kalin/afrexai-fastapi-production
Version
—
Commit
bcfb3f3190d54799c15709b5c23e2edd5e09e84d
Source de classification
rules
Statut
active
Visibilité
public

Ces informations proviennent de l’analyse indexée et peuvent être anciennes. Vérifiez les fichiers actuels.

README

🚀 AfrexAI FastAPI Production Engineering

Complete methodology for building, deploying, and scaling production FastAPI applications. Not a tutorial — a production operating system.

What This Skill Does

Transforms your FastAPI project from prototype to production-grade with:

  • Project architecture — Feature-based structure with strict layering
  • Pydantic v2 mastery — Schema design, validation, generics
  • Error handling — Structured exception hierarchy with global handler
  • Auth & security — JWT + RBAC + 10-point security checklist
  • Database patterns — Async SQLAlchemy + repository pattern + migrations
  • Testing — Async test patterns with pytest-asyncio + httpx
  • Observability — Structlog + request tracing + health checks
  • Deployment — Multi-stage Docker + GitHub Actions CI + production checklist

Install

clawhub install afrexai-fastapi-production

Quick Start

Ask your agent:

  • audit my FastAPI project — get a health score out of 16
  • set up a new FastAPI project — full structure + config
  • add authentication — JWT + dependency injection pattern
  • prepare for production — Dockerfile + CI + checklist

What Makes This 10X Better

Feature Generic Skills This Skill
Architecture "Use routers" Full feature-based structure with 7 rules
Error handling HTTPException(404) Custom hierarchy + global handler + structured JSON
Auth Basic JWT example JWT + RBAC + DI + 10-point security checklist
Database Raw SQLAlchemy Async + repository pattern + migrations
Testing "Write tests" Async patterns + fixtures + parametrized + 7 rules
Deployment uvicorn main:app Multi-stage Docker + CI + health checks + checklist
Quality No scoring 0-100 rubric across 8 weighted dimensions

⚡ Level Up

Get the AfrexAI SaaS Context Pack ($47) for complete SaaS architecture,...

Contenu extrait

SKILL.md
# FastAPI Production Engineering

Complete methodology for building, deploying, and scaling production FastAPI applications. Not a tutorial — a production operating system.

## Quick Health Check (/16)

Score 2 points each. Total < 8 = critical work needed.

| Signal | Healthy | Unhealthy |
|--------|---------|-----------|
| Type safety | Pydantic v2 models everywhere | `dict` returns, no validation |
| Error handling | Structured error hierarchy | Bare `HTTPException` strings |
| Auth | JWT + dependency injection | Manual token parsing |
| Testing | 80%+ coverage, async tests | No tests or sync-only |
| Database | Async ORM, migrations | Raw SQL, no migrations |
| Observability | Structured logging + tracing | `print()` debugging |
| Deployment | Multi-stage Docker, health checks | `uvicorn main:app` on bare metal |
| Documentation | Auto-generated, accurate OpenAPI | Default `/docs` untouched |

## Phase 1: Project Architecture

### Recommended Structure

```
src/
├── app/
│   ├── __init__.py
│   ├── main.py              # App factory
│   ├── config.py             # Pydantic Settings
│   ├── dependencies.py       # Shared DI
│   ├── middleware.py          # Custom middleware
│   ├── features/
│   │   ├── users/
│   │   │   ├── __init__.py
│   │   │   ├── router.py     # Endpoints
│   │   │   ├── schemas.py    # Pydantic models
│   │   │   ├── service.py    # Business logic
│   │   │   ├── repository.py # Data access
│   │   │   ├── models.py     # SQLAlchemy/SQLModel
│   │   │   ├── dependencies.py
│   │   │   └── exceptions.py
│   │   ├── auth/
│   │   ├── orders/
│   │   └── ...
│   ├── core/
│   │   ├── database.py       # Engine, session factory
│   │   ├── security.py       # JWT, hashing
│   │   ├── errors.py         # Error hierarchy
│   │   └── logging.py        # Structlog config
│   └── shared/
│       ├── pagination.py
│       ├── filters.py
│       └── responses.py
├── migrations/               # Alembic
├── tests/
│   ├── conftest.py
│   ├── unit/
│...
README
# 🚀 AfrexAI FastAPI Production Engineering

Complete methodology for building, deploying, and scaling production FastAPI applications. Not a tutorial — a production operating system.

## What This Skill Does

Transforms your FastAPI project from prototype to production-grade with:

- **Project architecture** — Feature-based structure with strict layering
- **Pydantic v2 mastery** — Schema design, validation, generics
- **Error handling** — Structured exception hierarchy with global handler
- **Auth & security** — JWT + RBAC + 10-point security checklist
- **Database patterns** — Async SQLAlchemy + repository pattern + migrations
- **Testing** — Async test patterns with pytest-asyncio + httpx
- **Observability** — Structlog + request tracing + health checks
- **Deployment** — Multi-stage Docker + GitHub Actions CI + production checklist

## Install

```bash
clawhub install afrexai-fastapi-production
```

## Quick Start

Ask your agent:
- `audit my FastAPI project` — get a health score out of 16
- `set up a new FastAPI project` — full structure + config
- `add authentication` — JWT + dependency injection pattern
- `prepare for production` — Dockerfile + CI + checklist

## What Makes This 10X Better

| Feature | Generic Skills | This Skill |
|---------|---------------|------------|
| Architecture | "Use routers" | Full feature-based structure with 7 rules |
| Error handling | `HTTPException(404)` | Custom hierarchy + global handler + structured JSON |
| Auth | Basic JWT example | JWT + RBAC + DI + 10-point security checklist |
| Database | Raw SQLAlchemy | Async + repository pattern + migrations |
| Testing | "Write tests" | Async patterns + fixtures + parametrized + 7 rules |
| Deployment | `uvicorn main:app` | Multi-stage Docker + CI + health checks + checklist |
| Quality | No scoring | 0-100 rubric across 8 weighted dimensions |

## ⚡ Level Up

Get the [AfrexAI SaaS Context Pack ($47)](https://afrexai-cto.github.io/context-packs/) for complete SaaS architecture,...

Skills associés

OpenClaw

bambu-studio-ai

heyixuan2

Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pi...

OpenClaw

geo-optimization

capt-marbles

Generative Engine Optimization (GEO) for AI search visibility. Optimize content to appear in ChatGPT, Perplexity, Claude, and Google AI Overviews. Use when optimizing websites, pages, or content for LLM discove...

OpenClaw

0protocol

0isone

Agents can sign plugins, rotate credentials without losing identity, and publicly attest to behavior.

OpenClaw

0x0-messenger

eijiac24

Send and receive P2P messages using disposable numbers and PINs. No servers, no accounts. Use for human notifications, approval flows, and agent-to-agent communication.