Communitygithub.com

Web Yu-pri CLI

日本郵便のWebゆうプリをCLIから操作し、ブラウザUIを自動運転してログイン、確認、スクリーンショット、事前計画、内容品入力を行います。

Web Yu-pri CLI とは?

このスキルは、日本郵便のWebゆうプリ(https://mgr.post.japanpost.jp/C30P01Action.do)で繰り返し行う内容品のライン入力を、CLIツールを使って自動化・効率化します。開発者はブラウザ操作をコードで制御でき、ログイン画面の表示(open-login)、ステータス確認、スクリーンショット取得、ドライランプランと実際の内容品フォームの自動入力が可能です。ドライランモード(--dry-run)で実際の送信前に計画をJSONで確認できるため、安全に操作を進められます。また、セレクタ診断コマンドにより、ブラウザのCSSセレクタを動的に取得・検証できるため、ページ構造が変わっても対応しやすい設計です。対応プラットフォームはPlaywrightベースのCLIツールで、Python環境が必要です。

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

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

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

ドキュメント

Web Yū Puri CLI

日本郵便のWebゆうプリ(https://mgr.post.japanpost.jp/C30P01Action.do)でのラベル入力、特に繰り返し行う内容品ラインの入力に関するタスクでこのスキルを使います。

インストール

pip install git+https://github.com/HKUDS/CLI-Anything.git#subdirectory=web-yu-pri/agent-harness

ブラウザが見つからない場合:

python -m playwright install chromium

安全ルール

  • 日本郵便の認証情報をコマンド、ファイル、ログ、プロンプトに入れないでください。
  • ユーザーが永続プロファイルで手動ログインできるよう open-login を使ってください。
  • 実際のフォーム入力の前に、contents fill ... --dry-run --json を実行してください。
  • このCLIは最終的な発送確認ボタンや購入ボタンをクリックしません。
  • ソースデータに別々の賞/カテゴリラインがある場合は、アイテムラインを分けて保持し、要求された申告合計値を維持してください。

よく使うコマンド

cli-anything-web-yu-pri --json doctor
cli-anything-web-yu-pri open-login
cli-anything-web-yu-pri --json status --url https://mgr.post.japanpost.jp/M060800.do
cli-anything-web-yu-pri --json plan items.json
cli-anything-web-yu-pri --json contents fill items.json --dry-run
cli-anything-web-yu-pri --json contents fill items.json --total-value 17000

アイテムファイル

JSON:

{
  "items": [
    {"description": "表彰盾", "value": 8000, "quantity": 1, "country": "KR"},
    {"description": "証明書", "value": 9000, "quantity": 1, "country": "KR"}
  ]
}

CSVヘッダーには以下のエイリアスが使用できます:

  • description: description, desc, content, contents, item, name, pkg
  • value: value, declared_value, cost, price, amount, yen, jpy
  • quantity: quantity, qty, num, count
  • country: country, country_code, country_of_origin, origin, couCd, cou_cd
  • HSコード: hs_code, hs, hscode, hsCode

デフォルトでは、value はラインの申告価格として扱われます。--value-mode unit を使用すると、価格が数量で乗算されます。

セレクタ診断

cli-anything-web-yu-pri --json selectors
cli-anything-web-yu-pri snapshot --url https://mgr.post.japanpost.jp/M060800.do -o page.png --html-output page.html

既知の内容品ページのコントロール:

  • #M060800_itemBean_pkg
  • #M060800_itemBean_cost_value
  • #M060800_itemBean_num_value
  • #M060800_itemBean_couCd
  • #M060800_itemBean_hsCode
  • #M060800_shippingBean_pkgType
  • #M060800_shippingBean_pkgTotalPrice_value
  • #M060800_ShippingBean_danger
  • submitCommand('itemAdd2')

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

>-

関連スキル