Skip to content
cccskills
FreePublished on GitHub

python3-web

Python web and API development enforcing strict route/domain/data layer separation, Pydantic v2 strict request-response models, edge-resolved auth, and async-safe HTTP clients. Use when working with FastAPI, Starlette, Django, Flask, HTTP endpoints, request models, authentication flows, async handlers, or any Python web framework task.

The English summary is being prepared. Showing the original description.

See how to install

Files included (1)

  • SKILL.md2.5 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Python Web

Load standards-for-python-development for the shared rules. Load python3-typing for request/response modeling. Load python3-testing for endpoint and auth tests.

Quality Checklist

  • Route handlers contain NO business logic — only validation, delegation, response mapping
  • No framework objects (Request, Response, ORM models) leak into domain layer
  • model_config = {"strict": True} on all request models
  • Separate request and response models per endpoint — never reuse ORM models as API schemas
  • Auth resolved at edge; domain functions receive typed identity, never raw tokens
  • Domain exceptions mapped to HTTP status codes at boundary, not scattered through handlers
  • Async handlers use httpx.AsyncClient — never requests (blocks event loop)
  • Background tasks hold no references to request-scoped objects

Gotchas

TrapWhat to do instead
FastAPI dep ordering assumptionsDependencies resolve by graph, not definition order — chain explicitly if order matters
Pydantic v1/v2 method mixingv2: model_dump(), model_dump_json(), model_validate() — never .dict() / .json()
import requests in async handlerrequests blocks event loop; use httpx.AsyncClient with async with
Django ORM in async viewsBare Model.objects.get() blocks; use aget() (Django 4.1+) or sync_to_async
allow_origins=["*"]Enumerate specific origins — * disables credential support, security risk
Single model for request + response + DBThree separate models: CreateUserRequest, UserResponse, UserDB

Decision Table: Sync vs Async

ScenarioUseWhy
CPU-bound processingSync + thread poolasync doesn't help CPU work
Multiple external API callsAsync + httpx.AsyncClientConcurrent I/O without threads
Simple CRUD with sync ORMSync handlersAsync adds complexity with no benefit
WebSocket connectionsAsync (required)Inherently long-lived

Layer Separation

HTTP Layer (routes) → validated typed request models
Domain Layer (logic) → typed domain objects
Data Layer (repo/ORM)

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Add automated documentation updater to any Claude skill. Creates a Python sync script that downloads upstream docs, processes markdown for AI consumption, and maintains local cache with configurable refresh. Collects template variables, then delegates implementation through 5-phase workflow. Use when adding auto-updating reference documentation to plugins or skills.

The English summary is being prepared. Showing the original description.

Jamie-BitFlight/claude_skills67Updated Oct 18, 2026

SAM-style feature initiation workflow — discovery through codebase analysis, architecture spec, task decomposition, validation, and context manifest. Use when a user asks to add a feature, plan a feature, or convert an idea into an executable SAM plan.

The English summary is being prepared. Showing the original description.

Jamie-BitFlight/claude_skills67Updated Oct 18, 2026

Browser automation for AI agents using the agent-browser CLI and Playwright. Use when navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, logging into sites, or automating any browser task. Triggers on "open a website", "fill out a form", "click a button", "scrape data", "test this web app", "automate browser actions", or any programmatic web interaction request.

The English summary is being prepared. Showing the original description.

Jamie-BitFlight/claude_skills67Updated Oct 18, 2026

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction.

The English summary is being prepared. Showing the original description.

Jamie-BitFlight/claude_skills67Updated Oct 18, 2026

Runs the description-drift experiment — spawns all Claude Code agents simultaneously to collect self-reported capabilities, then compares them against static frontmatter descriptions to reveal how reliable orchestrator routing based on descriptions actually is. Use when measuring description drift across the agent fleet, re-running the capability collection experiment, analyzing a specific agent's self-reported capabilities, or auditing whether frontmatter descriptions accurately reflect agent behavior.

The English summary is being prepared. Showing the original description.

Jamie-BitFlight/claude_skills67Updated Oct 18, 2026

Create or adapt Claude Code agent definitions. Use when creating an agent, changing subagent configuration, selecting agent scope, or designing a specialized delegation role.

The English summary is being prepared. Showing the original description.

Jamie-BitFlight/claude_skills67Updated Oct 18, 2026

See all skills by Jamie-BitFlight

Report a problem with this skill