Refactor an Existing Codebase Using Prompt-Driven Development with GitHub Copilot

Visual Studio Code, featuring Gwyneth Peña-Siguenza, guides developers through prompt-driven development and AI-powered codebase refactoring using GitHub Copilot with a FastAPI + Cosmos DB project.

Refactor an Existing Codebase Using Prompt-Driven Development with GitHub Copilot

Featuring: Gwyneth Peña-Siguenza (@madebygps)
**Produced by Visual Studio Code **

This session demonstrates how to leverage GitHub Copilot to refactor an e-commerce inventory management app written with FastAPI and Azure Cosmos DB. The walkthrough covers recognizing code smells, building contextually-rich prompts, running Copilot in Agent Mode for refactoring tasks, and reviewing AI-generated improvements step by step. The approach emphasizes best practices for integrating AI assistance into real-world development workflows.

Video Chapters

Key Topics Covered

Demo Project

Best Practices Highlighted

Connect with Visual Studio Code


For developers looking to enhance productivity and code quality using Copilot, this video offers actionable insights and hands-on techniques that can be applied to similar Python and Azure-based projects.