| name | bai-update |
| description | Update a Black Atom issue (status, labels, relations, etc.) |
| user-invocable | false |
| metadata | {"user-invocable":false} |
| allowed-tools | ["Bash","AskUserQuestion"] |
Black Atom Update
Update an issue's status, add comments, manage relations, or change metadata.
Arguments
Issue identifier and what to update ($ARGUMENTS in Claude Code, or /skill:bai-update args in Pi).
Examples:
core#50 to In Progress
livery#29 comment: Started working on this
core#53 priority Urgent
core#50 blocks core#53
.github#4 close
Context
Issue format: repo#number (e.g., core#50). Accept #number and infer repo from cwd.
Status workflow: Todo → In Progress → In Review → Done
Load about:bai for GitHub project constants (field IDs, option IDs).
Process
-
Parse issue identifier (e.g., core#50)
-
Get current issue state:
gh issue view <number> --repo black-atom-industries/<repo> --json title,state,labels,milestone,body,url,comments
-
Determine update type and execute:
Status change ("to [status]"):
- Get project item ID, then update via GraphQL (load IDs from
about:bai):
gh api graphql -f query='mutation { updateProjectV2ItemFieldValue(input: { projectId: "PVT_kwDOCY_EKc4BTDpb", itemId: "<item_id>", fieldId: "PVTSSF_lADOCY_EKc4BTDpbzhAaQ3U", value: {singleSelectOptionId: "<status_option_id>"} }) { projectV2Item { id } } }'
Comment ("comment: [text]"):
gh issue comment <number> --repo black-atom-industries/<repo> --body "..."
Priority ("priority [level]"):
- Update project item priority field via GraphQL (same pattern as status)
Sub-issue ("sub-issue of [issue]" or "add sub [issue]"):
- Use
addSubIssue GraphQL mutation (see about:bai for pattern)
- Works cross-repo
- To remove: use
removeSubIssue mutation
Blocker ("blocked by [issue]" or "blocks [issue]"):
- Use
addBlockedBy GraphQL mutation (see about:bai for pattern)
- Works cross-repo
- To remove: use
removeBlockedBy mutation
Close:
gh issue close <number> --repo black-atom-industries/<repo>
Labels ("label [name]"):
gh issue edit <number> --repo black-atom-industries/<repo> --add-label "state:blocked"
-
Confirm what was changed
Output
Updated [core#50]:
Status: Todo → In Progress
https://github.com/black-atom-industries/core/issues/50
Notes
- Show current state before and after for clarity
- For dependencies: use sub-issues (parent-child) via GraphQL, not labels