@oevery/rsp 3.2.0 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/README.md +25 -17
  2. package/README.zh-CN.md +25 -17
  3. package/dist/chunk-HFSTLCCK.mjs +3968 -0
  4. package/dist/cli.mjs +3510 -2446
  5. package/dist/entry-RIJQ2X46.mjs +1932 -0
  6. package/package.json +32 -19
  7. package/skills/rsp/SKILL.md +42 -68
  8. package/skills/rsp/references/closeout.md +38 -0
  9. package/skills/rsp/references/context-migration.md +22 -0
  10. package/skills/rsp/references/control-outcome.md +5 -0
  11. package/skills/rsp/references/coordination-recovery.md +25 -0
  12. package/skills/rsp/references/coordination-review.md +15 -0
  13. package/skills/rsp/references/coordination.md +59 -0
  14. package/skills/rsp/references/durable-review.md +74 -9
  15. package/skills/rsp/references/focus-continuation.md +13 -0
  16. package/skills/rsp/references/groups-dependencies.md +6 -4
  17. package/skills/rsp/references/response-language.md +13 -0
  18. package/skills/rsp/references/setup-repair.md +37 -7
  19. package/skills/rsp/references/work-model.md +27 -0
  20. package/skills/rsp-commit/SKILL.md +82 -22
  21. package/skills/rsp-commit/references/message.md +34 -0
  22. package/skills/rsp-doc/SKILL.md +65 -0
  23. package/skills/rsp-doc/agents/openai.yaml +3 -0
  24. package/skills/rsp-doc/references/artifact-lenses.md +43 -0
  25. package/skills/rsp-doc/references/release-communication.md +39 -0
  26. package/skills/rsp-doc/references/skill-authoring.md +36 -0
  27. package/skills/rsp-implement/SKILL.md +62 -21
  28. package/skills/rsp-implement/references/diagnosis.md +10 -0
  29. package/skills/rsp-implement/references/finding-resolution.md +21 -0
  30. package/skills/rsp-implement/references/test-first.md +7 -0
  31. package/skills/rsp-review/SKILL.md +44 -46
  32. package/skills/rsp-review/references/code-review.md +23 -7
  33. package/skills/rsp-review/references/document-review.md +25 -8
  34. package/skills/rsp-review/references/release-communication.md +21 -0
  35. package/skills/{rsp-structural-audit/references/structural-lenses.md → rsp-review/references/structural-review.md} +5 -5
  36. package/skills/rsp-shape/SKILL.md +24 -45
  37. package/skills/rsp-shape/references/complex-shaping.md +3 -1
  38. package/skills/rsp-shape/references/deep-clarification.md +4 -4
  39. package/skills/rsp-shape/references/domain-modeling.md +13 -0
  40. package/skills/rsp-shape/references/module-seams.md +13 -0
  41. package/skills/rsp-shape/references/planning.md +42 -0
  42. package/skills/{rsp-design → rsp-shape}/references/reversible-exploration.md +2 -2
  43. package/skills/rsp-verify/SKILL.md +72 -0
  44. package/dist/chunk-JOMFFQRG.mjs +0 -99
  45. package/dist/chunk-JYDEJEM4.mjs +0 -358
  46. package/dist/chunk-SEGJLWRE.mjs +0 -1158
  47. package/dist/chunk-ZORUJTVS.mjs +0 -1967
  48. package/dist/entry-I22OUIW5.mjs +0 -888
  49. package/dist/entry-RG6HREUN.mjs +0 -174
  50. package/rules/rsp-rules.md +0 -47
  51. package/skills/rsp/references/managed-routing.md +0 -44
  52. package/skills/rsp/references/release-operations.md +0 -9
  53. package/skills/rsp-design/SKILL.md +0 -53
  54. package/skills/rsp-design/references/domain-modeling.md +0 -11
  55. package/skills/rsp-design/references/module-seams.md +0 -11
  56. package/skills/rsp-diagnose/SKILL.md +0 -46
  57. package/skills/rsp-manage/SKILL.md +0 -96
  58. package/skills/rsp-manage/references/closeout.md +0 -11
  59. package/skills/rsp-manage/references/interruption-recovery.md +0 -7
  60. package/skills/rsp-manage/references/review-convergence.md +0 -7
  61. package/skills/rsp-release-docs/SKILL.md +0 -77
  62. package/skills/rsp-release-docs/references/convention-discovery.md +0 -65
  63. package/skills/rsp-release-docs/references/evidence-and-surfaces.md +0 -21
  64. package/skills/rsp-release-docs/references/output-contracts.md +0 -97
  65. package/skills/rsp-release-docs/references/publication-lifecycle.md +0 -24
  66. package/skills/rsp-resolve-findings/SKILL.md +0 -61
  67. package/skills/rsp-structural-audit/SKILL.md +0 -71
  68. package/skills/rsp-tdd/SKILL.md +0 -48
