# CLAUDE.md ## Overview Phenocheck is a Manifest V3 Chrome extension that shows estimated human phenotypes for X.com (Twitter) users based on their declared location. No build step: plain JS/CSS loaded directly by the browser. ## Commands - No package manager, build, lint, or test tooling exists yet (no `package.json`). - Load locally: open `chrome://extensions`, enable Developer mode, "Load unpacked", select the repo root. - Quick syntax check: `node --check .js` (used by the Claude hooks below). - Validate the manifest: `node -e "JSON.parse(require('fs').readFileSync('manifest.json'))"`. ## Architecture - `manifest.json` — MV3 manifest: permissions, content scripts, icons. - `background.js` — service worker. - `content.js` / `content.css` — injected into x.com / twitter.com pages. - `data/data.js` — phenotype/location dataset loaded before `content.js`. - `images/` — icons and phenotype images (including `images/phenotypes/custom/`). - See `docs/` for anything deeper than this overview. ## Conventions - Plain ES JS (no bundler, no transpiler, no framework). Keep it that way unless asked. - Keep `manifest.json` the source of truth for the extension version (`MAJOR.MINOR.PATCH`), bumped only by `.github/workflows/version.yml`. ## Workflow quirks - Host is Gitea (`git.zenvairo.es`), not GitHub — use `tea`, not `gh`. - No `development` branch exists yet; work directly against `main` via task branches until one is created. ## Deployment - Not applicable: this is a browser extension loaded unpacked / published to a web store, not a deployed web service. ## Gotchas - There is no linter, formatter, or test runner configured yet. The Stop hook only runs `node --check` on the extension's JS files and validates `manifest.json`. - No environment variables are read by the code today; `.env.example` is a placeholder for when that changes.