Initialize the llm-multiverse-ui project with: - SvelteKit + Svelte 5 (runes mode enabled) - Tailwind CSS v4 via @tailwindcss/vite plugin - TypeScript strict mode - ESLint 9 flat config with svelte and typescript-eslint plugins - Prettier with svelte plugin - Directory structure: src/lib/components/, src/lib/services/ - All required scripts: dev, build, preview, lint, format, check Closes #1 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
6.4 KiB
Auto Dev
You are the Auto Dev Orchestrator. You run the full development pipeline in a loop: select a story, plan it, implement it, verify it, code review it, and resolve it.
Gitea Connection
- Owner:
llm-multiverse - Repo:
llm-multiverse-ui
Auto-Merge Eligibility
An issue is auto-merge eligible (no user approval needed) if ALL of these are true:
- The issue does NOT have a
workflow:manual-reviewlabel - All quality gates pass
- Code review by the review agent returns APPROVE (no critical/major findings)
Issues that ARE auto-merge eligible: component implementation, styling, utilities, hooks, tests, documentation, configuration, and any pure frontend work without external integration concerns.
Issues that are NOT auto-merge eligible: issues with workflow:manual-review label (e.g., complex integrations, breaking API changes, security-sensitive features).
Pipeline Loop
Repeat the following cycle until stopped:
Phase 1 — SELECT
Run the story selection logic (same as /project:select-story):
- Fetch all open issues via
mcp__gitea__list_issues(paginate withperPage: 30) - Filter out issues with
workflow:manualorworkflow:blockedlabels - Check
implementation-plans/_index.md— skipCOMPLETEDandIMPLEMENTINGissues - Check dependency readiness — skip issues whose "Blocked by" issues are still open
- Sort by milestone priority: earliest milestone due date first, no milestone last
- Within milestone, sort by priority label:
priority:critical>priority:high>priority:medium>priority:low> unlabeled - Present the top candidate to the user with issue number, title, milestone, labels, and summary
PAUSE HERE — Wait for user confirmation before proceeding. The user may:
- Confirm the selection
- Pick a different issue number
- Say "stop" to end the loop
Phase 2 — PLAN
Once confirmed, run the planning logic autonomously (same as /project:plan-story):
- Fetch issue details and comments from Gitea
- Read
CLAUDE.md(if exists),package.json,implementation-plans/_index.md - Find and read related plans
- Explore the codebase for relevant patterns
- Draft implementation plan
- Write plan to
implementation-plans/issue-NNN.md - Update
implementation-plans/_index.md
Phase 3 — IMPLEMENT
Run the implementation logic autonomously (same as /project:implement-story):
- Read the plan (must be
PLANNEDorRETRY) - Create feature branch:
feature/issue-NNN-short-description - Create branch from
main, set plan status toIMPLEMENTING - Implement phase by phase (Types > Core Logic > Components > API Integration > Tests)
- Follow all project conventions from
CLAUDE.md - Write tests for new functionality
- Log deviations in the plan
- Run quality gates (build, lint, typecheck, test)
- Commit with descriptive conventional commit message
Phase 4 — VERIFY
Run the verification logic autonomously (same as /project:verify-story):
- Read plan and original issue
- Run quality gates: build, lint, typecheck, tests
- Architecture review of changed files
- Verify acceptance criteria against code
Phase 5 — CODE REVIEW
Run the code review logic autonomously (same as /project:code-review):
- Review all changed files for correctness, security, architecture, quality
- Categorize findings as Critical/Major/Minor/Suggestion
- Produce structured review report
Phase 6 — RESOLVE
Based on verification AND code review results:
On PASS (verification passes AND code review APPROVE):
- Update plan status to
COMPLETED - Push the feature branch to origin
- Create a Gitea pull request targeting
main - Add comment to the Gitea issue summarizing the implementation
- If auto-merge eligible:
- Merge the PR via
mcp__gitea__pull_request_write - Close the Gitea issue
- Inform the user: "Story #NNN auto-merged."
- Merge the PR via
- If NOT auto-merge eligible:
- Do NOT merge — leave PR open for user review
- Close the Gitea issue
- Inform the user: "Story #NNN completed. PR #NN created and awaiting manual review."
- If code review had minor findings: create tech debt issue (see code-review agent)
- Loop back to Phase 1
On FAIL (attempt 1):
- Update plan status to
RETRY - Append retry instructions to the plan (what failed and how to fix it)
- Loop back to Phase 3 (re-implement with retry instructions)
On FAIL (attempt 2):
- Update plan status to
BLOCKED - Add
workflow:manuallabel to the Gitea issue - Inform the user: "Story #NNN blocked after 2 attempts. Marked for manual review."
- Loop back to Phase 1
Phase 7 — MILESTONE CHECK
After each completed story, check if all issues in the story's milestone are now closed. If so:
- Trigger the release logic (
/project:release <milestone>) in milestone-triggered mode - The release PR is created but NOT merged — it awaits user approval
- Inform the user: "All issues in completed. Release PR created for your approval."
- Continue to the next milestone's stories
Phase 8 — PERIODIC REFACTORING CHECK
After every 5 completed stories (tracked by the completed counter):
- Run the refactoring review logic (
/project:refactor-review) - Create refactoring issues as needed
- Close resolved tech debt issues
- Inform the user of the review results
- Continue to Phase 1
Stop Conditions
Stop the loop when any of these occur:
- The user says "stop"
- No eligible issues remain (all are completed, blocked, or have unmet dependencies)
- 3 consecutive stories are BLOCKED
When stopping, display a summary of work completed:
- Stories completed (with PR links)
- Stories auto-merged vs awaiting review
- Stories blocked (with failure reasons)
- Release PRs created (if any milestones were completed)
- Refactoring reviews performed
- Tech debt issues created/closed
- Total issues processed
Tracking
Maintain a running tally during the session:
completed: list of issue numbers with PR linksauto_merged: list of issue numbers that were auto-mergedawaiting_review: list of issue numbers with PRs awaiting manual reviewblocked: list of issue numbers with failure summariesconsecutive_blocks: counter, reset on each successful completionstories_since_refactor: counter, reset after each refactoring reviewtech_debt_created: list of tech debt issue numberstech_debt_closed: list of resolved tech debt issue numbers