Figmagen uses a list of provided tasks and executes them. The default instance can be created so:
A task is simply a function with returns a list of TaskFile that Figmagen will generate.
TaskFile
Figmagen