deploy-python-project

A workflow for checking and deploying a generated Python project to its selected target, including local Docker checks and optional Pulumi or Terraform infrastructure files.

In plain words
What is it for?
Use it to prepare deployments, build and test containers, preview infrastructure changes, deploy authorized releases, verify services, and troubleshoot failed deployments. Pulumi and Terraform are tools that describe cloud resources as code.
Why use it?
It helps catch project, configuration, health-check, and deployment problems before or during a release.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/leynier/python-template/if-deploy_target-none-deploy-python-project-endif
Any agent
npx skills add leynier/python-template --skill if-deploy_target-none-deploy-python-project-endif
Clone the repo
git clone --depth 1 https://github.com/leynier/python-template

Made for: Claude Code, Codex.

Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 329 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00050 $0.00329
Opus 5 $0.00025 $0.00164
Sonnet 5 $0.00010 $0.00066
Haiku 4.5 $0.00005 $0.00033

Measured 2d ago against content hash 25fc7d1c395f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

deploy-python-project scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

template/skills/{% if deploy_target != 'none' %}deploy-python-project{% endif %}/SKILL.md · 25 lines

What it actually says

Deploy Python Project

Read .copier-answers.yml and deploy/README.md first; they identify the target, commands, environment variables, and any generated IaC.

Workflow

  1. Run the full project quality gates from project-workflow.
  2. Build the generated Dockerfile locally. Start the image with explicit environment variables and verify its documented health route.
  3. Validate target configuration as structured JSON, TOML, YAML, Python, or HCL. Never infer that a successful parse proves cloud readiness.
  4. For Pulumi, run a preview before update. For Terraform, run format, init without changing remote state where possible, validate, and plan before apply.
  5. Confirm account, region, project, service name, expected cost boundary, secrets source, and rollback strategy before creating or changing remote resources.
  6. Deploy with the command documented in deploy/README.md, then verify the remote health route and one representative request.
  7. Report the deployed revision, endpoint, verification evidence, and any manual DNS or secret-management step.

Safety

  • Do not deploy, apply IaC, delete resources, or expose a public endpoint without explicit authorization.
  • Do not embed provider credentials in images, configuration, logs, or Git.
  • Keep the Docker path usable even when the selected managed platform provides a native adapter.
Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 25 lines · 50 tokens per session scan A 25fc7d1c395f

Subscribe to this mod's changes

deploy-python-project is a skill published in the GitHub repository leynier/python-template (37 stars, last pushed 4d ago), licensed MIT. It adds 50 tokens to every session and 329 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

heaven-style

Standalone personal code-quality, architecture, documentation, graphical-interface, and project-management guide for TypeScript and Python repositories. Use when writing or reviewing code or docs, designing architecture or UI, refactoring, or aligning tests; apply repository policy first, then shared design philosophy…

Magolor/Blueprint · 63 tokens

datamodel-code-generator

Use this skill when the user wants Python data models, Pydantic models, dataclasses, TypedDicts, msgspec structs, or type-safe Python classes generated from OpenAPI, AsyncAPI, JSON Schema, GraphQL, JSON/YAML/CSV sample data, MCP tool schemas, Protocol Buffers, XML Schema, Apache Avro, or existing Python model objects.…

koxudaxi/datamodel-code-generator · 147 tokens

background-task

Add or modify work that runs outside the request/response cycle — emails, document ingestion, webhooks, cleanups, scheduled jobs. Use when something is slow or fire-and-forget, or when adding a periodic/cron task. This project's queue is {{ cookiecutter.backgroundtasks }}.

vstorm-co/full-stack-ai-agent-template · 62 tokens

frontend-feature

Build a new page, view, or data-driven feature in the Next.js frontend. Use when adding a route under the dashboard/marketing area, wiring UI to a backend endpoint, adding client state, or creating a localized page. Covers App Router, data fetching, Zustand stores, and i18n.

vstorm-co/full-stack-ai-agent-template · 64 tokens

rag-knowledge

Work with the RAG knowledge base — ingest documents, run semantic search, manage collections, or add a sync source/connector (Google Drive, S3). Use when populating or debugging the knowledge base, tuning retrieval, or adding a new document source. This project uses {{ cookiecutter.vectorstore }} + {{…

vstorm-co/full-stack-ai-agent-template · 76 tokens

alembic-migration

Create, review, and apply database schema changes with Alembic. Use whenever a SQLAlchemy model is added or changed, a column/index/constraint needs to change, or a data backfill is required — anything that alters the PostgreSQL schema.

vstorm-co/full-stack-ai-agent-template · 56 tokens