home / skills / andrelandgraf / fullstackrecipes / neon-test-branches
This skill helps you provision isolated Neon test branches with schema-only structure, auto-cleanup TTL, and environment orchestration for safe testing.
npx playbooks add skill andrelandgraf/fullstackrecipes --skill neon-test-branchesReview the files below or copy the command above to add this skill to your agents.
---
name: neon-test-branches
description: Create isolated Neon database branches for testing. Schema-only branches with auto-cleanup via TTL, test server orchestration, and environment variable management.
---
# Neon Test Branches
To set up Neon Test Branches, refer to the fullstackrecipes MCP server resource:
**Resource URI:** `recipe://fullstackrecipes.com/neon-test-branches`
If the MCP server is not configured, fetch the recipe directly:
```bash
curl -H "Accept: text/plain" https://fullstackrecipes.com/api/recipes/neon-test-branches
```
This skill creates isolated Neon database branches for running tests and ephemeral environments. It provisions schema-only branches with automatic cleanup using a TTL, manages environment variables, and coordinates test server lifecycle. Designed for fast, repeatable test runs and CI workflows that need disposable database state.
The skill uses Neon branches that contain only schema, not data, so tests start from a known structure. Each branch gets a TTL after which it is auto-deleted to avoid resource buildup. It also orchestrates a short-lived test server and injects the correct environment variables so test suites connect to the matching branch. Integrations can be triggered from CI or local test runners.
Does the branch copy production data?
No. Branches are schema-only by default to avoid copying production data and to speed up creation.
How are branches cleaned up?
Each branch is created with a TTL. After the TTL expires the branch is automatically deleted to prevent orphaned resources.
Can this be used in CI?
Yes. It is designed for CI workflows and supports orchestration of test servers and environment variable injection for automated jobs.