package/README.md CHANGED
@@ -4,30 +4,30 @@ English | [简体中文](./README.zh-CN.md)
4
4
 
5
5
  **A repository-native engineering workflow for humans and AI agents.**
6
6
 
7
- RSP turns unclear intent into shaped, implemented, reviewed, and verified software changes while keeping project knowledge durable and work recoverable. It uses ordinary repository files—Rules, Specs, and Plans—rather than hidden workflow state.
7
+ RSP turns unclear intent into shaped, implemented, reviewed, and verified software changes while keeping project knowledge durable and work recoverable. It uses ordinary repository files—Skills, Specs, and Plans—rather than hidden workflow state.
8
8
 
9
9
  ## What RSP helps you do
10
10
 
11
11
  - Shape ambiguous work into an executable Change.
12
12
  - Resolve design questions from repository evidence before implementation.
13
- - Route diagnosis, implementation, TDD, review, and release work to explicit capabilities.
13
+ - Route diagnosis, implementation, risk-selected test-first work, review, and release work to explicit capabilities.
14
14
  - Preserve current facts, lasting rationale, scoped instructions, and completed history in the right owners.
15
15
  - Keep authority visible: RSP never infers permission to commit, publish, deploy, or approve work.
16
16
 
17
- ```text
18
- intent → shape → design when needed → diagnose | TDD | implement
19
- → review → durable review → archive
20
- ```
17
+ RSP selects the next responsibility from the task and evidence, not a fixed stage pipeline. A settled authorized task can proceed directly to implementation and its own checks; design, review, coordination and lifecycle closeout apply only when needed and permitted.
21
18
 
22
19
  ## Five-minute start
23
20
 
24
- RSP 3.1 requires Node.js 22 or later. Use the current stable release:
21
+ RSP requires Node.js 22 (`>=22`). Run setup from the target project root. For a new project, resolve a stable version once and keep that exact selection. Existing projects use the version in `.rsp/version` and the generated AGENTS entry, not a fresh `latest` resolution. Later `rsp` examples denote that exact invocation or a verified matching executable:
25
22
 
26
23
  ```bash
27
- npx -y @oevery/rsp@latest init --with-project-setup
24
+ npm view @oevery/rsp dist-tags.latest
25
+ # Replace <version> with the inspected exact version.
26
+ RSP_VERSION='<version>'
27
+ npx -y @oevery/rsp@"$RSP_VERSION" init --with-project-setup
28
28
  # fill .rsp/changes/project-setup.md
29
29
  # fill .rsp/specs/design.md
30
- npx -y @oevery/rsp@latest doctor
30
+ npx -y @oevery/rsp@"$RSP_VERSION" status
31
31
  ```
32
32
 
33
33
  Then create and focus one tracked change:
@@ -35,10 +35,12 @@ Then create and focus one tracked change:
35
35
  ```bash
36
36
  rsp create improve-login "Make login failures actionable"
37
37
  rsp focus improve-login
38
- rsp show --focused
38
+ rsp show improve-login
39
39
  ```
40
40
 
41
- Follow the nearest `AGENTS.md`, edit the focused Change as work progresses, run fresh project checks, make the durable-update decision, and archive only after acceptance is satisfied.
41
+ Focus is a set: the setup Change may still be focused alongside improve-login. Use the explicit name to inspect it; show --focused requires exactly one marker.
42
+
43
+ Confirm that `status` shows the expected work; use read-only `doctor` when diagnosing setup. These are deterministic observations, not semantic acceptance. Follow the nearest `AGENTS.md`, keep the selected Change current and establish applicable required verification, reusing traceable passing evidence when its tested boundary and relevant inputs still apply. Before authorized archive, decide necessary knowledge updates, converge the whole Change and check current readiness.
42
44
 
43
45
  [Read the full getting-started guide](./docs/site/en/getting-started.md).
44
46
 
@@ -46,10 +48,10 @@ Follow the nearest `AGENTS.md`, edit the focused Change as work progresses, run
46
48
 
47
49
  ```text
48
50
  .rsp/
49
- ├── rsp-rules.md # minimal fallback protocol
50
- ├── specs/ # durable current facts
51
+ ├── version # exact CLI package selection
52
+ ├── specs/ # current contracts, boundaries, and constraints
51
53
  ├── changes/ # open work
52
- ├── focus.d/ # empty markers selecting current work
54
+ ├── focus.d/ # markers selecting work; optional short recovery capsules
53
55
  └── archives/ # completed history
54
56
  ```
55
57
 
@@ -64,8 +66,12 @@ A Change is one Markdown file with canonical Proposal, Spec, Design, Tasks, Veri
64
66
  - [Configuration reference](./docs/site/en/reference/configuration.md)
