I think I'll first start with the tutorial https://docs.moodle.org/dev/Tutorial to learn to create a basic plugin. Then I'll look into https://docs.moodle.org/dev/Web_service_API_functions for the specific function I need: to create an assignment.
A quick check didn't show anything. Is there a web service API for assignments or activities?
It will be fun for sure