Goal
Minimal gh CLI wrappers for the operations skills need: claim, status update, comment, label, body fetch.
Acceptance criteria
packages/plugin/lib/gh.sh exposes: gh_issue_status, gh_claim_issue, gh_set_status, gh_add_label, gh_remove_label, gh_post_comment, gh_issue_body, gh_issue_title
- Atomic claim:
gh_claim_issue only succeeds if the issue is currently Ready; concurrent claims fail cleanly with non-zero exit
- All functions tolerate non-existent issues and surface a clear error message
- Bats test file with mocked
gh for the happy paths and the failure paths
Notes
The Phase 0 spike already has a working draft. This issue is to test it, harden the error handling, and add the missing functions for Phase 1 (PR creation, etc., come in #5 not here).
Dependencies: #1
semver: patch
Goal
Minimal gh CLI wrappers for the operations skills need: claim, status update, comment, label, body fetch.
Acceptance criteria
packages/plugin/lib/gh.shexposes:gh_issue_status,gh_claim_issue,gh_set_status,gh_add_label,gh_remove_label,gh_post_comment,gh_issue_body,gh_issue_titlegh_claim_issueonly succeeds if the issue is currentlyReady; concurrent claims fail cleanly with non-zero exitghfor the happy paths and the failure pathsNotes
The Phase 0 spike already has a working draft. This issue is to test it, harden the error handling, and add the missing functions for Phase 1 (PR creation, etc., come in #5 not here).
Dependencies: #1
semver: patch