← Back to Skills Marketplace
xuanhua

amidyfortest

by xuanhua · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
270
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install amidyfortest
Description
Query flight, train, and hotel booking information via a backend AI assistant. Activate this skill when the user asks about flights (机票/航班/飞机), trains (火车/高铁...
README (SKILL.md)

Trip Assistant Skill

A conversational AI assistant for booking and querying flights, trains, and hotels. The assistant communicates in natural language and handles complex travel queries including date parsing, multi-city trips, and comparisons.

When to Use

Activate this skill when the user:

  • Asks about flights: 机票, 航班, 飞机, 坐飞机, 飞到, 航空
  • Asks about trains: 火车, 高铁, 动车, 列车, 火车票, 高铁票
  • Asks about hotels: 酒店, 住宿, 宾馆, 旅馆, 住哪里
  • Asks for travel planning: 出行规划, 怎么去, 旅行安排, 最快怎么到

How to Use

Run the query script, passing the user's complete natural language query:

python SKILL_DIR/scripts/query.py \
  --query "\x3Cuser query>" \
  --user-id "${BOOKING_API_USER_ID:-624e5b8b3f4a2f4ec566e3d3}" \
  --env "${BOOKING_API_ENV:-prod}" \
  --base-url "${BOOKING_API_BASE_URL:-http://host.docker.internal:8763}"

Key notes:

  • Replace SKILL_DIR with the absolute path to this skill's directory
  • The --query value should be the user's full original message (do not rewrite or simplify)
  • The script outputs the assistant's reply to stdout; pass it back to the user verbatim
  • If the script returns a connection error, inform the user the service is unavailable and ask them to check that the FastAPI server is running (uvicorn booking_assitant.fastapi_serve:app --host 0.0.0.0 --port 8763)

Configuration

Parameter CLI Flag Environment Variable Default
User ID --user-id BOOKING_API_USER_ID 624e5b8b3f4a2f4ec566e3d3
Environment --env BOOKING_API_ENV prod
API Base URL --base-url BOOKING_API_BASE_URL http://host.docker.internal:8763

Environments:

  • prod — Production data
  • fat — Test/staging data

Examples

Query flight

User: "帮我查一下明天北京到上海的机票"

python ~/.claude/skills/trip-assistant/scripts/query.py \
  --query "帮我查一下明天北京到上海的机票" \
  --user-id "user123" \
  --env prod

Query train

User: "3月10日从上海去杭州有哪些高铁?"

python ~/.claude/skills/trip-assistant/scripts/query.py \
  --query "3月10日从上海去杭州有哪些高铁?" \
  --user-id "user123" \
  --env prod

Query hotel

User: "查一下北京王府井附近明天的酒店"

python ~/.claude/skills/trip-assistant/scripts/query.py \
  --query "查一下北京王府井附近明天的酒店" \
  --user-id "user123" \
  --env prod

Error Handling

Exit Code Meaning Action
0 Success Display output to user
1 (connection error) FastAPI server not reachable Ask user to start the server
1 (HTTP error) API returned error Display the error message
1 (timeout) Request timed out Suggest retrying
Usage Guidance
This skill appears to be a simple client that sends the user's full query to a backend booking service. Before installing or using it: 1) verify which skill you are installing (registry metadata name 'amidyfortest' vs SKILL.md 'trip-assistant'); 2) confirm and set BOOKING_API_BASE_URL to a trusted endpoint — the default points at host.docker.internal:8763 (local service) and could be wrong or unintended; 3) review whether you want the user's entire message (including any personal or payment info) to be sent to that backend; 4) consider replacing the hard-coded default user ID or supplying your own via BOOKING_API_USER_ID; 5) test the script against a staging endpoint first and inspect the backend (booking_assistant.fastapi_serve) to ensure it behaves as expected. These inconsistencies look like sloppy configuration rather than overtly malicious behavior, but they increase risk and should be resolved before trusting the skill.
Capability Analysis
Type: OpenClaw Skill Name: amidyfortest Version: 1.0.0 The skill is a travel assistant proxy designed to query a FastAPI backend for flight, train, and hotel information. The Python script `scripts/query.py` uses standard libraries to send user queries via POST requests to a configurable endpoint (defaulting to a local Docker host) and streams the response back to the agent. No evidence of data exfiltration, malicious execution, or obfuscation was found; the hardcoded identifiers and local network defaults are consistent with a development or internal-use tool.
Capability Assessment
Purpose & Capability
The SKILL.md and scripts implement a trip-assistant that posts user queries to a backend /trip/chat/stream endpoint — this aligns with the stated travel/booking purpose. However the package metadata name ('amidyfortest') and the SKILL.md name ('trip-assistant') do not match, and the skill metadata declares no required environment variables while both SKILL.md and the script rely on BOOKING_API_* environment variables and CLI flags.
Instruction Scope
Instructions stay within the travel-query scope (run the provided script with the user's full query and return the backend response). They explicitly ask the agent/user to send the full original message to the backend; that means any sensitive content in user messages will be transmitted. The docs also instruct how to run a FastAPI server (uvicorn booking_assitant.fastapi_serve:app), which is operational guidance but not intrinsically out-of-scope.
Install Mechanism
No install spec is present and this is an instruction-only skill with a small Python script; nothing is downloaded or written during install.
Credentials
The script and SKILL.md use environment variables BOOKING_API_USER_ID, BOOKING_API_ENV, and BOOKING_API_BASE_URL (with defaults embedded), but the skill registry metadata lists no required env vars or primary credential. The presence of a hard-coded default user ID (a Mongo-like ID) and a default base URL pointing to host.docker.internal:8763 are noteworthy — they may cause accidental requests to local services or leak an identifier. The skill will transmit the user's full query to the backend, so environment/credential omissions and defaults make it unclear what credentials or endpoints will actually be used.
Persistence & Privilege
The skill does not request persistent privileges (always is false) and contains no code that modifies other skills or system-wide configs. It only communicates with an external backend when invoked.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install amidyfortest
  3. After installation, invoke the skill by name or use /amidyfortest
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of the Trip Assistant skill. - Provides a conversational assistant to query and book flights, trains, and hotels via a backend AI. - Activates for user queries about flights, trains, hotels, or travel planning in both Chinese and English. - Includes detailed usage instructions, command-line integration examples, and error handling guidelines. - Supports configuration via CLI flags or environment variables. - Offers clear responses and troubleshooting steps for server connectivity or API issues.
Metadata
Slug amidyfortest
Version 1.0.0
License
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is amidyfortest?

Query flight, train, and hotel booking information via a backend AI assistant. Activate this skill when the user asks about flights (机票/航班/飞机), trains (火车/高铁... It is an AI Agent Skill for Claude Code / OpenClaw, with 270 downloads so far.

How do I install amidyfortest?

Run "/install amidyfortest" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is amidyfortest free?

Yes, amidyfortest is completely free (open-source). You can download, install and use it at no cost.

Which platforms does amidyfortest support?

amidyfortest is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created amidyfortest?

It is built and maintained by xuanhua (@xuanhua); the current version is v1.0.0.

💬 Comments