This tutorial shows a fast, demo-friendly workflow: bootstrap a project with ready-made Copilot assets, build a terminal Flappy Bird clone in Go, run quality checks, and launch the game from a Neovim terminal.
It assumes you already finished tutorial-flask.md and can open the Copilot chat UI in Neovim.
In this walkthrough, you will:
- bootstrap a fresh project with a script
- use custom agents to define requirements and implement the game
- use custom skills to run
go vetandgo test - run the game from a script inside Neovim
The starter pack for this tutorial lives under:
doc/tutorial-agents/flappy-bird-go/
bash ~/.local/share/nvim/lazy/copilot-agent.nvim/doc/tutorial-agents/flappy-bird-go/bootstrap.sh ~/flappy-bird-go
cd ~/flappy-bird-go
nvim .If your plugin path is different, adjust the source path to this repository's doc/tutorial-agents/flappy-bird-go/bootstrap.sh.
The script copies:
.github/copilot-instructions.md.github/agents/.github/skills/prompts/scripts/
Inside Neovim:
:CopilotAgentChatPress <C-t> until the statusline shows agent.
If the input buffer is not visible, press i or <Enter> in the chat window first.
:CopilotAgentNewSessionThis ensures Copilot discovers the newly copied repo-local agents and skills.
Run /agent and select Game Requirements Writer, then send this message:
Follow @prompts/01-requirements.md and create docs/requirements.md.
Game Requirements Writer
Follow @prompts/01-requirements.md and create docs/requirements.md.
Expected output: a docs/requirements.md spec with controls, physics, collisions, scoring, game states, and acceptance criteria.
Run /agent and select Terminal Flappy Builder, then send:
Follow @prompts/02-build-game.md and implement the game now.
Terminal Flappy Builder
Follow @prompts/02-build-game.md and implement the game now.
Expected output:
- Go game implementation files
- a playable terminal loop
- simple tests for core game behavior
Run /agent and select Go QA and Reliability Engineer, then send:
Follow @prompts/03-quality-pass.md and run the requested quality pass.
That prompt asks the agent to use:
- skill
go-vet-check - skill
go-test-check
This gives a clean "requirements -> implementation -> vet -> test" workflow for demos.
In Neovim:
:terminal ./scripts/run-game.shThe run script executes go run . from the project root.
Suggested controls in your game prompt:
Spaceorkto flaprto restart after game overqto quit
- open chat + show
agentmode - send
Follow @prompts/02-build-game.md and implement the game now.(speed up this section in video) - show
go vetandgo testpass viaFollow @prompts/03-quality-pass.md and run the requested quality pass. - run
:terminal ./scripts/run-game.shand show gameplay
This keeps the promo focused on an end-to-end Copilot workflow instead of raw code generation.