Create github ticket
Skill emaarco/hogwarts/plugins/felix-felicis/skills/create-github-ticket
A magical place where my skills, rules, and plugins for AI agents are defined, which magically boost productivity π°πͺ
npx -y skills add emaarco/hogwarts --skill create-github-ticketAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Create or update GitHub issues for bug reports, feature requests, and refactor tasks using the gh CLI. Use when the user wants to file a ticket, create an issue, report a bug, request a feature, plan a refactor, or update an existing GitHub issue. Also triggers for new issue, open a ticket, file a bug, feature request, create task, or mentions wanting to track work in GitHub Issues.
SKILL.md
4.1 KB, as published. Nobody here has run it
Skill: create-ticket
Create or update a GitHub issue (feature request, bug report, or refactor task).
IMPORTANT
- Always use gh CLI to create or update tickets. Never call the GitHub API directly.
- If gh CLI is not available, abort and ask the user to install it. The user must restart the skill then.
- When any gh call fails, use AskUserQuestion to ask the user what to do (repeat, stop, do something else).
Instructions
Step 1 β Determine mode
Inspect $ARGUMENTS:
- If context contains
updateand/or an issue number or GitHub issue URL β update mode. - Otherwise β create mode.
- If create mode does not make sense based on context, use AskUserQuestion.
Step 2 β Gather information
Create mode:
- Extract issue type (
feature,bug,refactor) from$ARGUMENTS; if missing, ask the user. - For
feature: understand the desired behaviour and why it is needed. - For
bug: understand current vs. expected behaviour and reproduction steps. - For
refactor: understand scope, motivation, and target state.
Update mode:
- Fetch the issue:
gh issue view <number-or-url>.
Step 3 β Research (optional)
If the issue involves a specific library, framework version, API, or configuration that you are not
fully certain about, use AskUserQuestion to ask:
"Should I search online for [topic] to get accurate details before drafting?"
If yes, use WebSearch / WebFetch to collect relevant facts and incorporate them into the draft.
Skip this step if you already have sufficient knowledge.
Step 4 β Discover issue templates
Locate the issue templates to use for structuring the issue body:
- Check the current repo β look for
.github/ISSUE_TEMPLATE/in the git repo root. - Check a referenced repo β if not inside a repo but a repo is referenced (via URL or gh context), attempt:
Then fetch individual templates as needed.gh api repos/{owner}/{repo}/contents/.github/ISSUE_TEMPLATE --jq '.[].name' - Fallback β if no templates are found by either method, use AskUserQuestion to ask the user:
- "I couldn't find issue templates in the repository. You can either: a) Provide a link to your issue templates, or b) Use the built-in defaults."
- If the user provides a link, fetch and parse those templates.
- If the user chooses defaults, read the matching template from
references/:featureβreferences/feature-template.mdbugβreferences/bug-template.mdrefactorβreferences/refactor-template.md
When repo templates are found (YAML format), extract the title prefix, labels, and every
textarea/input/dropdown field (label + description) to compose the issue body.
Step 5 β Draft
Compose the issue title and body following the discovered or default template structure. Apply appropriate labels based on issue type.
Step 6 β Show and confirm
Present the full draft (create) or the current state + proposed changes (update) and use AskUserQuestion: "Proceed? (yes / edit / cancel)". Apply edits and re-show if requested.
Step 7 β Create or update
Using the GitHub CLI:
- Create:
gh issue create --title "<title>" --body "<body>" --label "<label>" - Update (use whichever commands apply):
gh issue edit <number> --title "<title>" --body "<body>" gh issue edit <number> --add-label "<label>" --remove-label "<label>" gh issue comment <number> --body "<comment>" gh issue close <number> gh issue reopen <number>
Step 8 β Report
Run gh issue view <number> and show the final issue state with its URL.