granary-orchestrate
БесплатноБез исполняемых скриптовНе проверенOrchestrate sub-agents and coordinate multi-agent workflows with granary. Use when delegating tasks, spawning workers, or managing parallel execution.
от speakeasy-api★ 20 звёзд на GitHubОб этом скилле
Orchestrating Implementation with Granary
This skill is for implementation-time orchestration. Your job is to coordinate sub-agents to implement planned work. You do NOT plan or design—you delegate and track.
Critical: Trust the Scheduler
NEVER determine task parallelism by:
- Checking if
blocked_byis null/empty on individual tasks - Assuming tasks are independent because they don't have explicit blockers
- Launching more tasks than
granary next --allreturns - Inspecting task metadata to make your own parallelism decisions
granary next --all is the ONLY source of truth for what can run in parallel. It considers:
- Explicit task dependencies (task_dependencies table)
- Project dependencies (project_dependencies table)
- Task status (draft tasks are never returned)
- Claims and leases
- Implicit ordering requirements
If granary next --all returns 2 tasks, spawn exactly 2 agents. Not 6. Not 4. Exactly 2.
Output Format
Always use --format=prompt instead of --json for granary commands. The --format=prompt output is specifically designed for LLM consumption—it's token-efficient and easy to parse without wasting context on JSON syntax.
Only use --json when you need to extract specific fields via jq, and always filter the output:
# Only if you need specific fields
granary task <id> --json | jq '.id, .status'
Primary Use-Case
You are prompted to implement a project. Follow these steps:
Step 1: Get Granary Overview
granary summary
This shows all projects, their status, and task counts. Understand what exists before proceeding.
Step 2: Find Your Target Project
If given a project name, find it:
granary projects
granary project <project-id>
Finding Projects and Tasks
Search for projects and tasks by title:
granary search "query" # Find matching projects and tasks
granary search "api" --format=prompt # LLM-friendly output
This is useful when you know part of the project or task name but not the exact ID.
Step 3: Assess Project Readiness
Examine the project structure:
granary project <project-id> tasks
Decision tree:
| Situation | Action |
|---|---|
| Project has no tasks | Use /granary:plan-work skill to plan first |
| Project has tasks but they lack detail | Use /granary:plan-work skill to refine |
| Single simple project with clear description | Implement directly as one task |
| Project has tasks with dependencies | Happy path - proceed to Step 4 |
Step 4: Start Orchestration Session
granary session start "implementing-<project-name>" --mode execute
granary session add <project-id>
Step 5: The Orchestration Loop
Your sole focus: hand off tasks to sub-agents. You do NOT implement tasks yourself.
Key principle: Maximize parallelism. Always look for opportunities to run multiple tasks concurrently. Tasks without dependencies on each other can and should run in parallel.
Get ONLY the Tasks Granary Says Are Ready
# Get ONLY tasks the scheduler has determined are ready
granary next --all --format=prompt
This returns only the tasks that are ready to execute. The scheduler has already evaluated dependencies, project ordering, claims, and status. Spawn agents for exactly the tasks returned—no more, no fewer.
If no tasks are returned, either all tasks are complete or remaining tasks are blocked.
DO NOT bypass this by:
- Listing all project tasks and filtering by
blocked_by == null - Assuming tasks without explicit blockers can run in parallel
- Making your own judgment calls about task independence
The scheduler knows things you don't. Trust it.
Spawning Agents in Parallel
When multiple tasks are unblocked, spawn them all at once using parallel Task tool calls:
# If granary next --all returns task-1, task-2, task-3:
Use Task tool (call all three in a SINGLE message):
1. prompt: "Execute granary task task-1. Use /granary:execute-task skill."
subagent_type: "general-purpose"
run_in_background: true
2. prompt: "Execute granary task task-2. Use /granary:execute-task skill."
subagent_type: "general-purpose"
run_in_background: true
3. prompt: "Execute granary task task-3. Use /granary:execute-task skill."
subagent_type: "general-purpose"
run_in_background: true
Important: Use run_in_background: true for parallel execution. This allows multiple agents to work simultaneously.
The Loop
- Ask the scheduler what's ready →
granary next --all --format=prompt - Spawn agents for exactly those tasks → One Task tool call per task, all in the same message
- Monitor progress → Check on background ag
Установить granary-orchestrate в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл granary-orchestrate?
Orchestrate sub-agents and coordinate multi-agent workflows with granary. Use when delegating tasks, spawning workers, or managing parallel execution.
Как установить скилл granary-orchestrate?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл granary-orchestrate запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic