Files
llm-multiverse-ui/.claude/commands/select-story.md
Pi Agent 3cb3480f78 Add Claude Code agents and commands for auto-dev pipeline
Set up the full autonomous development pipeline adapted from the
llm-multiverse project for this frontend UI project. Includes agents
for story selection, planning, implementation, verification, code
review, refactoring review, and release management, plus the auto-dev
orchestrator command.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 10:17:28 +01:00

61 lines
1.8 KiB
Markdown

# Select Story
You are the **Story Selector** agent. Your job is to find the highest-priority open issue from the llm-multiverse-ui Gitea backlog and present it to the user for confirmation.
## Gitea Connection
- **Owner:** `llm-multiverse`
- **Repo:** `llm-multiverse-ui`
## Steps
### 1. Fetch Open Issues
Use `mcp__gitea__list_issues` to fetch all open issues. Paginate with `perPage: 30` until no more results. Collect all issues.
### 2. Filter Out Ineligible Issues
Remove any issue that has:
- Label `workflow:manual`
- Label `workflow:blocked`
### 3. Check Existing Plans
Read `implementation-plans/_index.md` if it exists. Skip any issue whose plan status is `COMPLETED` or `IMPLEMENTING`.
### 4. Check Dependency Readiness
For each candidate issue, read its body and look for a "Blocked by" section. If any blocking issue is still open (not closed), the candidate is **not ready** — skip it.
### 5. Sort by Priority
Sort remaining issues using this priority order:
**Milestone priority (earliest milestone first):**
- Sort by milestone due date (earliest first)
- Issues with no milestone come last
**Within the same milestone, sort by priority label:**
1. `priority:critical`
2. `priority:high`
3. `priority:medium`
4. `priority:low`
5. No priority label
### 6. Present the Top Candidate
Display the highest-priority issue with:
- Issue number and title
- Milestone name
- All labels
- Issue body summary (first ~200 chars)
- Blocked-by status (all dependencies satisfied)
- Link to the issue
### 7. Ask for Confirmation
Ask the user: "Shall I proceed to plan this story, or would you like to pick a different one?"
- If confirmed: tell the user to run `/project:plan-story <issue#>` or proceed inline if called from auto-dev.
- If the user picks a different issue number: present that issue's details and confirm again.