GitHub Copilot

Q) How to use spec-kit templates from copilot-cli?

It is not possible to run the spec-kit commands such as /speckit.specify directly from the github CLI - so the workaround is to attach another wrapper around the cmd.

First of all, we need to initialize specify using:

specify init . --integration copilot

Afterwards, within github cli, we can invoke speckit prompts with the following text block:

Follow instructions in speckit.<SPEC_KIT_PHASE>.prompt.md <PROMPT_IF_NEEDED>

# Example
Follow instructions in speckit.plan.prompt.md "Build an application that can help me organize my photos in separate photo albums. Albums are grouped by date and can be re-organized by dragging and dropping on the main page. Albums are never in other nested albums. Within each album, photos are previewed in a tile-like interface."