Skip to content

Commit ea268d4

Browse files
authored
Merge pull request #1 from arch-team/feature/v1.5.0-external-sync
feat: v1.5.0 外部同步 + pace-init 架构优化
2 parents 8d17df3 + a5f1d45 commit ea268d4

51 files changed

Lines changed: 4003 additions & 438 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.claude-plugin/marketplace.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
{
99
"name": "devpace",
1010
"description": "Development pace manager — value-driven iterative workflow connecting business goals to code changes",
11-
"version": "1.4.1",
11+
"version": "1.5.0",
1212
"source": {
1313
"source": "github",
1414
"repo": "arch-team/devpace",
15-
"ref": "v1.4.1"
15+
"ref": "v1.5.0"
1616
},
1717
"author": {
1818
"name": "paceforge"

.claude-plugin/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "devpace",
3-
"version": "1.4.1",
3+
"version": "1.5.0",
44
"description": "AI-native development pace manager for Claude Code — change impact analysis, quality gates, goal-to-code traceability, and cross-session continuity",
55
"author": {
66
"name": "paceforge"

.claude/CLAUDE.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ devpace 分为两个独立层次,**产品层不得依赖开发层**:
2929
2. **禁止产品→开发引用**:产品层文件(rules/、skills/、knowledge/)中不得出现指向 `docs/``.claude/` 的路径引用
3030
3. **开发→产品引用允许**:开发层文件(.claude/CLAUDE.md、docs/design.md 等)可以引用产品层文件
3131
4. **共享知识归产品层**:如果一份内容同时被开发和产品使用(如 theory.md),它必须放在产品层(knowledge/),开发层引用它
32+
5. **编辑范围严格分层**:修改产品层文件(`rules/``skills/``knowledge/`)时,不得将开发层文件(`docs/``.claude/`)纳入同一批次的编辑范围;反之亦然。跨层引用(如 `docs/features/` 引用 `skills/` 中的章节编号)在产品层变更后可能过时,但应在独立的开发层维护任务中处理,不可混入产品层变更
3233

3334
**检查方法**`grep -r "docs/\|\.claude/" rules/ skills/ knowledge/` 应返回空结果。
3435

@@ -87,3 +88,4 @@ devpace 分为两个独立层次,**产品层不得依赖开发层**:
8788
- accept 能力描述:`skills/pace-test/SKILL.md`(权威)→ `rules/devpace-rules.md §15`(教学派生)→ `docs/user-guide.md`(文档派生)
8889
- 子命令列表:各 `SKILL.md`(权威)→ `devpace-rules.md §0`(目录索引)→ `user-guide.md`(文档派生)→ `test-procedures.md 职责行`(测试派生)
8990
- 推荐使用流程:`SKILL.md`(权威)→ `user-guide.md`(文档派生)
91+
- 特性文档同步:各 `SKILL.md`(权威)→ `docs/features/<skill-name>.md`(文档派生)→ `docs/features/<skill-name>_zh.md`(翻译派生)

.claude/rules/dev-workflow.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ graph LR
126126
- Schema 修改:现有模板文件仍符合修改后的 Schema
127127
- 模板更新:用 Schema 字段逐一对照模板占位符完整性
128128
- 通用:对照 requirements.md 相关 S/F 条目的验收标准逐条检查
129+
- [ ] 特性文档同步:修改 Skill 子命令/行为时,检查 `docs/features/` 对应文档是否需要更新
129130

130131
### Skill 内容质量验证方法(推荐)
131132

CHANGELOG.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ All notable changes to devpace are documented here. For English release summarie
88

99
| Version | Date | Highlights |
1010
|---------|------|-----------|
11+
| [1.5.0](#150---2026-02-25) | 2026-02-25 | External Tool Sync — semantic bridge to GitHub Issues (push-only MVP) |
1112
| [1.4.0](#140---2026-02-25) | 2026-02-25 | Risk Fabric — pre-flight risk scan + runtime monitoring + graduated response |
1213
| [1.3.0](#130---2026-02-24) | 2026-02-24 | DORA proxy metrics + cross-project insights + CI/CD auto-detection |
1314
| [1.2.0](#120---2026-02-24) | 2026-02-24 | Test management (/pace-test) + global navigation (/pace-next) |
@@ -25,6 +26,36 @@ All notable changes to devpace are documented here. For English release summarie
2526

2627
## [Unreleased]
2728

29+
## [1.5.0] - 2026-02-25
30+
31+
外部工具语义桥接——将 devpace 研发状态与 GitHub Issues 形成语义级同步,Claude 理解变更意图后生成对应外部操作,而非机械的字段映射。v1.5.0 为 push-only MVP。
32+
33+
### Added
34+
35+
**外部工具同步(/pace-sync)**
36+
37+
- **4 子命令 MVP 同步体系**`setup`(引导式配置:检测 git remote → 生成 sync-mapping.md)、`link`(关联 CR ↔ GitHub Issue)、`push`(推送状态:标签更新 + 评论记录)、`status`(同步状态和一致性检查)
38+
- **sync-mapping-format.md Schema**:同步配置格式契约(平台配置 + CR 状态映射 + 实体映射 + Gate 结果同步 + 关联记录)
39+
- **sync-push.mjs advisory hook**:PostToolUse hook,CR 状态变更后非阻断提醒推送(始终 exit 0)
40+
- **devpace-rules.md §16 同步管理**:条件生效规则——sync-mapping.md 存在时激活,定义同步行为和教学提示
41+
- **适配器工具路由表**:GitHub(gh CLI)为 MVP 默认,Linear(MCP)和 Jira 预留 Phase 19+
42+
43+
### Changed
44+
45+
- **conftest.py**:SKILL_NAMES 列表新增 `pace-sync`,SCHEMA_FILES 新增 `sync-mapping-format.md`
46+
- **plugin.json**:新增 pace-sync Skill 声明和 sync-push hook 配置
47+
- **devpace-rules.md §0**:速查卡片追加同步相关内容 + 命令分层进阶行追加 /pace-sync
48+
- **cr-format.md**:新增"外部关联"可选字段
49+
- **version bump**:conftest.py 版本号 → 1.5.0
50+
51+
### Backward Compatible
52+
53+
- /pace-sync 为全新 Skill,不影响已有命令和工作流
54+
- sync-mapping.md 为可选配置——不存在时核心流程完全不受影响
55+
- sync-push hook 为 advisory(仅提醒,不阻断),不改变现有 hook 行为
56+
- CR Schema 的"外部关联"字段为可选——已有 CR 不受影响
57+
- 所有降级行为静默处理,不中断用户工作流
58+
2859
## [1.4.0] - 2026-02-25
2960

3061
Risk Fabric 风险织网——Pre-flight 风险扫描 + Runtime 风险监控 + 趋势分析 + 分级自主响应,将风险管理编织进开发全流程。

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ graph TB
104104
Hooks["hooks/ (lifecycle interceptors)"]
105105
end
106106
subgraph "On-demand layer"
107-
Skills["skills/ (14 user commands + 2 system Skills)"]
107+
Skills["skills/ (16 user commands + 2 system Skills)"]
108108
Agents["agents/ (sub-task executors)"]
109109
end
110110
subgraph "Knowledge layer"

CONTRIBUTING_zh.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ graph TB
104104
Hooks["hooks/ (生命周期拦截)"]
105105
end
106106
subgraph "按需触发层"
107-
Skills["skills/ (14 个用户命令 + 2 个系统 Skill)"]
107+
Skills["skills/ (16 个用户命令 + 2 个系统 Skill)"]
108108
Agents["agents/ (子任务执行者)"]
109109
end
110110
subgraph "知识层"

README.md

Lines changed: 40 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,30 @@ When using Claude Code for product development:
3131

3232
Next session, Claude reports: "Last time we stopped at auth module, continue?" — zero manual re-explanation.
3333

34+
## Full Development Lifecycle
35+
36+
```
37+
Goal Features Code Changes Quality Ship
38+
You define ──→ Plan together ──→ Claude codes ──→ Auto + You ──→ Optional auto
39+
│ │ │ │
40+
pace-plan pace-dev pace-review pace-release
41+
pace-change pace-feedback
42+
```
43+
44+
Requirements can change anytime — `/pace-change` auto-analyzes impact, adjusts the plan, and waits for your confirmation.
45+
46+
After each cycle, `/pace-retro` shows quality metrics and improvement trends.
47+
3448
## How It Works
3549

36-
devpace is a Claude Code Plugin that extends Claude's capabilities through three mechanisms:
50+
devpace builds a **goal-to-code traceability chain** in your project:
3751

38-
- **Rules**: Define Claude's behavioral guidelines — when to auto-check quality, how to trace goals
39-
- **Skills**: `/pace-*` command series, triggering specific workflows
40-
- **Hooks**: Auto-trigger at critical moments — check quality before writing code, restore context on session start
52+
1. **Goal alignment** — Every code change links back to a business goal. No work without purpose.
53+
2. **Auto quality gates** — Claude auto-checks code quality and requirement consistency, self-repairs on failure. Human approval cannot be skipped.
54+
3. **Change is normal** — Requirements changed? Auto impact analysis, orderly adjustment, existing work preserved.
55+
4. **Interrupt-proof** — Session broke? Auto-resume next time. All state in `.devpace/` as plain Markdown.
4156

42-
All state is stored in `.devpace/` folder at project root, pure Markdown, human-readable.
57+
Under the hood: a Claude Code Plugin using Rules (behavioral guidelines) + Skills (`/pace-*` commands) + Hooks (auto-triggers at critical moments).
4358

4459
## Installation
4560

@@ -93,6 +108,7 @@ After installing, type `/pace-` in Claude Code. If devpace is loaded, you'll see
93108
| `/pace-test` | Requirements-traceable test management |
94109
| `/pace-guard` | Risk fabric: Pre-flight scan + Runtime monitoring + Trend analysis + Graduated response |
95110
| `/pace-release` | Release orchestration: Changelog + Version bump + Git Tag + GitHub Release |
111+
| `/pace-sync` | External tool bridge: sync task state ↔ GitHub Issues (labels + comments) |
96112
| `/pace-role` | Switch perspective (PM / Tester / Ops / etc.) |
97113
| `/pace-theory` | Learn the methodology behind devpace |
98114
| `/pace-feedback` | Collect post-launch feedback |
@@ -141,12 +157,18 @@ When unsure, Claude asks: "Ready to start coding, or just exploring?"
141157
### Workflow
142158

143159
```
160+
Normal flow:
144161
Start ──→ In Progress ──→ Pending Review ──→ Done
145162
│ │
146-
Auto quality check You approve Auto merge
147-
(Claude handles) (you decide) + status update
163+
Auto quality check You approve Auto merge + status update
164+
(Claude handles) (you decide)
165+
166+
Anytime:
167+
Requirements changed ──→ Impact analysis ──→ Adjust plan ──→ Continue
168+
Session interrupted ──→ Next session auto-resumes from where you left off
148169
149-
Pause anytime, resume from where you left off
170+
Full cycle (optional):
171+
Plan (pace-plan) → Build (pace-dev) → Review (pace-retro) → Next cycle
150172
```
151173

152174
## Design Principles
@@ -158,6 +180,16 @@ Pause anytime, resume from where you left off
158180
| Byproducts not prerequisites | Structured data is auto-produced from work, not a required input |
159181
| Interruption tolerance | Interrupt at any point, seamless resume next time |
160182

183+
## vs Alternatives
184+
185+
| Dimension | GitHub Issues / Manual | devpace |
186+
|-----------|----------------------|---------|
187+
| Core model | Task list | Goal → Feature → Code Change traceability |
188+
| Requirement changes | Manual impact assessment | Auto impact analysis + orderly adjustment |
189+
| Claude's role | Executor (you direct each step) | Autonomous collaborator (auto-advances, self-checks, waits for your decisions) |
190+
| Traceability | Task → Code | Business Goal → Feature → Change → Code |
191+
| Metrics | Completion count | Quality pass rate + value alignment + DORA proxies |
192+
161193
## What devpace is NOT
162194

163195
- **Not a CI/CD pipeline** — it works alongside your existing tools (GitHub Actions, Jenkins, etc.)

README_zh.md

Lines changed: 40 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,30 @@
3131

3232
下次开会话,Claude 自动报告:"上次停在认证模块,继续?"——零手动解释。
3333

34+
## 覆盖完整研发生命周期
35+
36+
```
37+
目标 功能 代码变更 质量 发布
38+
你来定义 ──→ 一起规划 ──→ Claude 写代码 ──→ 自动+你审批 ──→ 可选自动
39+
│ │ │ │
40+
pace-plan pace-dev pace-review pace-release
41+
pace-change pace-feedback
42+
```
43+
44+
需求随时可变——`/pace-change` 自动分析影响、调整计划、等你确认。
45+
46+
每轮结束后,`/pace-retro` 展示质量指标和改进趋势。
47+
3448
## 工作原理
3549

36-
devpace 是一个 Claude Code Plugin,通过三种机制扩展 Claude 的能力
50+
devpace 在你的项目中构建一条**从目标到代码的追溯链**
3751

38-
- **Rules**(规则):定义 Claude 的行为准则——何时自动检查质量、如何追溯目标
39-
- **Skills**(命令):`/pace-*` 系列命令,触发特定工作流
40-
- **Hooks**(自动触发):在关键时刻自动执行——如写代码前检查质量、会话开始时恢复上下文
52+
1. **目标对齐** —— 每个代码变更都关联到业务目标。没有目的的工作不会发生。
53+
2. **自动质量门禁** —— Claude 自动检查代码质量和需求一致性,失败自动修复。人类审批不可跳过。
54+
3. **变更是常态** —— 需求变了?自动影响分析,有序调整,已有工作保留。
55+
4. **中断无忧** —— 会话断了?下次自动恢复。所有状态在 `.devpace/` 中,纯 Markdown。
4156

42-
所有状态存储在项目根目录的 `.devpace/` 文件夹中,纯 Markdown 格式,人类可读
57+
底层机制:一个 Claude Code Plugin,通过 Rules(行为准则)+ Skills(`/pace-*` 命令)+ Hooks(关键时刻自动触发)实现
4358

4459
## 安装
4560

@@ -93,6 +108,7 @@ claude --plugin-dir /path/to/devpace
93108
| <nobr>`/pace-test`</nobr> | 需求追溯驱动的测试管理 |
94109
| <nobr>`/pace-guard`</nobr> | 风险织网:Pre-flight 扫描 + Runtime 监控 + 趋势分析 + 分级响应 |
95110
| <nobr>`/pace-release`</nobr> | 发布编排:Changelog + 版本 bump + Git Tag + GitHub Release |
111+
| <nobr>`/pace-sync`</nobr> | 外部工具桥接:任务状态 ↔ GitHub Issues 同步(标签 + 评论) |
96112
| <nobr>`/pace-role`</nobr> | 切换视角(产品经理/测试/运维等) |
97113
| <nobr>`/pace-theory`</nobr> | 了解背后的方法论 |
98114
| <nobr>`/pace-feedback`</nobr> | 收集上线后反馈 |
@@ -141,12 +157,18 @@ claude --plugin-dir /path/to/devpace
141157
### 工作流程
142158

143159
```
160+
常规流程:
144161
开始做 ──→ 在做 ──→ 待审批 ──→ 完成
145162
│ │
146-
质量自动检查 你来审批 自动合并
147-
(Claude 处理)(你决定) + 状态更新
163+
质量自动检查 你来审批 自动合并 + 状态更新
164+
(Claude 处理)(你决定)
165+
166+
随时:
167+
需求变了 ──→ 影响分析 ──→ 调整计划 ──→ 继续
168+
会话中断 ──→ 下次自动从断点恢复
148169
149-
随时可暂停,恢复时从断点继续
170+
完整循环(可选):
171+
规划 (pace-plan) → 开发 (pace-dev) → 回顾 (pace-retro) → 下一轮
150172
```
151173

152174
## 设计原则
@@ -158,6 +180,16 @@ claude --plugin-dir /path/to/devpace
158180
| <nobr>副产物非前置</nobr> | 结构化数据是工作的自动产出,不是前置要求 |
159181
| <nobr>中断容错</nobr> | 任意时刻中断,下次无缝恢复 |
160182

183+
## 与替代方案的对比
184+
185+
| 维度 | GitHub Issues / 手动管理 | devpace |
186+
|------|------------------------|---------|
187+
| 核心模型 | 任务列表 | 目标 → 功能 → 代码变更追溯链 |
188+
| 需求变更 | 人工评估影响 | 自动影响分析 + 有序调整 |
189+
| Claude 的角色 | 执行者(你指挥每一步) | 自主协作者(自动推进、自检、等你决策) |
190+
| 追溯性 | 任务 → 代码 | 业务目标 → 功能 → 变更 → 代码 |
191+
| 度量 | 完成数量 | 质量通过率 + 价值对齐 + DORA 代理值 |
192+
161193
## devpace 不是什么
162194

163195
- **不是 CI/CD 流水线** —— 它与你现有的工具(GitHub Actions、Jenkins 等)并行工作

0 commit comments

Comments
 (0)