Clone production
Skill xataio/nextjs-claude-code-starter/.claude/skills/clone-production
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 clone-productionAssembled 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
Clone a production database with automatic PII anonymization
SKILL.md
1.8 KB, as published. Nobody here has run it
Clone production database
Clone a production database with automatic PII anonymization.
Usage
# Configure anonymization rules
xata clone config --source-url <production-connection-string>
# Run the clone
xata clone start --source-url <production-connection-string>
Example workflow
# 1. Set up your production connection string
export PROD_URL="postgres://user:pass@prod-host:5432/mydb"
# 2. Configure what gets anonymized (interactive)
xata clone config --source-url $PROD_URL --mode=prompt
# 3. Run the clone
xata clone start --source-url $PROD_URL
# 4. Connect to your anonymized copy
psql $(xata branch url)
Auto-detected PII columns
Xata automatically detects and anonymizes columns named:
email→ fake emailsname,first_name,last_name→ fake namesphone→ fake phone numbersssn→ masked SSNaddress→ fake addresses- And more...
Custom transforms
Edit .xata/clone.yaml to customize:
tables:
users:
columns:
email:
transform: email
custom_field:
transform: redact
Available transforms
email— Generate fake emailname— Generate fake namephone— Generate fake phoneaddress— Generate fake addressredact— Replace with[REDACTED]hash— One-way hash (preserves uniqueness)null— Set to NULL
Why this matters for AI apps
- Debug with real data distributions
- Test edge cases only production reveals
- Maintain referential integrity across tables
- Stay compliant with privacy regulations
Tips
- Use a read-replica connection string if available
- Avoid pooler/pgbouncer endpoints (clone uses long transactions)
- Review
.xata/clone.yamlbefore running in CI/CD