mirror of
https://github.com/yamadashy/repomix.git
synced 2026-05-30 11:18:53 +02:00
27dc9e0316
Created comprehensive guidelines for browser extension development including: - Project structure and key features overview - Multi-language internationalization (11 languages) - Manifest V3 compliance and cross-browser support - Development commands and testing procedures - Store deployment considerations 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1.8 KiB
1.8 KiB
Browser Extension Guidelines
This file provides guidance for working with the Repomix browser extension.
Project Overview
Cross-browser extension (Chrome/Firefox/Edge) that adds Repomix integration to GitHub repository pages. Uses Manifest V3 with content scripts to inject a "Repomix" button directly into GitHub's UI.
Directory Structure
browser/
├── app/ # Extension source code
│ ├── _locales/ # Internationalization files (11 languages)
│ ├── images/ # Extension icons (16px to 128px)
│ ├── manifest.json # Extension manifest (Manifest V3)
│ ├── scripts/ # TypeScript source files
│ │ ├── background.ts # Service worker (background script)
│ │ └── content.ts # Content script for GitHub integration
│ └── styles/ # CSS styles for injected elements
├── dist/ # Built extension files (generated)
├── promo/ # Store promotional materials
└── tests/ # Test files
Development Commands
npm run dev chrome # Development mode for Chrome
npm run build-all # Build for all browsers
npm run lint # TypeScript type checking
npm run test # Run tests
npm run generate-icons # Generate icon set from SVG
Internationalization
Supported Languages (11 total)
English, Japanese, German, French, Spanish, Portuguese (Brazilian), Indonesian, Vietnamese, Korean, Chinese (Simplified/Traditional), Hindi.
Adding New Languages
- Create directory in
app/_locales/[language_code]/ - Add
messages.jsonwith required keys:appName,appDescription,buttonText
- Add
detailed-description.txtfor store descriptions - Test extension loads correctly with new locale