Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

report-bug

БесплатноЗапускает вложенные скриптыНе проверен

Automatically generate and post detailed bug reports to GitHub Issues for the active project repository. This skill should be used when documenting bugs…

watt-mindот watt-mind★ 111 звёзд на GitHub23 установки в других каталогах

Об этом скилле

Report Bug Skill

Automatically generate comprehensive, professional bug reports and post them directly to the GitHub repository associated with the current working directory.

Purpose

This skill automates the creation of detailed bug reports that include:

  • Clear, concise issue titles
  • Step-by-step reproduction instructions
  • Technical analysis and root cause insights
  • Recommended E2E test specifications
  • Professional formatting suitable for team collaboration

When to Use This Skill

Use this skill when:

  • Documenting a bug discovered during development or testing
  • Creating a GitHub Issue to track a problem
  • Generating a professional bug report with reproduction steps
  • Providing E2E test recommendations for verification
  • Ensuring consistent bug reporting standards across the team

Workflow

1. Repository Detection

Detect the Git repository in the current working directory:

  • Extract the repository owner and name from the remote origin URL
  • Validate that the repository is a GitHub repository
  • Handle both HTTPS and SSH remote URL formats

2. Bug Report Generation

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
  })
})
```

Additional Context

Error Messages

[Relevant error messages from logs or console]

Stack Trace

[Stack trace if available]

Related Issues

[Links to related GitHub issues if applicable]

Screenshots/Logs

[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:

  • Authenticates using GitHub CLI (gh)
  • Validates repository permissions
  • Creates the issue with specified labels
  • Returns the issue number and URL

4. Result Presentation

Display the created issue information:

  • Issue number
  • Direct link to the GitHub Issue
  • Confirmation of successful creation
  • Applied labels

Authentication Requirements

This skill requires GitHub CLI (gh) for authentication:

  1. Installation: Ensure gh is installed on the system

  2. Authentication: User must be authenticated

    • Run: gh auth login
    • Follow the authentication flow
    • Ensure repo scope is included
  3. Permissions: User must have write access to the target repository

Using the Scripts

create_issue.sh

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:

  • Validates gh CLI installation and authentication
  • Detects repository information automatically
  • Handles both SSH and HTTPS remote URLs
  • Creates temporary files for issue body
  • Returns issue URL and number on success
  • Provides colored output for better visibility

Error Handling:

  • Checks for gh CLI installation
  • Verifies GitHub authentication status
  • Confirms Git repository presence
  • Validates GitHub remote URL

Using the Assets

issue_template.md

Template 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}}, `{{SEVER
Полный SKILL.md на GitHub

Установить report-bug в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

assets/issue_template.mdscripts/create_issue.sh

FAQ

Что делает скилл report-bug?

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.

Как установить скилл report-bug?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл report-bug запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить report-bug с