famaoai-creator

data-collector

Fetches data from URLs (Web/API) and saves it to a local directory with metadata (timestamp, source, hash) for traceability. Supports incremental updates.

famaoai-creator 1 2 Updated 6mo ago

Resources

4
GitHub

Install

npx skillscat add famaoai-creator/gemini-skills/data-collector

Install via the SkillsCat registry.

About this skill

The data-collector skill downloads content from a specified URL and stores it in a local directory, recording metadata such as timestamp, source, and hash to enable traceability and incremental updates. It is used when reliable, repeatable data extraction and change detection are required, for example in ETL pipelines or automated monitoring tasks.

SKILL.md

Data Collector

A utility skill to fetch data from remote sources (URLs) and store it locally with rich metadata. It is designed to be the "Extract" part of an ETL pipeline, focusing on reliable data retrieval and change tracking.

Features

  • Fetch: Downloads content from HTTP/HTTPS URLs.
  • Traceability: Saves a manifest.json tracking source URL, fetch time, and content headers.
  • Incremental: Skips download if the remote content hasn't changed (based on Content-Length or ETag/Hash comparison if implemented).

Usage

node data-collector/scripts/collect.cjs --url <URL> --out <output_dir> [options]

Options

  • --url: The source URL to fetch.
  • --out: Target directory to save the file.
  • --name: (Optional) Specific filename to save as. If omitted, derived from URL or Content-Disposition.
  • --force: Force download even if content hasn't changed.

Example

# Fetch a user list and save to ./raw_data
node data-collector/scripts/collect.cjs --url "https://jsonplaceholder.typicode.com/users" --out "./raw_data" --name "users.json"

Knowledge Protocol

  • This skill adheres to the knowledge/orchestration/knowledge-protocol.md. It automatically integrates Public, Confidential (Company/Client), and Personal knowledge tiers, prioritizing the most specific secrets while ensuring no leaks to public outputs.