Skip to content
Back to skills

Create Issue

ASecurity

Create formatted GitHub/GitLab/Forgejo issue with approval

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

Works with

  • cli

Security analysis

A100/100

Scanned September 25, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Create Issue?

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

Security grade badge for Create Issue
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sgaunet-create-issue/badge)](https://www.skillsdirectory.com/skills/sgaunet-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: create-issue
description: Create formatted GitHub/GitLab/Forgejo issue with approval
argument-hint: "<issue-topic-or-description>"
user-invocable: true
disable-model-invocation: true
allowed-tools: Read, Grep, Glob, Skill, Bash(gh:*), Bash(glab:*), Bash(fgj:*), AskUserQuestion
---

# Create Issue

Create an issue for the current git repository. This skill automatically detects whether the repository is hosted on GitHub, GitLab, or Forgejo and uses the appropriate CLI tool (`gh`, `glab`, or `fgj`).

## 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 issue topic/description is provided as `$argument`

3. Always list available labels before creating the issue. Do not add labels that do not exist in the host repository.
   - **GitHub**: Use `gh label list --repo <owner>/<repo>` via Bash
   - **GitLab**: Use `glab label list`
   - **Forgejo**: Use `fgj label list -R <owner>/<repo>`

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

5. **Request Permission**: Always ask the user for permission before creating the issue

## Issue Content Guidelines

The issue content should be based on: `$argument`

### 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 `gh`/`glab`/`fgj` CLI not installed: Inform user and suggest installing the appropriate CLI tool

## Example Usage

```
/create-issue "Add dark mode toggle to user preferences"
```

This will create an issue with proper formatting, context, and request user confirmation before proceeding.

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.