Repository navigation
feat(skills): add built-in bug skill for /bug <context> - #1331
Merged
Merged
Conversation
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
Bot
marked this pull request as ready for review
September 26, 2026 00:36
inference-gateway-maintainer
Bot
requested a review
from a team
as a code owner
September 26, 2026 00:36
11 tasks
Contributor
|
🎉 This PR is included in version 0.209.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves #1312
Summary
Adds a built-in
bugskill so/bug <context>turns a rough description into a reproduced, well-formed GitHub issue. The skill is embedded atinternal/skills/builtins/bug/SKILL.md, seeded into~/.infer/skills/byinfer init(seed-if-absent, liketmux), and deliberately NOT published to the skills catalog since it relies on CLI-only tools. No new Go tools were needed: the skill composesAskUserQuestion, thetmuxskill, the Computer tools,RecordStart/RecordStop, andBash(ffmpeg, gh).Changes
internal/skills/builtins/bug/SKILL.md: new built-in skill. Four-phase flow: gather (follow-ups viaAskUserQuestion, every question offersJust reproduce itwhich 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, neverscreen; 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 viagh issue list, org bug_report.md template with[BUG]title,buglabel and its four sections,infer version+ OS, redaction rules, andgh issue create --webhandoff as the final review since GitHub has no issue-attachment API andghcannot 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 thebugskill loads with a description that routes/buginvocations.docs/skills.md: listsbugunder built-in skills.Decisions on the open questions
inference-gateway/cli(the skill is CLI-specific); another repo is used only when clearly indicated, and the choice is stated in the draft.gh issue create --webdrag-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).