SkillsGrove
SkillsGrove/ドキュメント作成/aiagentwithdhruv/skills/generate-report

generate-report

インストール

$npx skills add https://github.com/aiagentwithdhruv/skills --skill generate-report
$git clone --depth 1 https://github.com/aiagentwithdhruv/skills.git /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/generate-report ~/.claude/skills/generate-report
この Agent Skill をインストールしてください:https://github.com/aiagentwithdhruv/skills/tree/2f4c62c203b1279e82979f2d78776ce846e5a30c/generate-report — まず SKILL.md とスクリプトを読み、安全であることを確認してから、私のスキルフォルダにインストールしてください。

概要

原文の説明 · MITGenerate weekly weather reports for Canada using Open-Meteo API (free, no API key required) and PDF generation. Use when user asks to create a weather report, generate Canada weather summary, or build weekly weather PDF.
以下の SKILL.md は aiagentwithdhruv/skills(コミット 2f4c62c)から MIT ライセンスに基づいて転載しています。本文は変更しておらず、ファイル先頭のメタデータのみ省略し、画像はリンクとして表示し、非常に長いファイルは途中までの表示としています。Copyright 2026 Dhruv Tomar (AIwithDhruv)。ライセンス:LICENSE。表示しているのは指示ファイルのみです。スクリプト等は元のリポジトリをご覧ください。

Canada Weekly Weather Report Generator

Goal

Generate a professional PDF weather report for Canada using real-time data from Open-Meteo API (free, no API key required). The report uses the "Orange and Black Modern Annual Report" template style.

Inputs

  • Week Start Date (optional): Start date for the report period (defaults to current week)
  • Cities (optional): List of Canadian cities to include (defaults to major cities)

Default Canadian Cities

The report covers these major cities by default:

  • West Coast: Vancouver, Victoria
  • Prairies: Calgary, Edmonton, Winnipeg
  • Central: Toronto, Ottawa, Montreal
  • Atlantic: Halifax, St. John's
  • North: Whitehorse, Yellowknife

Scripts

All scripts are in ./scripts/:

  • fetch_weather.py - Fetches weather data from Open-Meteo API (no API key needed)
  • generate_report_pdf.py - Generates the styled PDF report

Process

1. Fetch Weather Data

python3 ./scripts/fetch_weather.py --output .tmp/canada_weather.json

Optional parameters:

  • --cities "Vancouver,Toronto,Montreal" - Custom city list
  • --days 7 - Number of forecast days (default: 7, max: 16)

2. Generate PDF Report

python3 ./scripts/generate_report_pdf.py \
  --input .tmp/canada_weather.json \
  --output .tmp/canada_weekly_weather_report.pdf \
  --template ".tmp/Orange and Black Modern Annual Report.pdf"

3. Review and Deliver

  • Open .tmp/canada_weekly_weather_report.pdf to verify
  • Upload to Google Drive or send via email if requested

Report Structure (Matching Template)

  1. Cover Page: "Canada Weekly Weather Report" with date range
  2. Table of Contents: Regional sections listed
  3. National Overview: Summary of weather patterns across Canada
  4. Regional Highlights: Key metrics (avg temp, precipitation, extremes)
  5. West Coast Weather: Vancouver, Victoria details
  6. Prairies Weather: Calgary, Edmonton, Winnipeg details
  7. Central Canada Weather: Toronto, Ottawa, Montreal details
  8. Atlantic Weather: Halifax, St. John's details
  9. Northern Territories: Whitehorse, Yellowknife details
  10. 7-Day Outlook: Forecast summary with trends
  11. Weather Alerts: Any active warnings/advisories
  12. Data Sources: Open-Meteo attribution

Output

Primary deliverable: PDF report at .tmp/canada_weekly_weather_report.pdf

The report includes:

  • Current conditions for each city
  • 7-day forecast with highs/lows
  • Precipitation amounts
  • Regional comparisons

Error Handling

  • City not found: Skip city, log warning, continue
  • Network error: Retry up to 3 times with backoff
  • Missing data: Use "N/A" placeholders

Environment

No API key required! Open-Meteo is free and open-source.

Data source: https://open-meteo.com/


Schema

Inputs

Name Type Required Description
week_start_date string No Start date for report period (defaults to current week)
cities string No Comma-separated list of Canadian cities

Outputs

Name Type Description
pdf_path file_path PDF report at .tmp/canada_weekly_weather_report.pdf

Cost

Free (Open-Meteo API)

ライセンス全文を見る(MIT)
MIT License

Copyright (c) 2026 Dhruv Tomar (AIwithDhruv)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.