CSV URL Parser

VerifiedSafe

Parses URLs from CSV files, extracts query parameters, and adds them as new columns. Useful when analyzing URL data in spreadsheets, such as web analytics or tracking links.

Sby Skills Guide Bot
Data & AIBeginner
606/2/2026
Claude Code
#csv#url-parsing#data-extraction#query-parameters

Recommended for

Our review

Parses query parameters from URLs in a CSV file and adds them as new columns.

Strengths

  • Automates extraction of URL parameters without manual coding.
  • Handles multiple values by joining them with '|'.
  • Preserves original data by appending new columns.

Limitations

  • Requires the URL column to be named 'url' or 'URL'.
  • Only works with CSV files that have headers.
  • Malformed URLs are silently ignored.
When to use it

Use this skill when you have a CSV file containing URLs and need to extract and analyze their query parameters.

When not to use it

Do not use it if the URLs are in a non-standard format or if you need more complex data transformations.

Security analysis

Safe
Quality score85/100

The skill uses a Ruby script to parse URLs in local CSV files, with no network activity or destructive actions. It only reads, writes, and processes CSV data. The use of Bash with file arguments could potentially be exploited if filenames are malicious, but the skill does not instruct unsafe execution.

No concerns found

Examples

Process all CSV files
Parse URLs in my CSV files
Process specific file
Extract URL parameters from data.csv
Analyze URL parameters
Show me what parameters are in the URLs from this CSV

name: csv-url-parser description: Parse URLs in CSV files and extract query parameters as new columns. Use when working with CSV files containing URLs that need parameter extraction and analysis. allowed-tools: Read, Write, Bash, Glob

CSV URL Parser

This skill extracts query parameters from URLs in CSV files and adds them as new columns.

Instructions

  1. Identify CSV files: Look for CSV files in the current directory or specified path
  2. Analyze URL column: Find the column containing URLs (looks for 'url' or 'URL' headers)
  3. Extract parameters: Parse all query parameters from URLs
  4. Create new columns: Add parameter names as new column headers
  5. Process data: Fill new columns with parameter values (multiple values joined with '|')
  6. Save results: Update the CSV file with new columns

Implementation

The skill uses Ruby to process CSV files. Run the processing script:

ruby scripts/process_csv.rb [file1.csv file2.csv ...]

If no files are specified, it processes all CSV files in the current directory.

The script will:

  • Read CSV files with headers
  • Extract query parameters from URLs using URI parsing
  • Handle multiple values for the same parameter (joined with '|')
  • Preserve original data while adding new parameter columns
  • Handle malformed URLs gracefully

For detailed examples, see EXAMPLES.md.

Usage Examples

Process all CSV files in current directory:

Parse URLs in my CSV files

Process specific CSV file:

Extract URL parameters from data.csv

Analyze URL parameters:

Show me what parameters are in the URLs from this CSV

Requirements

  • Ruby with standard libraries (CSV, URI, CGI)
  • CSV files must have headers
  • URL column should be named 'url' or 'URL'

Output

  • Original CSV file updated with new parameter columns
  • Multiple parameter values separated by '|'
  • Preserves all original data
  • Handles empty/missing parameters gracefully
Related skills