compare-csv
SnapLogic Compare CSV Skill
Agentic Workflow (Claude: Follow these steps in order)
Step 1: Load the Complete Guide
ACTION: Use the Read tool to load:
{{cookiecutter.primary_pipeline_name}}/.claude/skills/compare-csv/SKILL.md
Do not proceed until you have read the complete guide.
Step 2: Understand the User's Request
Parse what the user wants:
- Which files to compare? (actual vs expected)
- Should row order be ignored?
- Which columns to exclude from comparison? (timestamps, dynamic IDs, etc.)
- What is the expected status? (IDENTICAL, DIFFERENT, SUBSET)
- Is this standalone or part of a larger test suite?
Step 3: Follow the Guide — Create ALL Required Files (MANDATORY)
When creating CSV comparison test cases, you MUST call the Write tool to create ALL required files. Never skip any file. Never say "file already exists". Always write them fresh:
- Robot test file (
.robot) intest/suite/pipeline_tests/[type]/— WRITE this - COMPARE_CSV_README.md with file structure tree diagram in the same test directory — WRITE this
Use the detailed instructions from the file you loaded in Step 1 for templates and conventions.
Step 4: Respond to User
Provide the created files or requested information based on the complete guide.
Quick Reference
Key keywords:
Compare CSV Files With Exclusions Template— Compare CSV files with column exclusionsCompare CSV Files Template— Compare CSV files without exclusions
Arguments for Compare CSV Files With Exclusions Template:
file1_path— Path to actual output CSV filefile2_path— Path to expected output CSV fileignore_order— Whether to ignore row order (${TRUE}or${FALSE})show_details— Whether to show detailed differences (${TRUE}or${FALSE})expected_status— Expected comparison result (IDENTICAL,DIFFERENT,SUBSET)@exclude_keys— Columns to exclude from comparison (varargs)&options— Additional options likematch_key=column_name
Invoke with: /compare-csv
More from snaplogic/snaplogic-robotframework-examples
robot-expert
Robot Framework expert for SnapLogic pipeline testing conventions. Use when the user asks about best practices, naming conventions, tags, variable patterns, or database/messaging test patterns.
29export-data-to-csv
Creates Robot Framework test cases for exporting database table data to CSV files. Use when the user wants to export Oracle, Snowflake, PostgreSQL, or other database data to CSV for verification or comparison purposes.
21troubleshoot
Troubleshooting guide for common issues in SnapLogic Robot Framework testing. Use when the user encounters errors, Docker/container issues, environment configuration problems, network connectivity issues, or SnapLogic API errors.
19debug-logs
Helps debug test failures and view logs in the SnapLogic Robot Framework project. Use when the user wants to view test results, check container logs, debug specific test failures, or run environment diagnostics.
19run-tests
Guides users on running Robot Framework tests in the SnapLogic project. Use when the user wants to run tests, needs to know which make command to use, or wants to understand test tags and execution options.
19create-triggered-task
Creates Robot Framework test cases for creating and executing SnapLogic triggered tasks. Use when the user wants to create triggered tasks for on-demand pipeline execution, execute triggered tasks with parameters, or wants to see triggered task test case examples.
19