Skip to content

armgit / peach

Public Imported from GitHub
0

Peach: Local-first video metadata scraper and media manager.

docs(workflow): 统一维护者的 issue 与 PR 交付

longmeidao9d3c0cb9af72
diff --git a/.claude/skills/peach-issue-delivery/SKILL.md b/.claude/skills/peach-issue-delivery/SKILL.md
index c45af443f..792b9dfb9 100644
--- a/.claude/skills/peach-issue-delivery/SKILL.md
+++ b/.claude/skills/peach-issue-delivery/SKILL.md
@@ -1,12 +1,19 @@
---
name: peach-issue-delivery
-description: 处理 Peach 的 GitHub issue、关联修复 PR、合并交付或判断 issue 是否可以关闭时使用。
+description: Peach 代码交付、issue 与 PR、合并或判断 issue 是否可以关闭时使用。
---
# Issue 交付与验证
-最后复核:2026-10-26
-证据来源:用户确认的 issue 沟通与验收约定、[issue #95](https://github.com/peach-mitao/peach/issues/95)、[PR #96](https://github.com/peach-mitao/peach/pull/96)、[项目看板状态判据](../../../scripts/project_board.py)。
+最后复核:2026-10-28
+证据来源:用户确认的维护者 PR 流程、issue 沟通与验收约定、[issue #95](https://github.com/peach-mitao/peach/issues/95)、[PR #96](https://github.com/peach-mitao/peach/pull/96)、[项目看板状态判据](../../../scripts/project_board.py)。
+
+## Issue 与 PR 范围
+
+- 维护者自己的代码与社区贡献都经 PR;小修、文档和测试可直接提 PR。复杂缺陷、新功能、默认行为或架构变化先有 issue,复用已有问题记录,不重复建单。已在对话确认的方向沿用,将目标和取舍留在 issue,不重复审批。
+- PR 围绕一个明确目标,相关修复可分提交;无关目标分别评审。交付批次可包含多个 PR,共享组合验证,不把一个批次限制成一个任务或一个 PR。
+- 提交保持 `type(scope): 描述`,实现与测试原子提交。PR 记录目标、实际改动、影响面、验证及适用的升级生效方式,具体格式见 [贡献约定](../../../CONTRIBUTING.md)。
+- 在主线合入前完成 PR 审阅与必要验证;本地组合树可用于统一验收。平台不可写时保存分支、PR 说明和验证回执,明确远端 PR 未完成,不以事后补单替代合入前审阅。
## 沟通与标记
@@ -15,7 +22,7 @@ description: 处理 Peach 的 GitHub issue、关联修复 PR、合并交付或
## 合并责任
-- 自己维护的项目可以用 PR 保留审阅和 CI 记录,PR 不是必须由用户手动完成的步骤。
+- 在已授权的开发与仓库操作范围内完成 PR 创建、验证及获准的合并;PR 不是必须由用户手动完成的步骤。
- 用户授权合并后,由你完成必要检查、合并和结果核验;不要把已授权且可执行的合并交回用户。工作树与本地集成按 [peach-worktree](../peach-worktree/SKILL.md) 执行。
## 验证与关闭
diff --git a/AGENTS.md b/AGENTS.md
index 3d262a3d5..64f09e9bc 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -10,6 +10,7 @@
- ledger 的 `asset.path` 保持 Windows 形态,由 `src/peach/platform.py` 读取转换;不得改写成 POSIX 路径或从 macOS 写 `asset.path`。
- 代码判据确定、能按来源整批撤回的断言按 ADR-0052 落库;LLM 输出、打分、冲突与多候选只产生候选,不得自行标为 `approved`。真实写入执行 `peach-ledger-write`。
- 编辑前核对 `git status`。代码任务使用 `scripts/agent_worktree.py create` 的隔离工作树,主检出负责集成;先读 `peach-worktree`。
+- 代码改动经 PR 交付,维护者自身也适用;issue 范围与交付流程见 `peach-issue-delivery`。
- 服务、端口或重启操作先核对监听与进程归属。已提交且测试通过的适用代码用 `restart_windows_tray.py` 重启并核验;手动或 CLI 发起的主任务仍在跑时先问,其余任务均能续跑时直接重启。
- `agent_worktree.py prune --apply` 可回收入口判定安全的工作树;只按 PID 清理本任务创建的进程,保护活动工作树、忽略文件与其他任务。
@@ -29,7 +30,7 @@
| 触发条件 | 技能 |
| --- | --- |
| 代码任务、创建或交付工作树、暂存、提交、集成、回收、顶层归置 | `.claude/skills/peach-worktree/SKILL.md` |
-| issue、PR 交付与关闭 | `.claude/skills/peach-issue-delivery/SKILL.md` |
+| 代码交付、issue、PR 与关闭 | `.claude/skills/peach-issue-delivery/SKILL.md` |
| 迁移、实体合并、真相字段、真实 ledger 写入与删除 | `.claude/skills/peach-ledger-write/SKILL.md` |
| 界面、API、数据层、契约或用户可见文案的影响面验收 | `.claude/skills/peach-surfaces/SKILL.md` |
| 长跑批处理、刮削、磁盘、流量、限流与续跑 | `.claude/skills/peach-batch-jobs/SKILL.md` |
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 0be2c2b11..c097cc0ab 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -1,11 +1,11 @@
# 参与 Peach
-Issues and pull requests are welcome. Small fixes (bugs, copy, documentation, tests) can go straight to a PR; large changes — new pages, new connectors, contract or data-layer changes, anything an ADR covers — should be discussed in an issue first. Read [`AGENTS.md`](AGENTS.md) before opening a PR: it is the single entry point for development rules, and reviews follow it. Each platform has exactly one test entry point: `& .\scripts\test.ps1` on Windows and `./scripts/test.sh` on macOS/Linux. By submitting a contribution you agree to license it under AGPL-3.0-or-later. The rest of this document is in Chinese.
+Issues and pull requests are welcome. Maintainer-authored changes follow the same PR workflow. Small fixes (bugs, copy, documentation, tests) can go straight to a PR; complex bugs and large changes — new features, default behavior, connectors, contract or data-layer changes, anything an ADR covers — should have an issue first. Read [`AGENTS.md`](AGENTS.md) before opening a PR: it is the single entry point for development rules, and reviews follow it. Each platform has exactly one test entry point: `& .\scripts\test.ps1` on Windows and `./scripts/test.sh` on macOS/Linux. By submitting a contribution you agree to license it under AGPL-3.0-or-later. The rest of this document is in Chinese.
-Peach 是单人自托管应用,由一个人维护。欢迎提 Issue 和 PR。
+Peach 是单人自托管应用,由一个人维护。欢迎提 Issue 和 PR。维护者自己的改动也遵循同一套流程,通过 PR 保留审阅与验证记录。
- 小修(修缺陷、改文案、补文档、补测试)可以直接提 PR。
-- 大改动(新页面、新连接器、改接口约定或数据层、涉及 ADR 的方向)请先开 issue 讨论,免得做完才发现和既定设计冲突。
+- 复杂缺陷和大改动(新功能、新页面、新连接器、默认行为、接口约定或数据层、涉及 ADR 的方向)先有 issue,复用已有问题记录。
提交贡献即表示同意以 AGPL-3.0-or-later 授权。