← Back to Skills Marketplace
bettermen

Fishing Trip Planner

by bettermen · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ✓ Security Clean
29
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install fishing-trip-planner
Description
AI钓鱼行程规划助手。输入出发地、目的地、钓鱼时间和出行方式,自动调用高德地图API(路线规划)和和风天气API(天气+潮汐),生成完整钓鱼行程规划报告(HTML)。支持配置管理(--setup)和历史记录(--history/--view)。触发词:钓鱼行程、钓鱼规划、钓鱼攻略、出海钓鱼、钓鱼行程报告、fish...
README (SKILL.md)

Fishing Trip Planner - 钓鱼行程规划 v2.0

Overview

基于高德地图路线规划API与和风天气(天气+潮汐)API,自动生成专业钓鱼行程规划报告。用户只需提供出发地、目的地、钓鱼时间和出行方式,系统自动整合路线、天气、潮汐数据,输出HTML可视化报告。

v2.0 新增:

  • --setup 交互式配置向导,无需手动设置环境变量
  • --history / --view 行程历史记录管理系统
  • API Key 持久化存储 ~/.fishing-planner/config.json
  • 每次规划自动存档,支持回顾对比

When to Use

  • 用户询问钓鱼出行规划、钓鱼行程安排
  • 用户想了解某海域/钓点的路线、天气、潮汐情况
  • 用户问"我之前去过XX钓点"需要查看历史记录
  • 触发词:钓鱼行程、钓鱼规划、出海钓鱼、钓鱼攻略、潮汐查询、钓鱼天气

Workflow

Step 0: 首次配置 (仅一次)

引导用户运行配置向导:

python scripts/fishing_planner.py --setup

交互式输入:

  1. 高德地图 API Key → 申请: https://lbs.amap.com/
  2. 和风天气 API Key → 申请: https://dev.qweather.com/
  3. 默认潮汐站点ID → 可选,海钓必填,格式如 P2951
  4. 用户名 → 可选

配置持久化保存到 ~/.fishing-planner/config.json (权限 600)。 向导会自动验证 Key 有效性。

如果用户不想运行向导: 也可通过环境变量 AMAP_KEYQWEATHER_KEYTIDE_STATION 设置。

Step 1: 收集用户输入

确认以下必填信息:

  • 出发地 (origin): 城市名或具体地址,如"深圳南山"
  • 目的地 (destination): 钓点/海域,如"惠州巽寮湾"
  • 钓鱼时间 (date): 日期,如"2026-06-15"或"明天"
  • 出行方式 (mode): driving/walking/transit/bicycling (默认 driving)

Step 2: 运行规划脚本

python scripts/fishing_planner.py \
  -o "深圳南山" \
  -d "惠州巽寮湾" \
  -t "2026-06-15" \
  -m driving

脚本自动完成:

  1. 地理编码 (地名→坐标) → 高德地图
  2. 路线规划 (距离、时间、步骤) → 高德地图
  3. 7天预报 + 逐小时预报 → 和风天气
  4. 潮汐查询 (满潮/干潮时间、潮高) → 和风天气
  5. 综合钓鱼评分 (0-100) → 本地算法
  6. 生成HTML报告并自动存档 → ~/.fishing-planner/trips/

Step 3: 展示报告

脚本输出HTML报告路径,使用 preview_url 展示。

报告包含:

  • 综合评分盘: 0-100分 + 四级评级 (优秀/良好/一般/不佳)
  • 路线总览: 距离、预计时间、过路费、路线步骤
  • 天气预报: 7天天气卡片矩阵 + 钓鱼日逐小时天气表
  • 潮汐预报: 满潮/干潮时间表
  • 条件评估: 风力/温度/降水/潮汐 四维评级表
  • 钓鱼建议: 智能建议 + 装备清单 + 安全提醒

Step 4: 查看历史记录

python scripts/fishing_planner.py --history    # 列表
python scripts/fishing_planner.py --view 1     # 按序号打开
python scripts/fishing_planner.py --view 20260615  # 按ID打开

数据存储结构

