本文へ移動
cccskills
無料GitHub で公開

airbnb-adr-simulator

Fetch Airbnb income estimate (ADR, occupancy, monthly revenue) for any area using the official Airbnb GraphQL API — the same data the Airbnb host simulator shows. Input: station/area name. Output: per-night rate, avg nights, monthly estimate for entire_home and private_room.

インストール方法を見る

含まれるファイル(2)

  • SKILL.md3.8 KB
  • scripts/airbnb_adr.py10.0 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Airbnb ADR Simulator

Airbnb 公式ホストシミュレーターと同じデータを GraphQL API で取得する。 エリア名(駅名など)を入力すると、一棟貸し・一室貸しの ADR・稼働日数・月収試算を返す。

Setup

export AIRBNB_API_KEY="<your_key>"

API キーの取得方法

Airbnb は公式には API キーを配布していないが、ホストシミュレーターページから抽出できる。

方法1: DevTools で取得(推奨)

  1. ブラウザで https://www.airbnb.jp/host/homes を開く
  2. DevTools → Network タブ → フィルタに GetHostEstimateData と入力
  3. リクエストをクリック → Request Headers の X-Airbnb-API-Key の値をコピー

方法2: JS バンドルから取得

curl -s "https://www.airbnb.jp/host/homes" \
  | grep -o '"X-Airbnb-API-Key":"[^"]*"' | head -1

同様に persisted query hash も DevTools で取得:

  • Request Payload → extensions.persistedQuery.sha256Hash の値をコピー
  • export AIRBNB_GQL_HASH="<your_hash>" で環境変数に設定する

⚠️ キーとハッシュはローテーションされることがあるので、動かなくなったら再取得する。

Usage

python3 scripts/airbnb_adr.py "すすきの駅"
python3 scripts/airbnb_adr.py "渋谷駅"
python3 scripts/airbnb_adr.py "すすきの, 札幌市"

出力例:

📍 すすきの駅 → すすきの, 札幌市中央区...
🏨 一棟貸し (ENTIRE_HOME / 1BD / 4名)
   単価:   ¥25,261/泊
   稼働:   24泊/月 (80%)
   月収:   ¥606,262
   距離:   ✅ 0.1km

🛏 一室貸し (PRIVATE_ROOM / 1BD / 2名)
   単価:   ¥10,363/泊
   稼働:   15泊/月 (50%)
   月収:   ¥155,452
   距離:   ✅ 0.2km

API Details

  • Endpoint: POST https://www.airbnb.jp/api/v3/GetHostEstimateData
  • API Key header: X-Airbnb-API-Key: <key> (DevTools から取得)
  • Operation: GetHostEstimateData (persisted query)
  • Hash: DevTools の Request Payload → extensions.persistedQuery.sha256Hash
  • location 型: {"searchQuery": "エリア名"} ← {"query": ...} ではない
  • durationGranularity: ["MONTHLY"] 必須

room_type は ENTIRE_HOME(一棟)と PRIVATE_ROOM(一室)を別クエリで取得する。

Distance Verification

Nominatim で駅座標を取得し、API が返すリスト物件の重心との距離を計算。 エリアのサジェストがズレていないか確認するためのバリデーション。

  • ✅ 1km以内 — 精度高
  • 🟡 1〜3km — 要注意
  • ⚠️ 3km超 — エリア名を変えて再試行

Pitfalls

  • location 入力が超敏感: "すすきの, 札幌市" と "札幌市 すすきの" は別エリアに解釈される。駅名単体("すすきの駅")が最も精度が高い
  • Nominatim レートリミット: 連続呼び出しは 1 秒以上間隔を空ける
  • 稼働日数は sections[2].value: API レスポンスの header.sections[2] がエリア実績の平均稼働泊数(自前で仮定しない)
  • 月収は earningsEstimateListNative[max(0, avg_nights - 1)]: スライダーのインデックスと対応(avg_nights == 0 は先頭要素に丸める)

Script

