# CLAUDE.md Become a Pro (https://becomeapro.ai): free, plain-English lessons that teach the useful skills of every trade and profession. Trades, knowledge work, English (with pronunciation audio), math and teaching. Text first: no videos, no 3D, no animation, no logo mark. ## Commands - `npm run dev`: local server - `npm run build:cloudflare`: production build (OpenNext for Cloudflare Workers) - `npm run deploy:cloudflare`: build and deploy the `airesource-pro-site` Worker (serves becomeapro.ai) - `npm test`: Jest; `npm run test:e2e`: Playwright against `PLAYWRIGHT_BASE_URL` - `npm run check:lessons`: checks every lesson compiles and follows the rules - `npm run audio`: makes missing pronunciation clips for `` words (needs `ELEVENLABS_API_KEY`, Bitwarden Secrets Manager `AGENT_ELEVENLABS_API_KEY`) ## Content - Areas and fields: `src/lib/catalog.ts`. Lessons: `content/lessons///.mdx`. URLs follow the same path. - How to write a lesson, the components (`Callout`, `Steps`, `Diagram`, `Say`, `Resources`) and the rules: `docs/LESSONS.md`. - Lessons get reviewed and refreshed. Each shows its `updated` date; change it when you check or revise a lesson. Teach only current tools and methods: when something better replaces a product or method, rewrite the lesson. - Pronunciation clips live in `public/audio/.mp3` (slug rule in `src/lib/audio.ts`). - The old AI tutorials live under Knowledge work > Using AI at work; `next.config.js` redirects their old paths. ## Site rules - Plain black and white, one system font, light and dark follow the device. Header is the text "Become a Pro" only. Footer is exactly "Research ยท Source" (Source links to this page's code on Branchwell). - Never the words "business" or "branch". No prices, no ads, no partner asks, no copyright line, no mention of other sites or Project ATOM. - NO SEO (2026-12-02): no sitemap, canonical tags, JSON-LD, keywords or search-console verification. - `cloudflare-worker.mjs` 301s www.becomeapro.ai, airesourcepro.com, www.airesourcepro.com, airesource.pro and www.airesource.pro to https://becomeapro.ai, keeping the path. - `src/app/research/plan.ts` is generated by hosting-research `tools/research-gen/embed.py`; edit `plans.py` there. ## Auth Sign-in is BioLock only (the device's own fingerprint or face reader, `src/lib/biolock/`), sessions by Better Auth, data in D1 `airesourcepro-accounts` (binding `ACCOUNTS_DB`). `AIRESOURCE_AUTH_ORIGIN` (set to `https://becomeapro.ai` in `wrangler.jsonc`) sets the BioLock site and origin; secret `AIRESOURCE_BETTER_AUTH_SECRET`. Accounts store a name, device keys and saved lessons (`/` keys). ## Code style TypeScript strict, server components by default, small files, no dead code.