Find your next open-source project

Search by name, purpose, or keyword, or paste a GitHub URL. Start with / to search agent skills (e.g. /pdf)
All skills

generate-python-runnability-test

Generate a minimal tests/test_runnability.py that imports the recipe's agent module and asserts root_agent is not None.

When to use it

You have a Python recipe with agent.py but no tests/test_runnability.py, and python-validate-recipe.yml fails on the missing required file.

For example

You say

Use generate-python-runnability-test on core/python/cross-session-memory. Dry-run first so I can see the test before it's written.

You get
  • tests/test_runnability.py
  • Dry-run report table
  • Generated test preview

How it works

  • Parses agent.py and ancestor __init__.py files with ast to decide which import-time side effects to mock and which env vars to set.
  • Checks whether the recipe root is importable and writes tests/conftest.py with a path shim only when needed.
  • Never overwrites an existing tests/test_runnability.py without --overwrite, and never overwrites an existing tests/conftest.py.

Before installing

This skill includes 3 scripts your assistant may run on your computer.