Check Examples GitHub Links
Verify all GitHub raw content URLs in examples metadata are accessible.
Objective
Test every GitHub URL in frontend/src/features/examples/data/examples-metadata.json to ensure:
- •All URLs return HTTP 200 (OK)
- •Content is accessible
- •No broken or missing files on GitHub
Process
- •
Read metadata - Parse
frontend/src/features/examples/data/examples-metadata.json - •
Extract URLs - Get all
urlfields from both English and Japanese examples:json{ "en": [{ "files": [{ "url": "https://raw.githubusercontent.com/..." }] }], "ja": [{ "files": [{ "url": "https://raw.githubusercontent.com/..." }] }] } - •
Test each URL - Use WebFetch or HTTP HEAD/GET requests:
- •Set 10-second timeout
- •Check for HTTP 200 response
- •Record success/failure
- •
Generate report:
code🔍 Testing GitHub URLs for examples... ✅ EN use_case_001 checklist: OK (200) ✅ EN use_case_001 review: OK (200) ❌ EN use_case_004 review: FAILED (404) ... 📊 SUMMARY ============================== Total URLs: 25 ✅ Working: 24 ❌ Broken: 1 ❌ BROKEN URLS: - https://raw.githubusercontent.com/.../review_004.pdf Status: 404 Not Found
Implementation Strategy
- •Parse JSON metadata to extract all URL fields
- •For each URL:
- •Use WebFetch tool with simple prompt: "Check if this URL is accessible"
- •Or use Python urllib with 10s timeout
- •Record HTTP status code
- •Summarize results with counts and failed URL list
Success Criteria
- •All URLs return HTTP 200
- •No timeout errors
- •Content-Type headers appropriate for file types (PDF/PNG/TXT)