ghc-chat-driven-debugging

Teaches disciplined debugging of buggy Python code using GitHub Copilot Chat slash commands.

2|Updated Jun 1, 2026
One-click install
npx skills add https://github.com/jay-steenbergen/MSSAMentorAgent --skill ghc-chat-driven-debugging-jay-steenbergen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ghc-chat-driven-debugging
Source: https://github.com/jay-steenbergen/MSSAMentorAgent/tree/main/.github/skills/tracks/github-copilot/ghc-chat-driven-debugging
Command: npx skills add https://github.com/jay-steenbergen/MSSAMentorAgent --skill ghc-chat-driven-debugging-jay-steenbergen

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Learners often paste errors into Copilot Chat and blindly accept the first fix, which frequently suppresses the symptom instead of resolving the root cause. This Skill trains a disciplined observe → hypothesize → test → fix → verify debugging loop using Copilot Chat on a deliberately buggy Python program. ## Core Features & Use Cases - Guided debugging loop: Walks the learner through four intentional bugs (silent wrong behavior, overdraft, non-atomic transfer, division by zero) in a bank.py program using /explain, /fix, and @workspace. - Symptom-vs-cause training: Demonstrates how Copilot's first fix often silently drops bad input, and teaches the learner to push back and steer toward a loud ValueError fix. - Multi-turn conversation practice: Shows how follow-up questions like "what if the rollback fails?" lead to cleaner atomic transfer implementations. - Use Case: An MSSA learner in the GitHub Copilot track runs the buggy bank simulator, sees Alice's balance go negative, and uses /explain then a steered /fix to raise proper errors instead of silently swallowing bad deposits. ## Quick Start Ask the Mentor to start the ghc-chat-driven-debugging project so you can debug the buggy bank.py program with Copilot Chat.

Frequently Asked Questions about ghc-chat-driven-debugging

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I debug Python code with GitHub Copilot Chat?

Highlight the broken code, run /explain to confirm Copilot understands it, then use /fix with a specific steering instruction rather than a bare command. Review the proposed diff before accepting, and re-run the program to verify the fix against the original failure and new edge cases.

What is the difference between /fix and /explain in Copilot Chat?

/explain describes what the selected code does and often flags risks, while /fix proposes an actual code change as a reviewable diff. Running /explain first verifies Copilot understood the code the way you do, since a wrong explanation leads to a wrong fix.

Why does Copilot's first fix sometimes hide the real bug?

Copilot's first instinct is often to make the error go away, which suppresses the symptom rather than fixing the cause, such as silently dropping a negative deposit. Push back in chat with what is wrong with the fix, for example asking it to raise a ValueError so the failure stays visible.

Can I use Copilot Chat to fix a non-atomic money transfer in Python?

Yes, but expect a multi-turn conversation. Ask /fix to make the transfer atomic, then follow up with questions like what happens if the rollback itself fails, which usually steers Copilot toward upfront validation before any mutation, the cleanest pattern.

What are the prerequisites for this Copilot debugging project?

You need to have completed the ghc-copilot-foundations project so the Chat panel and slash commands work, plus Python 3.10 or later and a terminal such as pwsh or the built-in VS Code terminal to run the buggy program.

When should I use the VS Code debugger instead of Copilot Chat?

Use the VS Code debugger with breakpoints and stepping when you need to inspect runtime state line by line; it complements the Copilot Chat loop rather than replacing it. This project deliberately excludes debugger training and test writing, which are covered in separate projects.