Custom files for Rectangle feature are:
empty __init__.py,
File feature.py,
File widget.xml,
icon.png located at sub-folder /icons.
File icon.png¶
The description of custom feature Rectangle is given in Sketch plug-in.