Communitygithub.com

CLI-Anything OpenRefine

エージェントネイティブなCLIを介してOpenRefineを使用し、雑多なデータのインポート、JSON操作履歴の適用、行の検査、クリーニング済みデータのエクスポート、セッションのアンドゥ/リドゥ管理を行います。

CLI-Anything OpenRefine とは?

CLI-Anything OpenRefineスキルは、AIエージェントがOpenRefineのデータクレンジングと変換機能をコマンドラインから直接利用できるようにするツールです。このスキルは、CSVやTSVなどの雑多なデータをインポートし、JSON形式の操作履歴(operation history)を適用してデータをクレンジング・変換し、結果をエクスポートする一連のワークフローを自動化します。特にClaude Codeなどのエージェント環境で使用することを想定しており、`--json`フラグによる機械可読な出力、`--session`によるタスク状態の分離、REPLモードによる対話的な操作やパイプ処理をサポートします。主なユースケースとしては、データの前処理パイプラインの構築、定型的なクレンジング処理の再利用、CI/CDパイプラインへの組み込みなどが挙げられます。このスキルはOpenRefineの既存の操作履歴JSONを直接適用できるため、手動で行ったクレンジング手順を完全に再現可能です。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/HKUDS/CLI-Anything/tree/main/skills/cli-anything-openrefine

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

CLI-Anything OpenRefine は何をしますか?

このスキルは、OpenRefineのデータクレンジング、変換、再利用可能な操作履歴、または自動化エージェントワークフローからのCSV/TSVエクスポートが必要なタスクに使用します。

前提条件

ハーネスをインストールします:

cd openrefine/agent-harness
python -m pip install -e .

バックエンドコマンドの前にOpenRefineを起動します:

openrefine -i 127.0.0.1 -p 3333

OPENREFINE_URL=http://127.0.0.1:3333 でカスタムサーバーを設定するか、--base-url を渡します。

エージェント向けコマンドルール

  • ワンショットコマンドでは常に --json を優先します。
  • タスク状態を分離するには --session <path> を使用します。
  • 行操作、適用、エクスポート、アンドゥ、リドゥのコマンドの前にプロジェクトをインポートまたは開きます。
  • 既存のOpenRefine操作履歴JSONは、直接 data apply に渡すことができます。
  • 生成されるファイルは通常のOpenRefine操作JSONとエクスポートされたCSV/TSVデータです。

よく使うコマンド

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

サブコマンドなしで cli-anything-openrefine を実行するとREPLが起動します。

自動化ユーザージャーニーの場合は、改行区切りのREPLコマンドをstdin経由でパイプします。 リダイレクトされたストリームは自動的にASCIIのみの入出力パスを使用し、インタラクティブターミナルではUnicodeバナー、プロンプト履歴、スタイルが保持されます:

printf 'help\nexit\n' | cli-anything-openrefine

REPLがリダイレクトされた場合、Unicodeペイロードは可逆的なASCIIバックスラッシュエスケープとしてレンダリングされ、レガシーなWindows出力エンコーディングによって成功したコマンドが失敗に変わらないようにします。

パイプ処理されたワークフローは、exit またはEOF時にいずれかのコマンドが失敗した場合、ゼロ以外の終了ステータスを返すため、CIが失敗したユーザージャーニーを検出できます。

エラーハンドリング

--json が設定されている場合、コマンド失敗時に ok: false を含むJSONオブジェクトがstderrに書き込まれます。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

cli-anything-adguardhome

>-

cli-anything-anygen

>-

cli-anything-audacity

>-

cli-anything-blender

>-

cli-anything-browser

Browser automation CLI using DOMShell MCP server. Maps Chrome

cli-anything-calibre

>-

cli-anything-ccswitch

CLI interface for CC Switch — manage AI coding tool configurations from the terminal

cli-anything-chromadb

>-

cli-anything-cloudanalyzer

Command-line interface for CloudAnalyzer — Agent-friendly harness for CloudAnalyzer, a QA platform for mapping, localization, and perception outputs. Supports 27 commands across 8 groups: point cloud evaluation, trajectory evaluation, ground segmentation QA, config-driven quality gates, baseline evolution, processing, visualization, and interactive REPL.

cli-anything-cloudcompare

Command-line interface for CloudCompare — Agent-friendly harness for CloudCompare, the open-source 3D point cloud and mesh processing software. Supports 41 commands across 9 groups: project management, session control, point cloud operations (subsample, filter, segment, analyze), mesh operations, distance computation (C2C, C2M), transformations (ICP, matrix), export (LAS/LAZ/PLY/PCD/OBJ/STL/E57), and interactive REPL.

cli-anything-comfyui

>-

cli-anything-dify-workflow

Wrapper for the Dify workflow DSL CLI. Create, inspect, validate, edit, and export Dify workflow files through a CLI-Anything harness.

cli-anything-drawio

>-

cli-anything-eez-studio

Use EEZ Studio from the command line: inspect and modify native .eez-project files, edit LVGL screens/widgets, manage SCPI commands, and invoke the real EEZ Studio backend for LVGL builds.

cli-anything-eth2-quickstart

>-

cli-anything-exa

>-

cli-anything-firefly-iii

Firefly III CLI - Personal finance management via CLI-Anything

cli-anything-freecad

Complete CLI harness for FreeCAD parametric 3D CAD modeler (258 commands). Covers ALL workbenches: Part (29 primitives + boolean + mirror + loft + sweep), Sketcher (26 cmds: geometry + constraints + editing), PartDesign (38 cmds: pad/pocket/groove/fillet/chamfer/patterns/hole/datum), Assembly (11 cmds), Mesh (16 cmds), TechDraw (15 cmds: views + dimensions + PDF/SVG), Draft (33 cmds: 2D shapes + arrays + transforms), FEM (12 cmds), CAM/CNC (10 cmds), Surface (6 cmds), Spreadsheet (7 cmds), Import (13 formats), Export (17 formats), Measure (12 cmds), Materials (21 presets). Headless FreeCAD export to STEP/IGES/STL/OBJ/DXF/PDF/glTF/3MF.

cli-anything-gimp

>-

cli-anything-godot

>-

関連スキル