Chuyển đến nội dung
Skillpedia
Phân tích và bảng tính58k · #3235

cli-anything-openrefine

Skill này làm gì

Skill này giúp agent AI dùng OpenRefine, một công cụ làm sạch dữ liệu, để sửa và sắp xếp lại các bảng lộn xộn. Skill dành cho bất kỳ ai có danh sách, file xuất hoặc bảng tính cần được làm sạch.

Khi nào nên dùng

  • ✓Khi bạn có file CSV với tên lộn xộn, khoảng trắng thừa hoặc giá trị trùng cần sửa.
  • ✓Khi bạn muốn lặp lại các bước làm sạch trên dữ liệu mới bằng một file thao tác đã lưu.
  • ✓Khi bạn cần hoàn tác hoặc làm lại các thay đổi trong một phiên làm sạch.

Liên kết skill

https://github.com/HKUDS/CLI-Anything/blob/main/openrefine/agent-harness/cli_anything/openrefine/skills/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/HKUDS/CLI-Anything/blob/main/openrefine/agent-harness/cli_anything/openrefine/skills/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Tôi muốn làm sạch file CSV khách hàng này bằng cách cắt khoảng trắng ở cột tên, rồi xuất lại.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent nhập file của bạn vào OpenRefine, áp dụng các bước làm sạch đã lưu và xuất kết quả. Agent theo dõi các thay đổi để có thể hoàn tác hoặc làm lại.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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 --json on 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.

Câu hỏi thường gặp

OpenRefine có cần đang chạy không?

Có. OpenRefine phải được khởi động trên máy tính trước khi skill có thể dùng nó.

Tôi có thể tái sử dụng các bước làm sạch không?

Có. Các file lịch sử thao tác của OpenRefine có thể áp dụng cho dữ liệu khác.

Nó xuất được những định dạng file nào?

Nó xuất dữ liệu đã làm sạch dưới dạng file CSV hoặc TSV.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
58k
Vị trí xếp hạng
#3235
Giấy phép
Apache-2.0
Cập nhật
21/9/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự