Skip to content

centricconsulting/ai-coding-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

161 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Workshop: Using AI for Application Development with GitHub Copilot (Bilingual Edition)

Overview

Transform the way you build software with AI-powered development! This comprehensive workshop teaches developers how to leverage GitHub Copilot and modern AI coding assistants to accelerate application development while maintaining high code quality standards.

Choose Your Technology Stack: This workshop supports both πŸ”· .NET and 🟩 Spring Boot implementations, allowing participants to learn AI-assisted development in their preferred ecosystem.

This workshop is split into two parts:

Part 1: Fundamentals (3 hours)

Learn AI assistance across the entire development lifecycleβ€”from requirements gathering to code generation, testing, and documentation. Using either .NET 9 or Spring Boot 3.x, Visual Studio Code, and GitHub Copilot, you'll experience firsthand how AI can amplify developer productivity while following industry best practices like Clean Architecture, Domain-Driven Design, and Test-Driven Development.

Part 2: Advanced GitHub Copilot (3 hours)

Master advanced Copilot features including interaction models (Ask/Edit/Agent), the Skills system, custom agents, and workflow automation. Learn the complete customization hierarchy (Prompts β†’ Instructions β†’ Skills β†’ Agents), discover capabilities with slash commands, and design production-ready agents that encode team knowledge and standardize AI-assisted development workflows.

Full workshop duration: 6 hours (can be delivered as separate sessions or combined)

What makes this workshop unique:

  • Bilingual support: Choose .NET or Spring Bootβ€”same concepts, your technology stack
  • Practical, hands-on labs with real-world scenarios, not just demos
  • Complete customization hierarchy: Instructions, Skills, and Agents working together
  • Enterprise-grade patterns including Clean Architecture and DDD
  • TDD-first approach with AI generating tests before implementation
  • Pre-configured dev environment via VS Code Dev Containersβ€”no setup hassles (3 container options)
  • Repository-level Copilot instructions with context-aware loading per technology stack
  • Skills exploration with working examples (test-data-generator) showcasing domain knowledge without tool access
  • Production-ready agent design including handoffs, invocation control, and governance patterns
  • Modern stacks: .NET 9 with Minimal APIs and OpenTelemetry OR Spring Boot 3.x with actuators
  • Enterprise Java modernization scenarios: Includes Mule ESB β†’ Spring Boot refactoring examples

Whether you're new to AI-assisted development or looking to level up your Copilot skills, this workshop provides the practical experience and best practices you need to integrate AI into your daily workflow effectively.

This repository contains all workshop materials including lab guides, starter code, reference implementations, and facilitator resources.

VS Code & Devcontainer Setup

