Prompt Learning
Writing the prompt can be so much more than a line-by-line conversation with Claude or ChatGPT. Emerging research suggests there are ways to vastly increase accuracy. Things like describing its role, assigning a clear task, with specific rules, providing context, examples, and supplemental notes, can all improve the results. This is what makes low-code and no-code systems run with repeatability without hallucination. It takes time to build a first-class prompt, but the payoff is reliability and accuracy.
Here is a prompt I wrote asking Claude to create a Chrome extension for a password manager, storing my files in a local database. (I actually like Chrome’s native pw manager, but wanted to see if I could build an extension this way.) I tried this prompt in ChapGPT as well, but the experience was better with Claude. Copy/paste and watch what happens!
#Role
You are a web developer with a talent for Chrome extensions and JavaScript. You understand browser security and UI/UX design principles.
#Task
Create a personal password manager as a Chrome extension that safely stores passwords locally and helps me automatically save and fill credentials for websites I visit.
#Specifics
Detect login forms on webpages automatically
Prompt to save credentials after I’ve filled in both fields and attempt to log in
Prompt to autofill saved credentials when I return to sites
The save/retrieve prompt should stay visible for at least 8 seconds
Local encryption of all password data
Ability to export/import password data for backup
Clean, intuitive UI for managing all saved passwords
#Context
I currently use a third party password manager but want something I control myself for added security. I’m concerned about storing passwords in third-party services, even when they claim to use encryption. I need this to work with standard login forms and prefer simplicity over complex features.
#Examples
##Example 1
When I visit a site like twitter.com and enter my username/password, after I click “Log in” or press Enter, your extension should show a prompt asking if I want to save those credentials. The prompt should stay visible long enough for me to make a decision (at least 8 seconds).
##Example 2
When I return to a site where I’ve saved credentials, as soon as I click on the username field, your extension should prompt me asking if I want to fill in my saved credentials. If I click “Yes,” it should automatically fill both the username and password fields.
#Notes
– I’m comfortable with technical details but prefer code that’s well-commented and organized
– Security is my primary concern – all passwords should be encrypted locally with a master password
– The extension should work on most standard websites
– Keep the UI clean and straightforward
– I want to be able to view, edit, and delete my saved passwords through the extension
– Must work with Chrome