当前位置: 首页 > Skill >

airbnb-gateway

airbnb-gateway

1.0.1 2026.11.15 浏览:882
获取Skill文件查看使用说明
作者:沈宁许可证:
本文目录展开

airbnb-gateway

⭐ Find this skill useful? If airbnb-gateway saves you time, please star it (the ⭐ at the top of this ClawHub page) — stars help other rental operators discover it and keep it maintained. Thank you!

You are operating a live, revenue-bearing Airbnb account on behalf of a real host. Guests are real people. A duplicate message, a wrong send, or a careless calendar change has real consequences. This skill exists so that every agent handles Airbnb identically and safely, instead of improvising tool calls per turn.

Portability note. This skill is environment-agnostic. It refers to tool roles (an "Airbnb messages endpoint", an "agent-browser", a "DevTools bridge", a "Playwright fallback") rather than hard-coded URLs. Your concrete tool names live in references/airbnb-tool-priority.md — edit that one file to map roles to the actual tools in your deployment. Everything else here is universal.

THE FIVE LAWS (non-negotiable)

  1. Platform-first. Always try the first-class Airbnb endpoint for an operation before any browser automation. Browser weirdness is NOT evidence that Airbnb access is down.
  2. Read before write. Never send a reply without first reading the live thread in the same operation.
  3. sent: true is attempted, not confirmed. An endpoint success proves the call returned — not that the guest can see the message. You MUST re-read the thread and SEE the outbound message before marking confirmed.
  4. Never auto-resend an unconfirmed send. Duplicate guest messages are worse than a late reply. Escalate to a human instead.
  5. Writes gate; mutations stop. Sending a message is approval-gated. Pricing, availability, listing edits, and accept/decline are NOT implemented in v1 — refuse and escalate.

If you are ever unsure, STOP and report. A paused agent is recoverable; a duplicated or wrong guest message is not.

Minimum Environment Contract

Use this to decide, before installing, whether your deployment can run the skill and at what level. Map each role to a real tool in references/airbnb-tool-priority.md. The skill degrades gracefully: if a read-only requirement is met but a send requirement is not, the skill runs in read-only mode and refuses sends rather than improvising.

Read-only mode — minimum to run safely (inbox / threads / reservations / calendar):

  • At least one Airbnb read path — list/read messages, reservations, and calendar (first-class endpoint preferred; agent-browser or DevTools read acceptable as fallback).

That's the entire requirement for every READ verb. Nothing can be sent in this mode.

Send-capable mode — additional minimum to send a guest reply:

  • An Airbnb send path — the first-class send endpoint (preferred) OR an explicitly human-approved browser send.
  • A thread re-read path — to verify the outbound message after sending. (The same read path from read-only mode satisfies this.)

If either is missing, do NOT send: stay in read-only mode and escalate.

Optional enhancements — improve safety / fallback depth when present:

  • Agent-browser — navigate/inspect when an endpoint is missing or hard-down.
  • DevTools bridge — read-only DOM inspection to verify UI state.
  • Playwright fallback — last-resort automation for read-only ops.
  • Persistent send ledger — survives restarts; hardens duplicate prevention.
  • Approval channel — human/approver sign-off before a send.

Absent optional capabilities reduce fallback depth but never change the safety rules. A required capability that is absent for a given operation triggers an escalation, never an improvised workaround.

Operating model — which tool path do I use?

Resolve top-down. Drop to the next tier ONLY when the current tier is genuinely unavailable, not merely "looked weird once." Full detail in references/airbnb-tool-priority.md.

OPERATION
  │
  ├─ 1. AIRBNB ENDPOINT  (first-class, structured, auth-aware)
  │       → DEFAULT for every supported operation. Always start here.
  │
  ├─ 2. AGENT-BROWSER  (navigate / status)
  │       → ONLY when no endpoint covers the op, OR an endpoint returned a hard
  │         transport failure (5xx/timeout) TWICE. First confirm the host
  │         browser identity is alive before assuming auth loss.
  │
  ├─ 3. DEVTOOLS  (tabs / navigate / evaluate — READ-ONLY here)
  │       → DOM inspection / UI verification when the endpoint read is
  │         ambiguous. Never use evaluate to perform a write/click-send.
  │
  └─ 4. PLAYWRIGHT  (fallback)
          → LAST RESORT. Only when 1–3 are unavailable AND the op is read-only
            or an explicitly human-approved write.

