planning-oracle-to-postgres-migration-integration-testing
它能做什么
这个智能体会制定一份计划,用于测试软件项目中数据的访问和处理方式。它的重点是通过明确需要测试的内容,确保数据库从 Oracle 平稳迁移到 PostgreSQL。
适用场景
- ✓当你的项目要把数据库从 Oracle 迁移到 PostgreSQL,需要规划测试时。
- ✓当你需要了解代码中哪些访问数据库的部分需要测试时。
- ✓在迁移数据库之前,准备测试文档时。
技能链接
https://github.com/github/awesome-copilot/blob/main/skills/planning-oracle-to-postgres-migration-integration-testing/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我需要为 'MyApp.Core' 项目制定一份从 Oracle 迁移到 PostgreSQL 的测试计划。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会分析你的项目,找出与数据库交互的部分。然后生成一份详细文档,列出推荐的测试,并优先处理最复杂的区域或使用了 Oracle 特有功能的部分。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Planning Integration Testing for Oracle-to-PostgreSQL Migration
Analyze a single target project to identify data access artifacts that require integration testing, then produce a structured, actionable testing plan.
Workflow
Progress:
- [ ] Step 1: Identify data access artifacts
- [ ] Step 2: Classify testing priorities
- [ ] Step 3: Write the testing plan
Step 1: Identify data access artifacts
Scope to the target project only. Find classes and methods that interact directly with the database — repositories, DAOs, stored procedure callers, service layers performing CRUD operations.
Step 2: Classify testing priorities
Rank artifacts by migration risk. Prioritize methods that use Oracle-specific features (refcursors, TO_CHAR, implicit type coercion, NO_DATA_FOUND) over simple CRUD.
Step 3: Write the testing plan
Write a markdown plan covering:
- List of testable artifacts with method signatures
- Recommended test cases per artifact
- Seed data requirements
- Known Oracle→PostgreSQL behavioral differences to validate
- Coverage mapping that ensures every database touchpoint has at least one test case (or a justified set of cases for high-risk methods)
When defining recommended test cases, explicitly include:
- Text parameter behavior for both empty string and
NULL/missing values. - Datetime/timezone assertions, including round-trip and comparison behavior.
- Cases where destination columns use
timestamp without time zoneortimestamp(0), with explicit timezone-application expectations.
Output
Write the plan to: .github/oracle-to-postgres-migration/Reports/{TARGET_PROJECT} Integration Testing Plan.md
Key Constraints
- Single project scope — only plan tests for artifacts within the target project.
- Database interactions only — skip business logic that does not touch the database.
- Oracle is the golden source — tests should capture Oracle's expected behavior for comparison against PostgreSQL.
- No multi-connection harnessing — migrated applications are copied and renamed (e.g.,
MyApp.Postgres), so each instance targets one database.
常见问题
什么是 '数据访问相关的代码部分'?
指的是代码中负责读写数据库信息的部分,比如仓储(repository)、DAO 或服务层。
为什么要优先测试 Oracle 特有功能?
因为这些功能在 PostgreSQL 中的表现可能不同,仔细测试它们,才能确保迁移顺利完成。
智能体会替我编写测试吗?
不会。智能体只负责制定测试计划,你或你的团队需要根据计划编写并运行测试。
详情
作者的原始描述
Creates an integration testing plan for .NET data access artifacts during Oracle-to-PostgreSQL database migrations. Analyzes a single project to identify repositories, DAOs, and service layers that interact with the database, then produces a structured testing plan. Use when planning integration test coverage for a migrated project, identifying which data access methods need tests, or preparing fo
repo: github/awesome-copilot
热度
- GitHub 星标
- 40k
- 排名
- #7325
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
acquire-codebase-knowledge
40k帮你的智能体理解并编写现有代码项目的文档。它有助于新成员快速上手,或者快速了解项目架构。
acreadiness-assess
40k让你的智能体评估一个项目对 AI 的准备程度,并生成报告。它有助于了解项目在使用 AI 工具方面的准备情况。
acreadiness-generate-instructions
40k帮你的智能体根据评估结果编写 AI 工具的指令文件。它有助于改善 AI 与代码的交互方式,并弥补已发现的不足。
acreadiness-policy
40k让你的智能体协助制定或应用 AI 项目评估的政策。它有助于规范项目的评估方式,并确保合规。