| name | pick-task |
| description | Pick the next task from the GitHub project board for this repository |
| allowed-tools | Bash, Read |
| user-invocable | true |
| argument-hint | ["optional label filter","e.g. \"P0\" or \"bug\""] |
Pick Next Task
Fetch and display available tasks from GitHub Issues for this repository.
Steps
-
Determine the repo name from the current directory:
REPO_NAME=$(basename $(git rev-parse --show-toplevel))
-
Fetch open issues labeled "ready" for this repo:
gh issue list --repo PROJECT-OBA/$REPO_NAME --state open --label "ready" --json number,title,body,labels,assignees --limit 10
-
If a label filter was provided ($ARGUMENTS), add it:
gh issue list --repo PROJECT-OBA/$REPO_NAME --state open --label "ready,$ARGUMENTS" --json number,title,body,labels,assignees --limit 10
-
Display the issues in a readable format:
- Issue number and title
- Priority label (P0/P1/P2)
- Brief description (first 3 lines of body)
-
Ask the user which issue they want to work on.
-
When selected, assign it and mark in-progress:
gh issue edit <number> --repo PROJECT-OBA/$REPO_NAME --add-label "in-progress" --remove-label "ready"
-
Create a feature branch for the issue:
git checkout main && git pull && git checkout -b feat/issue-<number>-<short-description>
-
Display the full issue body so the user/agent has context to start working.