I first tried writing the automation script directly in the GitHub Codespace development environment (I don’t understand the syntax; the code was written by Claude).
After modification, the file structure should look like this:
However, I am unsure if this operation is permissible in a production environment.
Furthermore, I am unsure if these modifications will be lost during a rebuild or an update to the automation plugin, so I dare not try it in the production environment. Perhaps I should submit a feature request for the plugin maintainers to add it?
I hope experienced friends can inform me about the correct procedure from writing tests to applying changes in the production environment.
Thank you very much!
I have checked the link you provided.
Could you please explain to me why I should use plugins instead of creating scripts within the automation plugin?
I am not a professional, and creating plugins seems more difficult.
I have many functions that need to be implemented, which seems like it would require creating many plugins? (Although I also like plugins because they can be shared.)
OK, that’s what I was afraid of.
So the custom automation feature doesn’t seem to mean much to the user?
I’ll check the documentation again, and if that doesn’t work, I’ll try creating a plugin.
I think the tutorial (which is a draft) is lacking this information. It explains how to create new automations, but not where to do it. The answers mention plugin examples though, like the one linked by @NateDhaliwal.
I’m currently experimenting with this (but I do have vague notions of code – not enough to create even a simple plugin by myself!), and will share my recent experience with it soon.
Since Claude directed you to edit the automation plugin, you may want to refine your prompts and have the AI follow actual good practices.