scripts/airbnb_adr.py — スタンドアロンで動く CLI スクリプト。AIRBNB_GQL_HASH は取得後に環境変数で設定が必要。

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Add GitHub permalinks with fixed SHA/commit references to research documentation containing code snippets. Use when writing technical docs with code examples, creating investigation/research docs that reference source files, user asks to "add permalinks" or "add GitHub links", documenting code research findings with file:line references, or creating audit trails needing permanent code references. Triggers on "add github links", "add permalinks", "link to source", "make code references permanent".

日本語の概要は準備中です。原文の説明を表示しています。

t4ku/agent-skills52026年10月7日 更新

loop-design

無料日本語概要

やりたいことを1行で言うと、B 型 loop engineering の 7 要素 (context / feedback / verification gate / termination / error handling / state / cost guard) を埋めた loop spec をコピペ可能な形で生成する。生成した spec は現行 Claude Code の実行プリミティブ (Workflow ツール / /loop skill / ralph-loop plugin / claude -p) に落とせる骨格になる (旧 `claude --goal` は廃止)。10 件 failure mode (F1-F10) の対策フックも自動挿入。Hybrid モード: 1 行入力 → デフォルト埋めで一発出力 → 「ここを調整したい」場所だけ短く聞き直す。Use when ユーザーが「loop を作りたい / loop-design / 自走ループ書いて / Workflow 用の spec 作って / 7 要素埋めて / verification gate ありで」と言ったとき、または `/loop-design` を実行したとき。Loop engineering の理論背景は Cards/loop-engineering-autonomous-agents、失敗モード対策は Cards/loop-failure-modes-mechanism-2026 を参照。

t4ku/agent-skills52026年10月7日 更新

Run a project's GitHub Issues through Orca Workers from a coordinating session in the project's Hub folder. The Orchestrator reads Issues, claims one, dispatches an Orca Task into a fresh worktree of the target repo, supervises until worker_done, and writes the outcome back to the Issue — it never edits code itself. Use when the user says "take

日本語の概要は準備中です。原文の説明を表示しています。

t4ku/agent-skills52026年10月7日 更新

show-me

無料日本語概要

Help the user understand the current topic visually with concise diagrams, code-shape sketches, and focused HTML artifacts. Use when the user asks to show / diagram / visualize / sketch / illustrate what is going on, asks "what does this look like", "how does this flow", "show me the structure", or in Japanese 図で見せて / 図解して / 図にして / 構造を見せて / フローを見せて / 全体像を見せて / どうつながってるか見せて. Also use it proactively when an explanation is running long and a call tree, file tree, component tree, diff, Mermaid diagram, or a small HTML artifact would land faster than prose.

t4ku/agent-skills52026年10月7日 更新

skill-vendor

無料日本語概要

Vendor (copy-import) a single external Claude Code skill into your own skills repo correctly — with license compliance and full provenance/attribution. Deterministic, idempotent primitive: given an upstream ref (owner/repo/path@sha or a GitHub URL) it fetches the skill, detects and gates on the license, copies the folder, injects a provenance frontmatter block (license + metadata: author/source/upstream_commit/vendored_at/provenance), ships the upstream LICENSE, adds a ## Credits section, and records a CREDITS.md ledger entry. Use when the user asks to "vendor a skill", "import a skill", "clone a skill", "borrow someone's skill", "add an external skill with attribution/credit", or スキルを取り込む / vendoring / 他人のスキルを自分のリポに取り込む. This is the import primitive that a skill-scout/curator orchestrator calls; it does NOT discover or evaluate — it correctly imports ONE skill you already chose.

t4ku/agent-skills52026年10月7日 更新

speech-slides

無料日本語概要

Generate PPTX slide decks from a speech script or talking points — built for the 5-minute Monday morning speeches at Syla. Use when the user already has a script / 原稿 / メモ and asks to turn it into slides, a deck, or a presentation. Not for slides derived from a video — use youtube-slide-maker for that. Uses PptxGenJS directly (NOT html2pptx.js). Provides 4 slide template patterns, D3.js chart generation, and AI image integration.

t4ku/agent-skills52026年10月7日 更新

t4ku のスキルをすべて見る

このスキルの問題を報告する