make-issuelisted
Install: claude install-skill rvanbaalen/skills
Create a new GitHub issue based on the $ARGUMENTS input from the user.
If no arguments were provided, use `AskUserQuestion` to ask what the issue is about before proceeding.
## Procedure
### 1. Gather repository info
Run these commands in parallel to collect all necessary data upfront:
- Check for issue templates in `.github/ISSUE_TEMPLATE/`
- Get repo metadata: `gh repo view --json owner,name,id`
- Fetch available issue types:
```bash
gh api graphql -f query='
query($owner: String!, $name: String!) {
repository(owner: $owner, name: $name) {
issueTypes(first: 20) {
nodes {
id
name
description
}
}
}
}
' -f owner='{owner}' -f name='{repo}'
```
- Fetch all available labels with their IDs (needed for the GraphQL mutation):
```bash
gh api graphql -f query='
query($owner: String!, $name: String!) {
repository(owner: $owner, name: $name) {
labels(first: 100) {
nodes {
id
name
description
color
}
}
}
}
' -f owner='{owner}' -f name='{repo}'
```
If the repository has more than 100 labels, paginate using `after` cursor.
### 2. Template selection
If issue templates are available, use `AskUserQuestion` to ask which template to use. Use the template to structure the issue body in step 5.
### 3. Issue type selection
If issue types are available, use `AskUserQuestion` to l