compose-python-stack

compose-python-stack is a skill for Codex from leynier/python-template. It costs 65 tokens per session (425 once invoked), scanned A, original, MIT.

A project generator for Python software. It combines documented building blocks or presets, such as frameworks, data tools, interfaces, deployment targets and infrastructure choices, into a new project.

In plain words
What is it for?
Use it to create a Python library, command-line tool, web API or AI application with a compatible technology stack and deployment setup.
Why use it?
It removes the need to decide and assemble every part of a Python project by hand. It also checks the generated project with dependency installation, tests and code-quality commands.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it to create a Python library, command-line tool, web API or AI application with a compatible technology stack and deployment setup.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/leynier/python-template/compose-python-stack
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.

Any agent
npx skills add leynier/python-template --skill compose-python-stack
Clone the repo
git clone --depth 1 https://github.com/leynier/python-template

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for compose-python-stack

README.md
[![agentmods](https://agentmods.dev/badge/skills/leynier/python-template/compose-python-stack/github.svg)](https://agentmods.dev/skills/leynier/python-template/compose-python-stack)
Your own site
<a href="https://agentmods.dev/skills/leynier/python-template/compose-python-stack"><img src="https://agentmods.dev/badge/skills/leynier/python-template/compose-python-stack/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for compose-python-stack

Your own site · 80×15
<a href="https://agentmods.dev/skills/leynier/python-template/compose-python-stack"><img src="https://agentmods.dev/badge/skills/leynier/python-template/compose-python-stack.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 425 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.1 $0.00065 $0.00425
Opus 5.5 $0.00026 $0.00170
Sonnet 5.5 $0.00013 $0.00085
Haiku 4.5 $0.00006 $0.00042

Measured 1mo ago against content hash 13f603346f5d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

compose-python-stack 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 1mo 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.

skills/compose-python-stack/SKILL.md · 26 lines

What it actually says

Compose Python Stack

Turn a product goal into a supported stack, explain the consequential choices, and generate it with Copier.

Workflow

  1. Read docs/reference/presets.md and docs/reference/components.md. When exact compatibility matters, also read catalog/generated/catalog.json.
  2. Ask only about choices that change the architecture. Prefer one of the documented presets when it is close; otherwise select custom and compose the layers.
  3. Keep model and embedding providers independent. Select at most one provider for each data role. Do not add AI to a simple library, Typer CLI, or FastAPI/Flask API unless requested.
  4. Select one deployment target. Docker is the portable base for deployed projects; select either no IaC, Pulumi, or Terraform where the chosen target supports it.
  5. Generate into a new directory with copier copy gh:leynier/python-template <destination>, answering interactively. For automation, pass explicit values with repeated -d key=value arguments.
  6. Enter the generated directory and run uv sync --all-groups, uv run pytest, uv run ruff check ., and uv run ruff format --check ..
  7. Report the selected layers, generated entry points, required environment variables, and any cloud resources the user must configure.

Guardrails

  • Treat catalog compatibility rules as authoritative; do not force an invalid combination.
  • Preserve the first-class python-library, typer-cli, and fastapi-api paths.
  • Prefer Python 3.12 or newer and uv for environment and command execution.
  • Never deploy, create paid resources, or write credentials unless the user explicitly authorizes that action.
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. 1mo ago First seen · 26 lines · 65 tokens per session scan A 13f603346f5d

Subscribe to this mod's changes

compose-python-stack is a skill published in the GitHub repository leynier/python-template (37 stars, last pushed 15d ago), licensed MIT. It adds 65 tokens to every session and 425 once invoked, about $0.0003 per session on Opus 5.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

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

channel-bot

Work with messaging-channel bots (Telegram / Slack) — register a bot, route inbound messages through the AI agent, handle webhooks vs polling, or add a new channel adapter. Use when wiring chat into a messaging platform or debugging bot delivery.

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

fastapi-guard

Production-ready security middleware for FastAPI. Use when adding IP filtering, rate limiting, per-route security decorators, route-resolution strict mode, global behavior rules, passive/log-only mode, or Guard Agent SaaS telemetry to a FastAPI app. Covers SecurityMiddleware setup, SecurityConfig tuning, and the…

rennf93/fastapi-guard · 72 tokens

pydantic-resolve-3step

A three-stage development method for Python projects built with pydantic-resolve, starting with agreed data models and ending with application interfaces. It uses an ER diagram, which shows database entities and their relationships, plus ORM models that represent database records in code.

KLR-Pattern/pydantic-resolve · 56 tokens

fastapi-expert

Expert-level FastAPI development for high-performance Python APIs with async support. Use when the user mentions Python, API, async, REST, OpenAPI, or Pydantic, or when the task involves FastAPI Features.

personamanagmentlayer/pcl · 49 tokens

python-fastapi-architecture

Use this skill when the user says 'FastAPI structure', 'FastAPI architecture', 'FastAPI folder', 'FastAPI clean arch', 'FastAPI router', 'FastAPI dependency injection', 'Python backend structure', or when building a FastAPI application. This skill enforces: Clean Architecture folder structure…

j4flmao/agent-skills · 126 tokens