65
67
  - [CLI reference](./docs/site/en/reference/cli.md)
66
68
  - [3.0 migration guide](./docs/migrations/3.0.md) and [3.1 migration guide](./docs/migrations/3.1.md)
67
- - [Release notes](./docs/releases/3.2.0.md)
68
- - [Design philosophy](./docs/maintainers/design-philosophy.md) and [maintainer upstream research](./docs/maintainers/upstreams.md)
69
+ - [4.0 migration guide](./docs/migrations/pinned-skills.md)
70
+ - [Changelog](./CHANGELOG.md)
71
+ - [Maintainer tests and Skill validation](./tests/README.md)
72
+ - [Maintainer workflows, publication and documentation recovery](./docs/site/en/contributing.md)
73
+ - [Repository context and contract navigation](./CONTEXT.md)
74
+ - [Authoritative architecture and Specs](./.rsp/specs/design.md) and [maintainer research](./research/README.md)
69
75
 
70
76
  Run the documentation locally:
71
77
 
@@ -79,6 +85,8 @@ The site is only a presentation layer over the Markdown in this repository. It a
79
85
 
80
86
  ## Platform support
81
87
 
82
- RSP is a tool-agnostic file convention and works with any assistant or editor that can read project files. Humans start here; agents follow the nearest `AGENTS.md`, load `skills/rsp/SKILL.md` when available, and use `.rsp/rsp-rules.md` only when the Skill is unavailable.
88
+ RSP is a tool-agnostic file convention and works with any assistant or editor that can read project files. Humans start here; agents follow the nearest `AGENTS.md`, load the required project Core through host Skill discovery or `.agents/skills/rsp/SKILL.md`. Missing required Skills stop dependent work; there is no Rules fallback. Root `skills/` contains authored sources in the RSP repository, not the consumer installation entry.
89
+
90
+ RSP 4.0 uses `init` for a complete setup and the selected target CLI's `update` for the complete environment. It pins exact versions and retires Rules and separate Skill installation; existing projects must follow the [4.0 migration guide](docs/migrations/pinned-skills.md). The seven core Skills remain independently invocable; see [Skill ownership](docs/site/en/guides/skills.md).
83
91
 
84
92
  RSP is licensed under the [MIT License](./LICENSE).
package/README.zh-CN.md CHANGED
@@ -4,30 +4,30 @@
4
4
 
5
5
  **面向人类与 AI 智能体的仓库原生工程工作流。**
6
6
 
7
- RSP 把模糊意图转化为经过塑造、实现、审查和验证的软件变更,同时让项目知识可持久化、工作可恢复。它使用普通仓库文件——规则、规格和计划——而不是隐藏的工作流状态。
7
+ RSP 把模糊意图转化为经过塑造、实现、审查和验证的软件变更,同时让项目知识可持久化、工作可恢复。它使用普通仓库文件——Skills、规格和计划——而不是隐藏的工作流状态。
8
8
 
9
9
  ## RSP 帮助你完成什么
10
10
 
11
11
  - 把模糊工作塑造成一个可执行 Change。
12
12
  - 在实现前根据仓库证据解决设计问题。
13
- - 把诊断、实现、TDD、审查和发布工作路由给明确的能力。
13
+ - 把诊断、实现、按风险选择的测试先行、审查和发布工作路由给明确的能力。
14
14
  - 把当前事实、长期理由、作用域指令和完成历史保存在正确的归属位置。
15
15
  - 保持权限可见:RSP 不会推断提交、发布、部署或批准权限。
16
16
 
17
- ```text
18
- 意图 → 塑造 → 必要时设计 → 诊断 | TDD | 实现
19
- → 审查 → 持久化审查 → 归档
20
- ```
17
+ RSP 根据任务与证据选择下一项职责,不采用固定阶段流水线。已经明确且获授权的任务可以直接实现并完成自身检查;设计、审查、协调和生命周期收尾仅在需要且权限允许时执行。
21
18
 
22
19
  ## 五分钟入门
23
20
 
24
- RSP 3.1 需要 Node.js 22 或更高版本。使用当前稳定版本:
21
+ RSP 需要 Node.js 22(`>=22`),从目标项目根目录执行初始化。新项目只解析一次稳定版本,后续始终使用同一精确版本;已有项目使用 `.rsp/version` 和 AGENTS 中记录的版本,不重新解析 `latest`。后续 `rsp` 表示该精确调用或已核验版本一致的可执行文件:
25
22
 
26
23
  ```bash
27
- npx -y @oevery/rsp@latest init --with-project-setup
24
+ npm view @oevery/rsp dist-tags.latest
25
+ # 把 <version> 替换为已检查的精确版本。
26
+ RSP_VERSION='<version>'
27
+ npx -y @oevery/rsp@"$RSP_VERSION" init --with-project-setup
28
28
  # 填写 .rsp/changes/project-setup.md
29
29
  # 填写 .rsp/specs/design.md
30
- npx -y @oevery/rsp@latest doctor
30
+ npx -y @oevery/rsp@"$RSP_VERSION" status
31
31
  ```
