fetch-and-update

Fetch Cyprus reservoir XLSX data and regenerate the app data module.

11|1|Updated Mar 18, 2025
One-click install
npx skills add https://github.com/vbougay/fragmata.info --skill fetch-and-update
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fetch-and-update
Source: https://github.com/vbougay/fragmata.info/tree/main/.claude/skills/fetch-and-update
Command: npx skills add https://github.com/vbougay/fragmata.info --skill fetch-and-update

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Keeps reservoir/dam figures in the dashboard up to date without manual downloading, parsing, and publishing, so the community and UI always reflect the latest MOA XLSX data.

Core Features & Use Cases

  • Automated XLSX retrieval: Locates and downloads the newest English (or Greek fallback) XLSX from the Cyprus MOA reservoir page.
  • Deterministic data ingestion: Uses Node-based download and XLSX parsing to generate a new app data module and ensures all 21 reservoirs are included with correct regional mapping.
  • Build-and-publish workflow: Validates the app builds, commits, pushes to GitHub, then publishes the updated community post to Telegram and refreshes related artifacts (historical storage heatmap, summaries, news/news-ticker).

Quick Start

Run the fetch-and-update skill to download the latest Cyprus reservoir XLSX, regenerate the latest data module and historical heatmap entry, push the build to the repository, and post the update to Telegram.

Frequently Asked Questions about fetch-and-update

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate parsing XLSX files and updating a Next.js data module?

Automating XLSX parsing and Next.js data module updates requires a workflow that downloads the spreadsheet, parses its contents deterministically, and regenerates the ingestion module. This ensures your dashboard dataset stays synchronized with the latest source file without manual intervention.

What is the best way to automate fetching reservoir data and publishing Telegram community posts?

The best way to automate fetching reservoir data and publishing Telegram community posts is to run an end-to-end workflow that retrieves the latest figures, validates the app build, pushes commits to Git, and then sends a corresponding Telegram message for the same update cycle.

How does English versus Greek fallback work when downloading government XLSX files?

The English versus Greek fallback mechanism prioritizes downloading the English XLSX file from the source page, but automatically falls back to the Greek version if the English update is delayed. It preserves English dam naming conventions during parsing regardless of the source file language.

Do I need a Node.js environment to parse XLSX files and update a historical storage heatmap?

Yes, deterministic data ingestion and XLSX parsing use a Node-based approach to generate the new app data module. This Node environment also handles updating the historical storage heatmap entries and validating the application build before committing to the repository.

Can I use CI Git publish workflows to validate app builds before sending Telegram automation messages?

Yes, you can use a CI Git publish workflow to ensure a successful app build before sending Telegram automation messages. The process validates the build, commits and pushes to origin, and only then triggers the Telegram community post for that specific update cycle.

Why does my automated data ingestion workflow fail when regional mapping for dams is missing?

Automated data ingestion workflows fail when regional mapping for dams is missing because the parsing logic expects all 21 reservoirs to be included with correct regional assignments. Ensuring the source XLSX contains complete regional data prevents module generation errors.