Safety model

Classify every operation before acting. Full table in references/airbnb-safety-rules.md.

Tier Examples Gate
READ check inbox, read thread, lookup reservation, inspect calendar None. Proceed.
WRITE send a guest reply Approval if configured; ALWAYS verify after.
MUTATE change price, block/open dates, edit listing, accept/decline, refund NOT in v1. Refuse + escalate.

Escalate to a human when: a send reaches unconfirmed or failed; you're asked to perform any MUTATE op; the host browser identity reports unhealthy; two read paths disagree on a material fact (dates, guest count, price); or you would need to send the same message twice for any reason.

Message send — the state machine (the core procedure)

States: drafted → attempted → (confirmed | unconfirmed | failed). Full machine with timings in references/airbnb-message-state-machine.md.

[drafted]      reply composed; thread + dedupe-key recorded
   │           (WRITE gate: get approval if required)
   ▼
[attempted]    ← send endpoint called EXACTLY ONCE; ledger written NOW
   │             endpoint sent:true  →  ATTEMPTED, not done
   │
   ├─ verify: re-read the SAME thread (endpoint; DevTools if ambiguous)
   │
   ├─ outbound visibly present?  ── yes ──► [confirmed]   ✅ report
   ├─ absent after verify window ── no  ──► [unconfirmed] ⚠️ DO NOT RESEND, escalate
   └─ send call errored                  ► [failed]       ❌ re-read first, escalate, no blind resend

Send procedure (follow exactly)

  1. Read the live thread. Capture the last inbound message + a dedupe-key (thread_id + normalized hash of the draft text).
  2. Check the send ledger. If a confirmed (or recent attempted) send with the same dedupe-key exists → STOP, already handled.
  3. Draft the reply → state drafted.
  4. Approval gate if required — present draft + thread context, wait for "go".
  5. Send exactly once via the first-class send endpoint → state attempted. Write the ledger entry before verifying, so a crash mid-verify can't cause a blind resend.
  6. Verify — re-read the thread, look for the outbound text/timestamp.
  7. Confirm or not — visible → confirmed; absent within window → unconfirmed.
  8. Report final status: thread id, state, and the human action needed.

The duplicate-prevention contract: exactly ONE call to the send endpoint per drafted item, ever. unconfirmed/failed NEVER auto-transition to a new send. Only a human, after reading the live thread, may authorize a retry.

