toolchain-health

Diagnose Python version mismatches across mise, Poetry, and pyproject.toml.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/stars-end/agent-skills --skill toolchain-health
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: toolchain-health
Source: https://github.com/stars-end/agent-skills/tree/main/toolchain-health
Command: npx skills add https://github.com/stars-end/agent-skills --skill toolchain-health

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires Git CLI, mise, Poetry, and includes references (resource) components.

What problem does it solve?

Mismatched Python versions across different tools (mise, Poetry, pyproject.toml) lead to environment errors, dependency conflicts, and build failures, wasting developer time. This Skill ensures your Python setup is always coherent.

Core Features & Use Cases

  • Python Version Validation: Checks and reports Python versions configured in .mise.toml, pyproject.toml, and the active Poetry environment, highlighting any discrepancies.
  • Policy Enforcement: Guides you to align your Python toolchain according to canonical best practices, ensuring consistent and reproducible development environments.
  • Error Prevention: Helps prevent common Poetry errors related to Python version constraints and environment mismatches, saving you from debugging cryptic build failures.
  • Use Case: You've updated your Python version in .mise.toml and now Poetry is complaining. Use this Skill to diagnose the mismatch and get clear instructions on how to update your pyproject.toml and Poetry environment to match.

Quick Start

Use the toolchain-health skill to check the Python toolchain alignment in this repository.

Frequently Asked Questions about toolchain-health

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix Python version mismatches between mise, Poetry, and pyproject.toml?

Python version mismatches occur when mise, Poetry, and pyproject.toml specify incompatible versions. Diagnose alignment by checking all three sources, then enforce .mise.toml as the version source of truth, update pyproject.toml to a compatible range, and ensure Poetry uses the mise-managed interpreter.

Why is Poetry failing with Python version constraint errors?

Poetry version solver errors typically stem from pyproject.toml constraints that don't match the active Python interpreter or mise configuration. Validate cross-layer consistency between .mise.toml, pyproject.toml, and Poetry's environment to resolve constraint conflicts and prevent build failures.

When should I update Python versions across mise, Poetry, and pyproject.toml?

Update Python versions when upgrading .mise.toml, editing pyproject.toml, or resolving Poetry dependency conflicts. A coherent toolchain requires synchronizing all three layers in a stepwise sequence to avoid environment errors and ensure reproducible development setups.

Can I use Poetry with a Python version managed by mise?

Yes, Poetry works with mise-managed Python by configuring Poetry to use the interpreter installed by mise. The toolchain-health approach enforces that Poetry environment points to the correct mise interpreter and validates compatibility between pyproject.toml and .mise.toml version specs.

What's the best way to keep Python toolchain configuration consistent?

Enforce .mise.toml as the canonical Python version source, require a compatible version range in pyproject.toml, and ensure Poetry env uses the mise interpreter. This prevents dependency conflicts, build failures, and environment drift across your development setup.

Do mise and Poetry need to declare the same exact Python version?

No, they don't require identical versions. .mise.toml pins the exact version, while pyproject.toml specifies a compatible range that includes it. This pattern maintains consistency while allowing Poetry flexibility for dependency resolution.