# 分析和采纳用户反馈

Copilot Chat 可以增强将用户反馈合并到项目中的过程。

收集和采纳用户反馈对产品开发至关重要，但此过程可能具有挑战性。 开发人员和产品团队往往难以有效地分析用户反馈、确定优先级并根据反馈实施更改，同时又不影响现有工作流或引入新议题。

## 分析用户反馈

用户反馈可能会让人不知所措，而且可能很难确定应该对哪些反馈做出回应。

### 示例方案

假设你是常用开放源代码仓库的维护者。 由于社区非常投入你的project，因此他们经常提出问题以提供反馈。 他们还经常与未解决的问题互动。 你想对这些反馈做出回应，但不确定从何处着手。

### 示例提示

此示例假设使用标签来跟踪仓库中与用户反馈相关的议题。

导航到存储库中的**问题**选项卡，然后键入：

```copilot copy
Find the issues with the feedback label that have the most reactions, and categorize them based on sentiment.
```

> \[!TIP] 若要试用此提示，可以转到 [`microsoft/vscode`](https://github.com/microsoft/vscode/issues) 存储库，该存储库使用标签跟踪功能请求并键入：`Find the issues with the feature-request label that have the most reactions, and categorize them based on sentiment.`

### 示例响应

> \[!NOTE] 以下响应是示例。 Copilot Chat 的回答是不确定的，因此你可能会得到与这里所显示的不同的回答。

Copilot 列出最有反应的问题，并为每个问题提供情绪分析。 在确定工作优先级时，可以利用此列表来做出更明智的决策。

例如：

```text
1. [Feedback] CLI error messages are difficult to understand
  * Issue URL: #321
  * Reactions: 543
  * Sentiment: Negative

1. [Feedback] Add API to enable third party integration
  * Issue URL: #210
  * Reactions: 482
  * Sentiment: Positive

1. [Feedback] Shortcut for --with-token CLI option
  * Issue URL: #426
  * Reactions: 187
  * Sentiment: Neutral to slightly positive
```

## 生成功能规范

功能规范提供了开发计划，有助于在实施新功能之前进行沟通和协调。

### 示例方案

在这种情况下，你选择了一条要解决的用户反馈。 有人要求为现有的 CLI 选项提供快捷方式。 现在，你要为如何实现这一功能制定一个计划。

### 示例提示

此示例假定你是在咨询你使用 Copilot Chat 的同一存储库中的问题。

```copilot copy
Write a feature specification for Issue #426.
```

### 示例响应

> \[!NOTE] 以下响应是示例。 Copilot Chat 的回答是不确定的，因此你可能会得到与这里所显示的不同的回答。

Copilot 生成一个功能规范，如下所示。

```text
# Feature Specification for Issue #426: Shortcut for --with-token CLI option

## Description:
Currently, the --with-token option is used to pass in a token to commands. Typing --with-token each time is cumbersome. This feature proposes a new flag -wt as a shortcut to quickly specify the --with-token option when running various commands.

## Problem:
Typing --with-token repeatedly is time-consuming and inconvenient for users who frequently use this option.

## Solution:
Introduce a new flag -wt that serves as a shortcut for the --with-token option.

## Feature Details:

### 1. Flag Introduction:
-wt will be introduced as a shorthand for --with-token.
Usage: <command> -wt <token>

### 2. Commands Affected:
All commands that currently support the --with-token option.

### 3. Backward Compatibility:
- The existing --with-token option will continue to work as before.
- No existing functionality will be removed or altered.

### 4. Documentation:
- Update documentation to include the new -wt flag.
- Provide examples and usage scenarios for the new flag.

### 5. Testing:
- Ensure thorough testing of the -wt flag across various commands.
- Test cases should include:
  - Valid and invalid tokens.
  - Interaction with other options.
  - Ensuring no regression in current --with-token functionality.

## Benefits:
- Improved user experience by reducing the amount of typing required.
- Streamlined command execution for users who frequently use the --with-token option.

## Potential Risks:
Minimal risk as this feature is an addition and does not alter existing functionality.
```

## 延伸阅读

* [GitHub Copilot 对话助手的提示设计](/zh/copilot/concepts/prompting/prompt-engineering)
* [使用 GitHub Copilot 的最佳做法](/zh/copilot/get-started/best-practices)