For the best experience, use the provided Devcontainer and recommended VS Code settings:

  • Devcontainer Options (choose based on your stack):
    • πŸ”· .NET Container (.devcontainer/dotnet/): .NET 9 SDK, C# Dev Kit, xUnit extensions
    • 🟩 Spring Boot Container (.devcontainer/springboot/): Java 21 JDK, Spring Boot extensions, Maven
    • πŸ”·πŸŸ© Bilingual Container (.devcontainer/bilingual/): Both .NET and Java environments (for facilitators or exploring both stacks)
  • Copilot Custom Instructions: This repo auto-applies Copilot instructions based on file context:
    • πŸ”· .NET files (**/*.cs): Loads csharp.instructions.md + dotnet.instructions.md
    • 🟩 Spring Boot files (src-springboot/**): Loads springboot.instructions.md
    • Instructions automatically load from .github/instructions/ - no manual setup needed!

Prerequisites

Using the Dev Container (Recommended)

For a fully pre-configured development environment, you can use one of the included Dev Containers. This is the fastest way to get started and ensures all required tools and extensions are installed.

How to use:

  1. Open this repository in VS Code.
  2. Open the Command Palette (Cmd+Shift+P or Ctrl+Shift+P).
  3. Select: Dev Containers: Reopen in Container
  4. Choose your stack:
    • πŸ”· .NET Developers: Select .devcontainer/dotnet/devcontainer.json
    • 🟩 Spring Boot Developers: Select .devcontainer/springboot/devcontainer.json
    • πŸ”·πŸŸ© Both Stacks (facilitators/explorers): Select .devcontainer/bilingual/devcontainer.json
  5. VS Code will build and open the project in a container with all tools, SDKs, and extensions.

This is optional but highly recommended, especially if you want to avoid manual environment setup or ensure consistency across all participants.

Before attending this workshop, participants should have:

Universal Prerequisites:

  • GitHub Copilot: Active subscription and extension installed in VS Code
  • Visual Studio Code: Latest version
  • Git: Basic familiarity with git commands
  • GitHub Account: For cloning repositories and accessing Copilot

πŸ”· .NET Track Prerequisites:

  • .NET 9 SDK: Installed and verified with dotnet --version
  • C# Dev Kit extension for VS Code
  • C# Experience: Comfortable with basic C# syntax and concepts

🟩 Spring Boot Track Prerequisites:

  • Java 21 JDK: Installed and verified with java -version
  • Maven or Gradle: For building Spring Boot projects
  • Spring Boot extension pack for VS Code
  • Java Experience: Comfortable with basic Java syntax and Spring Framework concepts

Environment Check

Run these commands to verify your setup:

πŸ”· .NET Track:

dotnet --version          # Should show 9.x.x
git --version            # Any recent version
code --version           # VS Code version

🟩 Spring Boot Track:

java -version            # Should show Java 21
mvn --version            # Maven version (or gradle --version)
git --version            # Any recent version
code --version           # VS Code version

Pre-Workshop Preparation

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.


Learning Objectives

Part 1: Fundamentals

By the end of Part 1, participants will be able to:

  • Leverage context-aware Copilot Instructions (.github/instructions/) 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

Part 2: Advanced GitHub Copilot

By the end of Part 2, participants will be able to:

  • Understand and use Ask, Edit, and Agent interaction models appropriately
  • Navigate the customization hierarchy: Prompts, Instructions, Skills, and Agents
  • Discover capabilities using slash commands (/agents, /skills, /help, etc.)
  • Leverage Skills for domain knowledge and template generation without tool access
  • Apply custom Copilot agents to specialized workflows (architecture review, backlog generation, test strategy)
  • Design production-ready agents with clear roles, constraints, structured outputs, and handoffs
  • Iterate on agent instructions to improve reliability and consistency
  • Establish governance for team-wide agent and skill reuse and maintenance

Schedule

Part 1: Fundamentals (3 hours)

0. Kickoff & Setup (15 min)

  • Goals and environment check
  • Clone the repository and create your own branch from main before starting the labs
  • Copilot instructions automatically load based on file context (no manual configuration needed)

0.5. GitHub Copilot Features Tour (15 min)

  • Inline completions, Chat panel, and Inline Chat
  • Slash commands: /explain, /fix, /tests, /doc, /refactor, /help, /agents, /skills, /init
  • Chat participants: @workspace, @vscode, @terminal
  • Context variables: #file, #selection, #editor
  • Agent/Skill discovery: Using /agents and /skills to explore capabilities
  • Quick hands-on practice with each feature

1. Controlling Context with Copilot Instructions (30 min)

  • Understand context-aware Copilot Instructions (.github/instructions/ with applyTo patterns)
  • Emphasis on TDD workflow: Write tests before implementation
  • Lab 1: Create NotificationService following Red-Green-Refactor cycle (interface β†’ tests β†’ implementation)

2. Requirements β†’ Backlog β†’ Code (45 min)

  • Turn requirements into backlog items, tests, and code
  • Lab 2: Backlog items β†’ acceptance criteria β†’ TaskService.AddTask

3. Code Generation & Refactoring (45 min)

Part 2: Advanced GitHub Copilot (3 hours)

See Part 2 Facilitator's Guide for detailed schedule.

0. Kickoff & Context Reset (10 min)

  • Part 1 recap and Part 2 introduction

1. Copilot Interaction Models (25 min)

  • Ask, Edit, and Agent modes
  • Slash commands for discovery: /help, /agents, /skills
  • Lab 5: Compare interaction models with hands-on exercises

1.5. Skills & Customization Hierarchy (30 min) ⭐ NEW

  • Four customization types: Prompts β†’ Instructions β†’ Skills β†’ Agents
  • Skills system: domain knowledge without tool access
  • Lab 06: Explore test-data-generator skill, decision framework exercises

2. Custom Agents Introduction (25 min)

  • What are custom agents and how they differ from skills
  • Lab 6: Explore Architecture Reviewer, Backlog Generator, Test Strategist

3. Workflow Agents in Action (30 min)

  • Lab 7: Apply agents to backlog, architecture review, and test strategy workflows

Break (10 min)

4. Designing Effective Agents (30 min)

  • Agent design principles and components
  • Advanced agent properties: user-invocable, disable-model-invocation, handoffs
  • Lab 8: Analyze agent instructions and iterate for improvement

5. Capstone: Build Your Own Agent (35 min)

  • Lab 9: Design, build, test, and document a production-ready agent
  • Optional extension: Add complementary skill to agent

6. Wrap-Up & Governance (10 min)

  • Key takeaways, governance, and next steps

  • Scaffold APIs, refactor legacy methods with slash commands

  • Lab 3: Minimal API with @workspace, refactor with /refactor, generate tests with /tests

4. Testing, Documentation, Workflow (15 min)

  • Generate tests, docs, commit/PR messages using Copilot features
  • Lab 4: /tests for unit tests, /doc for documentation, conventional commits

5. Wrap-Up & Discussion (15 min)

  • Lessons learned
  • Anti-patterns to avoid
  • Next steps and Q&A

Workshop Materials

Documentation

Presentation Decks

NEW: Modular Structure - Presentations now split into standalone modules for flexible workshop delivery

-Modular Presentations Catalog - Complete module listing and delivery patterns

  • Part 1: 7 modules (~3 hours) - Fundamentals, TDD, requirements-to-code, refactoring

  • Part 2: 8 modules (~3 hours) - Interaction models, Skills, custom agents, agent design

  • Role-Specific: Coming soon (BA, QA, Infrastructure/DevOps)

  • How to Use Modular Presentations - Full guide for facilitators and self-paced learners

    • View in VS Code with Marp extension
    • Mix & match modules for custom workshops (lunch & learns, role-specific, fast-track)
    • Export to PDF/HTML: npx @marp-team/marp-cli docs/presentations/modules/part1/*.md --pdf

Quick Links:

Lab Guides

Part 1: Fundamentals (Labs 1-4)

Part 2: Advanced GitHub Copilot (Labs 5-10)

Note: Labs 5-10 are mostly stack-agnostic - they focus on agent concepts, workflows, and customization patterns that apply across all technology stacks.

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

Starter Solution Structure

The main branch contains code for both technology stacks:

πŸ”· .NET Solution (src/ directory):

  • 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

🟩 Spring Boot Solution (src-springboot/ directory):

  • Complete Solution: Clean Architecture with domain/application/infrastructure/web layers
  • Spring Boot Application: Spring Boot 3.x with dependency injection and SLF4J logging
  • REST API: @RestController endpoints with Spring Boot Actuator
  • Legacy Code Sample: Mule ESB example code for modernization exercises
  • Test Infrastructure: JUnit 5 test stubs with Mockito ready for implementation

Shared Resources:

  • Custom Agents (.github/agents/): Architecture Reviewer, Backlog Generator, Test Strategist
  • Skills (.github/skills/): test-data-generator skill with examples
  • Copilot Instructions (.github/instructions/): Context-aware instructions for both stacks

Reference Implementation

Stuck or need examples? Complete reference implementations are available:

πŸ”· .NET Reference (test-lab-walkthrough branch):

git checkout test-lab-walkthrough

Contains:

  • All Part 1 labs fully implemented (.NET)
  • 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)

🟩 Spring Boot Reference (in development):

  • Planned branch with Spring Boot implementations of Labs 1-4
  • Check repository for updates

Use reference implementations to:

  • Compare your solution with a working implementation
  • Get unstuck if you encounter issues
  • See best practices in action for your chosen stack
  • Review after the workshop for continued learning

Getting Started

  1. Clone this repository:

    git clone https://github.com/centricconsulting/ai-coding-workshop.git
    cd ai-coding-workshop
  2. Choose your technology stack:

    • πŸ”· .NET Track: Work in src/ directory with .NET 9 projects
    • 🟩 Spring Boot Track: Work in src-springboot/ directory with Spring Boot 3.x projects
    • πŸ”·πŸŸ© Explore Both: Use bilingual devcontainer to try both ecosystems
  3. Create your own branch from main:

    git checkout main
    git pull
    git checkout -b my-workshop-branch

    Replace my-workshop-branch with your name or a unique identifier.

  4. Open in VS Code and select DevContainer:

    code .
    • When prompted, select "Reopen in Container"
    • Choose your devcontainer:
      • πŸ”· .devcontainer/dotnet/ for .NET track
      • 🟩 .devcontainer/springboot/ for Spring Boot track
      • πŸ”·πŸŸ© .devcontainer/bilingual/ for both stacks

    That's it! Copilot instructions automatically load based on which files you're editing - no manual setup needed.

  5. Verify your environment:

    πŸ”· .NET Track:

    dotnet --version    # Should show 9.x.x or later
    dotnet build        # Verify solution builds
    dotnet test         # Verify tests run

    🟩 Spring Boot Track:

    java -version       # Should show Java 21
    cd src-springboot
    mvn clean test      # Verify build and tests
  6. Ready to start! Follow along with your facilitator or work through the labs independently


Best Practices for Using Copilot, Skills & Agents

To get the most out of Copilot, Skills, and AI agents in this workshop:

  • Discover capabilities first: Use /help, /agents, and /skills slash commands to explore what's available
  • Always ask for a plan first: Use Copilot or Agent Mode to propose a step-by-step plan before making large or multi-file changes
  • Use Skills for knowledge: Invoke skills like #test-data-generator for domain expertise and templates without needing file access
  • Use Agents for workflows: Select custom agents like @plan, @architect, or @architecture-reviewer for multi-step tasks requiring tool access
  • Use the Check agent for code review: Select the Check Copilot agent from the agents dropdown in Copilot Chat to get improvement suggestions before submitting a PR
  • Leverage chat participants: Use @workspace for codebase questions, @terminal for CLI help, and @vscode for editor tips
  • Be explicit in prompts: Reference files, selections, or context variables (e.g., #file, #selection) for targeted results
  • Review and iterate: Treat Copilot suggestions as a starting pointβ€”review, refactor, and test as you would with any code

See the Facilitator Guide, Customization Decision Guide, and .github/agents/Check.agent.md for more workflow tips.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors