lct1407/sidcorp-skills/python-backend-development

Claude Code and agent skill by lct1407/sidcorp-skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Generate Python FastAPI code following project design patterns. Use when creating models, schemas, repositories, services, controllers, database migrations, authentication, or tests. Enforces layered architecture, async patterns, OWASP security, and Alembic migration naming conventions (yyyymmdd_HHmm_feature).

Install

npx vskill@latest install lct1407/sidcorp-skills/python-backend-development

SKILL.md

Python Backend Development Standards

Architecture Overview

Router/Controller → Service → Repository → Database
↓ ↓ ↓
Schemas Business SQLAlchemy
(Pydantic) Logic Models

Layer Responsibilities

LayerLocationPurpose
Modelsapp/models/SQLAlchemy ORM, database schema
Schemasapp/schemas/Pydantic DTOs (request/response)
Repositoriesapp/repositories/Database CRUD operations
Servicesapp/services/Business logic orchestration
Controllersapp/api/v1/FastAPI routes, thin handlers
Migrationsalembic/versions/Database migrations

Naming Conventions

Files
  • All lowercase with underscores: user_profile.py
  • One entity per file
  • Match filename to class: user.py → class User
Classes
  • Models: User, BlogPost (PascalCase, singular)
  • Schemas: UserCreate, UserResponse, UserUpdate
  • Repositories: UserRepository
  • Services: UserService
Database
  • Table names: plural snake_case (users, blog_posts)
  • Column names: snake_case (created_at, user_id)

Alembic Migrations

File Naming Convention
yyyymmdd_HHmm_<feature>.py

Examples:

  • 20260117_0930_create_users_table.py
  • 20260117_1045_add_email_to_users.py
  • 20260117_1400_create_api_keys_table.py
Create Migration Command
bash
# Generate with autogenerate
alembic revision --autogenerate -m "description"
# Then rename the file to follow convention:
# FROM: xxxx_description.py
# TO: yyyymmdd_HHmm_description.py

Code Standards

Async Everything
  • All database operations must be async
  • Use async def for all handlers, services, repositories
  • Use await for all I/O operations
Dependency Injection
  • Use FastAPI Depends() for dependencies
  • Inject database sessions into services
  • Services inject repositories
Error Handling
  • Use custom exceptions in app/core/exceptions.py
  • Let FastAPI exception handlers convert to HTTP responses
  • Never catch and swallow exceptions silently
Security
  • Argon2id for password hashing
  • Parameterized queries (SQLAlchemy ORM)
  • Input validation (Pydantic)
  • Rate limiting on auth endpoints

Reference Navigation

Core Patterns:

Security & Auth:

Quality & Operations:

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Refreshed 2 May 2026, 7 months ago.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/lct1407/sidcorp-skills/python-backend-development/badge)](https://verified-skill.com/skills/lct1407/sidcorp-skills/python-backend-development)

Something wrong with this skill or its page? Tell us.