name: scrape-and-load description: Run the Wookieepedia scraper, convert data, load into SQLite, and verify with migration and full tests. disable-model-invocation: true
Run the full data pipeline sequentially from the cap/ directory.
Steps
Scrape Star Wars data
cd cap && npm run scrapeUses committed cache by default (fast). If the user requests
--bypass-cache, ask for explicit confirmation first, then runnpm run scrape:bypass-cacheinstead.Build CDS artifacts
cd cap && npm run buildLoad fixture data into SQLite
cd cap && npm run load_sqliteRun migration tests
cd cap && npm run test:migrationVerifies data conversion logic and report generation.
Run full test suite
cd cap && npm test
Rules
- Stop on failure. If any step fails, report the error and do not continue.
- Cache-first by default. Never bypass the scraper cache without user confirmation — fresh fetches hit Wookieepedia and take significantly longer.
- Report results. Summarize each step's outcome: scrape stats, build status, load counts, and test pass/fail/skip.