~/.fishing-planner/
├── config.json              # API Key配置 (权限 600)
├── trips_index.json         # 行程元数据索引
└── trips/
    ├── 20260615_083000.html # 行程HTML报告
    ├── 20260612_143000.html
    └── ...

API 能力覆盖

数据源 API 用途
高德地图 地理编码 /v3/geocode/geo 地名→坐标
高德地图 驾车规划 /v3/direction/driving 路线规划
高德地图 步行规划 /v3/direction/walking 路线规划
高德地图 公交规划 /v3/direction/transit/integrated 路线规划
和风天气 7天预报 /v7/weather/7d 天气预报
和风天气 逐小时预报 /v7/weather/24h 精细天气
和风天气 潮汐 /v7/ocean/tide 潮汐数据
和风天气 钓鱼指数 /v7/indices/1d 专业评分

命令行参考

python fishing_planner.py --setup          # 配置向导
python fishing_planner.py --history        # 查看历史
python fishing_planner.py --view \x3CID>      # 查看历史报告
python fishing_planner.py -o \x3C出发> -d \x3C目的> -t \x3C日期> [-m \x3C方式>] [-O \x3C输出路径>]

Resources

scripts/fishing_planner.py

核心规划脚本 v2.0。包含配置管理、API调用、评分算法、HTML生成、历史存档全部功能。

references/api_guide.md

API密钥申请步骤、接口详细文档、常见问题。

Usage Guidance
Install only if you are comfortable giving AMap and QWeather your trip locations and dates. Use dedicated low-privilege API keys, avoid running the script with elevated privileges, and delete ~/.fishing-planner/ if you want to remove stored keys and trip history.
Capability Tags
requires-oauth-tokenrequires-sensitive-credentials
Capability Assessment
Purpose & Capability
The artifacts coherently implement a fishing trip planner using AMap for geocoding/routes and QWeather for weather/tides, then generating an HTML report.
Instruction Scope
The instructions are scoped to setup, trip planning, report viewing, and history management; they do not show hidden unrelated tasks, but the permissions are not summarized in a dedicated permissions block.
Install Mechanism
Installation and use are a local Python script plus the requests dependency; no hidden installer, obfuscation, or automatic privileged execution was found.
Credentials
Network calls to AMap and QWeather are proportionate to route, weather, and tide planning, but users should expect origin, destination, date, coordinates, and API keys to be sent to those providers.
Persistence & Privilege
The skill stores API keys in ~/.fishing-planner/config.json with chmod 600 and automatically archives trip reports/history under ~/.fishing-planner/; this is disclosed and scoped, though retention and deletion controls could be clearer.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install fishing-trip-planner
  3. After installation, invoke the skill by name or use /fishing-trip-planner
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v0.1.0
Fishing Trip Planner v0.1.0 - Initial release with automated fishing trip planning using Gaode Map and QWeather APIs. - Generates a comprehensive HTML report including route, weather, tide, scoring, and suggestions. - Supports interactive setup wizard (`--setup`) and persistent API key storage. - Manages trip history with `--history` and `--view` commands. - Command-line operation; saves reports and configurations locally.
Metadata
Slug fishing-trip-planner
Version 0.1.0
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is Fishing Trip Planner?

AI钓鱼行程规划助手。输入出发地、目的地、钓鱼时间和出行方式,自动调用高德地图API(路线规划)和和风天气API(天气+潮汐),生成完整钓鱼行程规划报告(HTML)。支持配置管理(--setup)和历史记录(--history/--view)。触发词:钓鱼行程、钓鱼规划、钓鱼攻略、出海钓鱼、钓鱼行程报告、fish... It is an AI Agent Skill for Claude Code / OpenClaw, with 29 downloads so far.

How do I install Fishing Trip Planner?

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

Is Fishing Trip Planner free?

Yes, Fishing Trip Planner is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Fishing Trip Planner support?

Fishing Trip Planner is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Fishing Trip Planner?

It is built and maintained by bettermen (@bettermen); the current version is v0.1.0.

💬 Comments