透過 Trip.com + agent-browser 自動搜尋及訂購機票的 Claude Code Plugin。
在 Claude Code 輸入 /plugin,選擇 Discover → Add Marketplace,輸入:
laucw1213/flight-skill
然後選 Install for you (user scope),即可在任何 project 使用 /flight。
curl -fsSL https://raw.githubusercontent.com/laucw1213/flight-skill/master/commands/flight.md \
-o ~/.claude/skills/flight/SKILL.md --create-dirs
npm install -g agent-browser
讓 agent-browser 預設使用有界面模式並使用 Chrome:
mkdir -p ~/.agent-browser && cat > ~/.agent-browser/config.json << 'EOF'
{
"headed": true,
"executablePath": "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
}
EOF
agent-browser --session-name trip open "https://hk.trip.com/?locale=zh_hk&curr=HKD"
在彈出的瀏覽器視窗手動登入,完成後 cookies 自動儲存。
避免每次執行都要按確認:
node -e "
const fs = require('fs');
const path = require('os').homedir() + '/.claude/settings.json';
let cfg = {};
try { cfg = JSON.parse(fs.readFileSync(path, 'utf8')); } catch(e) {}
if (!cfg.allowedTools) cfg.allowedTools = [];
if (!cfg.allowedTools.includes('Bash(agent-browser*)')) {
cfg.allowedTools.push('Bash(agent-browser*)');
fs.writeFileSync(path, JSON.stringify(cfg, null, 2));
console.log('done');
} else { console.log('already set'); }
"
/flight
然後按提示輸入:
Claude 會自動開啟瀏覽器搜尋 Trip.com,顯示最多 3 個最便宜航班供選擇,並協助完成訂票直至付款頁面。
flight-skill/
├── .claude-plugin/
│ ├── plugin.json ← Plugin 元數據
│ └── marketplace.json ← Marketplace 設定
├── commands/
│ └── flight.md ← /flight 指令定義
└── README.md
agent-browser 用 --session-name trip 保存 cookies,重啟後不需重新登入。
如 session 過期,重新執行首次登入步驟即可。
Based on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimnpx claudepluginhub laucw1213/flight-skill --plugin flightTravel search powered by Fliggy — search flights, hotels, attractions, concerts, and more with natural language
AI Travel Agent — 1 smart MCP tool plus 66 compatibility aliases for flights, accommodations, hotels (6 providers: Google Hotels + Trivago + Airbnb + Booking.com + Hostelworld + HomeToGo), rental cars, trains, buses, ferries (20 ground providers incl. 8 ferry operators + night-train specialists European Sleeper & Snälltåget), 37 travel hack detectors, award sweet-spot scanning, traveller profile with email history learning, deals, price alerts, and destination intel. Free, no API keys required.
AI-powered travel hacking with points, miles, and award flights. 42 skills + 6 MCP servers for flight search, hotel comparison, loyalty balance tracking, and award optimization across 27 mileage programs. Try: 'Plan a 10-day Scandinavia trip in August on points' or 'Find the cheapest business class to Tokyo for two in March'. After install, set API keys in your shell environment to unlock award search and other paid features. See the repo README for the env var list.
Intelligent travel assistant with real-time weather, currency conversion, timezone info, and AI-powered itinerary planning. Your complete travel companion.
Stealth browser automation skill using Pydoll, specialized in bypassing Cloudflare WAF, Turnstile CAPTCHA, and other bot detection systems.
AI-powered browser automation -- lets Claude control real web browsers to navigate, click, type, extract content, and automate workflows