Anatomy of a great prompt
High-performing Extensy prompts follow this four-part structure: [Action] + [Target] + [Behavior] + [UI/Style]Bad vs. good prompt examples
- Highlighting prices
- Tab management
- API integration
Prompt templates by category
Use these as starting points and fill in the bracketed sections.Content modifier
Content modifier
Productivity tool
Productivity tool
API integration
API integration
Tab manager
Tab manager
What to include
- Website URLs — If your extension targets a specific site, name it:
twitter.com,github.com,wikipedia.org. - Visual details — Colors, positions (top-left, bottom-right), button labels, font sizes.
- Trigger conditions — “Run on page load” vs. “only when I click the toolbar icon” — these produce very different code.
- DOM selectors — If you know a CSS class name, element ID, or ARIA label, include it. The AI will use it directly rather than guessing.
- Storage needs — If your extension needs to remember settings (like an API key or a toggle state), mention that you want to use
chrome.storage.
What not to include
- Backend logic — Extensy generates Chrome extensions, which run entirely client-side. It cannot host a database, manage server-side sessions, or provide API keys on your behalf.
- OAuth flows — Full OAuth redirect flows require a backend server. Extensy can generate the client-side portion, but you need to provide and host the OAuth server yourself.
- System-level actions — Chrome extensions are sandboxed. They cannot delete files, control other applications, or access OS settings.
Extensy handles frontend and client-side logic. For anything that requires a running server — databases, authentication backends, webhook listeners — you need to supply your own API endpoints and pass them into the prompt.
Iteration strategy
Your first generation rarely needs to be perfect. If the result is 80% there, use a refinement prompt rather than starting over. A good refinement prompt references what already exists and adds one specific change:“The extension I just generated highlights prices in green. Now add a button to the popup labeled ‘Clear highlights’ that removes all highlight spans from the current page.”
“The popup timer works, but the font is too small to read comfortably. Increase the font size of the countdown display to 48px.”
“The tab list shows all open tabs, but I also want tabs from other windows. Update the extension to show tabs across all windows, grouped by window.”
Edit & iterate
Deeper guide on re-prompting, manual edits, and knowing when to use each.
First extension
Walk through a complete example from prompt to tested extension.