Fetch work item details from issue tracker
Retrieves issue/work item details from GitHub, JIRA, or Azure DevOps and caches them locally.
/plugin marketplace add flexion/claude-domestique/plugin install onus@claude-domestique<issue-number>Fetch issue/work item details from your configured platform (GitHub, JIRA, or Azure DevOps).
To fetch issue details, use the appropriate command based on your platform:
Use the GitHub CLI (recommended):
gh issue view 42 --json number,title,body,state,labels,assignees
Use WebFetch with the JIRA REST API:
https://{host}/rest/api/3/issue/PROJ-123Authorization: Basic {JIRA_TOKEN}Extract title, description, status, and acceptance criteria from the response.
Use WebFetch with the Azure DevOps API:
https://dev.azure.com/{org}/{project}/_apis/wit/workitems/42?api-version=7.0Authorization: Basic {AZURE_DEVOPS_TOKEN}Extract title, description, state, and work item type from the response.
When fetching an issue, capture:
After fetching, the issue details are cached locally in ~/.claude/onus/work-item-cache.json.
The cache:
/fetch at any timeIssue #42
Title: Implement user authentication
Type: feature
Status: In Progress
Labels: auth, security, priority:high
Description:
Add email/password authentication to the application.
Acceptance Criteria:
- [ ] Login form with email and password fields
- [ ] Form validation with error messages
- [ ] Secure token storage (httpOnly cookies)
- [ ] Auto-logout on token expiry
- [ ] "Remember me" functionality
Commit format: #42 - {verb} {description}
After fetching, the issue context is:
Issue not found?
.claude/config.jsonAuthentication failed?
export GITHUB_TOKEN=ghp_... (Create PAT)export JIRA_TOKEN=$(echo -n "email:api_token" | base64) (Get API token)export AZURE_DEVOPS_TOKEN=$(echo -n ":pat" | base64) (Create PAT)Stale data?
/fetch again to refresh the cache