Files
dasemuandClaude Sonnet 5 d6598d0b31 chore: bootstrap Claude setup
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>
2026-10-18 15:02:43 +02:00

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 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.