Repository navigation
Description
Summary
Add a built-in bug skill so a user can type /bug <context> (e.g. /bug the app opens a blank window on startup) and the agent turns it into a reproduced, well-formed bug report. Reporting a bug should be a lazy action for the user: answer a few questions (or skip them), let the agent reproduce it, optionally let it record a GIF, approve the draft.
It ships like tmux: embedded at internal/skills/builtins/bug/SKILL.md, seeded into ~/.infer/skills/ by infer init, and not published to the skills catalog (it relies on tools only the infer CLI has). No new Go tools are needed - the skill composes existing ones: AskUserQuestion, the tmux skill, the Computer tools, RecordStart / RecordStop, and Bash (ffmpeg, gh).
Flow
- Gather - Start from
<context>and ask follow-ups withAskUserQuestion(what were you doing, expected vs actual, how often, OS / terminal). Every question includes aJust reproduce itoption; picking it ends questioning and moves on with what is known.- Tool limits: max 4 questions per call, 2-4 options per question, so
Just reproduce ittakes one option slot (the UI addsOtherautomatically). - With no interactive broker (headless / text output),
AskUserQuestiontells the agent to stop and ask in plain text. The skill should skip questioning there and go straight to reproducing.
- Tool limits: max 4 questions per call, 2-4 options per question, so
- Reproduce - Reproduce in a scratch directory without modifying the user's project. Terminal / TUI bugs via the
tmuxskill, GUI bugs via the Computer tools. Keep the minimal step list that triggers the bug; it becomes "Steps to Reproduce". - Record (opt-in) - Only once the bug reproduces, ask for consent to record. On yes:
RecordStartwithmode: window(orregion) scoped to the affected app, replay the steps,RecordStop. Convert the MP4 to a GIF with ffmpeg (the recorder already resolves it, with the~/.infer/binfallback), downscaling / lowering fps / trimming to stay under GitHub's 10 MB image limit. - File - Search for duplicates first (
gh issue list --search ...) and show likely matches. Fill the org template bug_report.md:[BUG]title prefix,buglabel, and its four sections (Summary, Steps to Reproduce, Expected Behavior, Actual Behavior), withinfer versionand OS in the Summary. Nothing is posted until the user approves.
Privacy guardrails (must be spelled out in SKILL.md)
- Never record with
mode: screen; only the window / region of the app under test. - Before
RecordStart, check the target window shows no secrets: env vars,.envor config files, tokens / API keys, password managers, email / chat, notifications. When in doubt, do not record and file a text-only report. - Never type real credentials while recording; use placeholders.
- Redact tokens, keys, emails, hostnames and home-directory paths from any logs or output pasted into the issue.
- The user reviews the GIF (local path is printed) and the issue body before anything is posted. Declining consent at any point means a text-only report, not an aborted one.
Known constraints
- Recording is off by default (
computer_use.recording.enabled: false,max_duration: 120seconds). When disabled, the skill says so once (with how to enable it) and continues text-only. It must not change the config itself. - GitHub has no API for issue attachments and
ghcannot upload files. Proposed v1:gh issue create --webwith title, body and label prefilled; the browser opens, the user drags the GIF in from the printed path and submits. This doubles as the final review step. Hosting the GIF ourselves (branch or release asset) is deferred: more moving parts, and it makes the recording public before the user has seen it in context. - Existing installs: built-ins are seed-if-absent on
infer init. Verify an already-initialized~/.inferpicks up the new skill, or documentinfer init --overwrite.
Scope
- New:
internal/skills/builtins/bug/SKILL.md - Update:
docs/skills.md(built-in skills list),internal/skills/builtins_test.go(seeds and validatesbug) - Out of scope: catalog publishing, automatic media upload, auto-enabling recording, audio.
Acceptance Criteria
-
internal/skills/builtins/bug/SKILL.mdexists withname: bugand a description that routes/bug <context>;infer initseeds it andinfer skills listshows it with no validation errors. -
/bug <context>uses the context as the starting point and asks follow-ups viaAskUserQuestion; every question offersJust reproduce it, which ends questioning immediately. - Sessions without an interactive broker skip the questions and go straight to reproducing.
- Reproduction does not modify the user's project, and the minimal steps used end up under "Steps to Reproduce".
- Recording happens only after explicit consent and after the bug has reproduced, via
RecordStartwithmode: windoworregion, neverscreen. - Recording disabled, missing ffmpeg, or a failed capture falls back to a text-only report instead of failing the skill.
- The MP4 is converted to a GIF under 10 MB and its local path is shown to the user.
- The issue follows the org bug_report.md template (
[BUG]title,buglabel, all four sections), includesinfer versionand OS, and has secrets / paths redacted. - Likely duplicates are surfaced before filing, and nothing is posted without the user confirming.
-
docs/skills.mdlistsbugunder built-in skills andbuiltins_test.gocovers seeding it. - The skill is not added to the inference-gateway/skills catalog.
Open questions
- Target repo: always
inference-gateway/cli, or the repo of the current working directory? Proposed default:inference-gateway/cli, since the skill is CLI-specific. - GIF hosting: is the
--webdrag-and-drop handoff acceptable for v1, or is a fully hands-off upload a requirement?
Original request
This skill explain to the cli with additional context "/bug there is an issue with the way this app is opening" for example.
Then it will ask the user a bunch of follow-up questions to gather more details using the AskUserQuestion.
And it will start to reproduce it. At any time of the process it's possible to tell it to start (in all of the AskUserQuestion there should be an option to just say "just reproduce it"). The reason is because mostly user don't like to report bugs, it should be a lazy action.
The agent will also ask the user if they consent to record it, then it will use RecordStart after it knows exactly where the bug is, the skill must restrict the agent from recording potential credentials or armful content.
The goal is to make it easier for user to report bugs they've found. It will use the .github/templates/bug_report.md global template and it will convert the mp4 recording to github postable artifact embedded into the github issue. Ideally as a GIF.
This skill should be similar to the tmux, it's a built-in skill - no need to publish it in the catalog since it's only applicable to the cli with references to tools the infer cli have.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
[-][FEATURE] Create a skill called /bug[/-][+][FEATURE] Create a skill called /bug <context>[/+][-][FEATURE] Create a skill called /bug <context>[/-][+][FEATURE] Create a skill called `/bug <context>`[/+][-][FEATURE] Create a skill called `/bug <context>`[/-][+][FEATURE] Built-in `bug` skill: `/bug <context>` to reproduce and report bugs[/+]edenreich commentedon Sep 26, 2026
@infer Can you work on this? use /ponytail:ponytail
inference-gateway-maintainer commentedon Sep 26, 2026
Model:
ollama_cloud/glm-5.3-flash· View JobTodos
Pull Request
#1331
✅ Infer Result: Success
All verification passes. Marking the remaining todo complete:
Done. Issue #1312 is resolved in PR #1331 (ready for review, board status set to QA, [DOCS] tracking issue filed at inference-gateway/docs#803).
Summary
Added the built-in
bugskill as a pure markdown skill - no new Go tools, no new dependencies: it composes only what the CLI already has (AskUserQuestion, thetmuxskill, Computer tools,RecordStart/RecordStop,Bashwith ffmpeg/gh). Following the ponytail approach, the change is 3 files.Changes
internal/skills/builtins/bug/SKILL.md(new, 168 lines) - the whole feature. Four phases:AskUserQuestionround (max 4 questions) covering trigger, expected vs actual, frequency, environment. Every question includes aJust reproduce itoption that ends questioning immediately; no-broker sessions (available: false) skip questioning and go straight to reproducing.mktemp -dscratch dir only (user's project untouched), tmux skill for terminal/TUI bugs, Computer tools for GUI bugs, reproduce twice, keep the minimal step list for "Steps to Reproduce";infer version+uname -acaptured for the Summary.RecordStartis absent (computer_use.recording.enabled, never edits config);mode: window/region, neverscreen; pre-recording secret screenshot check; MP4 → GIF via ffmpeg (recorder's~/.infer/binfallback) with the knobs to stay under GitHub's 10 MB limit; local path printed for review, never uploaded by the agent.gh issue list --searchbefore filing, exact orgbug_report.mdshape ([BUG]title,buglabel, Summary / Steps to Reproduce / Expected Behavior / Actual Behavior), redaction rules, andgh issue create --webas the v1 handoff (GitHub has no issue-attachment API andghcannot upload) - which doubles as the final user review. Target repo defaults toinference-gateway/cliper the issue's proposal.internal/skills/builtins_test.go- seeds both built-ins and validatesbugloads cleanly with a description that routes/bug(covers existing installs: seeding is seed-if-absent, soinfer initpicks it up on the next run without--overwrite).docs/skills.md-bugadded to the built-in skills list.Not done (per issue scope): no catalog publishing, no media upload, no auto-enabling recording. Checks:
go test ./...,task lint, andtask fmtall pass (pre-commit gate green on the commit).Model:
ollama_cloud/glm-5.3-flash· Exit Code:0· Duration: 7m 25sTokens: 1,969,495 in · 22,485 out · 1,991,980 total (33 requests)
Tool calls: 51 total · 100% success rate
Traces
Stats
Triggered by edenreich · Infer Action · OSS
inference-gateway-releaser commentedon Sep 26, 2026
🎉 This issue has been resolved in version 0.209.0 🎉
The release is available on:
Your semantic-release bot 📦🚀