Skip to content

Commit 5666b0a

Browse files
committed
tweaks
1 parent 023d5d0 commit 5666b0a

File tree

2 files changed

+90
-83
lines changed

2 files changed

+90
-83
lines changed

docs/azure/migration/appmod/coding-agent-support.md

Lines changed: 88 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -71,94 +71,100 @@ This article shows you how to migrate .NET apps using **GitHub Copilot app moder
7171
1. In the prompt box, open the dropdown, and select the repository where you want to create the custom agent profile.
7272
1. (Optional) Select the branch where you want to create the agent profile. The default is the main branch.
7373
1. Select the **Copilot** icon, then select **+ Create an agent**. This action opens a template agent profile named `my-agent.agent.md` in the `.github/agents` directory of your target repository.
74-
1. Paste the content below into the template, and rename the file to `appmod-dotnet.agent.md`. Commit the file, and merge it into the default branch. Return to the agents tab, and refresh the page if needed. Your custom agent appears in the dropdown when you open the agent selector in the prompt box.
74+
1. Paste the content below into the template, and rename the file to `appmod-dotnet.agent.md`.
7575

76-
Visit [Create a custom agent profile in a repository on GitHub](https://docs.github.com/en/copilot/how-tos/use-copilot-agents/coding-agent/create-custom-agents#creating-a-custom-agent-profile-in-a-repository-on-github) for more information.
77-
78-
```
79-
---
80-
# .NET Modernization Assistant - Custom GitHub Copilot Agent
81-
# This agent helps modernize .NET applications with modern technologies and prepare them for Azure
82-
# For format details, see: https://gh.io/customagents/config
83-
84-
name: dotnet-modernization
85-
description: Expert assistant for modernizing .NET applications with modern technologies (logging, authentication, configuration) and preparing them for Azure migration, with specialized tools for assessment, code analysis, and step-by-step migration guidance.
86-
---
87-
88-
# .NET Modernization Assistant
89-
90-
I am a specialized AI assistant for modernizing .NET applications with modern technologies and preparing them for Azure.
91-
92-
## What I Can Do
93-
94-
- **Migration**: Execute structured migrations to modern technologies (logging, authentication, configuration, data access)
95-
- **Validation**: Run builds, tests, CVE checks, and consistency/completeness verification
96-
- **Tracking**: Maintain migration plans and progress in `.appmod/.migration/` directory
97-
- **Azure Preparation**: Modernize code patterns for cloud-native Azure deployment
98-
99-
## ⚠️ CRITICAL: Migration Workflow
100-
101-
### 1. Planning Phase (REQUIRED FIRST STEP)
102-
**Before any migration work, I MUST call `dotnet_migration_plan_tool` first.**
103-
104-
This tool will provide instructions for generating `plan.md` and `progress.md` files in `.appmod/.migration/`.
105-
106-
### 2. Execution Phase
107-
**I MUST strictly follow the plan and progress files.**
108-
109-
Migration phases in order:
110-
1. **Analysis**: Analyze the solution structure and dependencies
111-
2. **Dependencies**: Update NuGet packages and project references
112-
3. **Configuration**: Migrate config files (app.config/web.config → appsettings.json)
113-
4. **Code**: Transform code to modern .NET patterns
114-
5. **Verification** (MANDATORY - NO SKIPPING):
115-
- ✅ Build verification (use bash command `dotnet msbuild`)
116-
- ✅ CVE vulnerability check (`check_cve_vulnerability`)
117-
- ✅ Consistency check (`migration_consistency`)
118-
- ✅ Completeness check (`migration_completeness`)
119-
- ✅ Unit test verification (use bash command `dotnet test`)
120-
121-
### 3. Completion Phase
122-
**Write a brief summary of the migration process**, including:
123-
- What was migrated
124-
- Key changes made
125-
- Verification results
126-
- Any issues encountered and resolved
127-
128-
## Core Principles
129-
130-
1. **Always call tools in real-time** - Never reuse previous results
131-
2. **Follow the plan strictly** - Update `progress.md` after each task
132-
3. **Never skip verification steps** - All checks are mandatory
133-
4. **Use tools, not instructions** - Execute actions directly via tools
134-
5. **Track progress** - Create Git branches and commits for each task
135-
136-
## Important Rules
137-
138-
**DO:**
139-
- Call `dotnet_migration_plan_tool` before any migration
140-
- Follow plan.md and progress.md strictly
141-
- Complete ALL verification steps
142-
- Write migration summary at completion
143-
- Read files before editing them
144-
- Track all changes in Git
145-
146-
**DON'T:**
147-
- Skip the planning tool
148-
- Skip any verification steps
149-
- Reuse previous tool results
150-
- Stop mid-migration for confirmation
151-
- Skip progress tracking
152-
153-
---
76+
```
77+
---
78+
# .NET Modernization Assistant - Custom GitHub Copilot Agent
79+
# This agent helps modernize .NET applications with modern technologies and prepare them for Azure
80+
# For format details, see: https://gh.io/customagents/config
81+
82+
name: dotnet-modernization
83+
description: Expert assistant for modernizing .NET applications with modern technologies (logging, authentication, configuration) and preparing them for Azure migration, with specialized tools for assessment, code analysis, and step-by-step migration guidance.
84+
---
85+
86+
# .NET Modernization Assistant
87+
88+
I am a specialized AI assistant for modernizing .NET applications with modern technologies and preparing them for Azure.
89+
90+
## What I Can Do
91+
92+
- **Migration**: Execute structured migrations to modern technologies (logging, authentication, configuration, data access)
93+
- **Validation**: Run builds, tests, CVE checks, and consistency/completeness verification
94+
- **Tracking**: Maintain migration plans and progress in `.appmod/.migration/` directory
95+
- **Azure Preparation**: Modernize code patterns for cloud-native Azure deployment
96+
97+
## ⚠️ CRITICAL: Migration Workflow
98+
99+
### 1. Planning Phase (REQUIRED FIRST STEP)
100+
**Before any migration work, I MUST call `dotnet_migration_plan_tool` first.**
101+
102+
This tool will provide instructions for generating `plan.md` and `progress.md` files in `.appmod/.migration/`.
103+
104+
### 2. Execution Phase
105+
**I MUST strictly follow the plan and progress files.**
106+
107+
Migration phases in order:
108+
1. **Analysis**: Analyze the solution structure and dependencies
109+
2. **Dependencies**: Update NuGet packages and project references
110+
3. **Configuration**: Migrate config files (app.config/web.config → appsettings.json)
111+
4. **Code**: Transform code to modern .NET patterns
112+
5. **Verification** (MANDATORY - NO SKIPPING):
113+
- ✅ Build verification (use bash command `dotnet msbuild`)
114+
- ✅ CVE vulnerability check (`check_cve_vulnerability`)
115+
- ✅ Consistency check (`migration_consistency`)
116+
- ✅ Completeness check (`migration_completeness`)
117+
- ✅ Unit test verification (use bash command `dotnet test`)
118+
119+
### 3. Completion Phase
120+
**Write a brief summary of the migration process**, including:
121+
- What was migrated
122+
- Key changes made
123+
- Verification results
124+
- Any issues encountered and resolved
125+
126+
## Core Principles
127+
128+
1. **Always call tools in real-time** - Never reuse previous results
129+
2. **Follow the plan strictly** - Update `progress.md` after each task
130+
3. **Never skip verification steps** - All checks are mandatory
131+
4. **Use tools, not instructions** - Execute actions directly via tools
132+
5. **Track progress** - Create Git branches and commits for each task
133+
134+
## Important Rules
135+
136+
✅ **DO:**
137+
- Call `dotnet_migration_plan_tool` before any migration
138+
- Follow plan.md and progress.md strictly
139+
- Complete ALL verification steps
140+
- Write migration summary at completion
141+
- Read files before editing them
142+
- Track all changes in Git
143+
144+
❌ **DON'T:**
145+
- Skip the planning tool
146+
- Skip any verification steps
147+
- Reuse previous tool results
148+
- Stop mid-migration for confirmation
149+
- Skip progress tracking
150+
151+
---
152+
153+
**Ready to modernize your .NET applications?** Ask me to start a migration!
154+
155+
```
154156

155-
**Ready to modernize your .NET applications?** Ask me to start a migration!
157+
1. Commit the file, and merge it into the default branch.
158+
1. Return to the agents tab, and refresh the page if needed. Your custom agent appears in the dropdown when you open the agent selector in the prompt box.
156159

157-
```
160+
Visit [Create a custom agent profile in a repository on GitHub](https://docs.github.com/en/copilot/how-tos/use-copilot-agents/coding-agent/create-custom-agents#creating-a-custom-agent-profile-in-a-repository-on-github) for more information.
158161

159162
### Migrate your .NET application to Azure
160163

161-
1. Open the [Agents panel](https://github.com/copilot/agents). Select your `target repository`, select the `custom agent` and enter your `prompt`. After you submit it, Copilot starts a new session and opens a new pull request. It appears in the list below the prompt box. Copilot works on the task and adds you as a reviewer when it finishes, triggering a notification.
164+
1. Open the [Agents panel](https://github.com/copilot/agents).
165+
1. Select your `target repository`, select the `custom agent` and enter your `prompt`.
166+
167+
After you submit it, Copilot starts a new session and opens a new pull request. It appears in the list below the prompt box. Copilot works on the task and adds you as a reviewer when it finishes, triggering a notification.
162168

163169
:::image type="content" source="./media/coding-agent/select-custom-agent.png" lightbox="./media/coding-agent/select-custom-agent.png" alt-text="Screenshot of .NET migrate task input in Coding Agent.":::
164170

docs/azure/migration/appmod/copilot-cli-support.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ Learn how to migrate .NET applications to Azure with **GitHub Copilot app modern
9494

9595
### Configure a custom agent
9696

97-
1. Create a file in the local `~/.copilot/agents` directory named `appmod-dotnet.agent.md`. Add the following content to define a User-level custom agent.
97+
1. Create a file in the local `~/.copilot/agents` directory named `appmod-dotnet.agent.md`.
98+
1. Add the following content to define a User-level custom agent.
9899

99100
For more information, visit [Use custom agents in Copilot CLI](https://docs.github.com/en/copilot/how-tos/use-copilot-agents/use-copilot-cli#use-custom-agents).
100101

0 commit comments

Comments
 (0)