Pick Issue
Read a GitHub issue, extract the experiment idea, and start the full experiment workflow.
Input
Issue number: $ARGUMENTS
Workflow
- •
Read the issue
bashgh issue view <issue-number>
Extract:
- •Title (used for branch name)
- •Body (the experiment idea/description)
- •Labels (for context)
- •
Derive branch name
- •Format:
issue-<number>-<short-description> - •Example:
issue-42-increase-learning-rate - •Keep it concise, use
-separators
- •Format:
- •
Comment on the issue
bashgh issue comment <issue-number> --body "Starting experiment on branch \`<branch-name>\`"
- •
Add label to issue
bashgh issue edit <issue-number> --add-label "experiment:in-progress"
- •
Run the /new-experiment workflow
- •Use the issue body as the idea
- •Use the derived branch name
- •Follow all steps in
/new-experiment:- •Ensure
mainis up to date (git checkout main && git pull) - •Create branch and worktree from
mainviagit worktree add .worktrees/<branch-name> -b <branch-name> - •Implement inside
.worktrees/<branch-name>/ - •Write docs, commit, push, create draft PR
- •Ensure
- •In the draft PR, include
Closes #<issue-number>to link the issue
- •
Update issue comment
bashgh issue comment <issue-number> --body "Draft PR created: <pr-url>\nBranch: \`<branch-name>\`\nWorktree: \`.worktrees/<branch-name>/\`\nReady to launch with \`/launch-job\`"
Rules
- •Always link the PR to the issue with
Closes #<number> - •Always comment on the issue with progress updates
- •Branch name must include the issue number for traceability
- •Branches are always created from the current
main(newest baseline) - •If the issue is unclear, use AskUserQuestion to clarify before implementing