1.1 KiB
1.1 KiB
Claude Code Instructions
Plugin Development Workflow
When creating, modifying, or removing plugins:
- Always update the plugin documentation in
docs/plugins.md
after any plugin changes - Ensure the documentation includes:
- Plugin name and category (Development, Fun and entertainment, Utility, Security, Social Media)
- Brief description of functionality
- Usage instructions with examples
- Any configuration requirements
- For plugins with configuration options:
- Set
ConfigRequired: true
in the plugin's BasePlugin struct - Add corresponding HTML form fields in
internal/admin/templates/channel_plugin_config.html
- Use conditional template logic:
{{else if eq .ChannelPlugin.PluginID "plugin.id"}}
- Include proper form labels, help text, and value binding
- Set
Testing
After every session that contains changes to files:
- Check files are properly formatted running
make format
- Check code style and linting: Run
make lint
- Test the plugin functionality: Run
make test
- Verify documentation accuracy
- Ensure all examples work as described