skillZs
★ LIVE SKILL TAGS ★
>>> LIVE SKILLS INDEX <<<
* OPEN SOURCE *
NO LOGIN, NO TRACKING
※ REAL INSTALL DATA ※
← back to all skills
fastapi-practices/skills472 installs

fba

FastAPI Best Architecture (fba) project development guide. Use when working in fba projects to design, implement, review, or document APIs, Schema, Service, CRUD, Model, configuration, response contracts, pagination, cache, Celery, i18n, coding style, plugin development, plugin README files, plugin sharing, plugin publishing, or plugin marketplace updates.

How do I install this agent skill?

npx skills add https://github.com/fastapi-practices/skills --skill fba
view source ↗

Is this agent skill safe to install?

  • Gen Agent Trust Hubpass

    This skill is a comprehensive development guide for the FastAPI Best Architecture (fba) project. It provides structured instructions for API design, database modeling, plugin lifecycle management, and marketplace publishing. The skill emphasizes secure development practices, such as proper secret management and safe auditing of third-party plugins, and uses standard development tools. No malicious patterns or security risks were detected.

  • Socketpass

    No alerts

  • Snykpass

    Risk: LOW · No issues

  • Runlayerpass

    8 files scanned · No issues

What does this agent skill do?

FastAPI Best Architecture

Official documentation: https://fastapi-practices.github.io/fastapi_best_architecture_docs/

Use this skill to follow fba architecture and plugin conventions. Load the required baseline below, then only the additional references needed for the task.

Required Coding Baseline

For every backend Python implementation, fix, refactor, or code review, read references/coding-style.md and references/naming.md before working on code. These rules apply to ordinary development as well as explicit style requests; the user does not need to repeat them. Apply them to maintained application and plugin code, including runtime modules, utilities, and relevant tests, while preserving framework-required contracts.

For cross-layer features, directory changes, or SDK integrations, also read references/development.md before choosing module boundaries, then load the layer-specific references.

Keep the requested scope: a comprehensive plugin review covers all maintained modules in that plugin and affected tests, not only API/Service/CRUD files. An ordinary feature or fix does not authorize unrelated repository-wide cleanup. For documentation-only work, load the relevant documentation reference without the Python baseline.

Before completion, apply the review checks in references/coding-style.md. Ruff passing alone does not verify function design, test-driven helper extraction, or layer boundaries.

Core Architecture

Project adopts a layered backend architecture centered on API, Service, and CRUD, with Schema and Model as explicit data contracts:

LayerResponsibility
APIRoute processing, parameter validation, and response return
SchemaData transfer objects, request/response data structure definitions
ServiceBusiness logic, data processing, exception handling
CRUDDatabase operations (inherits CRUDPlus)
ModelORM models (inherits Base)

Database Support

Starting from fba 2.0.0, MySQL support is removed and PostgreSQL is the only supported database.

  • The DATABASE_TYPE and DATABASE_CHARSET settings no longer exist in backend/core/conf.py.
  • The DataBaseType enum is removed from backend/common/enums.py.
  • The async engine always uses postgresql+asyncpg; the Celery result backend uses postgresql+psycopg.
  • The framework custom types UniversalText and TimeZone are removed. Use sa.Text for long text and sa.DateTime(timezone=True) for timezone-aware datetimes.
  • Plugin SQL scripts live under sql/postgresql/ only, and plugin.database must be ["postgresql"].
  • fba add no longer accepts a --db-type option.

Do not reintroduce MySQL branches, dialect-specific type wrappers, or a runtime database-type switch.

Development Workflow

  1. Define database models (model)
  2. Define data validation models (schema)
  3. Define routes (router)
  4. Write business logic (service)
  5. Write database operations (crud)

Reference Selection

TaskRead
Feature/module development flow, Service/CRUD placement, pagination, cache, Celery, i18nreferences/development.md
API routes, dependencies, response patterns, auth, permissionsreferences/api.md
Pydantic request/response DTOsreferences/schema.md
SQLAlchemy models and migrationsreferences/model.md
CRUD, Service, API, Schema, entity and table prefix namingreferences/naming.md
Backend/frontend plugin development and plugin README filesreferences/plugin.md
Plugin conversion, creation, validation, packaging, submission, and release lifecyclereferences/plugin-lifecycle.md
Plugin sharing, public repositories, marketplace PRs, submodules, updatesreferences/plugin-sharing.md
Every backend Python implementation/review: functions, private helpers, test boundaries, typing, formatting, comments, docstringsreferences/coding-style.md (required baseline)
Global settings and configurationreferences/config.md

Plugin Work

When creating, reviewing, or updating plugins:

  1. Read references/plugin-lifecycle.md for end-to-end plugin conversion, creation, validation, packaging, and release coordination
  2. Read references/plugin.md for plugin type, structure, manifest, configuration, hooks, SQL, and README rules
  3. Read references/plugin-sharing.md when the task involves sharing, publishing, updating, marketplace PRs, plugin repositories, or Git submodules
  4. Prefer source-code behavior from fastapi-best-architecture when docs and implementation differ
  5. Do not perform git add, commit, push, repository creation, fork, submodule update, or PR actions unless the user explicitly asks
  6. Publish from the contributor's authenticated GitHub account; never create the marketplace PR as a maintainer or bot

CLI

Execute fba -h for more details.

Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.

<a href="https://skillzs.dev/skills/fastapi-practices/skills/fba">View fba on skillZs</a>