A browser-level Prompt Command System — invoke any prompt instantly in any input field.
- ⚡ Quick Invocation — Type
/promptsin anyinput,textarea, orcontenteditableelement to open the panel - ⌨️ Keyboard Navigation —
↑↓to navigate,Enterto insert,Escto close - 🔍 Smart Search — Real-time filtering across title, content, and tags
- 🌐 Multi-language — Auto-detects browser language; AI responds in your preferred language
- 🎨 Themes — Light & dark, follows system preference automatically
- 💾 Data Management — Import/Export, GitHub Sync, CRUD, built-in default prompts
- 🔒 Privacy — All data stored locally; no external calls except GitHub sync; Shadow DOM isolation
| Prompt | Description |
|---|---|
| Code Review | Review code and provide improvement suggestions |
| Explain Code | Get detailed explanation of any code |
| Bug Fix | Debug and fix code issues |
| Write Tests | Generate test cases for code |
| Refactor Code | Improve code structure and quality |
| Analyze Error | Analyze and understand error messages |
| Prompt Optimizer | Optimize and enhance prompts for large language models |
git clone https://github.com/axetroy/PromptFlow.git
cd PromptFlow
npm install
npm run buildThen open chrome://extensions/, enable Developer mode, and click Load unpacked — select the dist/ folder.
Download the latest release from the Releases page and unzip.
- Click any text input on any webpage
- Type
/promptsto open the prompt panel - Navigate with
↑↓or type to search - Press
Enterto insert the prompt at cursor position - Press
Escto close the panel
Click the extension icon in the toolbar, or the settings button in the panel, to:
- Customize the trigger command
- Add / Edit / Delete prompts
- Import / Export prompts
- Sync prompts from GitHub
- Reset to defaults
Sync prompts from a GitHub repository:
- Open settings → Sync from GitHub
- Enter repository in
owner/repoformat - Optionally specify branch and prompts path
- Prompts are synced automatically
Repository requirements: prompt files must be .md with YAML frontmatter including a title field.
npm install
npm run dev # build once
npm run typecheck # TypeScript type checking
npm test # Playwright integration tests
npm run build # production buildsrc/
├── types/ # Type definitions (prompt, sync)
├── utils/ # Storage & utility functions
├── prompts/ # Default prompt templates (.md)
├── SettingsApp.tsx # Settings page (React)
├── SyncManager.tsx # GitHub sync manager
├── content.ts # Content script
├── background.ts # Service worker
┌─────────────────────────────────┐
│ Content Script │
│ Input monitoring & trigger │
│ Cursor management & insertion │
├─────────────────────────────────┤
│ UI Layer (Floating Panel) │
│ Shadow DOM isolation │
│ Search & keyboard navigation │
├─────────────────────────────────┤
│ Background Service Worker │
│ Data management & storage sync │
│ GitHub integration │
└─────────────────────────────────┘
GitHub Actions runs type checks, builds, and Playwright tests on every push. Releases are automatically packaged on version tags.
