Skip to content

Commit 2d81d88

Browse files
authored
Merge pull request #2238 from finos/feat/add-issue-drafting-skill
feat(skills): add issue drafting skill
2 parents 297a39a + afd8d3a commit 2d81d88

1 file changed

Lines changed: 61 additions & 0 deletions

File tree

  • .github/skills/draft-github-issue
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
---
2+
name: draft-github-issue
3+
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.
4+
---
5+
6+
# Draft GitHub Issue from Repository Templates
7+
8+
Use this skill to produce issue-ready Markdown that matches the templates in `.github/ISSUE_TEMPLATE`.
9+
10+
## Goal
11+
12+
- Select the most appropriate template.
13+
- Gather missing details with minimal clarifying questions.
14+
- Create a complete issue draft file that preserves the chosen template structure.
15+
16+
## Template Selection
17+
18+
Choose exactly one template based on intent:
19+
20+
- Bug or defect → `.github/ISSUE_TEMPLATE/Bug_report.md`
21+
- New capability in an existing module → `.github/ISSUE_TEMPLATE/Feature_proposal.md`
22+
- Feedback request for experimental work → `.github/ISSUE_TEMPLATE/Experimental_Feature_Feedback.md`
23+
- JSON schema modification request → `.github/ISSUE_TEMPLATE/Schema_change_proposal.md`
24+
- New module/project in monorepo → `.github/ISSUE_TEMPLATE/Project_proposal.md`
25+
- Maintainer add/remove process → `.github/ISSUE_TEMPLATE/Maintainer_update.md`
26+
- Regular project meeting agenda/minutes → `.github/ISSUE_TEMPLATE/Meeting.md`
27+
- Office Hours agenda → `.github/ISSUE_TEMPLATE/Office_Hours.md`
28+
- User/support usage question → `.github/ISSUE_TEMPLATE/Support_question.md`
29+
30+
If intent is ambiguous, ask one concise multiple-choice clarification listing the above options.
31+
32+
## Workflow
33+
34+
1. Read the selected template file.
35+
2. Keep all section headings and checklists from the template.
36+
3. Fill placeholders (`...`) with concrete, concise content from user context.
37+
4. If critical required details are missing, ask only for those details.
38+
5. Write the final issue draft to a Markdown file under `sandbox/issues/` by default.
39+
6. Return:
40+
- the suggested issue title,
41+
- the file path created,
42+
- and the final issue body in chat only if the user explicitly asks for it.
43+
44+
## Output Rules
45+
46+
- Do not include YAML frontmatter from template files in the final issue body.
47+
- Keep checkbox lists (`- [ ]`) intact unless user asks to pre-check items.
48+
- Prefer factual statements over speculative text.
49+
- Do not invent technical details; use explicit TODO markers only when data is unavailable.
50+
- Preserve links and governance/process references from the source template when relevant.
51+
- Default file naming convention: `sandbox/issues/<yyyy-mm-dd>-<short-kebab-title>.md`.
52+
- If user provides a preferred filename/location, use it.
53+
54+
## Quality Checklist
55+
56+
Before returning the draft, verify:
57+
58+
- The chosen template matches user intent.
59+
- No template section is silently removed.
60+
- Actionable sections are specific (repro steps, implementation notes, timelines, etc.).
61+
- The issue is understandable without extra context.

0 commit comments

Comments
 (0)