rp-source-csv

Parse CSV exports, fingerprint vendors, and infer layouts for Wix migration pipelines.

Updated Apr 19, 2026
One-click install
npx skills add https://github.com/divinaarmuela/Content --skill rp-source-csv-divinaarmuela
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rp-source-csv
Source: https://github.com/divinaarmuela/Content/tree/main/.claude/skills/replatform/resources/rp-source-csv
Command: npx skills add https://github.com/divinaarmuela/Content --skill rp-source-csv-divinaarmuela

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve? Migrating a store from CSV export files requires knowing which vendor produced each file, how rows group into products, variants, and categories, and how to read the data correctly — details that are easy to get wrong with naive CSV parsing. ## Core Features & Use Cases - Vendor fingerprinting: Identifies Shopify, WooCommerce, Magento, or BigCommerce exports from header anchors, with near-miss and conflict reporting instead of silent guesses. - Layout inference and file-set resolution: Detects flat, grouped-by-key, and sectioned layouts, assigns roles to files, and concatenates split exports with header-drift halts. - Discovery capture and read contract: Ships a deterministic csv-discovery.js script that samples files into fileset.json and raw-capture.json, plus a contract for generating readers that emit per-entity NDJSON streams. - Use Case: Given a Shopify products_export.csv split across two files, run the discovery script to detect the vendor, group rows by Handle, derive categories from the Product Category column, and produce the schema artifacts a migration pipeline consumes. ## Quick Start Run the CSV discovery script with your export files to generate the source profile and schema artifacts for the migration.

Frequently Asked Questions about rp-source-csv

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect which platform a CSV export came from?

Fingerprint the header row against vendor anchor columns: required anchors must match exactly, strong anchors raise the score, and negative anchors penalize it. A match needs a score of at least 0.70, two strong anchors, and a clear margin over the runner-up; otherwise the file falls back to custom.

How do I migrate a Shopify products CSV to Wix?

Run the csv-discovery script on the export to capture its layout, vendor, and column statistics into fileset.json and raw-capture.json. The discovery stage synthesizes a source-schema.json from that capture, and codegen produces a reader that groups rows by Handle and emits per-entity NDJSON streams for import.

Can I migrate split CSV files exported in multiple parts?

Yes. Files sharing a role and the same normalized column-name set are concatenated into one logical stream, with part order determined by numeric-suffix-aware sorting. A subset or superset header halts with the exact diff unless you pass --allow-header-superset to union the parts.

Does the CSV parser handle quoted fields and different delimiters?

Yes. The parser implements RFC-4180 quoting with embedded delimiters, newlines, and escaped quotes, and auto-detects comma, semicolon, tab, and pipe delimiters scored by field-count consistency. It also strips BOMs, handles all line-ending styles, and detects whether empty cells mean absent values.

What happens when CSV layout detection is ambiguous?

The capture halts with halt: true and records the ranked layout candidates instead of guessing. Discovery stops and asks the user the question named in the warning, because synthesizing a schema from an ambiguous grouping would corrupt the entity model.

What are the limitations of CSV-based store migration?

Cross-file foreign-key join detection is deferred to v1.1, and only Shopify has a canonical record field map so far. Media columns holding local paths or private URLs are not reachable by Wix and must be rewritten to public URLs or deferred.