data-sync - Synchronize external data into collection JSON
Fetches external API data, validates and maps records, then safely writes sorted collection JSON through scripts/sync.
Tags
Updated: 2026-11-05Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Load configured data sources
- Fetch paginated API data
- Validate statuses and records
- Retry transient requests with backoff
- Cache repeatable requests
- Map fields to collection schemas
- Write sorted JSON atomically
- Block empty or sudden-drop writes
- Report differences and failures
Inputs
- Configured data source modules
- External API endpoints
- SYNC_* environment variables
- Category mapping file
- Previous collection JSON
Outputs
- Updated src/data/*.json files
- Dry-run difference reports
- Sync logs
- Exit status
- Previous data retained after failure
Requirements
- Node.js project with pnpm
- scripts/sync runner and source modules
- Network access to selected APIs
- Write access to data files
- Required source environment variables
- Collection schema and category definitions
