To generate the spec from the official document, follow these steps. Make sure that cog is installed (pipx install cogapp) before continuing.