pytensor-workflows
Installation
SKILL.md
PyTensor workflows
Express the intended calculation, then verify its values, shapes, derivatives, and state transitions.
Establish the contract
- Use the project's existing environment. Check installed PyTensor and relevant backend versions before choosing an API; development builds may differ.
- State input/output shapes, axis meanings, dtypes, support, and mutable or random state. Named axes are not automatically coordinate-indexed arrays.
- Choose the simplest supported graph operation. Prefer existing tensor primitives to an unnecessary custom Op. Preserve the scientific calculation when diagnosing compiler or backend limitations.
- Check version-appropriate official documentation and installed source when a signature or backend limitation is uncertain.
- Define an independent numerical or analytic reference and meaningful failure cases before executing the example.