validate-python-stack

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

A validation workflow for a Python template or a project generated from it. It checks generated files, dependencies, formatting, tests, security workflows, skills, and representative runtime behavior.

In plain words
What is it for?
Use it before committing, publishing, deploying, or reviewing the Python template or a project created from it.
Why use it?
It catches broken configuration, stale generated files, failed tests, and integrations that only look complete but do not run before release or deployment.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it before committing, publishing, deploying, or reviewing the Python template or a project created from it.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/leynier/python-template/validate-python-stack/github.svg)](https://agentmods.dev/skills/leynier/python-template/validate-python-stack)
Your own site
<a href="https://agentmods.dev/skills/leynier/python-template/validate-python-stack"><img src="https://agentmods.dev/badge/skills/leynier/python-template/validate-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 validate-python-stack

Your own site · 80×15
<a href="https://agentmods.dev/skills/leynier/python-template/validate-python-stack"><img src="https://agentmods.dev/badge/skills/leynier/python-template/validate-python-stack.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 437 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 warn 7 Sept 2026
SkillSpector: 2 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium MCP Rug Pull · line 16
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 24
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
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.00051 $0.00437
Opus 5.5 $0.00020 $0.00175
Sonnet 5.5 $0.00010 $0.00087
Haiku 4.5 $0.00005 $0.00044

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

Security

Grade A, and why

validate-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/validate-python-stack/SKILL.md · 31 lines

What it actually says

Validate Python Stack

Choose the validation path that matches the current directory and report exact failures without hiding skipped checks.

Template Repository

  1. Run uv sync --all-groups.
  2. Run uv run python scripts/compile_catalog.py --check.
  3. Run uv run ruff check . and uv run ruff format --check ..
  4. Run uv run pytest -n auto. Use focused tests first while iterating, but finish with the full suite.
  5. For every directory under skills/, run the skill-creator validator when available and run npx --yes skills add . --list to verify discovery.
  6. Generate the changed presets or custom combinations and exercise their real CLI, API, MCP, training, serving, or deployment entry point as applicable.
  7. If GitHub workflows changed and Docker is available, run the repository's local Actions validation before pushing.

Generated Project

  1. Read .copier-answers.yml, readme.md, and pyproject.toml to identify enabled layers.
  2. Run uv sync --all-groups, uv run ruff check ., uv run ruff format --check ., and uv run pytest.
  3. Run npx --yes skills add . --list; expect project-workflow and only the conditional skills appropriate to the selected stack.
  4. Exercise the primary entry point. For a containerized target, build the Docker image and verify its health route locally when Docker is available.
  5. Validate generated JSON, TOML, YAML, Python, and HCL as structured data rather than with string-only assertions.

Reporting

Separate passed, failed, and unavailable checks. Include the command, relevant error, and whether the failure belongs to the template, the generated project, local infrastructure, or an external service.

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 · 31 lines · 51 tokens per session scan A bf1a59dd5a26

Subscribe to this mod's changes

validate-python-stack is a skill published in the GitHub repository leynier/python-template (37 stars, last pushed 15d ago), licensed MIT. It adds 51 tokens to every session and 437 once invoked, about $0.0002 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

pytest

Skill "pytest" from bobmatnyc/claude-mpm-skills, covering pytest - professional python testing, basic pytest, with common plugins, for fastapi testing and for django testing.

bobmatnyc/claude-mpm-skills · 28 tokens

python-testing

Write or modify Python tests. Use when: adding new tests, understanding testing conventions, working with fixtures, writing FastAPI route tests, database tests, or following pytest patterns. DO NOT USE FOR RUNNING TESTS. If you are just running tests, not building them, you do not need this.

tedivm/robs_awesome_python_template · 64 tokens

pytest

Skill "pytest" from bobmatnyc/claude-mpm, covering pytest - professional python testing, basic pytest, with common plugins, for fastapi testing and for django testing.

bobmatnyc/claude-mpm · 28 tokens

pytest-service

Write disciplined backend tests for FastAPI services with pytest. Use this skill when adding tests to a Python/FastAPI service, setting up async SQLAlchemy test fixtures, wiring AsyncClient with DI overrides, mocking external clients, or improving test maintainability. Covers fixture design, factory patterns, async…

robhowley/py-pit-skills · 79 tokens

pytest

Advanced Python unit testing framework for customer support tech enablement, covering FastAPI, SQLAlchemy, PostgreSQL, async operations, mocking, fixtures, parametrization, coverage, and comprehensive testing strategies for backend support systems.

manutej/luxor-claude-marketplace · 44 tokens

temporal-python-testing

Test Temporal workflows with pytest, time-skipping, and mocking strategies. Covers unit testing, integration testing, replay testing, and local development setup. Use when implementing Temporal workflow tests or debugging test failures.

wshobson/agents · 45 tokens