Pages · Claude Github PMS
gh-bug
File a bug report — sets GitHub native Issue Type "Bug" when available, falls back to `type:bug` label. Adds severity field/label, links related feature, attaches to active project. Mirrors Orchestra MCP's `create_bug_report`. Bugs auto-skip Gate 3 (docs).
Create a bug-report issue with whichever GitHub primitives are available.
When to use
- User reports a defect
- Regression found in testing
- Post-merge unexpected behavior
What it does
Step 1 — Collect inputs
Required:
title— what's brokensteps_to_reproduce— bullet listexpected— what should happenactual— what happens
Optional:
services—svc:*labelsseverity— resolved againstworkflows/default.yaml.severities.values[]. Defaults to that file'sseverities.default(mediumout of the box). Same scale used bygh-featureandgh-task— bugs no longer own a private severity definition.related_feature— original feature issue number if regression
Step 2 — Detect features
bash
Step 3 — Create issue
Use mcp__github__issue_write:
title:[Bug] {title}body: filledtemplates/bug.mdlabels:type:bug,status:todo,severity:{severity},svc:*- Capture issue number
N
Step 4 — Set native issue type
If USE_TYPES=true:
bash
Step 5 — Add to project + set fields
If project exists, add to it and set:
Status→TodoSeverity→ match inputService→ primary service
Step 6 — Link related feature
If related_feature:
- Comment on original feature:
Regression filed: #{N} - Use
/gh-pms:gh-relate(or${CLAUDE_PLUGIN_ROOT}/lib/ghcall.sh issue-relate):bash
Step 7 — Report
text
Cross-skill contract
Bug → gh-current → fix → gh-advance Gate 1 → tests → Gate 2 → Gate 3 auto-skipped → gh-review Gate 4 → user approves → done.