This repository contains materials for a 3-hour workshop. Participants will use Visual Studio Code, .NET 9, and GitHub Copilot to experience how AI can support application development with modern practices including Clean Architecture and OpenTelemetry observability.
Before attending this workshop, participants should have:
- GitHub Copilot: Active subscription and extension installed in VS Code
- .NET 9 SDK: Installed and verified with
dotnet --version
- Visual Studio Code: Latest version with C# Dev Kit extension
- Git: Basic familiarity with git commands
- C# Experience: Comfortable with basic C# syntax and concepts
- GitHub Account: For cloning repositories and accessing Copilot
Run these commands to verify your setup:
dotnet --version # Should show 9.x.x
git --version # Any recent version
code --version # VS Code version
Participants: Please complete the Pre-Workshop Environment Checklist before attending the workshop to ensure your environment is fully configured. This will allow us to maximize hands-on learning time.
By the end of this workshop, participants will be able to:
- Leverage repository-level Copilot Instructions (
.github/copilot-instructions.md
) for team-wide consistent code generation - Transform requirements into backlog items, acceptance criteria, and working code using AI assistance
- Generate and refactor .NET code following Clean Architecture and DDD principles
- Create comprehensive tests and documentation with AI support
- Apply conventional commits and generate professional PR descriptions
- Identify anti-patterns and best practices when working with AI coding assistants
- Goals and environment check
- Clone starter repo and checkout
starter-projects
branch - Copilot instructions automatically configured via
.github/copilot-instructions.md
- Inline completions, Chat panel, and Inline Chat
- Slash commands:
/explain
,/fix
,/tests
,/doc
,/refactor
- Chat participants:
@workspace
,@vscode
,@terminal
- Context variables:
#file
,#selection
,#editor
- Quick hands-on practice with each feature
- Understand repository-level Copilot Instructions (
.github/copilot-instructions.md
) - Emphasis on TDD workflow: Write tests before implementation
- Lab 1: Create NotificationService following Red-Green-Refactor cycle (interface → tests → implementation)
- Turn requirements into backlog items, tests, and code
- Lab 2: Backlog items → acceptance criteria → TaskService.AddTask
- Scaffold APIs, refactor legacy methods with slash commands
- Lab 3: Minimal API with
@workspace
, refactor with/refactor
, generate tests with/tests
- Generate tests, docs, commit/PR messages using Copilot features
- Lab 4:
/tests
for unit tests,/doc
for documentation, conventional commits
- Lessons learned
- Anti-patterns to avoid
- Next steps and Q&A
- Copilot Instructions: Repository-level Copilot configuration (automatically applied)
- Facilitator's Guide: Detailed timing and talking points for instructors
- Lab Walkthroughs: Step-by-step guides for all four labs with expected outputs and troubleshooting
- Starter Projects README: Complete architecture documentation
Comprehensive walkthroughs available in docs/labs/
:
- Lab 1: TDD with GitHub Copilot (30 min) - Red-Green-Refactor cycle with NotificationService
- Lab 2: Requirements to Code (45 min) - Transform user stories into working features
- Lab 3: Code Generation & Refactoring (45 min) - Generate CRUD APIs and modernize legacy code
- Lab 4: Testing, Documentation & Workflow (15 min) - Complete the development lifecycle
Each lab includes:
- ✅ Clear learning objectives and prerequisites
- ✅ Step-by-step instructions with prompts
- ✅ Expected code outputs and examples
- ✅ Troubleshooting guidance
- ✅ Extension exercises for advanced participants
- ✅ Success criteria checklist
Available in the starter-projects
branch:
- Complete Solution: Clean Architecture with Domain/Application/Infrastructure/API layers
- Console Application: .NET 9 console app with DI and logging for initial exercises
- Web API: Minimal API with extension methods and OpenTelemetry integration
- Legacy Code Sample:
LegacyTaskProcessor
for refactoring exercises - Test Infrastructure: xUnit test stubs with FakeItEasy ready for implementation
Stuck or need examples? A complete reference implementation with all labs solved is available in the test-lab-walkthrough
branch:
git checkout test-lab-walkthrough
This branch contains:
- ✅ All 4 labs fully implemented
- ✅ NotificationService with complete test suite (Lab 1)
- ✅ CreateTaskCommandHandler with CQRS pattern (Lab 2)
- ✅ Full CRUD API endpoints and refactored legacy code (Lab 3)
- ✅ Comprehensive unit and integration tests (Lab 4)
Use this branch to:
- Compare your solution with a working implementation
- Get unstuck if you encounter issues
- See best practices in action
- Review after the workshop for continued learning
-
Clone this repository:
git clone https://github.com/centricconsulting/ai-coding-workshop.git cd ai-coding-workshop
-
Checkout the starter projects branch:
git checkout starter-projects
-
Open in VS Code:
code .
That's it! Copilot instructions are automatically configured via
.github/copilot-instructions.md
- no manual setup needed. -
Verify your environment:
dotnet --version # Should show 8.x.x or later dotnet build # Verify solution builds dotnet test # Verify tests run
-
Ready to start! Follow along with your facilitator or work through the labs independently