Skip to content

feat(skills): add built-in bug skill for /bug <context> - #1331

Merged
edenreich merged 1 commit into
mainfrom
fix/issue-1312
Sep 26, 2026
Merged

edenreich merged 1 commit into
mainfrom
fix/issue-1312

Conversation

@inference-gateway-maintainer

Copy link
Copy Markdown
Contributor

Resolves #1312

Summary

Adds a built-in bug skill so /bug <context> turns a rough description into a reproduced, well-formed GitHub issue. The skill is embedded at internal/skills/builtins/bug/SKILL.md, seeded into ~/.infer/skills/ by infer init (seed-if-absent, like tmux), and deliberately NOT published to the skills catalog since it relies on CLI-only tools. No new Go tools were needed: the skill composes AskUserQuestion, the tmux skill, the Computer tools, RecordStart/RecordStop, and Bash (ffmpeg, gh).

Changes

  • internal/skills/builtins/bug/SKILL.md: new built-in skill. Four-phase flow: gather (follow-ups via AskUserQuestion, every question offers Just reproduce it which ends questioning immediately; no-broker sessions skip questions and go straight to reproducing), reproduce (scratch directory only, tmux skill for terminal/TUI bugs, Computer tools for GUI bugs, minimal step list kept for "Steps to Reproduce"), record (opt-in only after the bug reproduces and only with explicit consent; mode: window/region, never screen; pre-recording secret check; MP4 to GIF via ffmpeg kept under GitHub's 10 MB image limit; local path shown for review), file (duplicate search via gh issue list, org bug_report.md template with [BUG] title, bug label and its four sections, infer version + OS, redaction rules, and gh issue create --web handoff as the final review since GitHub has no issue-attachment API and gh cannot upload files). Privacy guardrails get their own non-negotiable section, and every failure mode (recording disabled, missing ffmpeg, failed capture, unreproducible bug, declined consent) degrades to a text-only report instead of failing the skill.
  • internal/skills/builtins_test.go: seeds both built-ins and validates the bug skill loads with a description that routes /bug invocations.
  • docs/skills.md: lists bug under built-in skills.

Decisions on the open questions

  • Target repo defaults to inference-gateway/cli (the skill is CLI-specific); another repo is used only when clearly indicated, and the choice is stated in the draft.
  • GIF hosting: gh issue create --web drag-and-drop handoff is acceptable for v1 as proposed; self-hosted upload deferred.

no docs ticket: docs/skills.md is updated in this PR (user-facing skill documented in-repo).

Ships internal/skills/builtins/bug/SKILL.md: gather follow-ups via AskUserQuestion (every question offers Just reproduce it), reproduce in a scratch dir via the tmux skill or Computer tools, opt-in window/region recording converted to a GIF under 10 MB, then duplicate search and a [BUG] issue on the org template with gh issue create --web as the final review. Seeded by infer init; not published to the catalog.

Test and docs: builtins_test.go seeds and validates bug; docs/skills.md lists it under built-in skills.
@inference-gateway-maintainer
inference-gateway-maintainer Bot marked this pull request as ready for review September 26, 2026 00:36
@inference-gateway-maintainer
inference-gateway-maintainer Bot requested a review from a team as a code owner September 26, 2026 00:36
@edenreich
edenreich merged commit e0d9103 into main Sep 26, 2026
1 check passed
@edenreich
edenreich deleted the fix/issue-1312 branch September 26, 2026 00:58
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.209.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@inference-gateway-releaser inference-gateway-releaser Bot added the released Shipped in a release label Sep 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Built-in bug skill: /bug <context> to reproduce and report bugs

1 participant