# python-code > Apply this skill when generating Python code - Author: Jon Craton - Repository: jncraton/skills - Version: 20260122152023 - Stars: 0 - Forks: 0 - Last Updated: 2026-02-06 - Source: https://github.com/jncraton/skills - Web: https://mule.run/skillshub/@@jncraton/skills~python-code:20260122152023 --- --- name: python-code description: Apply this skill when generating Python code --- # Python Code ## When to use this skill Apply this skill when generating Python code ## Style Python code should generally follow the style conventions of the `black` package. ## Comments Comments should never be added to generated code. Docstrings may be generated, but only for the purpose of adding working doctests. ## Functions Favor pure functions whenever possible. Structure functions so that they can be demonstrated and tested with doctests. ## Tests Only use doctests for testing. Do not add unit tests of other forms unless explicitly asked to do so.