Skip to content
TrustedSkillsbeta
Back to all skills

Pytest Type Safety

Listed
dawiddutoit·vlatest·testing

This skill uses MyPy to enforce type hints in your Pytest tests, catching errors early and improving code reliability.

Install on your platform

Showing Claude Code. One command installs this skill into any of the agents below.

  1. 1

    Run this in your project

    terminal
    $ npx skills add dawiddutoit/custom-claude --skill pytest-type-safety -a claude-code
  2. Uses the open-source skills CLI and needs Node.js. Add -g to install it for your user instead of this project.

What we know about this skill

Publisher

dawiddutoit

Taken from the source listing. We haven't verified who controls this account.

Install target

Live repository

Not pinned. Installing fetches whatever the repository holds at the time you run the command.

No human has reviewed this code. The checks below are a static scan of the files at one commit — nobody has run this skill or judged whether it works. A skill runs with whatever access you give your agent, so read the source before you install it.

Automated safety checks

scanned

This skill failed 2 of 6 checks. A failure is not proof of bad intent; it means something in the code needs a human to look at it before you run it.

  • No undeclared network calls: failed

    Contacts 1 host that is neither well-known infrastructure nor declared in the skill's frontmatter: astral.sh.

    Every host the skill dials — from its scripts, its config endpoints or the commands it tells the agent to run — is either well-known package and API infrastructure or declared in its own frontmatter. Links in documentation are not counted.

    Hosts contacted

    astral.shundeclared

    What it found

    • skills/pytest-type-safety/references/type-safety-patterns.md:133contacts astral.sh
      run: curl -LsSf https://astral.sh/uv/install.sh | sh
  • No pipe-to-shell installers: failed

    Runs code fetched at install time in 1 place.

    No `curl … | sh` pattern, in the code or in the instructions, that runs code fetched at run time.

    What it found

    • skills/pytest-type-safety/references/type-safety-patterns.md:133remote script piped into a shell
      run: curl -LsSf https://astral.sh/uv/install.sh | sh
  • Declares what it does: passed

    SKILL.md parses and declares a name and a description.

    SKILL.md exists, its frontmatter parses, and it declares a name and a description.

  • No obfuscated payloads: passed

    No encoded or obfuscated payloads.

    No base64, hex or compressed blob is decoded and then executed, and no encoded shell commands.

  • No credential access: passed

    Reads no keys, tokens, keychains or credential files.

    Neither the code nor the SKILL.md instructions read SSH keys, cloud credentials, keychains, token stores, browser cookie databases or dotfiles that hold secrets.

  • Pinned to a commit: passed

    Scanned dawiddutoit/custom-claude at 17b45a90a6.

    The exact upstream commit SHA that was scanned is recorded, so the result refers to specific bytes.

Scanned
2 files, 251 lines
This is a static scan, not a review. It reads the skill's files; it does not run them, and it cannot tell you whether the skill is any good or whether the code does what its description says. A skill runs with whatever access you give your agent.
What each check looks for →

About this skill

What it does

The pytest-type-safety skill enhances Python testing with static type checking. It integrates seamlessly into existing Pytest test suites, enforcing type annotations and catching potential errors before runtime. This helps improve code reliability and maintainability by proactively identifying type-related issues during the development process.

When to use it

  • Ensuring Code Quality: Use this skill when you want to guarantee that your Python codebase adheres to strict type guidelines.
  • Preventing Runtime Errors: Integrate it into test suites to catch type errors early, preventing unexpected crashes in production.
  • Refactoring Existing Projects: Employ pytest-type-safety during refactoring efforts to maintain type safety as you evolve your code.
  • New Project Initialization: Incorporate this skill when setting up new Python projects for increased reliability from the start.

Key capabilities

  • Static type checking within Pytest tests
  • Enforcement of type annotations
  • Early detection of type-related errors
  • Seamless integration with existing Pytest workflows

Example prompts

  • "Run my test suite and check for type safety violations."
  • "Execute the test_my_module.py file using pytest, ensuring all types are correct."
  • "Perform a type check on my project's codebase during testing."

Tips & gotchas

  • Requires Python 3.6 or higher and Pytest to be installed.
  • Ensure your code includes type annotations for optimal effectiveness.