# cog-template > Generate a boilerplate structure for a new Discord Cog - Author: phuctruong - Repository: PhucTruong-ctrl/BHNBot - Version: 20260129223141 - Stars: 1 - Forks: 0 - Last Updated: 2026-02-06 - Source: https://github.com/PhucTruong-ctrl/BHNBot - Web: https://mule.run/skillshub/@@PhucTruong-ctrl/BHNBot~cog-template:20260129223141 --- --- name: cog-template description: Generate a boilerplate structure for a new Discord Cog license: MIT compatibility: opencode metadata: type: generator --- ## 🏗️ New Cog Boilerplate When asked to create a new feature (e.g., "Make a music bot"), generate this structure immediately. ### Directory: `cogs//` #### `__init__.py` ```python from discord.ext import commands from .cog import MyCog async def setup(bot: commands.Bot): await bot.add_cog(MyCog(bot))