本文へ移動
cccskills
無料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.

インストール方法を見る

含まれるファイル(1)

  • SKILL.md2.5 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

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)

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

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.

日本語の概要は準備中です。原文の説明を表示しています。

Jamie-BitFlight/claude_skills672026年10月9日 更新

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.

日本語の概要は準備中です。原文の説明を表示しています。

Jamie-BitFlight/claude_skills672026年10月9日 更新

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.

日本語の概要は準備中です。原文の説明を表示しています。

Jamie-BitFlight/claude_skills672026年10月9日 更新

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.

日本語の概要は準備中です。原文の説明を表示しています。

Jamie-BitFlight/claude_skills672026年10月9日 更新

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.

日本語の概要は準備中です。原文の説明を表示しています。

Jamie-BitFlight/claude_skills672026年10月9日 更新

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

日本語の概要は準備中です。原文の説明を表示しています。

Jamie-BitFlight/claude_skills672026年10月9日 更新

Jamie-BitFlight のスキルをすべて見る

このスキルの問題を報告する