This repository is configured for iterative agent work.
- Product task spec:
docs/tasks/PRD.md - Progress log:
docs/tasks/progress.txt - Repo-specific execution prompt:
docs/tasks/prompt.md
- Read
docs/tasks/PRD.mdanddocs/tasks/progress.txtbefore making changes. - Complete exactly one task at a time unless a small follow-up is required to keep the app runnable.
- Append updates to
docs/tasks/progress.txt; do not rewrite prior entries. - Keep the app buildable after each iteration.
- Prefer small, production-safe edits over broad refactors.
- Use server-side data access for privileged Supabase reads.
- Never expose secrets or service-role credentials to the client.
- Normalize inconsistent AI extraction data in server utilities before rendering.
- After changes, run the smallest relevant validation commands available.
- Do not perform git history rewrites or commits unless explicitly requested.
- Homepage:
src/routes/+page.svelte - Cron ingestion endpoint:
src/routes/api/cron/ingest/+server.ts - Cron classify endpoint:
src/routes/api/cron/classify/+server.ts - Server code:
src/lib/server/ - Supabase migrations:
supabase/migrations/
The current MVP goal is to turn the classified article pipeline into a usable ShieldByte experience:
- Replace the starter homepage
- Add safe server-side reads for classified articles
- Build a recent threat feed
- Add an article intelligence detail view
- Add a mission-style training experience
- Tighten pipeline contracts and validation
Use the smallest relevant checks first:
npm run checknpm run build