datasqrl/sqrl/handle-large-data-files
Claude Code and agent skill by datasqrl/sqrl
- community
Checking that the SKILL.md file is still in the repository.
Use when the workspace contains a large data file, or when a compile/test run is blocked with LARGE_DATA_BLOCKED. Used to sample the large files down or exclude them so that DataSQRL compiles seamlessly.
Install
npx vskill@latest install datasqrl/sqrl/handle-large-data-filesSKILL.md
Handle large data files
DataSQRL copies every recognized data file (.csv, .csv.gz, .json, .jsonl, .parquet, .orc, .avro, ...) found anywhere in the project into Flink's build/ data directory on every compile and test — with no cache. A large file (tens of MB or more) therefore makes every run slow and can exceed the test timeout. compile/test is blocked while such a file is present (LARGE_DATA_BLOCKED).
Renaming a file to *.bak removes it from the copy: the compiler recognizes files by data extension, and .bak is not one, so a .bak file is skipped — and it no longer triggers the block.
For each large file, first invoke the /data-observation skill and observe it (so you understand its schema and values), then classify and act.
Steps to follow
(a) The file is data a connector reads
Replace it with a small, coherent sample and point the connector at the sample.
- Produce a small sample (<1000 rows), keeping the same format so the connector's
'format'still matches:
- For
.jsonl/.csvfiles, usehead -1000 big.jsonl > sample.jsonlcommand - For
.csv.gzfiles, usezcat big.csv.gz | head -1000 | gzip > sample.csv.gzcommand - A CSV sample must contain only data rows, because the header data only lives in the
CREATE TABLEschema. If the original starts with a header row, note the column names and skip it while sampling:tail -n +2 big.csv | head -1000 > sample.csv, orzcat big.csv.gz | tail -n +2 | head -1000 | gzip > sample.csv.gz - For
.parquetfiles, useduckdb -c "COPY (SELECT * FROM 'big.parquet' LIMIT 1000) TO 'sample.parquet' (FORMAT PARQUET)"command
- Sample coherently across related files. When files reference each other (foreign keys), sample a consistent set of keys so references still resolve — otherwise the sampled test data has orphaned references. Pick a set of parent keys first, then keep only the child rows for those keys.
- Point the connector's
pathat the sample file. If you sampled into a different format than the original (e.g. parquet → jsonl), also update the connector's'format'(and any format-specific options) to match — the'format'key is independent of the file extension. - Rename the original large file to
*.bakso it is not copied, and delete any copy already written underbuild/.
(b) The file is only reference/sample material (no connector reads it)
You still need to observe it, but it must not be copied.
- Invoke the
/data-observationskill and observe a bounded prefix to learn the schema and values. - Rename the file to
*.bakso it is not copied, and delete any copy already written underbuild/.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingagent/skills/handle-large-data-files/SKILL.md
Popularity
- Repository stars
- 231
- Repository forks
- 30
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/datasqrl/sqrl/handle-large-data-files)