Teaching grammar worksheets ("Circle the noun. Underline the verb.") doesn't improve writing. Students forget the rules the moment they finish the sheet.
Grammar is a tool for writing clarity and sophistication. Teach it when students need it: when their writing is unclear or needs strengthening.