You can define task skills per the table above.
Usually, you might have a sparse matrix, as shown in the table below, especially in many tasks you have.
Since this table encodes the solver as hard constraints, it might cause a drastic reduction of the search space, so result in faster solving speed.
For example, Factory Process may require more and more tasks as below.

One note is you should ensure continuity and consistency throughout the last month in case of changing the table.
See Tasks per staff member