More screenshots

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+21 more

    Python Pyproject Check

    1

    A token pasted into an index or git URL is readable by everyone with the repository, and a .python-version of 3.9 is past its end of life.

    $5

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Python Pyproject Check

    Python Pyproject Check

    Example session with this skill installed

    Check this project with python-pyproject-check.

    • Read your context and instructions
    • Compiled the python pyproject check

    $ python3 scripts/check_pyproject.py examples/risky
    BLOCK pyproject.toml:22 P04 INDEX_MERGED_WITH_PYPI
    index-strategy = "unsafe-best-match"
    Why: An extra index that is not PyPI is searched together with PyPI for every package not pinned to it, and PyPI can win: uv index-strategy unsafe-best-match or unsafe-first-match with an index that is not explicit, PDM sources without include_packages (or with respect-source-order but PyPI first), Poetry supplemental sources or several primary sources, PIP_EXTRA_INDEX_URL, Pipenv install_search_all_sources. Pinning a few packages to the index does not cover their private dependencies or the next private package. Anyone can publish such a name on PyPI with a higher version and get it installed instead (dependency confusion).
    Safer: Pin packages to their index: uv explicit = true with [tool.uv.sources] name = { index = "acme" } and the default first-index strategy, PDM include_packages, Poetry priority = "explicit" with source = "acme", Pipenv index = "acme". Or make the private index the only one (uv default = true, a PDM source named pypi, one Poetry primary source) and let it proxy PyPI.

    BLOCK pyproject.toml:23 P03 TLS_VERIFICATION_OFF
    BLOCK pyproject.toml:31 P01 PACKAGE_URL_OVER_HTTP
    BLOCK pyproject.toml:35 P02 CREDENTIAL_IN_PROJECT_CONFIG
    BLOCK worker/poetry.toml:7 P02 CREDENTIAL_IN_PROJECT_CONFIG
    BLOCK worker/poetry.toml:10 P03 TLS_VERIFICATION_OFF
    REVIEW .python-version:1 P14 PYTHON_PIN_OUTSIDE_REQUIRES_PYTHON
    REVIEW .python-version:1 P15 PYTHON_PIN_END_OF_LIFE
    REVIEW pyproject.toml:3 P13 LOCK_FILE_MISSING_OR_IGNORED
    REVIEW pyproject.toml:8 P16 REQUIRES_PYTHON_UPPER_CAP
    REVIEW pyproject.toml:12 P12 GIT_DEPENDENCY_NOT_PINNED
    REVIEW pyproject.toml:18 P17 DEPRECATED_TOOL_SETTING
    REVIEW worker/pyproject.toml:2 P13 LOCK_FILE_MISSING_OR_IGNORED
    REVIEW worker/pyproject.toml:13 P17 DEPRECATED_TOOL_SETTING
    REVIEW worker/pyproject.toml:18 P11 VENDOR_INDEX_MERGED_WITH_PYPI

    (Each finding also has Why and Safer lines, as in the first one.)
    Verdict: BLOCK. Checked 4 files, 4 with Python project config content.
    This is a static check of file text. NOT FLAGGED is not a guarantee.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    One line, index-strategy = "unsafe-best-match", next to a private index in pyproject.toml lets anyone who publishes your private package's name on PyPI with a higher version get their code installed on your machines and CI (dependency confusion). A token pasted into an index or git URL is readable by everyone with the repository, and a .python-version of 3.9 is past its end of life. This skill finds those and the other Python project config mistakes below, and tells you how to fix each one.

    Your agent runs a scanner on pyproject.toml ([project], [dependency-groups], [build-system], [tool.uv], [tool.poetry], [tool.pdm], [tool.hatch]), uv.toml, poetry.toml, pdm.toml, hatch.toml, Pipfile, the lock files uv.lock, poetry.lock, pdm.lock, pylock.toml and Pipfile.lock, and .python-version. It parses TOML with line numbers and follows each tool's own index rules: uv's first-index strategy and explicit indexes, Poetry source priorities and source pins, PDM include_packages and respect-source-order, Pipenv index pins. It treats ${VAR} and {env:...} values as references, knows PyPI mirrors and public vendor indexes such as PyTorch, and looks for lock files next to each pyproject.toml and in a parent uv workspace. It never runs pip, uv, Poetry, PDM or Hatch and never contacts an index. It returns BLOCK, REVIEW, or NOT FLAGGED, with the file, line, reason, and a safer approach. Secrets are never printed.

    What it checks

    BLOCK

    • P01: package indexes, find-links, sources, dependency URLs, index env-vars and lock-file URLs over plain http:// (a host on this machine is fine)
    • P02: passwords and tokens in index, source and git URLs (also a token used as the URL's user name) or under credential keys (PDM password, Poetry http-basic and pypi-token in poetry.toml, secret-named Hatch env-vars and PDM script env)
    • P03: TLS verification turned off: uv allow-insecure-host, verify_ssl = false (PDM, pdm.toml, Pipfile), Poetry certificates cert = false, PIP_TRUSTED_HOST, UV_INSECURE_HOST
    • P04: an index that is not PyPI searched together with PyPI for unpinned packages: uv unsafe-best-match or unsafe-first-match with an index that is not explicit, PDM sources without include_packages, Poetry supplemental or several primary sources, PIP_EXTRA_INDEX_URL, Pipenv install_search_all_sources (pinning a few packages does not clear it)

    REVIEW

    • P11: the same merged setups with a public vendor index (PyTorch, NVIDIA, PyG)
    • P12: git dependencies on a branch or with no ref (branch = "main", @main, @feature-1.2, Pipfile ref = "main")
    • P13: projects with dependencies managed by uv, Poetry or PDM applications and locked Hatch environments with no lock file, or a lock file ignored by .gitignore (a requirements file compiled by uv or pip-compile counts as a lock)
    • P14: a .python-version that requires-python does not allow
    • P15: a .python-version or Pipfile python_version past its end of life (3.9 ended 2025-10-31, 3.10 on 2026-10-01)
    • P16: requires-python capped below Python 4 in a package (<3.13, ==3.11.*, Poetry ~3.10)
    • P17: deprecated or removed settings: uv tool.uv.dev-dependencies and top-level index-url / extra-index-url, Poetry [tool.poetry.dev-dependencies] and the default / secondary source priorities

    What's included

    • The scanner (Python 3.9+, standard library only)
    • A rules guide with the reason, safer approach and official source for each rule
    • A risky and a safe example (a uv API project and a Poetry worker), and the real report the scanner produces on the risky one

    Limits It reads each file as written. User-level config (~/.config/uv/uv.toml, Poetry's config.toml and auth.toml, pip.conf), environment variables and CI settings are not read, and requirements.txt, setup.py and setup.cfg are not checked. An index strategy and the indexes it applies to are judged inside one file. Whether an index may hold private package names is decided from its host: PyPI, known PyPI mirrors and known public vendor indexes are recognized, and any other host counts as possibly private, so PDM's own docs example of a private source without include_packages is reported on purpose (PDM considers all sources equal by default). Lock-file contents are not compared with pyproject.toml. NOT FLAGGED is not a guarantee.

    Static check of config text. User-level and CI settings, environment variables, requirements.txt and setup.py are not read, and the packages behind each index are not looked up. NOT FLAGGED is not a guarantee.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before any payment.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 4 days ago

    Requires

    Python

    Permissions

    Terminal / Shell
    Read Files

    Runs one local Python script in the terminal. It reads your project's files, writes nothing, and makes no network calls. The example projects include a clearly fake, inert token and password (NOTREAL-EXAMPLE, not-a-real-...) and hosts under acme.example that do not exist, for the scanner to find. Nothing in them is run.

    Listed4 days ago

    What's inside

    Frequently Asked Questions

    No. The script reads local files only and makes no network calls.

    No. It only reports. Your agent changes files only if you ask it to.

    Any agent that supports SKILL.md skills and can run a terminal command, such as Claude Code. It needs Python 3.9 or newer and nothing else.

    No. It reads pyproject.toml, uv.toml, poetry.toml, Pipfile and lock files as text. It never installs a package or contacts an index, and credentials it finds are masked.

    BLOCK: fix it before you ship. REVIEW: check it before release. NOT FLAGGED: no rule matched. It is a static check, so NOT FLAGGED is not a guarantee.

    New in Security