MR
Mayur Rathi
@github
⭐ 34.1k GitHub stars

Oracle-to-PostgreSQL Migration Expert

Oracle-to-PostgreSQL Migration Expert是一款code方向的AI技能,核心价值是Agent for Oracle-to-PostgreSQL application migrations,可用于解决开发者在code领域的实际问题,帮助用户提升效率、自动化重复任务或优化工作流。

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 u

Last verified on: 2026-05-30
mkdir -p ./skills/oracle-to-postgres-migration-expert && curl -sfL https://raw.githubusercontent.com/github/awesome-copilot/main/skills/oracle-to-postgres-migration-expert/SKILL.md -o ./skills/oracle-to-postgres-migration-expert/SKILL.md

Run in terminal / PowerShell. Requires curl (Unix) or PowerShell 5+ (Windows).

Skill Content

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

🎯 Best For

  • Claude users
  • GitHub Copilot users
  • Software engineers
  • Development teams
  • Tech leads

💡 Use Cases

  • Code quality improvement
  • Best practice enforcement

📖 How to Use This Skill

  1. 1

    Install the Skill

    Copy the install command from the Terminal tab and run it. The SKILL.md file downloads to your local skills directory.

  2. 2

    Load into Your AI Assistant

    Open Claude or GitHub Copilot and reference the skill. Paste the SKILL.md content or use the system prompt tab.

  3. 3

    Apply Oracle-to-PostgreSQL Migration Expert to Your Work

    Open your project in the AI assistant and ask it to apply the skill. Start with a small module to verify the output quality.

  4. 4

    Review and Refine

    Review AI suggestions before committing. Run tests, check for regressions, and iterate on the skill output.

❓ Frequently Asked Questions

Is Oracle-to-PostgreSQL Migration Expert compatible with Cursor and VS Code?

Yes — this skill works with any AI coding assistant including Cursor, VS Code with Copilot, and JetBrains IDEs.

Do I need specific dependencies for Oracle-to-PostgreSQL Migration Expert?

Check the install command and Works With section. Most code skills only require the AI assistant and your codebase.

How do I install Oracle-to-PostgreSQL Migration Expert?

Copy the install command from the Terminal tab and run it. The skill downloads to ./skills/oracle-to-postgres-migration-expert/SKILL.md, ready to use.

Can I customize this skill for my team?

Absolutely. Edit the SKILL.md file to add team-specific instructions, examples, or workflows.

⚠️ Common Mistakes to Avoid

Skipping validation

Always test AI-generated code changes, even for simple refactors.

Missing dependency updates

Check if the skill requires updated dependencies or new packages.

🔗 Related Skills