LeoYeAI/agent-master-skills / skills/airfly
flightAI
VerifiedAI机票助手 - 实现国内航班搜索、舱位查询、预订下单、机票改期、机票退票。适用于用户询问航班、查询机票价格、提交机票订单、改期航班、退票时使用。
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 24.0 KB |
| _meta.json | config | 280 B |
| scripts/auth.py | script | 2.9 KB |
| scripts/cancel_order.py | script | 770 B |
| scripts/common.py | script | 7.1 KB |
| scripts/create_order.py | script | 4.1 KB |
| scripts/endorse_apply.py | script | 4.7 KB |
| scripts/endorse_search_flight.py | script | 3.7 KB |
| scripts/endorse_search_price.py | script | 6.1 KB |
| scripts/order_detail.py | script | 4.8 KB |
| scripts/refund_apply.py | script | 2.5 KB |
| scripts/refund_fee_detail.py | script | 1.1 KB |
| scripts/search_flights.py | script | 3.0 KB |
| scripts/search_guest_rule.py | script | 5.3 KB |
| scripts/search_price.py | script | 5.6 KB |
| skill.json | config | 563 B |
scripts/refund_fee_detail.py
View on GitHub#!/usr/bin/env python3
import sys
from common import call_api, check_api_response, format_timestamp
def refund_fee_detail(order_id):
"""预估退票费查询"""
return call_api("refundFeeDetail", order_id)
def display_refund_fee_result(response):
"""格式化展示退票费详情"""
if not check_api_response(response, "查询退票费失败"):
return
data = response.get("data", {})
# 获取退票费信息
refund_amount = data.get("refundAmount", 0)
print(f"预估退票费(单票): ¥{refund_amount}")
print("请确认是否同意退票费用,如同意,系统将自动提交退票申请")
# 返回退款金额供后续使用
return refund_amount
def main():
if len(sys.argv) != 2:
print("用法: python3 refund_fee_detail.py <order_id>")
print("示例: python3 refund_fee_detail.py 69b21e1ce4b0b89fdebddbd2")
sys.exit(1)
order_id = sys.argv[1]
print(f"\n正在查询退票费...")
print(f"订单号: {order_id}")
response = refund_fee_detail(order_id)
display_refund_fee_result(response)
if __name__ == "__main__":
main()
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |