# Validate Python Stack

> Validate the Python Template repository or a project generated from it. Use before committing, publishing, deploying, or reviewing a stack to check catalog compilation, rendering, dependencies, formatting, tests, security workflows, skills, and representative runtime behavior.

- **Type:** Skill
- **Install:** `agentstack add skill-leynier-python-template-validate-python-stack`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [leynier](https://agentstack.voostack.com/s/leynier)
- **Installs:** 0
- **Category:** [Cloud & Infrastructure](https://agentstack.voostack.com/c/cloud-infrastructure)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [leynier](https://github.com/leynier)
- **Source:** https://github.com/leynier/python-template/tree/main/skills/validate-python-stack
- **Website:** https://python-template.leynier.dev

## Install

```sh
agentstack add skill-leynier-python-template-validate-python-stack
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# 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.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [leynier](https://github.com/leynier)
- **Source:** [leynier/python-template](https://github.com/leynier/python-template)
- **License:** MIT
- **Homepage:** https://python-template.leynier.dev

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-leynier-python-template-validate-python-stack
- Seller: https://agentstack.voostack.com/s/leynier
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
