[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6J0H390VPXZPGMY33KJCH2R":3,"skill-same:01M6J0H390VPXZPGMY33KJCH2R":63},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":35,"linkOnly":36,"markdownContent":37,"markdownBody":38,"frontMatter":39,"refName":40,"commitSha":41,"skillDirectory":42,"forksCount":43,"repositoryHtmlUrl":44,"repositoryHomepageUrl":6,"ownerHtmlUrl":45,"ownerBlogUrl":46,"ownerDescription":47,"updatedAt":48,"install":49,"resources":62},"01M6J0H390VPXZPGMY33KJCH2R","orchestrate",null,"Poll beans for ready epics, create worktrees, and delegate to sub-agents that implement each epic following docs\u002Fworkflow.md. Use when asked to \"run orchestration\", \"process epics\", or \"start the agent loop\".","henriquebastos\u002Fjira-genie","henriquebastos","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F12066?v=4","01M6J0GP0PND2FN6YSZKPTX310","Henrique Bastos","01M6J0GP5A11R8ZW4VJXAT5RMM",8,"MIT","https:\u002F\u002Fgithub.com\u002Fhenriquebastos\u002Fjira-genie\u002Fblob\u002Fmain\u002Fskills\u002Forchestrate\u002FSKILL.md",[],[5,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34],"loop","for","EPIC","worktrees","ready","use","process","agent loop","delegate","docs","start","run","create","workflow","orchestration","implement","2026-11-10 10:12:30",false,"---\nname: orchestrate\ndescription: >\n  Poll beans for ready epics, create worktrees, and delegate to sub-agents\n  that implement each epic following docs\u002Fworkflow.md. Use when asked to \"run\n  orchestration\", \"process epics\", or \"start the agent loop\".\n---\n\n# Orchestrate — Epic Dispatch Loop\n\nMonitor beans for ready epics and delegate each to a sub-agent in an\nisolated worktree.\n\n## Prerequisites\n\n- `gh` CLI authenticated\n- `beans` CLI available\n- `git` worktree support\n- Scripts: `scripts\u002Fworktree-create.sh`, `scripts\u002Fworktree-remove.sh`\n\n## Loop\n\n### 1. Intake (optional)\n\nRun the intake skill first if GitHub Issues should be imported:\n\n```text\n→ skills\u002Fintake\u002FSKILL.md\n```\n\n### 2. Find ready epics\n\n```bash\nbeans ready --type epic\n```\n\nThis returns epics with no unresolved blockers. Skip epics that are\nalready claimed by another agent.\n\n### 3. For each ready epic\n\n#### 3a. Derive branch slug\n\nFrom the epic title: lowercase, spaces to hyphens, drop punctuation,\ntruncate to ~50 chars.\n\nExample: `\"Add bulk edit command\"` → `add-bulk-edit-command`\n\n#### 3b. Create worktree\n\n```bash\n.\u002Fscripts\u002Fworktree-create.sh \u003Cepic-id> \u003Cbranch-slug>\n```\n\nThis creates `..\u002Fjira-genie-worktrees\u002F\u003Cepic-id>-\u003Cslug>\u002F` with a fresh\nbranch from `origin\u002Fmain`, runs `uv sync`, and verifies tests pass.\n\n#### 3c. Claim the epic\n\n```bash\nbeans claim \u003Cepic-id> --actor orchestrator\n```\n\n#### 3d. Delegate to sub-agent\n\nSpawn a sub-agent in the worktree directory with this task:\n\n> Follow docs\u002Fworkflow.md to implement epic `\u003Cepic-id>`.\n\nThe sub-agent operates autonomously inside the worktree using the\nfull docs\u002Fworkflow.md operating script: plan → TDD loop → push → PR.\n\n### 4. Monitor outcomes\n\nAfter a sub-agent finishes:\n\n- **Success (PR created):** the epic should be closed by the sub-agent.\n  Verify with `beans show \u003Cepic-id>`.\n- **Failure\u002Fcrash:** check `beans ready --parent \u003Cepic-id>` for remaining\n  work. The worktree and branch are preserved for retry. A new sub-agent\n  can resume from the current state.\n- **Blocked:** sub-agent should have stopped and reported the blocker.\n  Check the GitHub Issue (if one exists) for a blocker comment.\n\n### 5. Cleanup (after merge)\n\nOnce the PR is merged:\n\n```bash\n.\u002Fscripts\u002Fworktree-remove.sh \u003Cepic-id> \u003Cbranch-slug>\n```\n\n## Concurrency\n\n- One sub-agent per epic.\n- Multiple epics can run in parallel in separate worktrees.\n- The orchestrator should not dispatch the same epic twice (check\n  `beans show \u003Cepic-id>` — if status is `in_progress`, skip it).\n\n## State recovery\n\nAll state lives in beans + git:\n\n- **Which epics are in flight?** `beans list --type epic --status in_progress`\n- **Which leaves remain?** `beans ready --parent \u003Cepic-id>`\n- **What code exists?** `git worktree list` + branch state\n- **No external DB needed.** Restart the orchestrator and it resumes\n  from beans state.\n","# Orchestrate — Epic Dispatch Loop\n\nMonitor beans for ready epics and delegate each to a sub-agent in an\nisolated worktree.\n\n## Prerequisites\n\n- `gh` CLI authenticated\n- `beans` CLI available\n- `git` worktree support\n- Scripts: `scripts\u002Fworktree-create.sh`, `scripts\u002Fworktree-remove.sh`\n\n## Loop\n\n### 1. Intake (optional)\n\nRun the intake skill first if GitHub Issues should be imported:\n\n```text\n→ skills\u002Fintake\u002FSKILL.md\n```\n\n### 2. Find ready epics\n\n```bash\nbeans ready --type epic\n```\n\nThis returns epics with no unresolved blockers. Skip epics that are\nalready claimed by another agent.\n\n### 3. For each ready epic\n\n#### 3a. Derive branch slug\n\nFrom the epic title: lowercase, spaces to hyphens, drop punctuation,\ntruncate to ~50 chars.\n\nExample: `\"Add bulk edit command\"` → `add-bulk-edit-command`\n\n#### 3b. Create worktree\n\n```bash\n.\u002Fscripts\u002Fworktree-create.sh \u003Cepic-id> \u003Cbranch-slug>\n```\n\nThis creates `..\u002Fjira-genie-worktrees\u002F\u003Cepic-id>-\u003Cslug>\u002F` with a fresh\nbranch from `origin\u002Fmain`, runs `uv sync`, and verifies tests pass.\n\n#### 3c. Claim the epic\n\n```bash\nbeans claim \u003Cepic-id> --actor orchestrator\n```\n\n#### 3d. Delegate to sub-agent\n\nSpawn a sub-agent in the worktree directory with this task:\n\n> Follow docs\u002Fworkflow.md to implement epic `\u003Cepic-id>`.\n\nThe sub-agent operates autonomously inside the worktree using the\nfull docs\u002Fworkflow.md operating script: plan → TDD loop → push → PR.\n\n### 4. Monitor outcomes\n\nAfter a sub-agent finishes:\n\n- **Success (PR created):** the epic should be closed by the sub-agent.\n  Verify with `beans show \u003Cepic-id>`.\n- **Failure\u002Fcrash:** check `beans ready --parent \u003Cepic-id>` for remaining\n  work. The worktree and branch are preserved for retry. A new sub-agent\n  can resume from the current state.\n- **Blocked:** sub-agent should have stopped and reported the blocker.\n  Check the GitHub Issue (if one exists) for a blocker comment.\n\n### 5. Cleanup (after merge)\n\nOnce the PR is merged:\n\n```bash\n.\u002Fscripts\u002Fworktree-remove.sh \u003Cepic-id> \u003Cbranch-slug>\n```\n\n## Concurrency\n\n- One sub-agent per epic.\n- Multiple epics can run in parallel in separate worktrees.\n- The orchestrator should not dispatch the same epic twice (check\n  `beans show \u003Cepic-id>` — if status is `in_progress`, skip it).\n\n## State recovery\n\nAll state lives in beans + git:\n\n- **Which epics are in flight?** `beans list --type epic --status in_progress`\n- **Which leaves remain?** `beans ready --parent \u003Cepic-id>`\n- **What code exists?** `git worktree list` + branch state\n- **No external DB needed.** Restart the orchestrator and it resumes\n  from beans state.\n",{"name":5,"description":7},"main","405a8f4042e8fbb2780ce1c2ee0048c47ff03af7","skills\u002Forchestrate",0,"https:\u002F\u002Fgithub.com\u002Fhenriquebastos\u002Fjira-genie","https:\u002F\u002Fgithub.com\u002Fhenriquebastos","http:\u002F\u002Fhenriquebastos.net","🔥 Drinking AI from the firehose •  🐍 Python since 1999 •  ⛩ Trained 10k+ devs • 🚀 PSF and DSF Fellow","2026-09-18 10:49:05",{"source":8,"skillName":5,"commands":50,"prompt":60,"zipAvailable":61},[51,54,57],{"tool":52,"command":53},"npx","npx skills add henriquebastos\u002Fjira-genie --skill orchestrate",{"tool":55,"command":56},"bunx","bunx skills add henriquebastos\u002Fjira-genie --skill orchestrate",{"tool":58,"command":59},"pnpm","pnpm dlx skills add henriquebastos\u002Fjira-genie --skill orchestrate","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fhenriquebastos\u002Fjira-genie\u002Fblob\u002Fmain\u002Fskills\u002Forchestrate\u002FSKILL.md",true,[],[64,73,94],{"skillNo":65,"name":66,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":35},"01M6J0H6KJYPWP41YVK0QV2PP6","jira-genie","https:\u002F\u002Fgithub.com\u002Fhenriquebastos\u002Fjira-genie\u002Fblob\u002Fmain\u002Fsrc\u002Fjira_genie\u002Fskills\u002Fjira-genie\u002FSKILL.md",[],[70,71,72],"jira genie","genie","jira",{"skillNo":74,"name":66,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":35},"01M6J0GWP75FWQF0RVPDAGAHB7","Search, create, edit, and manage Jira issues via jira-genie CLI. Use when the user needs to interact with Jira — find tickets, create tasks, update status, extract templates, or automate workflows. Includes recovery patterns for generic 400 errors, sprint discovery without board permissions, and unattended traceability workflows.","https:\u002F\u002Fgithub.com\u002Fhenriquebastos\u002Fjira-genie\u002Fblob\u002Fmain\u002Fskills\u002Fjira-genie\u002FSKILL.md",[],[70,72,71,79,31,80,81,82,83,84,85,86,87,88,20,89,90,91,92,93],"permissions","issues","search","discovery","automate","edit","patterns","sprint","traceability","errors","update","cli","workflows","status","tasks",{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":35},"01M6J0GQWMT0MCC7WSGHMS6VZA","intake","Sync GitHub Issues into beans epics. Run periodically or on demand to import new issues as beans epics for the orchestrator to pick up.","https:\u002F\u002Fgithub.com\u002Fhenriquebastos\u002Fjira-genie\u002Fblob\u002Fmain\u002Fskills\u002Fintake\u002FSKILL.md",[],[96,101,102,30,103,80,104,105,106,107,108,20,109],"sync github","sync","github issues","pick","orchestrator","up","as","import","github"]