Context
I am on a roll to update some of my plugins for better functionality and fixes. I have a handful to go through and as always, I’m working on a tight leash. AI speeds things up.
Disclaimer: All of my plugins are free but be warned, I only make updates and fixes to my plugins as and when I need to.
Sharing my AI Instructions for Bubble Plugin
AI is my junior dev who slaves away writing all the code while I look over its shoulder checking every line. I went through the Bubble docs, the plugin editor docs and whatever pieces of ChatGPT memory regarding building Bubble Plugins and came up with an instruction doc for my VSCode Copilot.
I just wanted to share it with the community.
Updated version 25-07-22: https://drive.google.com/file/d/1s9B5QsTMDO4nZgTWiLdTSbmT9ZQjjKtv/view?usp=drive_link
Test
I got Claude Sonnet 4 in VSCode Agent mode, to build a plugin from scratch and came away extremely impressed.
The plugin’s purpose is to integrate the DocXTemplater library for one of the modules in my apps. In brief - the library will take a .docx file URL with placeholders and then generate a new .docx with the values filled in.
One prompt and it got me all the plugin function code and setup instructions (even though I never asked for instructions). Amazingly it did it almost perfectly! There were 2 major problems:
- I did not tell it to read through the library’s docs. It double curly encased the placeholders when the library required single curly encasements.
- It forgot to store helper functions in
Initialize(). Though it did correctly store the helper ininstance.data. I updated the instructions to correct the behaviour.
Other than a failure to store the new doc into the plugin’s state (which is more because of my lack of understanding Bubble’s handling of ‘file’ types in plugins), plugin worked great!
There are still some things I want to add but I’m just happy with it dishing out working functions with just 1 prompt.
It requires copy and pasting function code for now. I’m planning to feed it instructions on the Git project structure that Bubble Plugins create when you link to Github.
The instructions do not cover everything as my plugin building experience is very focused on what I need to do at any point of time.
Feel free to give me feedback or share yours!