Compétences fastapi-templates
📩

fastapi-templates

Sûr

Build FastAPI projects with async patterns

Également disponible depuis: wshobson

Developers need production-ready FastAPI project structures without starting from scratch. This skill provides complete templates with async patterns, dependency injection, and layered architecture for high-performance APIs.

Prend en charge: Claude Codex Code(CC)
đŸ„‰ 75 Bronze
1

Télécharger le ZIP du skill

2

Importer dans Claude

Allez dans ParamĂštres → CapacitĂ©s → Skills → Importer un skill

3

Activez et commencez Ă  utiliser

Tester

Utilisation de "fastapi-templates". Create a FastAPI project with user registration and login

Résultat attendu:

  • Generated app/ directory with api/, core/, models/, schemas/, services/, and repositories/ subdirectories
  • JWT authentication endpoints with token-based security
  • Async SQLAlchemy database configuration with session management
  • Pydantic schemas for request validation and response models

Utilisation de "fastapi-templates". Add repository pattern to existing user endpoints

Résultat attendu:

  • Created UserRepository with async CRUD methods
  • Extracted business logic to UserService layer
  • Updated endpoints to use dependency injection for services
  • Added unit test fixtures for repository testing

Audit de sécurité

Sûr
v1 ‱ 2/24/2026

Static analysis flagged 32 patterns, but all are false positives. This is a documentation skill containing markdown code examples and templates, not executable code. External command detections are markdown backtick code blocks. Network findings reference test mocks. Environment access patterns show standard configuration examples. No actual security risks exist.

2
Fichiers analysés
602
Lignes analysées
0
résultats
1
Total des audits
Aucun problÚme de sécurité trouvé
Audité par: claude

Score de qualité

38
Architecture
100
Maintenabilité
87
Contenu
50
Communauté
100
Sécurité
100
Conformité aux spécifications

Ce que vous pouvez construire

Startup API Development

Quickly scaffold a new FastAPI project with authentication, database integration, and proper project structure for MVP development.

Microservice Template

Generate consistent API structures across multiple microservices with standardized error handling and dependency injection patterns.

Learning Resource

Study production-ready patterns for async operations, repository pattern, and layered architecture in modern Python APIs.

Essayez ces prompts

Basic Project Setup
Create a new FastAPI project with user authentication, PostgreSQL database, and basic CRUD endpoints for a resource.
Add Authentication Layer
Add JWT-based authentication to my existing FastAPI project with token refresh and password reset functionality.
Implement Repository Pattern
Refactor my FastAPI routes to use repository and service layers with async database operations and proper dependency injection.
Complete Microservice Template
Generate a production-ready microservice with FastAPI including health checks, structured logging, error handling middleware, and Docker configuration.

Bonnes pratiques

  • Use async database operations throughout to avoid blocking the event loop
  • Separate concerns with repository, service, and API layers for testability
  • Validate all inputs with Pydantic schemas and handle errors consistently

Éviter

  • Using synchronous database drivers in async route handlers
  • Placing business logic directly in route handlers instead of service layer
  • Accessing database directly from routes without repository abstraction

Foire aux questions

What Python version is required?
Python 3.8 or higher is required for full async/await support and type hint features used in the templates.
Can I use this with MySQL instead of PostgreSQL?
Yes, the templates use SQLAlchemy which supports multiple databases. Change the DATABASE_URL and install the appropriate async driver.
Does this skill deploy my application?
No, this skill generates project templates and code. Deployment must be configured separately using your preferred platform.
Are the authentication templates production-ready?
The JWT authentication follows security best practices, but you should review SECRET_KEY management and add rate limiting for production.
Can I customize the generated project structure?
Yes, the templates are starting points. Modify any generated files to match your specific requirements and architecture preferences.
What testing framework do the templates use?
The templates use pytest with pytest-asyncio for async test support and httpx for API endpoint testing.

Détails du développeur

Structure de fichiers

📁 resources/

📄 implementation-playbook.md

📄 SKILL.md