Then he mentions the distinctions of operations, saying: and there are varieties of working, by which one works the good in himself as by services to his neighbor; "Man goes forth to his work" (Ps 104:23), namely, proper to himself: "He distinguished them and appointed their different ways," i.e., operations (Sir 33:11). All of which come from one source. Hence he adds: But it is the same God who works all, as the first cause creating all actions. But lest the other causes seem to be superfluous, he adds: in every one, because the first cause works in secondary causes: "You have worked all our... works in us" (Is 26:12). It should be noted that the Apostle very fittingly attributes things to the Spirit Who is love, because from love proceeds that someone is freely given the ministry from the Lord, to Whom He ministers works to God, as to the first moving cause. And that he says, "spirit," can be referred to the person of the Holy Spirit, what he calls Lord to the person of the Son, what he calls God to the person of the Father; or these three can be attributed to the Holy Spirit, Who is the Lord God.
Source: Commentary on 1 Corinthians