agentsclimarketplace

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.

Install
npx -y skills add xataio/nextjs-claude-code-starter --skill clone-production

Assembled 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 emails
  • name, first_name, last_name → fake names
  • phone → fake phone numbers
  • ssn → masked SSN
  • address → 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 email
  • name — Generate fake name
  • phone — Generate fake phone
  • address — Generate fake address
  • redact — 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.yaml before running in CI/CD

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.