Skip to content

The only downloader you need. 下载器的集大成者。

docs: 加入 AI 使用声明与贡献指南

XiaoYouChRfd558c90d3ba
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
index 61d86f04..98aae91c 100644
--- a/.github/PULL_REQUEST_TEMPLATE.md
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -3,29 +3,31 @@
<!-- 🚨 请不要跳过或删除下面的信息,它们都是评估与测试所需的信息,完整填写有助于更快通过评审 🚨 -->
<!-- 👉 一个 PR 最好只解决一个 Issue,除非这些问题彼此关联 -->
-<!-- 📝 请始终打开 PR 中的 `☑️ Allow edits by maintainers` 按钮,Ghost-Downloader-3 使用了较为严格的项目模板,维护者可以帮助你修改一些细微的错误或者格式问题 🎉 -->
+<!-- 📝 请始终打开 PR 中的 `☑️ Allow edits by maintainers` 按钮,Ghost Downloader 使用了较为严格的项目模板,维护者可以帮助你修改一些细微的错误或者格式问题 -->
## PR 描述
<!-- 在此添加对修复的问题或添加的功能的简要描述 -->
-
-<!-- ## Close #xxx -->
-<!-- 若存在相关 Issue,请在此处替换 xxx 为你要关闭的 Issue 编号 -->
+<!-- 若有关联 Issue,请在描述中写 Closes #xxx -->
## PR 类型
-<!-- 请取消对应类型的注释 -->
-<!-- - Bug 修复 -->
-<!-- - 功能 -->
-<!-- - 代码样式更新 -->
-<!-- - 重构 (没有功能修改,没有 API 更新) -->
-<!-- - Build 或 CI 更新 -->
-<!-- - 其他,请描述内容: -->
+- [ ] Bug 修复
+- [ ] 功能
+- [ ] 代码样式更新
+- [ ] 重构(没有功能修改,没有 API 更新)
+- [ ] Build 或 CI 更新
+- [ ] 其他(请在 PR 描述中说明)
+
+## AI 工具使用
+
+- [ ] AI 工具辅助了本 PR 的部分开发(如代码补全、查阅用法等)
+- [ ] AI 工具主要生成了本 PR 中的代码(请注明工具与模型,如 `Cursor + Claude Sonnet 4`)
+
+详见 [AI 工具使用政策](CONTRIBUTING.md#ai-工具使用政策)。
## PR 检查清单
-<!-- 请检查你的 PR 是否满足以下要求 -->
-<!-- 打勾适用于当前 PR 的内容 -->
-- [ ] 应用成功启动且测试无 Bug
+- [ ] 已在本地测试,应用成功启动且功能正常
- [ ] **不**包含破坏式更新
<!-- 如果这个 PR 包含破坏式更新,请在下面描述对现有应用的影响以及如何适应新变化 -->
diff --git a/.github/PULL_REQUEST_TEMPLATE/en.md b/.github/PULL_REQUEST_TEMPLATE/en.md
index 176ee311..c32c0811 100644
--- a/.github/PULL_REQUEST_TEMPLATE/en.md
+++ b/.github/PULL_REQUEST_TEMPLATE/en.md
@@ -1,28 +1,30 @@
<!-- 🚨 Please do not skip or remove the information below. It is needed for evaluation and testing, and completing it helps your PR get reviewed faster. 🚨 -->
<!-- 👉 A PR should ideally address only one issue unless the issues are closely related. -->
-<!-- 📝 Please keep `☑️ Allow edits by maintainers` enabled on your PR. Ghost-Downloader-3 uses a fairly strict project template, and maintainers may help fix small mistakes or formatting issues. 🎉 -->
+<!-- 📝 Please keep `☑️ Allow edits by maintainers` enabled on your PR. Ghost Downloader uses a fairly strict project template, and maintainers may help fix small mistakes or formatting issues. -->
## PR Description
-<!-- Add a short description of the bug you fixed or the feature you added here -->
-
-<!-- ## Close #xxx -->
-<!-- If there is a related issue, replace xxx with the issue number you want to close -->
+<!-- Add a short description of the bug you fixed or the feature you added -->
+<!-- If there is a related issue, write Closes #xxx in your description -->
## PR Type
-<!-- Uncomment the corresponding type -->
-<!-- - Bug fix -->
-<!-- - Feature -->
-<!-- - Code style update -->
-<!-- - Refactor (no functional changes, no API updates) -->
-<!-- - Build or CI update -->
-<!-- - Other, please describe: -->
+- [ ] Bug fix
+- [ ] Feature
+- [ ] Code style update
+- [ ] Refactor (no functional changes, no API updates)
+- [ ] Build or CI update
+- [ ] Other (please describe in PR description)
+
+## AI Tool Usage
+
+- [ ] AI tool(s) assisted part of the development of this PR (e.g. code completion, looking up usage)
+- [ ] AI tool(s) primarily generated code in this PR (please specify tool and model, e.g. `Cursor + Claude Sonnet 4`)
+
+See our [AI tool usage policy](CONTRIBUTING.md#ai-tool-usage-policy).
## PR Checklist
-<!-- Check whether your PR meets the following requirements -->
-<!-- Tick the items that apply to this PR -->
-- [ ] The app starts successfully and has been tested without bugs
+- [ ] Tested locally, app starts successfully and works as expected
- [ ] This PR does **not** include breaking changes
<!-- If this PR includes breaking changes, describe the impact on the existing app and how to adapt to the new behavior below -->
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
new file mode 100644
index 00000000..e7c4b880
--- /dev/null
+++ b/CONTRIBUTING.md
@@ -0,0 +1,33 @@
+# Contributing to Ghost Downloader
+
+## AI 工具使用政策
+
+Ghost Downloader 欢迎使用 AI 工具辅助开发,但请在提交 PR 时如实声明。
+
+### 为什么?
+
+声明 AI 的参与程度,有助于维护者在 review 时有针对性地关注相关部分。
+
+### 怎么声明?
+
+在 PR 模板的 "AI 工具使用" 部分勾选适用的选项:
+
+- **辅助开发** — AI 用于代码补全、查阅 API 用法、辅助调试等。勾选即可,无需额外说明。
+- **主要生成** — AI 生成了 PR 中的大量代码或核心逻辑。请注明使用的工具和模型(如 `Cursor + Claude Sonnet 4`)。不确定模型的话写"模型未知"即可。
+
+---
+
+## AI Tool Usage Policy
+
+Ghost Downloader welcomes the use of AI tools in development, but please disclose AI usage when submitting a PR.
+
+### Why?
+
+Disclosing AI involvement helps maintainers focus their review on the parts that need closer attention.
+
+### How to disclose?
+
+Check the applicable option in the "AI Tool Usage" section of the PR template:
+
+- **Assisted development** — AI was used for code completion, looking up API usage, debugging assistance, etc. Just check the box, no further explanation needed.
+- **Primarily generated** — AI generated a significant portion of the code or core logic in the PR. Please specify the tool and model (e.g. `Cursor + Claude Sonnet 4`). If you're unsure about the model, just write "model unknown".