Unverified 提交 40060a82 authored 作者: Will Chen's avatar Will Chen 提交者: GitHub

Add feedback-to-issues command (#2639)

## Summary Adds a new `/feedback-to-issues` command that converts customer feedback (usually emails or support tickets) into discrete GitHub issues. The command: - Parses feedback to extract concrete, actionable issues - Searches for existing duplicate issues on GitHub - Proposes new issues for user approval - Creates approved issues - Drafts a professional reply email to the customer ## Features - **Duplicate detection**: Searches GitHub with multiple keyword variations - **User approval workflow**: Shows proposed issues for review before creating - **Draft reply email**: Generates a response email acknowledging all items This is a useful tool for managing customer feedback and support tickets at scale. <!-- devin-review-badge-begin --> --- <a href="https://app.devin.ai/review/dyad-sh/dyad/pull/2639" target="_blank"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://static.devin.ai/assets/gh-open-in-devin-review-dark.svg?v=1"> <img src="https://static.devin.ai/assets/gh-open-in-devin-review-light.svg?v=1" alt="Open with Devin"> </picture> </a> <!-- devin-review-badge-end --> <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Documentation-only addition of a new Claude command; no application/runtime code paths change. > > **Overview** > Adds a new Claude command spec, `/.claude/commands/dyad/feedback-to-issues.md`, to turn pasted (or file-based) customer feedback into actionable GitHub issues. > > The workflow explicitly guides parsing feedback into discrete items, searching `gh issue list` for potential duplicates, presenting *already filed* vs *proposed* issues for **user approval**, then creating approved issues via `gh issue create` and drafting a reply email linking the resulting issues. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 546a1ace575909596613fa3b5863421bbafe1594. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY --> <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Adds a new /feedback-to-issues command that turns customer emails or tickets into actionable GitHub issues. It checks for duplicates, requires approval before creating issues, and drafts a reply email with links. - **New Features** - Parses feedback into discrete issues with clear titles, types, and priorities. - Searches GitHub for duplicates using multiple keyword variations (open and closed). - Presents a review report and creates only approved issues via gh. - Drafts a concise customer reply that references existing and newly created issues. <sup>Written for commit 546a1ace575909596613fa3b5863421bbafe1594. Summary will update on new commits.</sup> <!-- End of auto-generated description by cubic. -->
上级 858e04cd
# Feedback to Issues
Turn customer feedback (usually an email) into discrete GitHub issues. Checks for duplicates, proposes new issues for approval, creates them, and drafts a reply email.
## Arguments
- `$ARGUMENTS`: The customer feedback text (email body, support ticket, etc.). Can also be a file path to a text file containing the feedback.
## Instructions
1. **Parse the feedback:**
Read `$ARGUMENTS` carefully. If it looks like a file path, read the file contents.
Break the feedback down into discrete, actionable issues. For each issue, identify:
- A concise title (imperative form, e.g., "Add dark mode support")
- The type: `bug`, `feature`, `improvement`, or `question`
- A clear description of what the customer is reporting or requesting
- Severity/priority estimate: `high`, `medium`, or `low`
- Any relevant quotes from the original feedback
Ignore pleasantries, greetings, and non-actionable commentary. Focus on extracting concrete problems, requests, and suggestions.
2. **Search for existing issues:**
For each discrete issue identified, search GitHub for existing issues that may already cover it:
```bash
gh issue list --repo "$(gh repo view --json nameWithOwner -q '.nameWithOwner')" --state all --search "<relevant keywords>" --limit 10 --json number,title,state,url
```
Try multiple keyword variations for each issue to avoid missing duplicates. Search both open and closed issues.
3. **Present the report to the user:**
Format the report in three sections:
### Already Filed Issues
For each issue that already has a matching GitHub issue, show:
- The extracted issue title
- The matching GitHub issue(s) with number, title, state (open/closed), and URL
- Brief explanation of why it matches
### Proposed New Issues
For each issue that does NOT have an existing match, show:
- **Title**: The proposed issue title
- **Type**: bug / feature / improvement / question
- **Priority**: high / medium / low
- **Body preview**: The proposed issue body (include the relevant customer quote and a clear description of what needs to happen)
- **Labels**: Suggest appropriate labels based on the issue type
### Summary
- Total issues extracted from feedback: N
- Already filed: N
- New issues to create: N
**Then ask the user to review and approve the proposal before proceeding.** Do NOT create any issues yet. Wait for explicit approval. The user may want to edit titles, descriptions, priorities, or skip certain issues.
4. **Create approved issues:**
After the user approves (they may request modifications first — apply those), create each approved issue:
```bash
gh issue create --title "<title>" --body "<body>" --label "<labels>"
```
Report back each created issue with its number and URL.
5. **Draft a reply email:**
After all issues are created, draft a brief, professional reply email for the customer. The email should:
- Thank them for their feedback
- Briefly acknowledge each item they raised
- For items that already had existing issues: mention it's already being tracked
- For newly created issues: mention it's been filed and will be looked into
- Keep it concise — no more than a few short paragraphs
- Use a friendly but professional tone
- Include a link to the GitHub issue URL for each item so the customer can follow progress
- End with an invitation to share more feedback anytime
Present the draft email to the user for review before they send it.
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论