reviewing-oracle-to-postgres-migration — скилл Copilot
Скилл проверяет риски миграции с Oracle на PostgreSQL и помогает сверить миграционные артефакты с интеграционными тестами.
npx skills add github/awesome-copilot --skill reviewing-oracle-to-postgres-migrationЧто делает reviewing-oracle-to-postgres-migration
Скилл сопоставляет процедуры, триггеры, запросы, представления и вызывающий их код с различиями Oracle и PostgreSQL. Он помогает заметить расхождения в трактовке пустых строк, refcursor, приведении типов, сортировке и collations, а также риски для UNION ALL, materialized view, временных меток и конкурентных транзакций.
Для планирования миграции скилл предлагает определить область работ, проверить применимость записей из references/REFERENCE.md и зафиксировать риск с рекомендуемым способом исправления. Для готовой миграции он просит сопоставить артефакт с релевантными записями, проверить сценарии ошибок и подтвердить покрытие интеграционными тестами.
Ставьте его перед переносом Oracle-кода или при проверке результата. Он особенно уместен, когда нужно принять решение о сохранении семантики Oracle для пустых строк и проверить поведение refcursor, сортировки и materialized view.
Какие задачи решает
- оценить риски переноса процедур и триггеров из Oracle в PostgreSQL
- сверить миграционный артефакт с различиями поведения СУБД
- проверить тесты для refcursor, UNION ALL и конкурентных транзакций
- выявить требования к обновлению materialized view
- зафиксировать решения по пустым строкам, типам и временным меткам
Примеры запросов агенту
- Проверь план миграции процедуры из Oracle в PostgreSQL и перечисли применимые риски.
- Сверь этот миграционный артефакт с записями из `references/REFERENCE.md` и составь чек-лист.
- Проверь, покрывают ли интеграционные тесты сортировку, refcursor и конкурентные транзакции.
Как установить reviewing-oracle-to-postgres-migration
1Через Skills CLI (Vercel)
npx skills add github/awesome-copilot --skill reviewing-oracle-to-postgres-migration2GitHub CLI
gh skill install github/awesome-copilot reviewing-oracle-to-postgres-migration3Вручную: положить файлы
.github/skills/reviewing-oracle-to-postgres-migration/SKILL.md1Через Skills CLI (Vercel)
npx skills add github/awesome-copilot --skill reviewing-oracle-to-postgres-migration -a claude-code2Вручную: положить файлы
~/.claude/skills/reviewing-oracle-to-postgres-migration/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/reviewing-oracle-to-postgres-migration/
Вручную: положить файлы
.agents/skills/reviewing-oracle-to-postgres-migration/SKILL.mdДля всех проектов — ~/.agents/skills/
Вручную: положить файлы
.cursor/skills/reviewing-oracle-to-postgres-migration/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
Командой платформы
gemini skills install https://github.com/github/awesome-copilot --path skills/reviewing-oracle-to-postgres-migrationВручную: положить файлы
.devin/skills/reviewing-oracle-to-postgres-migration/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
Из того же набора554
Весь набор →Похожие
Вопросы о reviewing-oracle-to-postgres-migration
Как установить reviewing-oracle-to-postgres-migration в GitHub Copilot?
Выполните npx skills add github/awesome-copilot --skill reviewing-oracle-to-postgres-migration или gh skill install github/awesome-copilot reviewing-oracle-to-postgres-migration. Файл скилла появится по пути .github/skills/reviewing-oracle-to-postgres-migration/SKILL.md.
Что делает reviewing-oracle-to-postgres-migration?
Скилл ищет риски при миграции Oracle-кода на PostgreSQL и проверяет, учтены ли различия поведения в коде, миграционных артефактах и интеграционных тестах.
Какие различия Oracle и PostgreSQL он проверяет?
Он охватывает пустые строки, refcursor, приведение типов, сортировку и collations, риски UNION ALL, обновление materialized view, временные метки и конкурентные транзакции.
Исходный текст
SKILL.md · MIT
--- name: reviewing-oracle-to-postgres-migration description: 'Identifies Oracle-to-PostgreSQL migration risks by cross-referencing code against known behavioral differences (empty strings, refcursors, type coercion, sorting/collations, UNION ALL planner risks, materialized-view refresh requirements, timestamps, concurrent transactions, etc.). Use when planning a database migration, reviewing migration artifacts, or validating that integration tests cover Oracle/PostgreSQL differences.' --- # Oracle-to-PostgreSQL Database Migration Surfaces migration risks and validates migration work against known Oracle/PostgreSQL behavioral differences documented in the `references/` folder. ## When to use 1. **Planning** — Before starting migration work on a procedure, trigger, query, or refcursor client. Identify which reference insights apply so risks are addressed up front. 2. **Validating** — After migration work is done, confirm every applicable insight was addressed and integration tests cover the new PostgreSQL semantics. ## Workflow Determine the task type: **Planning a migration?** Follow the risk assessment workflow. **Validating completed work?** Follow the validation workflow. ### Risk assessment workflow (planning) ``` Risk Assessment: - [ ] Step 1: Identify the migration scope - [ ] Step 2: Screen each insight for applicability - [ ] Step 3: Document risks and recommended actions ``` **Step 1: Identify the migration scope** List the affected database objects (procedures, triggers, queries, views) and the application code that calls them. **Step 2: Screen each insight for applicability** Review the reference index in [references/REFERENCE.md](references/REFERENCE.md). For each entry, determine whether the migration scope contains patterns affected by that insight. Read the full reference file only when the insight is potentially relevant. **Step 3: Document risks and recommended actions** For each applicable insight, note the specific risk and the recommended fix pattern from the reference file. Flag any insight that requires a design decision (e.g., whether to preserve Oracle empty-string-as-NULL semantics or adopt PostgreSQL behavior). ### Validation workflow (post-migration) ``` Validation: - [ ] Step 1: Map the migration artifact - [ ] Step 2: Cross-check applicable insights - [ ] Step 3: Verify integration test coverage - [ ] Step 4: Gate the result ``` **Step 1: Map the migration artifact** Identify the migrated object and summarize the change set. **Step 2: Cross-check applicable insights** For each reference in [references/REFERENCE.md](references/REFERENCE.md), confirm the behavior or test requirement is acknowledged and addressed in the migration work. **Step 3: Verify integration test coverage** Confirm tests exercise both the happy path and the failure scenarios highlighted in applicable insights (exceptions, sorting, `UNION ALL` behavior/performance risks, refcursor consumption, concurrent transactions, timestamps, materialized-view freshness, etc.). **Step 4: Gate the result** Return a checklist asserting each applicable insight was addressed, migration scripts run, and integration tests pass.
© github · MIT · github/awesome-copilot