---
title: "Refactor an Existing Codebase using Prompt Driven Development"
url: https://daily.dev/posts/refactor-an-existing-codebase-using-prompt-driven-development-drs8kyi95
source_url: https://www.youtube.com/watch?v=1EBXoFZO6Kk
type: video:youtube
source: "Visual Studio Code"
published: 2025-09-15T14:27:55.574Z
updated: 2025-09-15T14:30:58.383Z
tags: ["python", "github", "prompt-engineering", "azure-functions"]
reading_time: 24
upvotes: 11
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Refactor an Existing Codebase using Prompt Driven Development

**[Visual Studio Code](https://daily.dev/sources/vscode)** · 24 min read · 11 upvotes · 0 comments

## Summary

A practical demonstration of using GitHub Copilot and prompt-driven development to refactor an existing Python inventory API. The tutorial shows how to separate business logic from database operations by moving code from CRUD layers to service layers, using structured prompts and copilot instructions to guide the AI through the refactoring process. The example includes setting up copilot instructions, creating prompt files, and validating the refactored code through manual testing.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=1EBXoFZO6Kk>

## Similar posts on daily.dev

- [GitHub Copilot tutorial: How to build, test, review, and ship code faster \(with real prompts\)](https://daily.dev/posts/github-copilot-tutorial-how-to-build-test-review-and-ship-code-faster-with-real-prompts--lyeseh4bm) · GitHub Blog · 2 upvotes · 0 comments
- [Write your first prompt with the GitHub Copilot app](https://daily.dev/posts/write-your-first-prompt-with-the-github-copilot-app-9gmvkm9el) · GitHub Blog · 0 upvotes · 0 comments
- [How to Use GitHub Copilot Code Review in Pull Requests – Real Python](https://daily.dev/posts/how-to-use-github-copilot-code-review-in-pull-requests-real-python-lxdwafjln) · Real Python · 0 upvotes · 0 comments

---

Tags: [#python](https://daily.dev/tags/python), [#github](https://daily.dev/tags/github), [#prompt-engineering](https://daily.dev/tags/prompt-engineering), [#azure-functions](https://daily.dev/tags/azure-functions)

[View this post on daily.dev](https://daily.dev/posts/refactor-an-existing-codebase-using-prompt-driven-development-drs8kyi95)
