Skip to content
Prompt

Image-Reverse-Search-WebExtension — Cursor Rules

by Brawl345

AI Summary

Build with . Never run the commands, the user will do it manually. Lint with the for TypeScript and for Biome. Do not use as it will start a long running watch commands - just use . For every string, add the localization to and use the function to retrieve it. Do not hardcode any strings in th

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to add the "Image-Reverse-Search-WebExtension — Cursor Rules" prompt rules to my project.
Repository: https://github.com/Brawl345/Image-Reverse-Search-WebExtension

Please read the repo to find the rules/prompt file, then:
1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type)
2. If there's an existing rules file, merge the new rules in rather than overwriting
3. Confirm what was added

Description

WebExtension: Adds an option to the context menu to search with an image on various services. Made with Svelte.

Overview

• WebExtension which adds an option to the context menu to search with an image on various services • Code is written in TypeScript • UI is built with Svelte 4 • Linted with Biome • Tested with Vitest • Built with web-ext

Source code structure

• source/: Source code • service-worker/: Service worker code • options/: Options page • components/: Svelte components • stores/: Svelte stores • App.svelte: Main Svelte component • options.scss: Stylesheet • options.ts: For initialization of Svelte • public/: Built code • build/: Built JavaScript and CSS • _locales/: Localizations • manifest.json: Manifest • icons/: Icons

Build

Build with npm run build. Never run the start:BROWSER commands, the user will do it manually. Lint with the npm run lint:types for TypeScript and npm run lint:code for Biome. Do not use npm run dev as it will start a long running watch commands - just use npm run build.

Important to note

For every string, add the localization to public/_locales/LOCALE/messages.json and use the getMessage function to retrieve it. Do not hardcode any strings in the code. Translate the strings in all languages. For German, use the informal (Du) version. Only add tests for core code and when neccessary. Do not test Svelte components.

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 4mo ago
Stale
Adoption100+ stars on GitHub
157 ★ · Growing
DocsREADME + description
Well-documented

GitHub Signals

Stars157
Forks26
Issues5
Updated4mo ago
View on GitHub
Unlicense License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Any AI assistant that accepts custom rules or system prompts

Claude
ChatGPT
Cursor
Windsurf
Copilot
+ more