spec-execute-nextlisted
Install: claude install-skill ainova-systems/intelligence-dev-packs
# Execute Next Best Task
Orchestrator-of-orchestrators: select ONE ready item, delegate the whole execution to `spec-execute` / `spec-continue` (their rules apply verbatim - this skill adds only selection and cleanup), then reset the workspace. Designed for autonomous and scheduled runs - this is `execution_mode: autonomous` machinery; its queue is filled by `spec-approve`, and a supervised project does not schedule it.
## Steps
1. **Preflight.** `git status --porcelain` clean (dirty - halt and surface; never sweep foreign work into a task). `git switch <base> && git pull && git fetch --prune`.
2. **Inventory.**
- Candidates: `approved` specs in the project's spec area (profile `specs_dir`; else detect) - the primary pool - plus `in-progress` specs with no open PR (to finish; finishing beats starting). Never `proposed` (unreviewed - the owner approves via `spec-approve` first), `completed`, `cancelled`, or `superseded`. Skip idea-collection notes without a concrete ticket-sized item.
- In-flight work: `gh pr list --state open --json number,title,headRefName,labels,updatedAt`; per-PR file scope via `gh pr view <n> --json files --jq '.files[].path'`.
3. **Select ONE.**
- Value order: explicit priority marker - mid-flight spec with no open PR (finishing beats starting) - unblocks queued work - smaller effort at equal value. A focus-hint argument narrows the pool, never overrides the conflict gate.
- Conflict gate, skip the candidate if: it already has an open PR (