大数据驱动的智能农业产量预测
简介
基于大数据的农业产量预测工具,整合历史数据、天气模式和市场趋势,为农户与农业企业提供数据驱动的产量预估与决策支持。
原始描述
Agricultural Product Output Forecasting Based on Big Data. Predicts crop yields and agricultural output using historical data, weather patterns, and market t...
通过你的 Agent 添加
安装目录:agricultural-output-forecasting/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
中文使用说明 来自收录源
核心用法
Agricultural Output Forecasting 是一款面向农业领域的智能产量预测工具,用户可通过命令行或 Python API 调用,输入作物类型、种植面积、地理位置和季节等参数,获取基于大数据分析的产量预测结果。工具支持 Demo 模式(无需 API 密钥即可体验)、免费试用(10 次调用)及正式计费模式(每次约 0.001 USDT)。
典型调用场景:
- 农户规划种植规模前评估预期收益
- 农业企业制定采购与库存策略
- 金融机构评估农业贷款风险
- 政府部门进行粮食安全预测
显著优点
- 多维度数据融合:整合历史产量、实时天气、市场价格三类数据源,预测维度全面
- 低门槛体验:Demo 模式 + 10 次免费试用,降低用户决策成本
- 灵活输出:支持中英文双语、CSV 导出、历史对比分析
- 作物覆盖广:涵盖谷物、蔬菜、水果、经济作物等 15+ 品类
- 透明计费:SkillPay 按次计费,单次成本低(~0.001 USDT),无订阅负担
潜在局限
- 数据依赖性强:预测质量高度依赖外部天气 API 和市场数据的准确性与时效性
- 区域覆盖限制:文档明确提及"华北平原""长江三角洲"等中国区域,全球其他地区的数据源可靠性存疑
- 黑箱算法:未公开核心预测模型的具体算法(仅引用外部 methodology 文档),难以审计预测逻辑
- 付费墙限制:免费试用后必须绑定加密货币钱包(BNB Chain)充值,对非加密用户形成门槛
- 无离线能力:必须联网调用外部 API,无法在无网络环境使用
适合人群
- 中小规模农场主与农业合作社
- 农产品贸易与供应链企业
- 农业金融与保险从业者
- 农业政策研究机构
常规风险
风险类型
说明
预测误差风险
农业受极端天气、病虫害等不可控因素影响,任何模型均无法保证 100% 准确
数据隐私
虽声称不收集 PII,但种植规模、地理位置等属于敏感商业信息
服务商依赖
SkillPay 计费系统的持续运营直接影响工具可用性
加密货币波动
以 USDT 计价但实际通过 BNB Chain 结算,存在链上操作风险(Gas 费、钱包安全)
API 密钥泄露
需妥善保管 SKILLPAY_API_KEY,泄露可能导致余额被盗用
- 数据依赖性强:预测质量高度依赖外部天气 API 和市场数据的准确性与时效性
- 区域覆盖限制:文档明确提及"华北平原""长江三角洲"等中国区域,全球其他地区的数据源可靠性存疑
- 黑箱算法:未公开核心预测模型的具体算法(仅引用外部 methodology 文档),难以审计预测逻辑
- 付费墙限制:免费试用后必须绑定加密货币钱包(BNB Chain)充值,对非加密用户形成门槛
- 无离线能力:必须联网调用外部 API,无法在无网络环境使用
适合人群
- 中小规模农场主与农业合作社
- 农产品贸易与供应链企业
- 农业金融与保险从业者
- 农业政策研究机构
常规风险
风险类型
说明
预测误差风险
农业受极端天气、病虫害等不可控因素影响,任何模型均无法保证 100% 准确
数据隐私
虽声称不收集 PII,但种植规模、地理位置等属于敏感商业信息
服务商依赖
SkillPay 计费系统的持续运营直接影响工具可用性
加密货币波动
以 USDT 计价但实际通过 BNB Chain 结算,存在链上操作风险(Gas 费、钱包安全)
API 密钥泄露
需妥善保管 SKILLPAY_API_KEY,泄露可能导致余额被盗用
| 风险类型 | 说明 |
|---|---|
| 预测误差风险 | 农业受极端天气、病虫害等不可控因素影响,任何模型均无法保证 100% 准确 |
| 数据隐私 | 虽声称不收集 PII,但种植规模、地理位置等属于敏感商业信息 |
| 服务商依赖 | SkillPay 计费系统的持续运营直接影响工具可用性 |
| 加密货币波动 | 以 USDT 计价但实际通过 BNB Chain 结算,存在链上操作风险(Gas 费、钱包安全) |
| API 密钥泄露 | 需妥善保管 SKILLPAY_API_KEY,泄露可能导致余额被盗用 |
技能正文
name: agricultural-output-forecasting
description: Agricultural Product Output Forecasting Based on Big Data. Predicts crop yields and agricultural output using historical data, weather patterns, and market trends. Use when forecasting agricultural production, estimating crop yields, analyzing farming trends, or making data-driven decisions in agriculture.
version: 1.1.1
Agricultural Output Forecasting
Version: 1.1.0
Category: Agriculture / Analytics
Billing: SkillPay (1 token per call, ~0.001 USDT)
Free Trial: 10 free calls per user
Demo Mode: ✅ Available (no API key required)
Version: 1.1.0
Category: Agriculture / Analytics
Billing: SkillPay (1 token per call, ~0.001 USDT)
Free Trial: 10 free calls per user
Demo Mode: ✅ Available (no API key required)
A big data-driven agricultural product output forecasting tool that helps farmers, agronomists, and agricultural businesses predict crop yields and production outputs.
Features
- Yield Prediction - Forecast crop yields based on historical data and current conditions
- Weather Impact Analysis - Factor in weather patterns and climate data
- Market Trend Integration - Consider market prices and demand trends
- Multi-Crop Support - Support for various agricultural products (grains, vegetables, fruits, etc.)
- SkillPay Billing - Pay-per-use monetization (1 token per call, ~0.001 USDT)
- Free Trial - 10 free calls for every new user
- Demo Mode - Try without API key, returns simulated forecasts
- Historical Data - Track and compare with past forecasts
- CSV Export - Export forecast data to CSV format
- Multi-language Support - Chinese and English output
Support / 支持
If you find this skill helpful, you can support the developer:
EVM Address: 0xf8ea28c182245d9f66f63749c9bbfb3cfc7d4815
Your support helps maintain and improve this skill!
Demo Mode
Try the skill without any API key:
python scripts/forecast.py --demo --crop wheat --area 100 --region "华北平原" --season spring
Demo mode returns realistic simulated agricultural forecasts to demonstrate the output format.
Free Trial
Each user gets 10 free calls before billing begins. During the trial:
- No payment required
- Full feature access
- Trial status returned in API response
{
"success": True,
"trial_mode": True, # Currently in free trial
"trial_remaining": 7, # 7 free calls left
"balance": None, # No balance needed in trial
"forecast": {...}
}
After 10 free calls, normal billing applies.
Quick Start
Demo Mode (No API Key):
python scripts/forecast.py --demo --crop wheat --area 100 --region "华北平原" --season spring
Forecast agricultural output:
from scripts.forecast import forecast_output
import os
# Set environment variables (only needed after trial)
os.environ["SKILLPAY_API_KEY"] = "your-api-key"
os.environ["SKILLPAY_SKILL_ID"] = "your-skill-id"
# Forecast wheat yield
result = forecast_output(
crop_type="wheat",
area_hectares=100,
region="North China Plain",
season="spring",
user_id="user_123"
)
# Check result
if result["success"]:
print("预测产量:", result["forecast"])
if result.get("trial_mode"):
print(f"免费试用剩余: {result['trial_remaining']} 次")
else:
print("剩余余额:", result["balance"])
else:
print("错误:", result["error"])
if "paymentUrl" in result:
print("充值链接:", result["paymentUrl"])
View Forecast History:
python scripts/forecast.py --history --limit 10
Export to CSV:
python scripts/forecast.py --history --limit 20 --export forecasts.csv
Language Selection:
# Chinese output (default)
python scripts/forecast.py --crop rice --area 50 --region "长江三角洲" --season summer --user-id "user_123" --language zh
# English output
python scripts/forecast.py --crop rice --area 50 --region "Yangtze Delta" --season summer --user-id "user_123" --language en
Environment Variables
from scripts.forecast import forecast_output
import os
# Set environment variables (only needed after trial)
os.environ["SKILLPAY_API_KEY"] = "your-api-key"
os.environ["SKILLPAY_SKILL_ID"] = "your-skill-id"
# Forecast wheat yield
result = forecast_output(
crop_type="wheat",
area_hectares=100,
region="North China Plain",
season="spring",
user_id="user_123"
)
# Check result
if result["success"]:
print("预测产量:", result["forecast"])
if result.get("trial_mode"):
print(f"免费试用剩余: {result['trial_remaining']} 次")
else:
print("剩余余额:", result["balance"])
else:
print("错误:", result["error"])
if "paymentUrl" in result:
print("充值链接:", result["paymentUrl"])
python scripts/forecast.py --history --limit 10
Export to CSV:
python scripts/forecast.py --history --limit 20 --export forecasts.csv
Language Selection:
# Chinese output (default)
python scripts/forecast.py --crop rice --area 50 --region "长江三角洲" --season summer --user-id "user_123" --language zh
# English output
python scripts/forecast.py --crop rice --area 50 --region "Yangtze Delta" --season summer --user-id "user_123" --language en
Environment Variables
python scripts/forecast.py --history --limit 20 --export forecasts.csv
# Chinese output (default)
python scripts/forecast.py --crop rice --area 50 --region "长江三角洲" --season summer --user-id "user_123" --language zh
# English output
python scripts/forecast.py --crop rice --area 50 --region "Yangtze Delta" --season summer --user-id "user_123" --language en
Environment Variables
This skill requires the following environment variables:
Required Variables (After Trial)
Variable
Description
Required
Example
SKILLPAY_API_KEY
Your SkillPay API key for billing
After trial
skp_abc123...
SKILLPAY_SKILL_ID
Your Skill ID from SkillPay dashboard
After trial
skill_def456...
Optional Variables
Variable
Description
Default
OPENWEATHER_API_KEY
OpenWeatherMap API key for weather data
-
WEATHERAPI_KEY
WeatherAPI key for alternative weather data
-
USDA_API_KEY
USDA API key for US agricultural data
-
OPENAI_API_KEY
OpenAI API key for enhanced forecasting
-
CACHE_DURATION_MINUTES
Cache duration for weather/market data
60
MAX_FORECAST_AREA
Maximum area in hectares per request
10000
| Variable | Description | Required | Example |
|---|---|---|---|
SKILLPAY_API_KEY |
Your SkillPay API key for billing | After trial | skp_abc123... |
SKILLPAY_SKILL_ID |
Your Skill ID from SkillPay dashboard | After trial | skill_def456... |
| Variable | Description | Default |
|---|---|---|
OPENWEATHER_API_KEY |
OpenWeatherMap API key for weather data | - |
WEATHERAPI_KEY |
WeatherAPI key for alternative weather data | - |
USDA_API_KEY |
USDA API key for US agricultural data | - |
OPENAI_API_KEY |
OpenAI API key for enhanced forecasting | - |
CACHE_DURATION_MINUTES |
Cache duration for weather/market data | 60 |
MAX_FORECAST_AREA |
Maximum area in hectares per request | 10000 |
See .env.example for a complete list of environment variables.
Configuration
The skill uses SkillPay billing integration:
- Provider: skillpay.me
- Pricing: 1 token per call (~0.001 USDT)
- Chain: BNB Chain
- Free Trial: 10 calls per user
- Demo Mode: Available without API key
- API Key: Set via
SKILLPAY_API_KEYenvironment variable - Skill ID: Set via
SKILLPAY_SKILL_IDenvironment variable - Minimum deposit: 8 USDT
Supported Crops
- Grains: wheat, rice, corn, barley, sorghum
- Vegetables: tomato, potato, cabbage, cucumber
- Fruits: apple, orange, grape, peach
- Others: soybean, cotton, sugarcane
Output Format
Forecast results include:
- Predicted yield (tons/hectare)
- Confidence interval
- Weather impact factor
- Market price prediction
- Risk assessment
- Recommendations
- Historical comparison
Response Format
{
"success": True,
"demo_mode": False, # True if in demo mode
"trial_mode": False, # True during free trial
"trial_remaining": 0, # Remaining free calls
"balance": 95.5, # User balance (None during trial/demo)
"forecast": {
"forecast_id": "AGR_20240306120000",
"crop_type": "wheat",
"yield_forecast": {...},
"risk_assessment": {...},
"recommendations": [...],
"historical_comparison": {...}
}
}
Security Considerations
Data Privacy
- Agricultural data is treated as confidential business information
- No personally identifiable information (PII) is collected
- Weather and market data is cached to minimize API calls
API Key Security
- Never commit API keys to version control
- Use environment variables for all sensitive configuration
- Rotate API keys regularly
References
- For forecast methodology: see references/forecast-methodology.md
- For billing API details: see references/skillpay-billing.md
- For full documentation: see README.md
Changelog
v1.1.0
- Added demo mode (no API key required)
- Added forecast history tracking
- Added CSV export functionality
- Added historical data comparison
- Added multi-language support (zh/en)
- Unified environment variable naming to
SKILLPAY_API_KEY and SKILLPAY_SKILL_ID
v1.0.1
- Initial stable release
- SkillPay billing integration
- Free trial support
{
"success": True,
"demo_mode": False, # True if in demo mode
"trial_mode": False, # True during free trial
"trial_remaining": 0, # Remaining free calls
"balance": 95.5, # User balance (None during trial/demo)
"forecast": {
"forecast_id": "AGR_20240306120000",
"crop_type": "wheat",
"yield_forecast": {...},
"risk_assessment": {...},
"recommendations": [...],
"historical_comparison": {...}
}
}
Data Privacy
- Never commit API keys to version control
- Use environment variables for all sensitive configuration
- Rotate API keys regularly
References
- For forecast methodology: see references/forecast-methodology.md
- For billing API details: see references/skillpay-billing.md
- For full documentation: see README.md
Changelog
v1.1.0
- Added demo mode (no API key required)
- Added forecast history tracking
- Added CSV export functionality
- Added historical data comparison
- Added multi-language support (zh/en)
- Unified environment variable naming to
SKILLPAY_API_KEY and SKILLPAY_SKILL_ID
v1.0.1
v1.1.0
SKILLPAY_API_KEY and SKILLPAY_SKILL_ID- Initial stable release
- SkillPay billing integration
- Free trial support
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。