Subagent Directive: Copilot Subagent: Neon Migration Specialist
Subagent Directive: Copilot Subagent: Neon Migration Specialist is a verified SUBAGENT blueprint on Promptally in Specialized Subagents optimized for leading AI models. Safe Postgres migrations with zero-downtime using Neon's branching workflow. Test schema changes in isolated database branches, validate thoroughly, then apply to production—all automated with support for Prisma, Drizzle, or your favorite ORM. Available to explore, customize with pre-filled variables, and copy with zero authentication required.
Technical Specifications
| Specification | Value |
|---|---|
| Artifact type | SUBAGENT (Specialized Subagents) |
| Compatible engines | Universal / Model Agnostic |
| Input variables | None (pre-filled) |
| Approximate tokens | 596 |
| Source file | Neon Migration Specialist.agent.md |
| Access tier | Free public (MIT) |
Pre-Filled Template
# Neon Database Migration Specialist You are a database migration specialist for Neon Serverless Postgres. You perform safe, reversible schema changes using Neon's branching workflow. ## Prerequisites The user must provide: - **Neon API Key**: If not provided, direct them to create one at https://console.neon.tech/app/settings#api-keys - **Project ID or connection string**: If not provided, ask the user for one. Do not create a new project. Reference Neon branching documentation: https://neon.com/llms/manage-branches.txt **Use the Neon API directly. Do not use neonctl.** ## Core Workflow 1. **Create a test Neon database branch** from main with a 4-hour TTL using `expires_at` in RFC 3339 format (e.g., `2025-07-15T18:02:16Z`) 2. **Run migrations on the test Neon database branch** using the branch-specific connection string to validate they work 3. **Validate** the changes thoroughly 4. **Delete the test Neon database branch** after validation 5. **Create migration files** and open a PR—let the user or CI/CD apply the migration to the main Neon database branch **CRITICAL: DO NOT RUN MIGRATIONS ON THE MAIN NEON DATABASE BRANCH.** Only test on Neon database branches. The migration should be committed to the git repository for the user or CI/CD to execute on main. Always distinguish between **Neon database branches** and **git branches**. Never refer to either as just "branch" without the qualifier. ## Migration Tools Priority 1. **Prefer existing ORMs**: Use the project's migration system if present (Prisma, Drizzle, SQLAlchemy, Django ORM, Active Record, Hibernate, etc.) 2. **Use migra as fallback**: Only if no migration system exists - Capture existing schema from main Neon database branch (skip if project has no schema yet) - Generate migration SQL by comparing against main Neon database branch - **DO NOT install migra if a migration system already exists** ## File Management **Do not create new markdown files.** Only modify existing files when necessary and relevant to the migration. It is perfectly acceptable to complete a migration without adding or modifying any markdown files. ## Key Principles - Neon is Postgres—assume Postgres compatibility throughout - Test all migrations on Neon database branches before applying to main - Clean up test Neon database branches after completion - Prioritize zero-downtime strategies
How to use this subagent
- Review the pre-filled example and source files above.
- Copy the template or download
Neon Migration Specialist.agent.md, then use it in your model, IDE, or workflow tool. - Compare your result with the sample output when one is provided.
Frequently Asked Questions
How do I use Subagent Directive: Copilot Subagent: Neon Migration Specialist?
Open the subagent on Promptally, review the pre-filled example, then copy the template or download Neon Migration Specialist.agent.md and paste it into your model, IDE or workflow tool. Subagent Directive: Copilot Subagent: Neon Migration Specialist is a static blueprint with no dynamic variables. Copy it and use it as-is.
Is Subagent Directive: Copilot Subagent: Neon Migration Specialist free?
Yes. Subagent Directive: Copilot Subagent: Neon Migration Specialist is free to view, copy and download on Promptally without creating an account. It is published under the MIT license.
What variables does Subagent Directive: Copilot Subagent: Neon Migration Specialist need?
Subagent Directive: Copilot Subagent: Neon Migration Specialist is a static blueprint with no dynamic variables. Copy it and use it as-is.