Adapted from https://github.com/obra/superpowers under the MIT license.
