Branch create
Skill xataio/nextjs-claude-code-starter/.claude/skills/branch-create
Production-ready Next.js + Postgres starter with 6 Claude Code skills. Zero-downtime migrations, instant DB branches, PII-safe prod clones. MIT licensed.
npx -y skills add xataio/nextjs-claude-code-starter --skill branch-createAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Create an isolated database branch for feature development
SKILL.md
1.3 KB, as published. Nobody here has run it
Create a database branch
Create an isolated database branch for feature development.
Usage
xata branch create --name <branch-name>
xata branch wait-ready <branch-name>
Example
# Create a branch for a new feature
xata branch create --name feature/user-roles
# Wait for the branch to be ready
xata branch wait-ready feature/user-roles
# Get the connection string for the new branch
xata branch url feature/user-roles
# Update .env.local with the new connection string
How it works
Xata branches use copy-on-write technology:
- Branch creation is instant (regardless of database size)
- Storage is shared with the parent until data diverges
- Each branch has its own connection string
- Branches can automatically hibernate when inactive
Best practices
- Use descriptive branch names:
feature/,fix/,experiment/ - Delete branches when done:
xata branch delete --name <branch-name> - Use
xata branch listto see all branches - Use
xata branch treefor a visual hierarchy
Switching branches
To work with a different branch, update DATABASE_URL in .env.local:
# Get connection string for a specific branch
xata branch url <branch-name>