Skip to content

LeoYeAI/agent-master-skills / skills/ai-flight

flightAI

Verified

AI机票助手 - 实现国内航班搜索、舱位查询、预订下单、机票改期、机票退票。适用于用户询问航班、查询机票价格、提交机票订单、改期航班、退票时使用。

scripts/cancel_order.py

View on GitHub
#!/usr/bin/env python3
import sys
from common import call_api, check_api_response

def cancel_order(order_id):
    return call_api("cancelOrder", order_id)

def display_cancel_result(response):
    if not check_api_response(response, "取消订单失败"):
        return

    print("\n" + "=" * 80)
    print("✅ 订单取消成功!")
    print("=" * 80)

def main():
    if len(sys.argv) != 2:
        print("用法: python3 cancel_order.py <order_id>")
        print("示例: python3 cancel_order.py 69a677bee4b0252bd532e35c")
        sys.exit(1)

    order_id = sys.argv[1]

    print(f"\n正在取消订单...")
    print(f"订单号: {order_id}")

    response = cancel_order(order_id)
    display_cancel_result(response)

if __name__ == "__main__":
    main()
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: 198kUpdated Claude CodeCodexVerifiedInstall
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: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
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: 194kUpdated Claude CodeCodexVerifiedInstall