-
Notifications
You must be signed in to change notification settings - Fork 104
feat(skills): add issue drafting skill #2238
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| --- | ||
| name: draft-github-issue | ||
| description: Draft GitHub issues using repository templates in .github/ISSUE_TEMPLATE. Use when users ask to create, draft, or refine an issue, bug report, feature proposal, support question, meeting agenda, office hours notes, schema change proposal, maintainer update, project proposal, or experimental feature feedback. | ||
| --- | ||
|
|
||
| # Draft GitHub Issue from Repository Templates | ||
|
|
||
| Use this skill to produce issue-ready Markdown that matches the templates in `.github/ISSUE_TEMPLATE`. | ||
|
|
||
| ## Goal | ||
|
|
||
| - Select the most appropriate template. | ||
| - Gather missing details with minimal clarifying questions. | ||
| - Create a complete issue draft file that preserves the chosen template structure. | ||
|
|
||
| ## Template Selection | ||
|
|
||
| Choose exactly one template based on intent: | ||
|
|
||
| - Bug or defect → `.github/ISSUE_TEMPLATE/Bug_report.md` | ||
| - New capability in an existing module → `.github/ISSUE_TEMPLATE/Feature_proposal.md` | ||
| - Feedback request for experimental work → `.github/ISSUE_TEMPLATE/Experimental_Feature_Feedback.md` | ||
| - JSON schema modification request → `.github/ISSUE_TEMPLATE/Schema_change_proposal.md` | ||
| - New module/project in monorepo → `.github/ISSUE_TEMPLATE/Project_proposal.md` | ||
| - Maintainer add/remove process → `.github/ISSUE_TEMPLATE/Maintainer_update.md` | ||
| - Regular project meeting agenda/minutes → `.github/ISSUE_TEMPLATE/Meeting.md` | ||
| - Office Hours agenda → `.github/ISSUE_TEMPLATE/Office_Hours.md` | ||
| - User/support usage question → `.github/ISSUE_TEMPLATE/Support_question.md` | ||
|
|
||
| If intent is ambiguous, ask one concise multiple-choice clarification listing the above options. | ||
|
|
||
| ## Workflow | ||
|
|
||
| 1. Read the selected template file. | ||
| 2. Keep all section headings and checklists from the template. | ||
| 3. Fill placeholders (`...`) with concrete, concise content from user context. | ||
| 4. If critical required details are missing, ask only for those details. | ||
| 5. Write the final issue draft to a Markdown file under `sandbox/issues/` by default. | ||
| 6. Return: | ||
| - the suggested issue title, | ||
| - the file path created, | ||
| - and the final issue body in chat only if the user explicitly asks for it. | ||
|
|
||
| ## Output Rules | ||
|
|
||
| - Do not include YAML frontmatter from template files in the final issue body. | ||
| - Keep checkbox lists (`- [ ]`) intact unless user asks to pre-check items. | ||
| - Prefer factual statements over speculative text. | ||
| - Do not invent technical details; use explicit TODO markers only when data is unavailable. | ||
| - Preserve links and governance/process references from the source template when relevant. | ||
| - Default file naming convention: `sandbox/issues/<yyyy-mm-dd>-<short-kebab-title>.md`. | ||
| - If user provides a preferred filename/location, use it. | ||
|
rocketstack-matt marked this conversation as resolved.
|
||
|
|
||
| ## Quality Checklist | ||
|
|
||
| Before returning the draft, verify: | ||
|
|
||
| - The chosen template matches user intent. | ||
| - No template section is silently removed. | ||
| - Actionable sections are specific (repro steps, implementation notes, timelines, etc.). | ||
| - The issue is understandable without extra context. | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.