mirror of
https://github.com/Dasemu/Phenocheck.git
synced 2026-11-26 15:26:17 +00:00
Add root CLAUDE.md, docs/architecture.md, LESSONS.md, .env.example, .claude/settings.json hooks (PostToolUse JS syntax check, Stop hook validating manifest.json + node --check on all JS), and GitHub Actions workflows (ci.yml, version.yml) for this plain-JS Chrome extension with no existing build/lint/test tooling. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
1.9 KiB
1.9 KiB
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 <file>.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 beforecontent.js.images/— icons and phenotype images (includingimages/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.jsonthe 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 — usetea, notgh. - No
developmentbranch exists yet; work directly againstmainvia 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 --checkon the extension's JS files and validatesmanifest.json. - No environment variables are read by the code today;
.env.exampleis a placeholder for when that changes.