Stats
Actions
Tags
From Fullstack ML/AI Agent Skills
Scaffold, review, or refactor FastAPI services using uv, a src/ layout, versioned routers, and optional singleton clients; use for new services or architecture cleanups.
How this skill is triggered — by the user, by Claude, or both
Slash command
/fullstack-ml-ai-agent-skills:fastapi-architectThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use this skill when the user asks to:
README.mdassets/templates/Dockerfile.tmplassets/templates/README.md.tmplassets/templates/env.example.tmplassets/templates/pyproject.toml.tmplassets/templates/pyproject_no_clients.tmplassets/templates/pyproject_with_httpx.tmplassets/templates/python-version.tmplassets/templates/src_api_deps.py.tmplassets/templates/src_api_deps_no_clients.py.tmplassets/templates/src_api_deps_with_httpx.py.tmplassets/templates/src_api_v1_health.py.tmplassets/templates/src_api_v1_router.py.tmplassets/templates/src_core_config.py.tmplassets/templates/src_core_errors.py.tmplassets/templates/src_core_log_config.py.tmplassets/templates/src_core_logger_func.py.tmplassets/templates/src_main.py.tmplassets/templates/src_main_no_clients.py.tmplassets/templates/src_main_with_httpx.py.tmplUse this skill when the user asks to:
pyproject.toml.src/ and is importable (Docker uses PYTHONPATH=/app/src).src/main.py:
app.include_router(<project_relevant>_router, prefix="/v1", tags=["<project_relevant>"])/v2 as well.src/services/clients/ ONLY when the project needs them (HTTP APIs, DB, Redis, etc.).src/services/clients/* must use a singleton pattern.src/utils/.uv run task lint_fix as the final step.uv run python ${CLAUDE_PLUGIN_ROOT}/skills/fastapi-architect/scripts/scaffold_fastapi_uv.py --project-dir <path> --service-name <name> --app-title "<title>"uv run python ${CLAUDE_PLUGIN_ROOT}/skills/fastapi-architect/scripts/scaffold_fastapi_uv.py --project-dir <path> --service-name <name> --app-title "<title>" --with-http-clientuv syncuv run task lint_fixuv run task testuv run uvicorn main:app --host 0.0.0.0 --port 8000 --app-dir srcuv run task lint_fix (final step)uv run python ${CLAUDE_PLUGIN_ROOT}/skills/fastapi-architect/scripts/audit_fastapi_project.py --project-dir <path>/v1 routing works with a project-relevant router alias and tagsuv run task lint_fix (required final step after major changes)uv run task testsrc/services/clients/*.@lru_cache factory to guarantee one instance per process.lifespan.pyproject.toml with minimal runtime deps + dev tooling.src/main.py with /v1 (and optionally /v2) routing using a project-relevant router alias and tags.src/core/config.py using pydantic-settings.src/core/log_config.py + src/core/logger_func.py.src/api/deps.py for shared dependencies.tests/ with a basic health test (and conftest.py to ensure src/ is importable).src/services/clients/ only if required by the project.fastapi[standard] unless the user explicitly requests otherwise.lifespan to manage startup/shutdown resources.Provides a checklist for code reviews covering functionality, security, performance, maintainability, tests, and quality. Use for pull requests, audits, team standards, and developer training.
npx claudepluginhub y4rd13/fullstack-ml-ai-agent-skills --plugin fullstack-ml-ai-agent-skills