.claude/skills/report-bug/SKILL.md
Automatically generate and post detailed bug reports to GitHub Issues for the active project repository. This skill should be used when documenting bugs discovered during development, creating professionally formatted GitHub Issues with reproduction steps, technical insights, and recommended E2E tests.
npx skillsauth add hdkiller/coach report-bugInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Automatically generate comprehensive, professional bug reports and post them directly to the GitHub repository associated with the current working directory.
This skill automates the creation of detailed bug reports that include:
Use this skill when:
Detect the Git repository in the current working directory:
Create a comprehensive bug report following this structure:
Issue Title: Clear, concise summary (max 80 characters)
Issue Body:
## Summary
[Clear description of the issue including what went wrong and expected behavior]
## Reproduction Steps
1. [First step to reproduce]
2. [Second step to reproduce]
3. [Third step to reproduce]
...
## Environment
- **OS**: [Operating system and version]
- **Browser/Runtime**: [Browser or Node.js version]
- **Version**: [Application or package version]
## Technical Details
- **Component**: [Affected component/module/file]
- **Severity**: [Critical/High/Medium/Low]
- **Affected Users**: [Scope of impact]
## Findings and Insights
### Root Cause Analysis
[Detailed technical analysis from the debugging session, explaining why the bug occurs]
### Code Locations
[Specific files, functions, and line numbers where the issue manifests]
### Potential Impact
[Description of how this bug affects users and system behavior]
### Dependencies Affected
[Other components or systems that may be impacted]
## Recommended E2E Test
```typescript
describe('Bug Fix Verification', () => {
it('should [expected behavior after fix]', async () => {
// Arrange: Set up test conditions
// Act: Execute the action that previously triggered the bug
// Assert: Verify the bug is fixed
})
})
```
[Relevant error messages from logs or console]
[Stack trace if available]
[Links to related GitHub issues if applicable]
[Additional context like screenshots or log snippets]
### 3. GitHub Issue Creation
Use the `scripts/create_issue.sh` script to create the GitHub issue:
```bash
scripts/create_issue.sh "<title>" "<body>" "<labels>"
The script:
gh)Display the created issue information:
This skill requires GitHub CLI (gh) for authentication:
Installation: Ensure gh is installed on the system
brew install ghAuthentication: User must be authenticated
gh auth loginrepo scope is includedPermissions: User must have write access to the target repository
The main script for creating GitHub issues:
scripts/create_issue.sh "<issue-title>" "<issue-body>" "bug,priority:high"
Parameters:
title: Issue title (required, max 80 characters recommended)body: Full issue body in markdown format (required)labels: Comma-separated list of labels (optional, defaults to "bug")Features:
gh CLI installation and authenticationError Handling:
gh CLI installationTemplate for generating consistent bug report bodies. Use this template to structure bug reports before passing them to the script.
The template includes placeholders for:
{{SUMMARY}}: Brief description of the bug{{REPRODUCTION_STEPS}}: Numbered steps to reproduce{{OS}}, {{RUNTIME}}, {{VERSION}}: Environment details{{COMPONENT}}, {{SEVERITY}}, {{AFFECTED_USERS}}: Technical metadata{{ROOT_CAUSE}}: Root cause analysis{{CODE_LOCATIONS}}: Affected files and functions{{IMPACT}}: Potential impact description{{DEPENDENCIES}}: Affected dependencies{{TEST_LANGUAGE}}, {{TEST_SUITE_NAME}}, {{TEST_DESCRIPTION}}, {{TEST_IMPLEMENTATION}}: Test specification{{ERROR_MESSAGES}}, {{STACK_TRACE}}: Error details{{RELATED_ISSUES}}, {{ADDITIONAL_CONTEXT}}: Extra contextTo use the template:
assets/issue_template.mdscripts/create_issue.shSimple invocation:
Use the report-bug skill to create an issue for the login button not responding to clicks
Detailed invocation:
Use report-bug to document the memory leak in the UserProfile component.
Include the findings from today's debugging session about the event listener not being cleaned up.
Recommend a test that validates proper cleanup on component unmount.
With specific severity:
Use report-bug to create a critical issue for the payment processing failure.
Include the error logs and stack trace from the production incident.
"gh: command not found"
brew install gh (macOS) or visit https://cli.github.comgh --version"authentication required"
gh auth loginrepo scope is granted"permission denied"
repo"not a git repository"
git remote -v to verify remote is configured.git directory in current or parent directoriesIssue creation fails
gh api rate_limitAfter successful creation, the skill returns:
✅ Bug report created successfully!
Issue #123: Login button unresponsive on mobile devices
🔗 https://github.com/owner/repo/issues/123
The issue has been posted with:
- Reproduction steps (4 steps)
- Technical analysis
- Recommended E2E test
- Labels: bug, priority:high
gh issue create command for GitHub API interactionThis skill integrates with:
development
Use when editing .vue files, creating Vue 3 components, writing composables, or testing Vue code - provides Composition API patterns, props/emits best practices, VueUse integration, and reactive destructuring guidance
tools
Use when authoring TypeScript libraries - covers project setup, package exports, build tooling (tsdown/unbuild), API design patterns, type inference tricks, testing, and release workflows. Patterns extracted from 20+ high-quality ecosystem libraries.
development
Use when building with Reka UI (headless Vue components) - provides component API, accessibility patterns, composition (asChild), controlled/uncontrolled state, virtualization, and styling integration. Formerly Radix Vue.
tools
Use when working on Nuxt 4+ projects - provides server routes, file-based routing, middleware patterns, Nuxt-specific composables, and configuration with latest docs. Covers h3 v1 helpers (validation, WebSocket, SSE) and nitropack v2 patterns.