Skip to content
Back to skills

Analyze And Create Issue

ASecurity

Analyze codebase and create GitHub/GitLab/Forgejo issues per finding

  • 16 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 25, 2026
developmentbashgitsecurityperformancedocumentation

Works with

  • cli

Security analysis

A100/100

Scanned September 25, 2026

npx -y skills add sgaunet/claude-plugins --skill analyze-and-create-issue --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Analyze And Create Issue?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Analyze And Create Issue
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sgaunet-analyze-and-create-issue/badge)](https://www.skillsdirectory.com/skills/sgaunet-analyze-and-create-issue)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: analyze-and-create-issue
description: Analyze codebase and create GitHub/GitLab/Forgejo issues per finding
argument-hint: "[optional: domain to focus analysis, e.g., 'security', 'performance', 'documentation']"
user-invocable: true
allowed-tools: Read, Grep, Glob, Skill, Task, Bash(gh:*), Bash(glab:*), Bash(fgj:*), AskUserQuestion
---

# Analyze And Create Issue

Analyze codebase to find improvements. For each improvement:
* Describe concisely to the user and ask if they want to create an issue
* If yes, create the issue in the git repository (GitHub, GitLab, or Forgejo) using the appropriate CLI.

## Process

1. **Detect Repository Host**: Use the `detect-repo-host` skill to identify the hosting service (GitHub, GitLab, or Forgejo) and extract owner/repo details.

2. **Validate Arguments**: Ensure the issues are in the domain of `$argument`. If no `$argument` is provided, consider all types of issues.

3. Get the list of labels for the current project:
   - **GitHub**: `gh label list --repo <owner>/<repo>`
   - **GitLab**: `glab label list`
   - **Forgejo**: `fgj label list -R <owner>/<repo>`

4. For each improvement, Ask the user if they want to create an issue

5. If yes, **Create Issue**: Use the appropriate CLI:
   - **GitHub**: `gh issue create --repo <owner>/<repo> --title "<title>" --body "<body>" --label "<label>"`
   - **GitLab**: `glab issue create --title "<title>" --description "<body>" --label "<label>"`
   - **Forgejo**: `fgj issue create -R <owner>/<repo> -t "<title>" -b "<body>" -l <label>`

## Issue Content Guidelines

### Requirements:
- **Title**: Clear, concise summary (max 80 characters)
- **Description**: Detailed explanation including:
  - Problem description or feature request
  - Steps to reproduce (if bug)
  - Expected behavior
  - Current behavior
  - Additional context or screenshots
- **Labels**: Suggest appropriate labels based on those available in the host repository.

### Formatting:
- Use proper markdown formatting
- Include code blocks with syntax highlighting when relevant
- Add checklists for actionable items
- Reference related issues or PRs when applicable

## Error Handling

- If repository host detection fails: The `detect-repo-host` skill provides detailed error messages (not a git repo, no remotes, unsupported host)
- If CLI is unavailable: Inform user to install `gh`, `glab`, or `fgj` and suggest manual creation

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.