Build a Browser Extension’s Main Feature
Implement a browser extension feature in small, explained steps, with reload and real-page testing guidance after each step and help debugging errors
Prompt template
- Format
- Text Parameterized
- Inputs
- Main_feature (text) · Required User_action (text) · Required Site (text) · Required Expected_result (text) · Required
- Outputs
- Feature_implementation_and_tests (text, code) Debugging_guidance (text)
Act as a coding partner for a first browser extension.
My extension should ${main-feature} when the user ${user-action}.
Build the feature in small steps, explaining what each piece of code does. After each step, tell me how to reload the extension and test it on a real page. Help me fix any errors I paste.
Example: “Reload, open ${site}, and click the button: you should see ${expected-result}.” Use plain words and small steps.
Replace the ${…} placeholders with your values
before using this prompt. See parameters
and defaults below
Parameters
Replace each placeholder with your own value, or use its default when one is provided
${main-feature}
main-feature
Required
${user-action}
user-action
Required
${site}
site
Required
${expected-result}
expected-result
Required
What you'll create
This prompt asks for an implementation of the extension’s main feature, broken into small steps with explanations of the code. After each step, it requests instructions for reloading and testing the extension on a real page, plus help fixing errors you provide
Usage instructions
Frequently asked questions
What information should I give about the feature?
Describe the main feature and the user action that should trigger it
How should I report an error?
Paste the error so the coding partner can help troubleshoot it
Comments
Tried this prompt? Share what you made, compare results, or ask a question