Define Cursor Composer Tasks

Is it possible to program tasks for Cursor Composer that you can initiate from the command palette? For example, I would like to create a command palette task to execute tests with coverage and then resolve any failing tests or code coverage gaps. This looks it might be the best way. Any other ideas on how to do this? Cursor Rules, defining predetermined commands - Showcase - Cursor - Community Forum