cli-anything-openrefine
What it does
This skill lets an AI agent use OpenRefine, a data cleaning tool, to fix and reshape messy tables. It is for anyone with a messy list, export, or spreadsheet that needs cleaning.
When to use it
- ✓When you have a CSV file with messy names, extra spaces, or duplicate values to fix.
- ✓When you want to repeat the same cleaning steps on new data using a saved operation file.
- ✓When you need to undo or redo changes made during a cleaning session.
Skill link
https://github.com/HKUDS/CLI-Anything/blob/main/openrefine/agent-harness/cli_anything/openrefine/skills/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“I want to clean up this customer CSV by trimming spaces in the name column and export it again.”
5 new skills a week. 1 minute to read.
How it works
The agent imports your file into OpenRefine, applies saved cleaning steps, and exports the result. It keeps track of changes so they can be undone or redone.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
CLI-Anything OpenRefine
Use this skill when a task needs OpenRefine data cleaning, transformation, reusable operation histories, or CSV/TSV export from an automated agent workflow.
Prerequisites
Install the harness:
cd openrefine/agent-harness
python -m pip install -e .
Start OpenRefine before backend commands:
openrefine -i 127.0.0.1 -p 3333
Set a custom server with OPENREFINE_URL=http://127.0.0.1:3333 or pass --base-url.
Command Rules For Agents
- Prefer
--jsonon every one-shot command. - Use
--session <path>for isolated task state. - Import or open a project before row, apply, export, undo, or redo commands.
- Existing OpenRefine operation-history JSON can be passed directly to
data apply. - Generated files are normal OpenRefine operation JSON and exported CSV/TSV data.
Common Commands
cli-anything-openrefine --json server ping
cli-anything-openrefine --json project list
cli-anything-openrefine --json --session run/session.json project import messy.csv --name cleanup
cli-anything-openrefine --json --session run/session.json data rows --limit 10
cli-anything-openrefine --json ops text-transform run/trim.json --column Name --expression 'value.trim()'
cli-anything-openrefine --json --session run/session.json data apply run/trim.json
cli-anything-openrefine --json --session run/session.json data export run/clean.csv --format csv
cli-anything-openrefine --json --session run/session.json session undo
cli-anything-openrefine --json --session run/session.json session redo
REPL
Run cli-anything-openrefine with no subcommand to enter the REPL.
For automated user journeys, pipe newline-separated REPL commands through stdin. Redirected streams automatically use an ASCII-only input/output path while interactive terminals retain the Unicode banner, prompt history, and styling:
printf 'help\nexit\n' | cli-anything-openrefine
Unicode payloads are rendered as reversible ASCII backslash escapes when the REPL is redirected, preventing legacy Windows output encodings from turning a successful command into a failed journey.
Piped workflows return a nonzero exit status at exit or EOF if any command
failed, allowing CI to detect an unsuccessful user journey.
Error Handling
When --json is set, command failures write a JSON object to stderr with ok: false.
FAQ
Does OpenRefine need to be running?
Yes. OpenRefine must be started on your computer before the skill can use it.
Can I reuse cleaning steps?
Yes. Operation history files from OpenRefine can be applied to other data.
What file formats can it export?
It exports cleaned data as CSV or TSV files.
Details
Original description by the author
Use OpenRefine through an agent-native CLI for importing messy data, applying JSON operation histories, inspecting rows, exporting cleaned data, and managing session undo/redo.
repo: HKUDS/CLI-Anything
Popularity
- GitHub stars
- 58k
- Ranking position
- #3235
- License
- Apache-2.0
- Updated
- 9/21/2026
Comments
- …
More skills from this repository
cli-anything-3mf
58kLets your agent inspect and fix 3D printing files, including finding round holes, resizing them, repairing meshes, and comparing two files.
cli-anything-qgis
58kLets your agent open, edit, and export QGIS map projects from the terminal, including layers, features, print layouts, and processing tools.
cli-anything-adguardhome
58kLets your agent manage AdGuard Home, a network-wide ad blocker, including filters, DNS rewrites, clients, and query logs.
cli-anything-anygen
58kLets your agent generate slides, documents, websites, and diagrams from a written prompt using the AnyGen service.
Similar skills
gitcrawl
394kLets your agent search a saved archive of GitHub issues and pull requests, group duplicates, and check their current status on GitHub.
slacrawl
394kLets your agent search and count messages in a local Slack archive, check how fresh that archive is, and refresh it when needed.
goplaces
394kHelps your agent search for places, get their details and reviews, and resolve place names using Google Places, with JSON output for scripts.