/repomatic:file-bug-report <owner/repo> <one-line summary of the bug>from Repomatic
Writes a well-structured bug report for an upstream GitHub project, or a reply on an existing issue. Reads contribution guidelines, issue templates, and community norms first, then produces a markdown file ready to paste.
Ships in Repomatic. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Create a well-structured bug report for filing against an external project. The report is written to a local markdown file so the user can review before pasting into a GitHub issue.
$ARGUMENTS contains the target repo (owner/repo) and a short summary of the bug.
A reply on an existing issue or pull request keeps the evidence rules, with a shorter workflow:
{repo}-{number}-reply.md. A file at the repository root does not belong to the project, and a broad git add can stage it.The writing, rendering and code block rules below apply to replies too.
Before writing anything, exhaustively search for every piece of guidance the maintainers publish about how they want contributions. Do not skip any of these checks: each one can reveal requirements that, if missed, make the report look careless.
GitHub allows organizations to define default community health files in a .github repository. These files (CONTRIBUTING.md, CODE_OF_CONDUCT.md, SECURITY.md, SUPPORT.md, issue templates, PR templates) are inherited by every repo in the organization that does not provide its own copy. Resolution is per-file: a repo can override one file while inheriting all others.
Check for the org-level .github repo early, since its files set the baseline that subsequent per-repo checks may override:
$ gh api repos/<org>/.github/contents/ --jq '.[].name'
If the repo belongs to an organization (extract <org> from <owner/repo>), fetch and read every community health file found. Common files: CONTRIBUTING.md, CODE_OF_CONDUCT.md, SECURITY.md, SUPPORT.md, FUNDING.yml. Some org repos also contain a readme with links to external contribution guides: follow those links.
If the org has no .github repo or the request returns 404, skip this step. If the repo owner is a user account rather than an organization, skip this step.
GitHub recognizes contribution guidelines in the repo root, .github/, and docs/, but owners do not always follow GitHub's conventions. File names vary in casing, extension, and placement. Do not assume any single path: check all plausible variations.
Step 1: use the GitHub community endpoint (returns the canonical contributing file regardless of location or casing):
$ gh api repos/<owner/repo>/community/profile --jq '.files.contributing'
If this returns a file, fetch its html_url or url and read it.
Step 2: list the directories where contribution guidelines commonly live. For each directory, list its contents and scan for any file whose name matches contributing (case-insensitive) with any extension:
$ gh api repos/<owner/repo>/contents/ --jq '.[].name'
$ gh api repos/<owner/repo>/contents/.github --jq '.[].name'
$ gh api repos/<owner/repo>/contents/docs --jq '.[].name'
$ gh api repos/<owner/repo>/contents/doc --jq '.[].name'
Fetch and read every match.
Step 3: check the readme for inline contribution guidance or links to external docs:
$ gh api repos/<owner/repo>/readme --jq '.download_url'
Fetch the readme and scan for headings like "Contributing", "How to contribute", "Bug reports", "Filing issues", "Reporting bugs", "Development", or links to external contribution guides (wikis, documentation sites, readthedocs pages). If a link points to an external URL, fetch and read it.
Step 4: check the wiki. Some projects put contribution guidelines in their GitHub wiki:
$ gh api repos/<owner/repo> --jq '.has_wiki'
If the wiki is enabled, note this for the user: the wiki may contain additional contribution norms that cannot be fetched via the API. Suggest the user check https://github.com/<owner/repo>/wiki for pages like "Contributing", "How to file a bug", etc.
Check for a code of conduct (it sometimes contains issue-filing etiquette):
$ gh api repos/<owner/repo>/contents/CODE_OF_CONDUCT.md --jq '.download_url'
$ gh api repos/<owner/repo>/contents/.github/CODE_OF_CONDUCT.md --jq '.download_url'
$ gh api repos/<owner/repo>/community/code_of_conduct --jq '.body'
Read each file to its end. When the repository file only points to a code of conduct hosted elsewhere, fetch that page and read it too.
List all issue templates. Repos may use classic markdown templates, YAML issue forms, or both:
$ gh api repos/<owner/repo>/contents/.github/ISSUE_TEMPLATE --jq '.[].name'
Fetch every template and form found. Identify which one is the correct match for a bug report by examining filenames and content. Common patterns:
bug_report.md / bug_report.yml / bug-report.yml: bug reports.feature_request.md / feature_request.yml: feature requests (skip).security.md / SECURITY.md: security disclosures (use only if the bug is a security issue).config.yml: template chooser config that may redirect users to discussions or external links.If the repo uses YAML issue forms (.yml files with type: input, type: textarea, etc.), the report must fill in each required field using the exact field labels as section headers, preserving the order from the form. Optional fields should be included if relevant evidence exists.
If the repo uses markdown templates (.md files with HTML comments like <!-- description -->), follow the template structure and replace placeholders.
If no templates exist, use the default structure from step 5.
Also check the template chooser config for redirection:
$ gh api repos/<owner/repo>/contents/.github/ISSUE_TEMPLATE/config.yml --jq '.content' | base64 -d
This file may disable blank issues (blank_issues_enabled: false) or add links that redirect users to discussions, forums, or other channels. Respect these preferences.
If the bug has security implications, check for a security policy first:
$ gh api repos/<owner/repo>/contents/SECURITY.md --jq '.download_url'
$ gh api repos/<owner/repo>/contents/.github/SECURITY.md --jq '.download_url'
If a security policy exists and the bug is a vulnerability, warn the user that it should be reported through the security channel (often a private advisory or email), not a public issue. Stop and report this to the user.
Some maintainers require opening a discussion before filing an issue. Check for signals:
$ gh api repos/<owner/repo> --jq '.has_discussions'
If discussions are enabled, search for patterns in the contribution guidelines that say things like "open a discussion first", "please ask in discussions before filing", "use discussions for questions and bug reports". Also check if the template chooser config redirects to discussions.
If the maintainers prefer discussions first, warn the user and suggest opening a discussion instead. Write the report in a tone appropriate for a discussion (same factual content, but framed as "I encountered this, is this a known issue?" rather than a direct bug report).
While reading contribution guidelines, note any rules about:
Check whether the bug is already reported:
$ gh search issues --repo <owner/repo> "<keywords>" --json title,url,state
$ gh issue list --repo <owner/repo> --state all --json title,url,state
Search with multiple keyword variations (error messages, function names, symptoms). The search API allows 30 requests per minute, so run many queries from one script that pauses about 2 seconds between calls and retries on HTTP 403: API rate limit exceeded. Check both open and closed issues: the bug may have been reported and closed as "won't fix", or fixed in a version the user hasn't upgraded to.
If a matching open issue exists, report it to the user and stop. Do not offer a comment on an issue that a maintainer has already answered as in progress, unless the user asks for one. If a matching closed issue exists, mention it in the report with a link and explain why this is a new occurrence (different version, different context, regression).
A matching issue closed for lack of a reproducer is not a dead end: cite it, because that closure is part of the record, and supply what it lacked.
A keyword search over issues is not enough. Run these five checks too before you report the result to the user:
gh search prs: a fix under review answers the report before it is filed.main, and read every commit that changed them after the release you measured: a fix can sit there behind an issue whose title shares no word with your symptom. Then check the stable branches for a backport.Tell the user which checks ran, and what each one could not reach: a deleted issue, a truncated search, a chat server.
Collect the actual error output, environment details, and reproduction steps from the current conversation context, CI logs, or local files. Always include:
Maintainers can diagnose faster when they can see the original context themselves. Whenever the triggering context is publicly accessible, include deep links in the report:
gh run view <run-id> --json url --jq '.url' to get the URL.https://github.com/<owner/repo>/blob/<sha>/path/to/file.py#L42-L55). Use a commit SHA, not a branch name, so the link stays stable.pyproject.toml section, tool config), link to it.https://github.com/owner/repo/pull/123/changes#diff-<hash>) or the commit, not just the PR landing page. The reader should see the relevant change immediately on click.Ask yourself: "Can the maintainer click a link and immediately see what I'm describing?" If yes, include the link. If the context is private, quote the relevant snippet inline instead.
The maintainer of the code is the authority on it. Hand over observations they can verify in one click, and leave the diagnosis to them:
git tag --contains {sha} | sort -V | head -1 names the first release that carried the commit.A …/actions/runs/{run}/job/{job}#step:{N}:{line} link follows non-obvious numbering, verified against live runs:
gh api repos/{owner}/{repo}/actions/jobs/{id}/logs --allow-escape-sequences. Without the flag, gh refuses the escape sequences and writes an empty file. The job's numeric ID is id in gh api repos/{owner}/{repo}/actions/runs/{run}/jobs, and databaseId in gh run view {run} --json jobs, which has no id field: reading .id there returns null.step:7.if:-guarded step shifts every anchor below it by one, and only on the runs where it was skipped. gh api repos/{owner}/{repo}/actions/jobs/{id} returns steps[].number and steps[].conclusion: line the non-skipped steps up against the log's ##[group]Run markers in order, then take the number off the step. Its name is also the cheapest check that an anchor landed where intended.##[group]Run … marker, which is line 1, and includes the echoed script plus the shell:/env: preamble before any output.^\S+Z ) from each raw line before counting or matching.Pick the template by the rules of step 1d. Two cases need the user:
Write the report to a markdown file named <repo>-bug-report.md, outside the checkout, in the session's scratch directory. A file at the repository root does not belong to the project, and a broad git add can stage it.
Open the file with a Title: <clear, specific title> line. The user pastes it into the title field of the issue, and the body under it holds no H1 heading.
If no template exists, use this default structure:
## Summary
One paragraph describing what fails and the impact.
## Steps to reproduce
Minimal, self-contained reproduction. Prefer a GitHub Actions workflow snippet if the bug is CI-specific.
## Expected behavior
What should happen.
## Actual behavior
What happens instead, with exact error output in code blocks.
## Environment
- Tool version
- OS / architecture
- Any relevant context (CI runner, Docker image, etc.)
tool --version", include it. If they say "use the template", use it verbatim.The report will be pasted into a GitHub issue (or PR body). Write for GitHub's renderer, not for a generic markdown viewer:
#NNN shorthand for same-repo references. GitHub auto-links #NNN to issues/PRs in the same repository. Do not write [#123](https://github.com/owner/repo/issues/123) or [Issue #123](...) when a bare #123 works. Reserve full URLs for cross-repo references.@username for people, not indirect references. Write "Original example from @octocat" not "The maintainer's example". GitHub renders @-mentions as profile links and notifies the person, which is appropriate in a bug report where they are the relevant party.[text](url) when the URL IS the information. GitHub auto-links and previews bare URLs. A markdown link like [owner/repo#123](https://github.com/owner/repo/pull/123) adds nothing over the bare URL and is harder to audit. Use [text](url) only when the link text adds meaning the URL lacks (e.g., describing what the link shows).blob/{full-sha}/{path}#L{a}-L{b}, alone on its line, into a rendered syntax-highlighted snippet, but only in the repository the link points at; a link to any other repository stays a bare URL. Quote a cross-repo excerpt in a fenced block and put the permalink beside it, or the reader gets a naked link where the evidence should be. Use the 40-character commit SHA that Copy permalink (y) emits, not a tag or a branch name.git show {sha}:{path}, or gh api 'repos/{owner}/{repo}/contents/{path}?ref={sha}' -H "Accept: application/vnd.github.raw"), grep it for the symbol, and take the range from that output.`mdformat`, `tabulate`. This distinguishes the tool identifier from surrounding prose and is consistent with how code identifiers are formatted.Before including any error output, tracebacks, or logs in the report, scrub them for readability and privacy:
/Users/kde/code/project/venv/lib/python3.12/site-packages/...) with short relative equivalents (site-packages/... or .venv/.../). The maintainer does not need the user's home directory or filesystem layout.... (N frames omitted) .... The diagnostic value is in the entry point and the crash site, not 40 identical recursion frames.<details><summary>Full log</summary> blocks for longer context the maintainer might need but should not have to scroll past.Clean up code blocks before including them in the report:
Use precise Pygments lexer IDs on fenced code blocks so GitHub renders them with proper syntax highlighting. Never use bare ``` when a specific lexer applies. Common IDs for bug reports:
| Content | Lexer ID | Notes |
|---|---|---|
| Python traceback | pytb | Full Traceback (most recent call last): output. |
| Python console session | pycon | >>> prompts with output. |
| Shell session (Unix) | shell-session | $ prompts with output. Prefer over bash when showing command + output together. |
| Shell session (PowerShell) | pwsh-session | PS> prompts with output. |
| PowerShell script | pwsh | Pure PowerShell code without prompts. |
| Rust panic / backtrace | rust | thread 'main' panicked at... output. |
| Go panic | go | goroutine 1 [running]: output. |
| Plain text / logs | text | When no lexer fits. Still better than bare ```. |
Match the lexer to the content, not the project language. A Python project's bug report might include yaml for a workflow snippet, shell-session for a CLI invocation, and pytb for the traceback, all in the same report.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub kdeldycke/repomatic --plugin repomatic18 skills in this plugin
/av-false-positiveScan a release on VirusTotal. Write submission instructions for each AV vendor that flags a false positive./awesome-triageTriage new issues and PRs on awesome-list repos. Apply the curation criteria drawn from past decisions./babysit-ciMonitor the CI tests, lint, autofix, docs and Nuitka binary-build workflows. Diagnose each failure, fix the code, commit, and loop until every stable job passes. Ignore unstable failures./benchmark-updateCreate or update the competitive benchmark page (docs/benchmark.md) that compares this project against its alternatives. Check maintenance status, feature accuracy, new candidates and badge health./brand-assetsCreate project logo and banner SVGs, then export them to light and dark PNG variants. Use when you design a logo or banner, or regenerate the PNGs from their SVG source files./github-housekeepingBackfill and curate labels and milestones across a repository's whole issue and PR history. Design the taxonomy, classify in bulk, detect AI slop, and reconstruct past releases.Other plugins' skills for the same job