Skip to content
Back to skills

Mainframe Python Backend

ASecurity

Design, change, debug, or review Python web services and workers, including APIs, async lifecycle, persistence, migrations, and tests. Excludes data and ML pipelines.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 16, 2026
developmentpythonrustgofastapidjangoflasktestinggitapidatabase

Works with

  • api

Security analysis

A100/100

Pro scans all 14 files and shows the line behind each finding

Scanned November 16, 2026

npx -y skills add CATWILLgh/MAINFRAME --skill mainframe-python-backend --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Mainframe Python Backend?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Mainframe Python Backend
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/catwillgh-mainframe-python-backend/badge)](https://www.skillsdirectory.com/skills/catwillgh-mainframe-python-backend)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: mainframe-python-backend
description: Design, change, debug, or review Python web services and workers, including APIs, async lifecycle, persistence, migrations, and tests. Excludes data and ML pipelines.
---

# Python backend engineering

Apply within the immediate caller's scope and authority, whether implementing, delegated, or reviewing.

For behavior changes, load `mainframe-testing` for the shared TDD and local/CI boundary, then use this skill's testing reference for stack-specific evidence.

For schema, migration, index, or constraint work, use the shared
[migration method](../mainframe-testing/references/migrations.md) alongside the
data reference below.

## Establish the active server boundary

Identify the package that owns the affected behavior. If ownership or runtime wiring is unclear, use the bounded [recon script](scripts/recon.py) or [manual reconnaissance](references/recon.md) for that package. Reuse current inspected evidence; declared dependencies and filenames do not prove the active runtime path.

Trace the requested behavior through its real entrypoint, runtime validation, business rules, data or external boundary, side effects, callers, and observable output. Inspect the effective project instructions and use only infrastructure authorized by effective instructions or the immediate caller.

Several frameworks, validators, ORMs, workers, or test runners may legitimately coexist. Resolve ownership from imports, registration, configuration, entrypoints, runtime wiring, and affected files. Surface a decision only when evidence cannot resolve a product, business, data, infrastructure, permission, or authority choice with material consequences.

## Preserve the established system

Preserve the active interpreter support, packaging tool, framework, WSGI or ASGI boundary, sync or async model, architecture, validation, authentication, persistence, contracts, observability, and testing conventions unless changing one is part of the assigned result. Do not introduce a competing library, broad typing migration, new service, or infrastructure dependency for convenience.

For a genuinely new isolated component, derive the stack from its requirements, supported runtime, operational environment, and project decisions. Do not impose a universal framework, ORM, database, queue, test runner, or deployment model.

Verify installed versions before relying on version-sensitive behavior. Prefer the owning project's current primary documentation. An available documentation service may locate that corpus, but repository code and runtime evidence remain authoritative for project-owned behavior.

## Load only the relevant detail

| Changed concern | Read |
|---|---|
| Package root, interpreter, packaging, imports, WSGI/ASGI, typing, or generated ownership | [runtime and packaging](references/runtime-and-packaging.md) |
| FastAPI or Starlette routing, dependencies, lifespan, or async behavior | [FastAPI](references/fastapi.md) |
| Django, Django REST Framework, apps, middleware, ORM, or migrations | [Django](references/django.md) |
| Flask, blueprints, application factories, extensions, or WSGI behavior | [Flask](references/flask.md) |
| HTTP or event contracts, validation, authentication, authorization, sessions, or webhooks | [contracts and security](references/contracts-and-security.md) |
| Database access, ORM lifecycle, transactions, schema changes, or data rollout | [data and migrations](references/data-and-migrations.md) |
| Sync/async ownership, concurrent updates, request context, or tenant isolation | [concurrency and tenancy](references/concurrency-and-tenancy.md) |
| Queues, schedulers, workers, WebSockets, or event delivery | [background and realtime](references/background-and-realtime.md) |
| Files, object storage, outbound calls, retries, rate limits, or caches | [files, cache, and integrations](references/files-cache-and-integrations.md) |
| Logging, metrics, tracing, readiness, shutdown, or resource ownership | [observability and lifecycle](references/observability-and-lifecycle.md) |
| Choosing focused backend evidence or a real dependency boundary | [testing](references/testing.md) |

## Complete and verify the assigned result

Make the smallest complete change across every affected location inside the assigned boundary. Keep non-trivial business rules independent of transport when the established architecture supports that separation. Validate untrusted data at the real runtime boundary, authorize the concrete action and resource server-side, and make transactions, retries, idempotency, context cleanup, cache invalidation, and side effects explicit when correctness depends on them.

Use project-native commands: obtain faithful red evidence under the shared testing method, then run the focused proof and nearest relevant fast checks. Real database, broker, storage, browser or deployed checks require that boundary's semantics to be the risk and the shared local/CI and authority boundary to permit them.

Do not substitute TODOs, placeholders, weakened validation or assertions, skipped checks, suppressed failures, compatibility debris, or unrecorded follow-ups for completed work. Report observed checks and material gaps. Protect secrets across source, logs, errors, fixtures, telemetry, serialization, and command traces; preserve unrelated work. Record or reconcile concrete authorized out-of-scope findings through the project route, then resume the assignment without expanding investigation.

Files in this skill

  • SKILL.md5.4 KB
  • references/background-and-realtime.md1.7 KB
  • references/concurrency-and-tenancy.md1.5 KB
  • references/contracts-and-security.md1.6 KB
  • references/data-and-migrations.md2.3 KB
  • references/django.md1.5 KB
  • references/fastapi.md1.4 KB
  • references/files-cache-and-integrations.md1.3 KB
  • references/flask.md1.2 KB
  • references/observability-and-lifecycle.md1.3 KB
  • references/recon.md1.4 KB
  • references/runtime-and-packaging.md1.8 KB
  • references/testing.md1.9 KB
  • scripts/recon.py12.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.