Reservation & calendar (READ-only in v1)

  • booking_summary — list reservations sorted by check-in: guest, dates, status, reservation_id, linked thread_id.
  • lookup_reservation — by id or guest; map reservation ↔ thread so a reply ties to the right booking.
  • inspect_calendar — report blocked/open/booked spans; FLAG (don't fix) high-risk states (double-booking, anomalous price, risky back-to-back gaps).

Calendar mutation, pricing, accept/decline, and listing edits are reserved for v2 and get their own gated workflows mirroring the send machine (read → propose → approve → do-once → verify → report). Until then: refuse + escalate.

Command surface

Agents speak only in these verbs; each maps to a canonical procedure. Format is verb (TIER) — description.

READ verbs (no gate):

  • check_inbox (READ) — list threads needing attention, prioritized.
  • read_thread <id> (READ) — full live thread + guest-intent summary.
  • lookup_reservation <id-or-guest> (READ) — reservation details + linked thread.
  • booking_summary (READ) — upcoming bookings, sorted by check-in.
  • inspect_calendar [range] (READ) — calendar state + flagged risks.
  • verify_sent <thread> <draft> (READ) — re-check a thread for an outbound message.

WRITE verbs (gated + verified):

  • draft_reply <thread> <intent> (WRITE-pre) — produce a reviewable draft; result state drafted.
  • send_reply <thread> <draft> (WRITE) — run the full send state machine.

Status:

  • report_status — emit structured status of the last operation.

send_reply is the ONLY write, and it internally enforces read → draft → approve → send-once → verify → report. Agents must not decompose it into lower-level steps to skip verification.

Future adapter compatibility

This skill is the behavioral contract. A future formal adapter/tool layer should harden the mechanical guarantees so correctness doesn't depend on a model remembering a markdown rule. See references/future-adapter-interface.md.

Ideal future adapter functions (call them if present, fall back to the manual procedure if not):

  • airbnb.sendVerified(thread_id, text, dedupe_key) → returns {state, visible_at} after doing send-once + ledger + verify atomically.
  • airbnb.dedupeCheck(dedupe_key) → {already_sent: bool, last_state}.
  • airbnb.readThread(thread_id) / airbnb.listInbox() / airbnb.listReservations() / airbnb.readCalendar(range).

When sendVerified exists, send_reply delegates to it and simply reports the returned state. When it doesn't, send_reply runs the manual procedure above.

Anti-patterns (do NOT do these)

  • ❌ Jumping to Playwright early. Endpoints exist and are preferred; falling to Playwright because something felt slow once is wrong.
  • ❌ Treating sent: true as confirmed. It's attempted. Always verify.
  • ❌ Resending from unconfirmed. This creates duplicate guest messages. Escalate instead.
  • ❌ "Auth must be dead." Missing local browser/session state is NOT proof — auth is host-owned. Check browser status + an endpoint first.
  • ❌ Mixing read-safe and write-risk behavior. Classify every op; never let a read workflow quietly perform a write.
  • ❌ Improvising the send flow per turn. There is exactly ONE send procedure. Use it.

Maintainer notes

  • Customize per deployment: references/airbnb-tool-priority.md (map roles to real tool names), the approval-gate policy, and whether a persistent ledger is wired. Examples under examples/ are illustrative — adapt payloads to your tools.
  • Keep universal: the Five Laws, the send state machine, the safety tiers, and the command vocabulary. These are the portable core; don't fork them per deployment.
  • Evolving the skill: add new operations by giving each its own gated workflow in the same shape as the send machine. Never add a generic "do anything" write. Bump version; record changes in a CHANGELOG if published.

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,034
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,031
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,018
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,017
OpenAI的Jalapeno芯片未落地,教你分辨300兆瓦算力消息

OpenAI计划在SB Energy租赁的数据中心部署约300兆瓦自研Jalapeno推理芯片,但目前双方仍处于洽谈阶段,交易细节与上线时间表均未公布。本文带你按报道原文核实项目所处阶段,厘清芯片发布、电力功率与实际推理算力的边界,并将融资意向与签约、开工、投运节点分开追踪,避免误将规划容量计入现有算力。

2026.12.02 1,013
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,013
Skill 文件
  • SKILL.md
    • airbnb-gateway
    • THE FIVE LAWS (non-negotiable)
    • Minimum Environment Contract
    • Operating model — which tool path do I use?
    • Safety model
    • Message send — the state machine (the core procedure)
      • Send procedure (follow exactly)
    • Reservation & calendar (READ-only in v1)
    • Command surface
    • Future adapter compatibility
    • Anti-patterns (do NOT do these)
    • Maintainer notes
  • 项目或源文件

相关 Skill

更多
饿了么外卖点餐 饿了么外卖点餐 Order food delivery from Ele.me (饿了么) using browser automation. The agent controls a real browser via Playwright MCP to browse restaurants, add items to cart...
douyin-web-control douyin-web-control Use this skill when the user wants an Agent to operate Douyin web through the douyin-web CLI, including launching or focusing Douyin, login checks, feed navigation, search, current video info, playback control, comments, likes, following the current author, favorites, sharing, danmaku, screenshots, or screen/audio recording. Prefer the CLI over direct browser automation for Douyin control. Do not use it for video-watching strategy, recommendation guidance, persona behavior, or video creation ide
China Express China Express 中国快递查询与物流信息解析。Use when the user wants to directly get a Chinese package status. Force browser automation on https://www.kuaidi100.com/ and read the live resu...
Browserable Self-Hostable Browser Automation for AI Agents Browserable Self-Hostable Browser Automation for AI Agents Browserable 是一个开源、可自托管的浏览器自动化库,专为 AI 代理构建。此技能将 Browserable 转变为一种可重复的工作流程,用于导航、表单填写、数据提取和基于浏览器的任务执行,而不是使用托管的黑盒。
mayf3-smart-search mayf3-smart-search Multi-engine search with auto-fallback, result parsing, and quality scoring via DDGS local library. Use when: searching the web, gathering information, market research, tech lookup, news search, fact checking. Triggers on 'search', '搜索', 'find info', 'look up', '调研', '查一下'. Not for: browser automation searches, internal file search, code search within repos.