32
32
 
33
33
  然后创建并聚焦一个受跟踪变更:
@@ -35,10 +35,12 @@ npx -y @oevery/rsp@latest doctor
35
35
  ```bash
36
36
  rsp create improve-login "让登录失败信息可供用户采取行动"
37
37
  rsp focus improve-login
38
- rsp show --focused
38
+ rsp show improve-login
39
39
  ```
40
40
 
41
- 遵循最近的 `AGENTS.md`,在工作推进时同步当前聚焦的 Change,运行最新的项目检查,判断是否需要持久化更新,并仅在满足验收条件后归档。
41
+ Focus 是一个集合:project-setup 和 improve-login 可以同时聚焦。使用明确名称查看目标;show --focused 要求恰好一个标记。
42
+
43
+ 确认 `doctor` 显示预期的项目设置,`status` 显示预期工作;这些是确定性观察,不是语义验收。遵循最近的 `AGENTS.md`,保持选中的 Change 与实际结果同步,并建立适用的必需验证:被测边界和相关输入仍然适用时,复用可追溯的通过证据。授权归档前,判断必要的知识更新,收敛整个 Change,再检查当前就绪状态。
42
44
 
43
45
  [阅读完整入门指南](./docs/site/zh-CN/getting-started.md)。
44
46
 
@@ -46,10 +48,10 @@ rsp show --focused
46
48
 
47
49
  ```text
48
50
  .rsp/
49
- ├── rsp-rules.md # 最小后备协议
50
- ├── specs/ # 持久化的当前事实
51
+ ├── version # 精确的 CLI 软件包版本
52
+ ├── specs/ # 当前契约、边界与必要约束
51
53
  ├── changes/ # 未完成工作
52
- ├── focus.d/ # 选择当前工作的空标记文件
54
+ ├── focus.d/ # 工作选择标记;可附短恢复胶囊
53
55
  └── archives/ # 已完成历史
54
56
  ```
55
57
 
@@ -64,8 +66,12 @@ rsp show --focused
64
66
  - [配置参考](./docs/site/zh-CN/reference/configuration.md)
65
67
  - [CLI 参考](./docs/site/zh-CN/reference/cli.md)
66
68
  - [3.0 迁移指南](./docs/migrations/3.0.md)与 [3.1 迁移指南](./docs/migrations/3.1.md)
67
- - [发布说明](./docs/releases/3.2.0.md)
68
- - [设计哲学](./docs/maintainers/design-philosophy.md)与[维护者上游研究](./docs/maintainers/upstreams.md)
69
+ - [4.0 迁移指南](./docs/migrations/pinned-skills.md)
70
+ - [变更日志](./CHANGELOG.md)
71
+ - [维护者测试与 Skill 验证](./tests/README.md)
72
+ - [维护工作流、发布与文档恢复](./docs/site/zh-CN/contributing.md)
73
+ - [仓库上下文与契约导航](./CONTEXT.md)
74
+ - [权威架构与 Specs](./.rsp/specs/design.md)及[维护者研究](./research/README.md)
69
75
 
70
76
  在本地运行文档:
71
77
 
@@ -79,6 +85,8 @@ pnpm docs:build
79
85
 
80
86
  ## 平台支持
81
87
 
82
- RSP 是与工具无关的文件约定,适用于任何能读取项目文件的助手或编辑器。人类从这里开始;AI 智能体遵循最近的 `AGENTS.md`,优先加载 `skills/rsp/SKILL.md`,仅在 Skill 不可用时使用 `.rsp/rsp-rules.md` 后备协议。
88
+ RSP 是与工具无关的文件约定,适用于任何能读取项目文件的助手或编辑器。人类从这里开始;AI 智能体遵循最近的 `AGENTS.md`,通过宿主 Skill discovery 或 `.agents/skills/rsp/SKILL.md` 加载必需的项目 Core。缺少必需 Skill 时停止依赖工作,不再使用 Rules 后备协议。根目录 `skills/` 是 RSP 仓库中的分发源码,不是消费者的安装入口。
89
+
90
+ RSP 4.0 用 `init` 完成接入,用选定目标 CLI 的 `update` 一次更新完整环境;固定精确版本,退役 Rules 与独立 Skill 安装流程。已有项目须先阅读 [4.0 迁移指南](docs/migrations/pinned-skills.md)。七个核心 Skills 仍可独立调用,职责见 [Skills 指南](docs/site/zh-CN/guides/skills.md)。
83
91
 
84
92
  RSP 使用 [MIT 许可证](./LICENSE)。