Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# Scenario : Advanced AI Pair Programming Challenge
# Scenario : Spec Driven Development Programming Challenge

Developers today agree that AI code assistant tools are useful for easy, repeatable tasks. JSON to Class, quick templated code, writing simple scripts. But most still think it's bad at more complex tasks. This exercise is here to show you that assumption is no longer as true as you might think!
Developers today agree that AI code assistant tools are useful for easy, repeatable tasks. JSON to Class, quick templated code, writing simple scripts. But most still think it's bad at more complex tasks. This exercise is here to show you that assumption is no longer as true as you might think! Spec-driven development takes your skills as a Software Engineer and augments your AI Coding Assistant to build software *your* way.


## Prerequisites

- Clone the AI Assisted Coding Framework repository: https://github.com/ChrisMcKee1/AI-Assisted-Coding
- [Install & start Docker Desktop](https://docs.docker.com/get-started/get-docker/)
- Clone the Spec Driven Coding Framework repository: https://github.com/ChrisMcKee1/AI-Assisted-Coding

or

- [Install & Start Podman](https://podman.io/docs/installation)
- [NodeJS 16+](https://nodejs.org/) for MCP servers
- **Container Platform** An OCI compliant container runtime is recommended for .NET, and Python developers
- [Docker Desktop](https://www.docker.com/products/docker-desktop)
- [Podman](https://podman.io/) [^1]



Expand All @@ -23,7 +23,7 @@ or
<details>
<summary> For Java Developers</summary>

- Clone the Pet Clinic repository: https://github.com/azure-samples/spring-petclinic-microservices
- Clone the Pet Clinic repository: https://github.com/spring-projects/spring-petclinic/
</details>

<details>
Expand Down Expand Up @@ -131,3 +131,5 @@ This project has adopted the [Microsoft Open Source Code of Conduct](https://ope
### Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow [Microsoft's Trademark & Brand Guidelines](https://www.microsoft.com/legal/intellectualproperty/trademarks/usage/general). Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.

[^1]: For more information, see [Container Runtime](https://learn.microsoft.com/en-us/dotnet/aspire/fundamentals/setup-tooling?tabs=linux%2Cunix&pivots=dotnet-cli#container-runtime)
54 changes: 0 additions & 54 deletions conportal-python.md

This file was deleted.

8 changes: 4 additions & 4 deletions goals/3-tips.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
## Workflow-Specific Tips for This Framework

- **Start with Requirements in Markdown**
Before using the `Plan` or `Act` commands, write detailed requirements and architectural notes in markdown files (e.g., `projectBrief.md`, `docs/`). This gives Copilot and the AI agent the context needed for accurate planning and implementation.
Before using the `/create-spec` or `/execute-tasks` commands, write detailed requirements and architectural notes in markdown files (e.g., `projectBrief.md`, `docs/`). This gives Copilot and the AI agent the context needed for accurate planning and implementation.
- **Follow the Core Workflow Commands**
Use the provided commands (`Plan`, `Act`, `Research`, etc.) as described in the README to trigger structured workflows. This ensures Copilot leverages both live documentation and persistent project memory.
- **Sync ConPort Regularly**
After major changes or at the end of a session, run the `conport_sync_routine` to persist new knowledge, decisions, and context. This keeps the AI's memory up to date and prevents context loss.
Use the provided commands (`/create-spec`, `/execute-tasks`, `/browser-test`, etc.) as described in the README to trigger structured workflows. This ensures Copilot leverages both live documentation and persistent project memory.
- **Sync Regularly**
After major changes or at the end of a session, run the `/generate-report` to persist new knowledge, decisions, and context. This keeps the AI's memory up to date and prevents context loss.
- **Document Decisions and Patterns**
When you make architectural or implementation decisions, log them using the appropriate workflow or markdown files. This helps Copilot and the agent avoid repeating past mistakes and improves future suggestions.
- **Use Semantic Search for Context**
Expand Down
99 changes: 56 additions & 43 deletions goals/dotnet/1-setup.md
Original file line number Diff line number Diff line change
@@ -1,86 +1,99 @@
## 🚀 Setting up the AI Assisted Coding Framework in your project

This framework integrates two powerful MCP (Model Context Protocol) servers to supercharge your development workflow:
This framework integrates several powerful MCP (Model Context Protocol) tools to supercharge your development workflow:

- **Context7 MCP**: Provides live documentation and code snippet retrieval for authoritative technical references
- **ConPort MCP**: Delivers persistent project memory, decision tracking, and knowledge graph capabilities
- **Memory MCP**: Delivers persistent project memory, decision tracking, and knowledge graph capabilities
- **Sequential Thinking MCP**: Assists the LLM with ordering tasks, and breaking down complex ideas
- **Microsoft.Learn MCP**: Give your LLM access to the entire Microsoft Learn knowledgebase!

Together, they transform GitHub Copilot into an intelligent development assistant that remembers project context, tracks architectural decisions, and maintains comprehensive project knowledge across sessions.

## 📋 Prerequisites

- **Docker** or **Podman** (for ConPort MCP)
- **Node.js 16+** (for Context7 MCP server) - Optional, see step 2 below
- **VS Code** with GitHub Copilot extension
- **Node.js 16+** (for MCP tools)
- **Container Platform** An OCI compliant container runtime, such as:
- [Docker Desktop](https://www.docker.com/products/docker-desktop)
- [Podman](https://podman.io/) [^1]
- **IDE** with GitHub Copilot[^2]
- **Git** for version control

## 🛠️ Installation & Setup

### Step 1: Clone and Copy Framework Files
### Step 1: Clone The Framework Repository
#### Windows Terminal:
```powershell
# Clone this repository
git clone https://github.com/ChrisMcKee1/AI-Assisted-Coding.git
cd AI-Assisted-Coding

# Copy all framework files to your project's root directory
# Replace 'your-project-path' with the actual path to your project
robocopy . "C:\path\to\your-project" /E /XD .git
```

#### Linux / OSX Terminal:
```bash
git clone https://github.com/ChrisMcKee1/AI-Assisted-Coding.git
cd AI-Assisted-Coding

# Copy all framework files to your project's root directory
# Replace '/path/to/your-project' with the actual path to your project
rsync -av --exclude='.git' . /path/to/your-project/
```
We will use the files in this repository once you've setup your local workspace. Keep them somewhere easy to access, we recommend a folder such as `C:\github\` or `~/github` on Linux & OSX.

### Step 2 (optional): Change the MCP Configuration

By default, we utilize the local Contex7 MCP server for caching and speed. However, if you don't have NodeJS installed, and do not wish to use NodeJS, you can instead utilize iether the public Context7 MCP server, or build and run the Docker version of the Context7 MCP tool. The `.vscode/mcp.json` file has commented out configuration options for these two paths.
By default, we utilize the local MCP tools for caching and speed. However, if you don't have NodeJS installed, and do not wish to use NodeJS, you can instead utilize docker versions of each tool. To build and run the Docker version of the the tools, you will need to see the documentation for each to setup the docker config:

See the [Context7 Docker Readme](../../context7-docker.md) for instructions on how to use Docker to host Context7 locally.

Also, we are using Docker for hosting the Context Portal MCP server. We recommend you pull the image locally before you start up VS Code. To pull the image:
See the [Playwright MCP Readme](https://github.com/microsoft/playwright-mcp) for details on advanced configuration and docker support for Playwright.

See the [Sequential Thinking MCP Readme](https://github.com/modelcontextprotocol/servers/tree/main/src/sequentialthinking) for details on how to configure it using docker.

See the [Memory MCP Readme](https://github.com/modelcontextprotocol/servers/tree/main/src/memory) for details on how to configure it using Docker

> [!IMPORTANT]
> If you intend to do this, please do this before coming to the workshop, and ensure they are setup and configured. This can take time to setup and troubleshoot, so be prepared. Our recommendation is to use the NodeJS versions of the tools.

`docker pull seiggy/context-portal-mcp:0.2.18`
### Step 3: Clone the eShop Repository

If you are using Podman, replace `docker` with `podman` in both the command, and in the `mcp.json` file. If you do not have Docker installed, you can run the Context Portal MCP server locally using Python and UV. For further details on how to use the ConPort MCP server with Python, see the [Context Portal Python Readme](../../conportal-python.md).
You'll be building this challenge using the popular eShop demo repository from Microsoft. Clone the [eShop](https://github.com/dotnet/eShop/) Repository from the dotnet team to an easy to access location on your machine.

### Step 3: Open Project in VS Code
### Step 4: Copy the Framework to the eShop repository

Copy the `.github` and `.vscode` folders from the AI-Assisted-Coding repository to the root of your eShop repository. An example script below assumes you cloned both repositories to the root of `C:\github` or `~/github` respectively.

#### Powershell
```powershell
# Open your project in VS Code
code .
cd c:\github\AI-Assisted-Coding
robocopy . "C:\github\eShop" /E /XD .git
```

#### Bash
```bash
cd ~/github
rsync -av --exclude='.git' . ~/github/eShop
```
### Step 4: Update Your Project Brief

Before proceeding, overwrite the `projectBrief.md` in your project root that you copied from the AI-Assisted-Coding repository, with the `projectBrief.md` file we provided in this repository.

### Step 5: Verify GitHub Copilot Integration
### Step 5: Run the Analyze Workflow

1. Ensure GitHub Copilot extension is installed and activated
2. The framework will automatically detect the `copilot-instructions.md` file
Open the eShop Solution using VS Code or your preferrred IDE.

Run the `/analyze-product` prompt in Copilot Agent Mode to analyze your woskpace and generate the documents that help the spec-driven development workflow operate smoothly.

### Step 6: Initialize ConPort MCP
> [!NOTE]
> If you are using Visual Studio 2022, you will need to manually reference custom instruction files. You will need to swap to "folder view" in Visual Studio 2022, and then you can type `#analyze-product.instructions.md` to find and reference the file in the chat window.

After verifying Copilot integration, initialize the ConPort MCP memory system:
> [!NOTE]
> If you are using Jebrains Rider, you will need to manually reference the file by dragging it from the file system window, or by right-clicking, and using the context menu to reference the file in chat.

1. In the Copilot chat or comments, type:
```
Initialize ConPort
```
1. Follow the prompts to complete setup.
This step creates the persistent memory database and loads your project context before you start coding.
![Rider Context Menu](../../screenshots/rider_context_menu.png)

### Step 7: Have the AI conduct Architecture Review
### Step 6: Verify Framework setup is completed

Have Copilot Create an Architecture Review of the repo. Take a look at the `README.md` in the AI Assisted Coding framework for help on how to conduct the Architecture review. When it completes, you should end up with a new folder named `architectureDiagrams` that contains 5 ore more markdown files with charts, documentation, and more about the eShop Application! Make sure you pass the #codebase token in your command, so that VS Code will give the AI access to the codebase for the context!
1. Answer any questions that the AI prompts you with, and wait for it to complete.
2. The framework will automatically generate the `copilot-instructions.md` file
3. The framework should also generate a series of files in a folder named `.docs`
4. Review these documents for accuracy, and fix any problems you see.


### Step 7: Follow the instructions from the `README.md` file to run eShop locally

Follow the instructions in the `README.md` file at the base of the eShop Repository to setup the application locally. You'll want to run the application using Aspire, and Docker, so that you can debug the application. Ensure that you can reach the Blazor Customer Portal, and that you can add an item from the catalog to your cart before you continue.

## Next challenge

Now that you've setup the AI to be able to better understand and work within your repository, it's time to [understand how to write requirements!](./2-requirements.md)
Now that you've setup the AI to be able to better understand and work within your repository, it's time to [understand how to write requirements!](./2-requirements.md)

[^1]: For more information, see [Container Runtime](https://learn.microsoft.com/en-us/dotnet/aspire/fundamentals/setup-tooling?tabs=linux%2Cunix&pivots=dotnet-cli#container-runtime)
[^2]: _VS Code supports all features, Visual Studio 2022 17.14.13 and Jetbrains IDEs require workarounds noted through the workshop_
Loading