Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计提醒

flight-price-chart航班价格表

Agent Skill

flight-price-chart 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

2,631

周安装

113

GitHub Stars

公开资料未说明

下载量

922
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:flight-price-chart(航班价格表)
来源仓库:https://github.com/keyikoi/flight-price-chart
安装命令:
openclaw skills install flight-price-chart
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install flight-price-chart

简介

将交互式航班价格趋势图嵌入 AI 响应,直观展示 60 天价格历史。

  • 适用于价格走势可视化、比价分析与长期出行规划场景。
  • 需用户提供航线与时间范围,自动生成图表与关键节点说明。
  • 依赖 SerpAPI 密钥获取实时数据,安装时需正确配置 API 凭证。
  • 使用前请确认密钥有效性与网络权限,避免数据获取失败。

SKILL.md

name
flight-price-chart
description
Embed interactive flight price trend charts into AI responses. Requires SerpAPI key for real-time data. Use when users want to visualize 60-day price history for specific flight routes.
metadata
version
1.0.0
agent
type
ui-component
runtime
react
context_isolation
embedded
openclaw
emoji
📈
priority
85
requires
bins
intents
patterns

Flight Price Chart

Embed an interactive flight price trend visualization component when AI responses contain flight recommendations with confirmed OD (Origin-Destination) pairs.

⚠️ 使用前必需配置

本 skill 需要 SerpAPI Key 才能获取实时航班价格数据。

如果用户尚未配置 SerpAPI Key,请先引导用户完成以下步骤:

  1. 注册 SerpAPI 账号:访问 https://serpapi.com/users/sign_up 免费注册
  2. 获取 API Key:登录后在 Dashboard 中复制你的 API Key
  3. 配置项目

- 复制 price/config.example.jsonprice/config.json - 将 API Key 填入 config.json 中的 serpapi.apiKey 字段 - 重启服务器使配置生效

💡 SerpAPI 提供免费额度,足够个人使用。配置完成后即可获取真实的航班价格趋势数据。

Quick Start

  1. Detect flight recommendations: When AI output contains flight search results with specific origin and destination
  2. Fetch price data: Call the price trend API with the OD pair
  3. Render component: Embed the PriceChart component at the end of the response

Component API

PriceChart Component

<PriceChart
  data={priceHistory}           // Array of {date, price}
  currentPrice={currentPrice}   // Current flight price
  analysis={analysis}           // Price analysis object
  destination={destination}     // Destination info
/>

Data Structure

priceHistory - 60-day price history:

[
  { date: "2026-03-01", price: 1299 },
  { date: "2026-03-02", price: 1350 },
  // ... up to 60 days
]

analysis - Price analysis object:

{
  min: 1199,           // Lowest price in period
  max: 1899,           // Highest price in period
  average: 1450,       // Average price
  pctDiff: -12,        // Percentage vs average
  level: "low",        // "low" | "mid" | "high"
  trend: "falling"     // "falling" | "rising" | "stable"
}

destination - Destination info:

{
  code: "TYO",         // Airport/city code
  name: "Tokyo"        // City name
}

Usage Scenarios

1. After Flight Search Results

When AI returns flight recommendations:

[Flight cards showing 3-5 options]
[Price trend chart showing 60-day history]
[Buy/wait recommendation]

2. Price Inquiry Responses

When user asks about price trends:

"Here's the price trend for Tokyo flights over the past 60 days..."
[Price trend chart]
"Current prices are 12% below average, making it a good time to buy."

3. Buy/Wait Recommendations

When providing purchase timing advice:

[Price analysis summary]
[Recommendation card: "Buy Now" or "Wait"]
[Price trend chart for context]

Integration with flyai

When using flyai for flight searches:

  1. Call flyai search-flight to get flight results
  2. Extract OD pair from search parameters
  3. Call price trend API with OD pair
  4. Append PriceChart component after flight cards

Visual Design

Color Coding

  • Low price: Green (#16A571) - Below average
  • Mid price: Gray (#666666) - Near average
  • High price: Red (#E54D4D) - Above average
  • Brand: Purple (#6666FF) - Chart line

Chart Features

  • Interactive hover/touch to see daily prices
  • Dashed line showing average price
  • Current price highlighted
  • Min/max/avg stats at bottom
  • 60-day date range

Data Source Notice

Quick Setup for Real Data

By default, the price trend uses simulated data (for demo/development only).

To enable real price data, configure your SerpAPI Key:

  1. Get API Key at https://serpapi.com/users/sign_up
  2. Add to price/config.json:
   { "serpapi": { "apiKey": "your-key-here" } }
  1. Restart the server

See references/configure-serpapi.md for detailed setup guide.

Data Flow

Before: User Query → Mock Data Generator → Estimated Prices
After:  User Query → SerpAPI → Real Prices → Auto-collect & Store

Confidence Levels

As data accumulates, AI responses should indicate confidence:

Days of DataConfidenceAI Disclaimer
< 7 daysLow"价格数据为估算值,仅供参考"
7-29 daysMedium"根据部分真实价格数据..."
30+ daysHigh"根据积累的真实价格数据..."

See references/data-sources.md for more details.

References

ComponentDoc
PriceChartreferences/price-chart-component.md
Data APIreferences/price-api.md
Analysis Logicreferences/price-analysis.md
Data Sourcesreferences/data-sources.md

Example Output

Based on your search, here are the best flights to Tokyo:

[Flight Cards Component]

## Price Analysis

Current prices are **12% below average** for this route.

[PriceChart Component]

### Recommendation: Buy Now ✅
- Current price: ¥1,299
- Historical average: ¥1,450
- You save: ¥151

Prices have been falling over the past 2 weeks. If you need to travel in peak season, booking now is recommended.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

78.64%
按下载量换算725

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills