Communitygithub.com

cli-anything-joplin

本スキルは、実際のjoplinターミナルバックエンドを使用して、Joplinのノートブック、ノート、ToDo、タグ、添付ファイル、検索、同期、インポート/エクスポートワークフローを自動化するためのコマンドラインインターフェースです。

cli-anything-joplin とは?

cli-anything-joplinは、実際の`joplin`ターミナルバイナリをバックエンドとして使用し、状態管理可能なハーネスを通じてJoplinのワークフローを自動化するためのスキルです。Python 3.10以上が必要で、`joplin`がPATHにインストールされていることを前提としています。主な機能としてノートブック、ノート、ToDo、タグ、添付ファイル、検索、同期、インポート/エクスポート、設定管理、セッション管理など、幅広いコマンドグループをサポートします。JSON出力を有効にすることで解析可能な出力を得られ、`--project`オプションを使用することでマルチステップのワークフローを永続化できます。REPLモードとワンショットコマンドの両方に対応し、ドライランもサポートするため、AIエージェントによる自動化に最適です。

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

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

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

ドキュメント

cli-anything-joplin は何をしますか?

このスキルを使用すると、実際の joplin ターミナルバイナリをバックエンドとする状態管理可能なハーネスを通じて、Joplin のノートブック、ノート、ToDo、タグ、添付ファイル、検索、同期、インポート/エクスポートワークフローを自動化できます。

必要条件

  • Python 3.10+
  • Joplin ターミナルバイナリが joplin として利用可能であること
  • オプション: 特定の Joplin プロファイルをターゲットにする場合は --profile を渡す

インストール

cd joplin/agent-harness
pip install -e .

使用法

# REPL モード(デフォルト)
cli-anything-joplin

# マシンリーダブルなワンショットコマンド
cli-anything-joplin --json notebooks list

# 状態管理可能なプロジェクト
cli-anything-joplin project new --name demo -o ./demo.joplin-harness.json
cli-anything-joplin --project ./demo.joplin-harness.json notes create "ミーティングノート"

# ドライラン(自動保存なし)
cli-anything-joplin --json --dry-run --project ./demo.joplin-harness.json notes create temp

JSON 出力コントラクト

--json が有効な場合、コマンドは以下を返します:

  • ok: ブール値
  • command: notes.list、todos.toggle などの安定したコマンド識別子
  • data: コマンドのペイロード
  • error: 成功時は null、失敗時は { type, message }

コマンドグループ

  • project: new、open、save、info、json、status
  • notebooks: list、create、use、remove
  • notes: list、create、set、get、remove、copy、move、rename
  • todos: list、create、toggle、clear、done、undone
  • tags: list、add、remove、notetags、tagnotes
  • search: run
  • sync: run (--target、--upgrade、--use-lock)
  • interop: import、export
  • config: get、set、list、export、import-file
  • attach: add
  • status: show、restore
  • backend: version、dump、keymap、geoloc、export-sync-status
  • server: status、start、stop
  • e2ee: status、target-status、decrypt、decrypt-file
  • session: status、undo、redo、history

エージェント向けガイダンス

  • 解析可能な出力を得るには --json を使用することを推奨します。
  • マルチステップワークフローを実行する際は --project を使用して履歴を永続化してください。
  • ワンショットの変更コマンドは、--dry-run が設定されていない限りプロジェクトを自動保存します。
  • REPL モードは自動保存しません。明示的に project save を実行してください。
  • 一部の Joplin CLI ビルドでは、search が GUI モードの後ろにゲートされています。"only available in GUI mode" が表示された場合は、検索をベストエフォートとして扱ってください。
  • Joplin 3.6.x では、npm のグローバルレイアウトで version コマンドが壊れている可能性があります。ハーネスはインストール済みパッケージのメタデータにフォールバックして backend version を実行し、シンボリックリンクを解決したバイナリディレクトリ、Windows スタイルの兄弟 node_modules/joplin、Unix スタイルの親 lib/node_modules/joplin、そして最終的に npm root -g をプローブします。
  • バックエンドの stdout/stderr はコマンド結果にそのまま含まれます。警告がノート本文やエクスポートから削除されたと想定しないでください。
  • エラー発生時は、成功時と同じ command フィールド(config.import_file、e2ee.decrypt_file)を使用して error を解析してください。複数単語のサブコマンドはグループとサブコマンドの間に単一のドットを使用します。

テストワークフロー

# クイックフィードバックループ
python -m pytest -q cli_anything/joplin/tests/test_core.py
python -m pytest -q cli_anything/joplin/tests/test_full_e2e.py::TestCLISubprocess

# 実際のバックエンド(joplin が PATH にあること)
python -m pytest -v cli_anything/joplin/tests/test_full_e2e.py::TestBackendCommands
python -m pytest -v cli_anything/joplin/tests/test_full_e2e.py::TestBackendWorkflows
python -m pytest -v cli_anything/joplin/tests/test_full_e2e.py::TestBackendIntegration

# 全スイート
python -m pytest -v --tb=no cli_anything/joplin/tests

# インストールされたコンソールスクリプトのエントリポイントを確認
CLI_ANYTHING_FORCE_INSTALLED=1 python -m pytest -v -s cli_anything/joplin/tests/test_full_e2e.py

現在の検証ベースライン(Windows + Joplin CLI 3.6.2):

  • python -m pytest -q cli_anything/joplin/tests/test_core.py -> 107 passed
  • python -m pytest -q cli_anything/joplin/tests -> 134 passed, 1 skipped

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

>-

関連スキル