| name | report-issue |
| description | Help the user file a high-quality GitHub issue for a TeaRAGs bug — gather environment + diagnostic context, CHECK FOR EXISTING/KNOWN ISSUES FIRST, then produce a pre-filled issue URL (or `gh issue create` when available). Triggers on "report a bug", "file an issue", "open a GitHub issue about this error / the quarantine", "зарепорти баг в tea-rags", "это похоже на баг tea-rags". NOT for user-fixable config / setup errors (those hints are already actionable). |
| argument-hint | [error code, symptom, or 'quarantine'] |
Report a TeaRAGs Issue
Turn TeaRAGs failure into well-formed GitHub issue without creating
duplicates. Repo: artk0de/TeaRAGs-MCP.
MANDATORY: never duplicate, never auto-file
- Check for a known/existing issue BEFORE composing or filing anything. Not
optional — most failures already have issue. Skipping = hard error.
- Never create an issue without explicit user confirmation. Default:
produce pre-filled URL user submits themselves.
- Never include source code — only error/diagnostic context.
Instructions
1. Gather bounded context
Collect only what maintainer needs to triage — no source files:
- Version:
tea-rags --version.
- Infra:
tea-rags doctor --json (embedding model, Qdrant URL/version,
reachability).
- Platform: OS + node version.
- The failure:
- For specific error — code, message, hint (verbatim).
- For quarantined files —
tea-rags doctor <project> --quarantine --json.
- When index involved —
get_index_status for project.
2. Known-issue check (MANDATORY, before anything else)
Search existing issues, surface candidates:
Show matches as #<number> — <title> (<state>). Then:
- Match found → tell user, link it, STOP. Suggest commenting on existing
issue instead of opening new one. Continue only if user confirms case
genuinely distinct.
- No match → continue to step 3.
3. Compose the issue body
Fill this template (markdown):
## Summary
<one-line description>
## Environment
- tea-rags: <version>
- embedding: <model> · qdrant: <version> · platform: <os> / node <ver>
## What happened
<error code + message, or quarantine summary>
## Reproduction
<steps, if known>
## Logs / diagnostics
<the doctor --json / --quarantine --json / error hint block>
4. Output (hybrid)
Red flags — STOP
- About to compose/file without running known-issue search → go back to step 2.
- About to run
gh issue create without explicit confirmation → ask first.
- Pasting source code into body → remove it; diagnostics only.