Rubber Duck Thursdays - The one with custom instructions

Rubber Duck Thursdays - The one with custom instructions

2025-05-01

This episode dives deep into Copilot custom instructions — what they are, how to write them, and why they matter for guiding AI-assisted development. Chris reviews the GitHub Changelog and then live codes a higher/lower game for a Go-based GitHub CLI extension using Agent Mode with detailed custom instructions.

Changelog Highlights

  • Copilot Code Review now supports C, C++, Kotlin, Swift, and more
  • CodeQL improves JavaScript and Ruby analysis in version 2.21.1
  • GitHub Models playground adds a prompt improvement feature to refine prompts with AI
  • Copilot Edits for JetBrains IDEs is now generally available
  • Credential revocation API for exposed tokens is now GA — supports bulk revocation via REST API
  • Task lists retirement on April 30th — code scanning alert references deprecated
  • Mistral Small 3.1 replaces Mistral Small in GitHub Models
  • Actions Runner Controller now supports running Dependabot on self-hosted Kubernetes runners

Live Coding — Custom Instructions Deep Dive

  • Explored how Copilot custom instructions provide repository context, coding standards, and structural guidance to every Copilot request
  • Demonstrated writing detailed instructions for a Go-based GitHub CLI extension — specifying test commands, linting rules, folder structure, and game design patterns using the Cobra library
  • Live coded a higher/lower guessing game using Copilot Agent Mode with Claude 3.7 Sonnet, showcasing how rich instructions lead to higher quality scaffolded code
  • Showed the Copilot Airways app built with Agent Mode from a screenshot, demonstrating vision capabilities and custom instruction-guided development

Related Content

Rubber Duck Thursdays - Back to building GitHub CLI Extensions

Rubber Duck Thursdays - Back to building GitHub CLI Extensions

2025-04-24 GitHub

In this episode, Chris reviews the GitHub Changelog covering organization-level Copilot custom instructions, CodeQL for Actions workflow security analysis, Copilot Code Review language expansion, secret scanning alert dismissals, and GitHub Mobile updates. The coding segment tackles theme switching for the Copilot Airways web app and a Tailwind CSS upgrade using GitHub Codespaces and Copilot Agent Mode.

Rubber Duck Thursdays - Creating a brickbreaker walkthrough

Rubber Duck Thursdays - Creating a brickbreaker walkthrough

2025-03-27 GitHub

Chris live-codes a GitHub-themed brick breaker walkthrough using Copilot agent mode, demonstrating how prompt framing, context, and custom instructions shape AI-generated output.

Rubber Duck Thursdays - Building a scoring system

Rubber Duck Thursdays - Building a scoring system

2025-03-06 GitHub

Chris introduces OctoSnap, a GitHub-themed memory card game built with Next.js, and dives deep into designing a scoring model with Copilot covering difficulty multipliers, time bonuses, and penalty mechanics.