本文へスキップ
Skillpedia
分析とスプレッドシート58k · #3235

cli-anything-openrefine

できること

このスキルは、AIエージェントがデータクリーニングツールのOpenRefineを使い、乱れた表を修正して再構成できるようにします。乱れたリスト、書き出しデータ、表計算を整える必要がある人向けです。

使う場面

  • ✓名前の余分なスペースや重複した値など、乱れたCSVファイルを直したいとき。
  • ✓保存された操作ファイルを使って、同じ整理の手順を新しいデータに適用したいとき。
  • ✓クリーニングの作業中に行った変更を元に戻したり、やり直したりしたいとき。

スキルのリンク

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

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/HKUDS/CLI-Anything/blob/main/openrefine/agent-harness/cli_anything/openrefine/skills/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“顧客のCSVを整えたいです。名前の列の前後の空白を削除して、もう一度書き出してください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントは、ファイルをOpenRefineに取り込み、保存されたクリーニング手順を適用して、結果を書き出します。変更の履歴を保持するため、元に戻したりやり直したりできます。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)を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 --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.

よくある質問

OpenRefineは起動している必要がありますか?

はい。スキルが使う前に、お使いのコンピューターでOpenRefineを起動しておく必要があります。

クリーニングの手順を再利用できますか?

はい。OpenRefineの操作履歴ファイルを、ほかのデータに適用できます。

どのファイル形式で書き出せますか?

整理したデータをCSVまたはTSVファイルとして書き出せます。

詳細

作者による元の説明

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

人気

GitHubのスター
58k
ランキング
#3235
ライセンス
Apache-2.0
更新日
2026/9/21

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル