When do I use commas around a phrase in the middle of a sentence?
When the phrase is nonessential, meaning the sentence still identifies its subject without it. If removing the phrase changes which thing you are talking about, it is essential and takes no commas. This distinction changes meaning rather than rhythm.
This comes up on Comma Rules That Matter, where it is answered in the context of the work itself.
Not what you asked?
Ask us the actual question
Send the draft, the rubric or the score report with it. You get a real answer and a price before you commit to anything.