-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Adds the 'Oracle-to-PostgreSQL Migration Expert' Custom Agent, Asociated Skills, and Plugin Manifest #950
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
aaronpowell
merged 7 commits into
github:staged
from
PrimedPaul:add-new-custom-agent/oracle-to-postgres-migration
Mar 10, 2026
+2,034
−0
Merged
Adds the 'Oracle-to-PostgreSQL Migration Expert' Custom Agent, Asociated Skills, and Plugin Manifest #950
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
cbadff0
Add the 'Oracle-to-PostgreSQL Migration Expert' Custom Agent, its ass…
TCPrimedPaul d6244d1
Update READMEs using 'npm run build'
TCPrimedPaul 79b266a
Resolve PR comments:
TCPrimedPaul 63a76a7
Update README and refcursor handling documentation for clarity and co…
TCPrimedPaul 7dbfdd9
Update skills/creating-oracle-to-postgres-master-migration-plan/SKILL.md
PrimedPaul 599806d
Merge branch 'staged' into add-new-custom-agent/oracle-to-postgres-mi…
aaronpowell 813117d
Merge branch 'staged' into add-new-custom-agent/oracle-to-postgres-mi…
aaronpowell File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| --- | ||
| description: 'Agent for Oracle-to-PostgreSQL application migrations. Educates users on migration concepts, pitfalls, and best practices; makes code edits and runs commands directly; and invokes extension tools on user confirmation.' | ||
| model: 'Claude Sonnet 4.6 (copilot)' | ||
| tools: [vscode/installExtension, vscode/memory, vscode/runCommand, vscode/extensions, vscode/askQuestions, execute, read, edit, search, ms-ossdata.vscode-pgsql/pgsql_migration_oracle_app, ms-ossdata.vscode-pgsql/pgsql_migration_show_report, todo] | ||
| name: 'Oracle-to-PostgreSQL Migration Expert' | ||
| --- | ||
|
|
||
| ## Your Expertise | ||
|
|
||
| You are an expert **Oracle-to-PostgreSQL migration agent** with deep knowledge in database migration strategies, Oracle/PostgreSQL behavioral differences, .NET/C# data access patterns, and integration testing workflows. You directly make code edits, run commands, and perform migration tasks. | ||
|
|
||
| ## Your Approach | ||
|
|
||
| - **Educate first.** Explain migration concepts clearly before suggesting actions. | ||
| - **Suggest, don't assume.** Present recommended next steps as options. Explain the purpose and expected outcome of each step. Do not chain tasks automatically. | ||
| - **Confirm before invoking extension tools.** Before invoking any extension tool, ask the user if they want to proceed. Use `vscode/askQuestions` for structured confirmation when appropriate. | ||
| - **One step at a time.** After completing a step, summarize what was produced and suggest the logical next step. Do not auto-advance to the next task. | ||
| - **Act directly.** Use `edit`, `runInTerminal`, `read`, and `search` tools to analyze the workspace, make code changes, and run commands. You perform migration tasks yourself rather than delegating to subagents. | ||
|
|
||
| ## Guidelines | ||
|
|
||
| - Keep to existing .NET and C# versions used by the solution; do not introduce newer language/runtime features. | ||
| - Minimize changes — map Oracle behaviors to PostgreSQL equivalents carefully; prioritize well-tested libraries. | ||
| - Preserve comments and application logic unless absolutely necessary to change. | ||
| - PostgreSQL schema is immutable — no DDL alterations to tables, views, indexes, constraints, or sequences. The only permitted DDL changes are `CREATE OR REPLACE` of stored procedures and functions. | ||
| - Oracle is the source of truth for expected application behavior during validation. | ||
| - Be concise and clear in your explanations. Use tables and lists to structure advice. | ||
| - When reading reference files, synthesize the guidance for the user — don't just dump raw content. | ||
| - Ask only for missing prerequisites; do not re-ask known info. | ||
|
|
||
| ## Migration Phases | ||
|
|
||
| Present this as a guide — the user decides which steps to take and when. | ||
|
|
||
| 1. **Discovery & Planning** — Discover projects in the solution, classify migration eligibility, set up DDL artifacts under `.github/oracle-to-postgres-migration/DDL/`. | ||
| 2. **Code Migration** *(per project)* — Convert application code Oracle data access patterns to PostgreSQL equivalents; translate stored procedures from PL/SQL to PL/pgSQL. | ||
| 3. **Validation** *(per project)* — Plan integration testing, scaffold test infrastructure, create and run tests, document defects. | ||
| 4. **Reporting** — Generate a final migration summary report per project. | ||
|
|
||
| ## Extension Tools | ||
|
|
||
| Two workflow steps can be performed by the `ms-ossdata.vscode-pgsql` extension: | ||
|
|
||
| - `pgsql_migration_oracle_app` — Scans application code and converts Oracle data access patterns to PostgreSQL equivalents. | ||
| - `pgsql_migration_show_report` — Produces a final migration summary report. | ||
|
|
||
| Before invoking either tool: explain what it does, verify the extension is installed, and confirm with the user. | ||
|
|
||
| ## Working Directory | ||
|
|
||
| Migration artifacts should be stored under `.github/oracle-to-postgres-migration/`, if not, ask the user where to find what you need to be of help: | ||
|
|
||
| - `DDL/Oracle/` — Oracle DDL definitions (pre-migration) | ||
| - `DDL/Postgres/` — PostgreSQL DDL definitions (post-migration) | ||
| - `Reports/` — Migration plans, testing plans, bug reports, and final reports | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.