Skip to content

chore: realign .claude config to the Optia extension#2

Merged
PAMulligan merged 1 commit into
rebrand/optiafrom
chore/optia-claude-config
Jun 26, 2026
Merged

chore: realign .claude config to the Optia extension#2
PAMulligan merged 1 commit into
rebrand/optiafrom
chore/optia-claude-config

Conversation

@PAMulligan

Copy link
Copy Markdown
Contributor

Realigns the .claude/ configuration (and CLAUDE.md) to describe this MV3 Chrome extension instead of the leftover generic Figma-to-React framework template it was copied from. Based on a multi-agent audit of the repo. No app/ code changes — config/docs only.

Stacked on #1 (base = rebrand/optia). Retarget to main after #1 merges.

Why

Every file an agent read for "context" pointed at the wrong project: CLAUDE.md documented Next.js/Storybook/Figma commands that don't exist here, the 9 skills auto-fired Figma/React guidance on everyday keywords, .mcp.json declared Figma servers (which inject "use Figma whenever UI is mentioned" prompts) while omitting the chrome-devtools MCP actually in use, the lone hook was broken, and the root release config tagged template-v* without bumping manifest.json.

What changed

  • CLAUDE.md — full rewrite: real commands (cd app; pnpm dev = web preview at /dev.html vs pnpm dev:ext = crxjs), architecture map, SEO scoring model, testing + release notes, and an explicit "this repo does NOT use" list.
  • New skillschrome-extension-dev (MV3 message catalog, storage schema, SW/side-panel lifecycle, the two-extractor rule, dev-mode detection) and testing-chrome-extension (real chrome-mock / load-order / OpenAI-mock / RTL patterns). Both grounded in actual file:line references.
  • New commands/release-extension (version-sync + zip + Web Store checklist) and /add-seo-check (the ~8-file cross-file contract). Fixed /lint (ESLint-only, no Prettier) and /test (Vitest-only, from app/).
  • .mcp.json — dropped the Figma servers, declared chrome-devtools.
  • Hook — replaced the broken $TOOL_INPUT-grepping hook with .claude/hooks/guards.mjs: blocks standard-version/release runs from the repo root, and reminds on twin-extractor and manifest.json version/permission edits.
  • Prune — removed 30 irrelevant studio/social/figma agents (kept 14 engineering/QA/store/marketing/support), all 9 Figma/React skills, build-from-figma/create-blog-article, the scripts/ + templates/ scaffolding, the Figma/React docs, and the root release config + vestigial root lockfile.

Net: 108 files, −15.7k / +0.6k. JSON + hook validated; app/ untouched so the 309 tests are unaffected.

🤖 Generated with Claude Code

Replace leftover Figma-to-React framework tooling with config that actually describes this MV3 Chrome extension.

- Rewrite CLAUDE.md: real commands (cd app; dual dev modes), architecture map, SEO scoring model, testing + release notes, and a 'does NOT use' list.

- Add project skills: chrome-extension-dev (MV3 message/storage/SW lifecycle contracts) and testing-chrome-extension (real Vitest/chrome-mock/openai-mock patterns).

- Add commands: /release-extension (version sync + store checklist) and /add-seo-check (the cross-file contract). Fix /lint (ESLint-only, no Prettier) and /test (Vitest-only, run from app/).

- Fix .mcp.json drift: drop the Figma servers (they inject 'use Figma' prompts), declare chrome-devtools (the MCP actually used).

- Replace the broken PostToolUse hook with .claude/hooks/guards.mjs: blocks root releases, reminds on extractor-twin and manifest version/permission edits.

- Prune 30 irrelevant agents (keep 14), the 9 Figma/React skills, dead commands, scripts/ + templates/ scaffolding, Figma/React docs, and the root release config.

Based on a multi-agent audit of the repo. No app/ code changes.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@PAMulligan PAMulligan merged commit 3406304 into rebrand/optia Jun 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant