GitHub Copilot Demos

Goal

This repository contains demo examples for GitHub Copilot courses. The demos are designed to showcase GitHub Copilot’s key capabilities during live training sessions, covering topics such as code completions, chat-based refactoring, test generation, documentation, prompt engineering, bug detection, and code explanation.


Project Structure

The repository is organized by programming language. Each language folder contains a sequence of demos targeting specific Copilot features. Every language track includes GitHub Copilot CLI and GitHub Copilot desktop app demos.

GitHubCopilot-Demos/
├── CSharp/       # C# demo examples
├── Java/         # Java demo examples
├── Javascript/   # JavaScript demo examples
└── Python/       # Python demo examples
Folder Language README
CSharp/ C# (.NET 8+) CSharp/README.md
Java/ Java (JDK 17+) Java/README.md
Javascript/ JavaScript (Node.js 18+) Javascript/README.md
Python/ Python 3.12+ Python/README.md

Each sub-folder contains the following demos:

# Folder Copilot Feature
1 01-code-completions Inline suggestions
2 02-chat-and-refactoring Chat & Inline Chat refactoring
3 03-test-generation Test generation
4 04-documentation Doc & README generation
5 05-prompt-engineering Prompt quality comparison
6 06-bug-detection Security review & bug finding
7 07-explain-and-debug Code explanation & optimization
8 08-plan-mode Plan mode — research & outline
9 09-copilot-instructions Copilot Instructions — project-wide coding standards
10 10-copilot-agent Custom Copilot Agent — reusable chat participant
11 11-copilot-prompt Copilot Prompt File — on-demand invocable prompt
12 12-copilot-skill Copilot Skill — packaged, discoverable, reusable capability
13 13-copilot-hooks Copilot Hooks — lifecycle automation, security guardrails & audit logging
14 14-issue-to-pr Issue to Pull Request — fix a bug end-to-end (issue → Copilot fix → PR → merge)
15 15-github-agent-task Run an Agent Task on GitHub.com — delegate work to the coding agent from the browser
16 16-multi-agent-pr-review Multi-Agent PR Quality Gate — a coordinator agent delegates to specialist sub-agents to review a Pull Request
17 17-github-copilot-cli GitHub Copilot CLI — plan, implement, test, and review from the terminal
18 18-github-copilot-app GitHub Copilot App — coordinate parallel coding sessions from the desktop

Documentation website

GitHub Pages renders these README files with the Just the Docs theme, pinned in _config.yml. The website includes language navigation, full-text search, and a Copia button on every code or plain-text example block. Copying preserves the block’s whitespace and line breaks and reports success or failure; clipboard access requires HTTPS (or localhost) and browser permission.

To preview the site locally with the same dependencies as GitHub Pages:

bundle install
bundle exec jekyll serve --baseurl /GitHubCopilot-Demos

Open http://localhost:4000/GitHubCopilot-Demos/. The deployment workflow remains in .github/workflows/pages.yml; no separate documentation copies are needed.