# Mp Execute

> Execute checklist tasks in grouped loops with executor/reviewer/checker agents and conditional frontend verification. Use when: "execute checklist", "run this task list", "complete unchecked tasks"

- Skill: `martinopolo/mp-execute` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add martinopolo/mp-execute`
- Raw SKILL.md: https://api.skillmd.com/api/skills/martinopolo/mp-execute/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Web & Frontend
- Author: MartinoPolo (https://skillmd.com/u/martinopolo)
- Updated: 2026-09-10
- Page: https://skillmd.com/skills/martinopolo/mp-execute

---


# Execute Tasks

Execute tasks using grouped agentic loops.

## Input

- Checklist mode: `/mp-execute CHECKLIST_MARTIN1.md`
- MPX mode: `/mp-execute mpx`, `/mp-execute mpx phase 2`, `/mp-execute mpx task`
- If param missing: ask user for mode/path. Use AskUserQuestion tool with mpx as one option and root level checklist `*.md` in project root containing unchecked tasks (`- [ ]`) as others.

## Scope

- Checklist mode: execute one checklist file
- MPX mode: execute from `.mpx/ROADMAP.md` + phase `CHECKLIST.md` files
- In both modes: consume `HANDOFF.md` from project root if present

## Orchestration

### Step 0: Consume HANDOFF.md (both modes)

1. Check project root for `HANDOFF.md`
2. If not present, continue normally
3. If present, read and store as session context input
4. Pass this context to `mp-executor` for all task groups
5. Delete `HANDOFF.md` after successful read (ephemeral lifecycle)

### Step 1: Resolve execution source

If first argument is `mpx`:

1. Read `.mpx/ROADMAP.md`
2. Find eligible phase(s) and unfinished tasks from `.mpx/phases/*/CHECKLIST.md`
3. Build task source from unfinished items
4. Track status in phase checklists and roadmap (not a single standalone checklist)

Otherwise:

1. Treat argument as checklist path
2. Read that checklist as task source

### Step 2: Read + group tasks

1. Read checklist
2. Collect unchecked tasks (`- [ ]`)
3. Split into logical groups of **2-5 tasks** (same section when possible)

In MPX mode, group per phase section/order; in checklist mode, group within the provided file.

### Step 3: Detect available checks (lint, build, typecheck, format etc.)

Spawn `mp-checks-detector` to detect runnable check commands (build, typecheck, lint, format...) and package manager:

### Step 4: Per-group execution loop

For each group:

1. Spawn `mp-executor` agent with:
   - group tasks
   - original task/spec text
   - session handoff context (if consumed)
   - checklist path
2. After executor finishes, spawn in parallel:
   - `mp-reviewer-code-quality`
   - `mp-reviewer-best-practices`
   - `mp-reviewer-spec-alignment` with task spec
   - `mp-checker` agent with detected check commands
3. If reviewer/checker reports issues, spawn `mp-executor` in fix mode with explicit scoped tasks only:
   - pass findings + failing commands
   - include strict task list derived from findings (one item per issue in a checklist format)
   - include execution scope summary, affected files etc. as a broader scope description for context
   - Repeat the review/check + fix issues loop up to 3 times or until clean
4. Detect changed surface (frontend/backend) from group diff after review/check fix loop:
   - If backend/API/db changes exist, ask user if API, DB, and dependent services are ready for verification
   - If frontend changes exist, run frontend verification loop (max 3 iterations): - determine run instructions in this order: 1) explicit guidance from `AGENTS.md` or task context 2) direct detector call: `bash $HOME/.claude/skills/mp-execute/scripts/detect-project-scripts.sh . -c frontend`
     - ensure frontend server is running on target URL/port, start it when needed
     - run `mp-chrome-devtools-tester` with instruction on what to visually test and where + auth context if available
     - if tester finds failures, run `mp-executor` in fix mode with explicit scoped tasks from tester failures, then re-run tester. Repeat up to 3 times or until clean
5. Mark completed tasks as `[x]`
6. For unresolved blockers, keep unchecked and append reason in checklist `## Blockers` (or inline unresolved note)
7. Commit completed work — after marking tasks complete, stage and commit inline:
   - Skip if no tasks were completed in this group
   - `git status` + `git diff --stat` to review changes
   - `git log --oneline -5` to match repo commit style
   - `git add <specific-files>` — prefer specific files, avoid sensitive files (.env, credentials)
   - `git commit -m "type(scope): description"` — conventional commit, scoped to this group's tasks (e.g., `feat(scope): implement auth flow`)
   - No AI attribution, no `--amend`, imperative mood, subject under 72 chars

In MPX mode, update phase `CHECKLIST.md` and roadmap phase status where relevant.

### ROADMAP Concision Rule (MPX mode)

When a phase becomes complete, keep ROADMAP records minimal:

- Completed phase gets **one line only** in `## Phases` (mark complete)
- Remove completed phase details from other roadmap sections
- Keep extra mention only when needed to explain an unblock/dependency for an incomplete or blocked phase
- Keep `## Phase Details` focused on incomplete/blocked phases only

### Step 5: Group hard gate review

After all tasks are completed or unresolved, run full gate:

1. Spawn 6 parallel subagents with resolved scope:

- `mp-reviewer-code-quality`
- `mp-reviewer-best-practices`
- `mp-reviewer-spec-alignment`
- `mp-reviewer-security`
- `mp-reviewer-performance`
- `mp-reviewer-error-handling`

2. Spawn `mp-checker` agent
3. If issues remain, spawn `mp-executor` in fix mode with explicit scoped tasks from findings and failed checks
4. If frontend changes are in scope and gate reviews/checks pass, run `mp-chrome-devtools-tester` as final frontend verification (same 3-iteration resolver loop)
5. If still unresolved, mark affected tasks as unresolved with clear reason and continue

### Step 6: Finalization

- Ensure tracked state reflects actual status:
  - Checklist mode: target checklist (`[x]`, unresolved notes, blockers)
  - MPX mode: phase checklists + roadmap phase progress
- In MPX mode, if a phase changed to complete during execution, collapse its roadmap record to one concise line and prune redundant references
- Final commit — stage and commit any remaining uncommitted changes (checklist updates, roadmap status, docs) inline:
  - `git status` + `git diff --stat` to review changes
  - `git log --oneline -5` to match repo commit style
  - `git add <specific-files>` — prefer specific files, avoid sensitive files
  - `git commit -m "type(scope): description"` — conventional commit
  - No AI attribution, no `--amend`, imperative mood, subject under 72 chars
  - Skip if nothing to commit
- Summarize completed/skipped/unresolved tasks
- Spawn `mp-docs-updater` agent with list of changes to update docs

## Failure Policy

If blocker persists (unresolved errors, repeated failures, context limits, long fix loops):

- Stop retrying that task group
- Mark affected tasks unresolved with reason
- Continue next group unless user asked to stop

## Output

```markdown
Mode: [checklist|mpx]
Source: [checklist path | phase(s)]
Groups: [N]

Completed:

- [task]

Unresolved:

- [task] — [reason]

Checks:

- typecheck: pass/fail
- lint: pass/fail
- build: pass/fail

Review:

- minimal: pass/fail
- full: pass/fail
```

