harnessed 1.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.
- package/LICENSE +201 -0
- package/NOTICE +20 -0
- package/README.md +178 -0
- package/config-templates/README.md +21 -0
- package/config-templates/hooks/.gitkeep +0 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.mjs +4653 -0
- package/dist/cli.mjs.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.mjs +10 -0
- package/dist/index.mjs.map +1 -0
- package/dist/schemas/index.d.ts +47 -0
- package/dist/schemas/index.mjs +384 -0
- package/dist/schemas/index.mjs.map +1 -0
- package/manifests/README.md +23 -0
- package/manifests/SCHEMA.md +180 -0
- package/manifests/aliases.yaml +14 -0
- package/manifests/cc-hooks/dashboard-autospawn.yaml +45 -0
- package/manifests/skill-packs/.gitkeep +0 -0
- package/manifests/skill-packs/anthropics-skills-pptx.yaml +46 -0
- package/manifests/skill-packs/anthropics-skills-slide-deck.yaml +46 -0
- package/manifests/skill-packs/frontend-design.yaml +63 -0
- package/manifests/skill-packs/gsd.yaml +43 -0
- package/manifests/skill-packs/gstack.yaml +40 -0
- package/manifests/skill-packs/karpathy-skills.yaml +64 -0
- package/manifests/skill-packs/mattpocock-skills.yaml +40 -0
- package/manifests/skill-packs/planning-with-files.yaml +45 -0
- package/manifests/skill-packs/ui-ux-pro-max.yaml +61 -0
- package/manifests/tools/.gitkeep +0 -0
- package/manifests/tools/chrome-devtools-mcp.yaml +44 -0
- package/manifests/tools/ctx7.yaml +39 -0
- package/manifests/tools/exa-mcp.yaml +39 -0
- package/manifests/tools/playwright-test.yaml +47 -0
- package/manifests/tools/ralph-loop.yaml +46 -0
- package/manifests/tools/superpowers.yaml +42 -0
- package/manifests/tools/tavily-mcp.yaml +39 -0
- package/package.json +96 -0
- package/routing/.gitkeep +0 -0
- package/routing/README.md +22 -0
- package/routing/SCHEMA.md +199 -0
- package/routing/decision_rules.yaml +387 -0
- package/routing/plan-review-schema.yaml +50 -0
- package/schemas/.gitkeep +0 -0
- package/schemas/README.md +33 -0
- package/schemas/manifest.v1.schema.json +1107 -0
- package/workflows/.gitkeep +0 -0
- package/workflows/README.md +23 -0
- package/workflows/SCHEMA.md +157 -0
- package/workflows/execute-task/SKILL.md +70 -0
- package/workflows/execute-task/phases.yaml +27 -0
- package/workflows/plan-feature/workflow.yaml +40 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for describing the origin of the Work and
|
|
141
|
+
reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Support. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or support.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2026 harnessed maintainers
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/NOTICE
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
harnessed
|
|
2
|
+
Copyright 2026 harnessed maintainers
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
you may not use this file except in compliance with the License.
|
|
6
|
+
You may obtain a copy of the License at
|
|
7
|
+
|
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
|
|
10
|
+
----
|
|
11
|
+
|
|
12
|
+
Not affiliated with, endorsed by, or sponsored by Harness Inc.
|
|
13
|
+
The "harnessed" name refers to the Anthropic Claude Code "harness" terminology
|
|
14
|
+
and reflects the project's role as a composition orchestrator over AI coding
|
|
15
|
+
harnesses.
|
|
16
|
+
|
|
17
|
+
----
|
|
18
|
+
|
|
19
|
+
Upstream attributions are tracked separately in NOTICES.md (auto-populated by
|
|
20
|
+
`harnessed install` from each manifest's `metadata.upstream.notice` field).
|
package/README.md
ADDED
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
# harnessed
|
|
2
|
+
|
|
3
|
+
> **完整三层栈方法论的可执行 engine** — 6+ 虚拟角色(gstack 决策层 + GSD 项目经理 + superpowers 资深工程师)/ 双职责治理 / 4 心法 always-on / 23 招式 phase 路由 / 6 skill category,把 CLAUDE.md 协作规则机器化
|
|
4
|
+
> 在装配主义 base 之上:不 vendor 上游代码,用 manifest 描述 install/check,用 composition skill 编排多上游工作流(详 [ADR 0006](./docs/adr/0006-architecture-wedge-revision-v3.md))
|
|
5
|
+
|
|
6
|
+
[](./LICENSE)
|
|
7
|
+
[](https://npmjs.com/package/harnessed)
|
|
8
|
+
[](https://github.com/sponsors/easyinplay)
|
|
9
|
+
|
|
10
|
+
> Not affiliated with, endorsed by, or sponsored by Harness Inc.(见 [NOTICE](./NOTICE))
|
|
11
|
+
|
|
12
|
+
## 一句话定位
|
|
13
|
+
|
|
14
|
+
别人造轮子(如 ECC 自家 30 agents/135 skills),我们做"指挥棒"——装配市面上最优秀的开源 Claude Code 生态组件,用强意见的 composition skill 织成统一工作流;上层把 CLAUDE.md 里写的"gstack 决策 → GSD 项目经理 → superpowers 资深工程师"三层栈方法论机器化为可执行 engine。
|
|
15
|
+
|
|
16
|
+
## 关键差异化
|
|
17
|
+
|
|
18
|
+
- **三层栈机器化**([ADR 0006](./docs/adr/0006-architecture-wedge-revision-v3.md)):gstack(决策层 / 6+ 虚拟角色 / 治理关卡) + GSD(项目经理 / phase orchestration / 状态持久化) + superpowers(资深工程师 / 子任务执行质量) + andrej-karpathy-skills(4 心法 always-on baseline) + mattpocock-skills(23 招式 by-phase routing) — 8 支柱 100% capture,把 CLAUDE.md 协作规则机器化为可执行 engine
|
|
19
|
+
- **不 vendor**(base layer):上游代码不进我们仓库,靠 manifest 描述 install/check(schema v1 frozen — see [ADR 0001](./docs/adr/0001-manifest-schema-v1.md);phase 1.3 加 categorization 3 字段 errata see [ADR 0007](./docs/adr/0007-categorization-schema-extension.md))
|
|
20
|
+
- **Composition Skill**:自家 workflow skill 当指挥棒,调度多个上游协同(research / execute-task / plan-feature 三 MVP workflow)
|
|
21
|
+
- **包管理器思维**:`harnessed install <workflow>` 自动解析依赖图、`doctor` 健康检查、`install-base` 一键装齐 base profile(10 固定 manifest)
|
|
22
|
+
- **强意见 vs all-in-one**:用户面对 `/harnessed:*` 统一入口,不需学每家上游术语
|
|
23
|
+
|
|
24
|
+
## Repo Structure
|
|
25
|
+
|
|
26
|
+
```
|
|
27
|
+
harnessed/
|
|
28
|
+
├── manifests/ # 上游描述层(不 vendor)
|
|
29
|
+
│ ├── tools/ # cc-plugin / mcp-npm / cli-npm
|
|
30
|
+
│ └── skill-packs/ # cc-skill-pack
|
|
31
|
+
├── workflows/ # composition skill(指挥棒)
|
|
32
|
+
├── routing/ # B+C 混合路由 SSOT
|
|
33
|
+
├── config-templates/ # 配置注入层(hooks 等)
|
|
34
|
+
├── schemas/ # JSON Schema artifact (publish 给 IDE / CI)
|
|
35
|
+
├── src/ # TS 源码(installer / validator / router / checkpoint)
|
|
36
|
+
├── tests/ # vitest 单测 + 集成 + bench
|
|
37
|
+
└── docs/adr/ # 架构决策记录
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Status
|
|
41
|
+
|
|
42
|
+
- **Current**: 🎯 **v1.0 GA SHIPPED 2026-05-22** (21/21 phases 100%); npm publish stream live; maintenance-only mode triggers ~2026-11 post organic clock end (per ADR 0020)
|
|
43
|
+
- **Next**: v1.0+ — maintenance-only mode (~2026-11 per D-04 HYBRID 2-clock); co-maintainer organic clock running post-2026-05-22
|
|
44
|
+
- **Full phase history + release plan + per-milestone audits**: [.planning/ROADMAP.md](./.planning/ROADMAP.md) / [CHANGELOG.md](./CHANGELOG.md)
|
|
45
|
+
|
|
46
|
+
## Install Quick Start(phase 1.2 ready)
|
|
47
|
+
|
|
48
|
+
`harnessed install <name>` **默认 dry-run**——列出将装的上游 / 改的文件,必须 `y` / `--apply` 才执行。详见 [docs/INSTALLER-CONTRACT.md](./docs/INSTALLER-CONTRACT.md) 6 条用户视角硬契约。
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
# 默认 dry-run(看 diff,不写盘)
|
|
52
|
+
harnessed install ctx7
|
|
53
|
+
|
|
54
|
+
# 显式 apply(交互场景)
|
|
55
|
+
harnessed install ctx7 --apply
|
|
56
|
+
|
|
57
|
+
# 自动化场景(CI 流水线)— 双 flag 必须
|
|
58
|
+
harnessed install tavily-mcp --non-interactive --apply
|
|
59
|
+
|
|
60
|
+
# 看已装状态 / 备份 / 清理
|
|
61
|
+
harnessed status
|
|
62
|
+
harnessed backup list
|
|
63
|
+
harnessed gc --older-than 30d --apply
|
|
64
|
+
|
|
65
|
+
# 出错恢复(一行回滚 + EOL preserve + sha1 verify)
|
|
66
|
+
harnessed rollback 2026-05-12T15:30:00Z
|
|
67
|
+
|
|
68
|
+
# 健康检查(4-check:Node ≥ 22 / MCP scope / jq present / Win bash flavor)
|
|
69
|
+
harnessed doctor
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
### Flags
|
|
73
|
+
|
|
74
|
+
| Flag | 说明 |
|
|
75
|
+
| ---- | ---- |
|
|
76
|
+
| `--apply` | 显式执行(默认 dry-run) |
|
|
77
|
+
| `--dry-run` | 永不写盘(即使加 `--apply` 也优先 dry-run) |
|
|
78
|
+
| `--system` | L4 全局装允许(否则自动降级 L1 npx ephemeral) |
|
|
79
|
+
| `--non-interactive` | 自动化场景;必须配合 `--apply` 或 `--dry-run` 否则 exit 2 |
|
|
80
|
+
| `--full-diff` | 展开 > 200 行的 diff 折叠 |
|
|
81
|
+
| `--no-color` | 强制 nocolor(即使 TTY) |
|
|
82
|
+
|
|
83
|
+
## 使用流程(phase 1.2 实装后启用)
|
|
84
|
+
|
|
85
|
+
harnessed 是 **CLI + CC skill 混合体**——CLI 管装/检/恢复,skill 管编排:
|
|
86
|
+
|
|
87
|
+
harnessed 装齐 **CLAUDE.md 4-stage 三层栈方法论** 所需上游 (gstack + GSD + superpowers + karpathy + mattpocock + planning-with-files + ralph-loop), `/harnessed:<workflow>` 启动 4-stage 自动化:
|
|
88
|
+
|
|
89
|
+
① **Discuss** (gstack `/office-hours` 治理 + GSD `/gsd-discuss-phase` 澄清) → ② **Plan** (GSD `/gsd-plan-phase` + planning-with-files 持久化 + 可选 gstack `/plan-eng-review`) → ③ **Execute** (GSD `/gsd-execute-phase` + superpowers brainstorm + karpathy 心法 + mattpocock 招式 + 可选 TDD + ralph-loop 至 COMPLETE) → ④ **Verify** (GSD `/gsd-verify-work` + code-review + gstack `/review` + code-simplifier + `/retro`)
|
|
90
|
+
|
|
91
|
+
→ **详细 mermaid + 与 CLAUDE.md prescribed gap 分析**: [docs/WORKFLOW.md](./docs/WORKFLOW.md). harnessed v0.4 已装齐所有上游; `/harnessed:plan-feature` 当前实装 Stage ①+② 5-phase 编排 (governance PUSH veto halt_workflow); Stage ③+④ 子任务级编排为 reference 调用 (用户在 Claude Code 内手动); 完整自动化推 v0.5+。
|
|
92
|
+
|
|
93
|
+
```bash
|
|
94
|
+
# 1. 一次性 setup(装 workflow skills 到 ~/.claude/skills/、配置 hooks)
|
|
95
|
+
npx harnessed@latest setup
|
|
96
|
+
|
|
97
|
+
# 2. 装某个 workflow 用到的所有上游 plugin(一行装齐 4-5 个上游)
|
|
98
|
+
harnessed install plan-feature
|
|
99
|
+
# → 自动装 gstack + superpowers + GSD + planning-with-files
|
|
100
|
+
|
|
101
|
+
# 3. 跑 workflow(在 Claude Code 内输入 slash command)
|
|
102
|
+
/harnessed:plan-feature "新功能 X"
|
|
103
|
+
# → 调度 5 phase: gstack governance → superpowers brainstorm → GSD discuss/plan → planning-with-files persist
|
|
104
|
+
# → 暂停点等用户 approve(CEO veto / final task_plan lock)
|
|
105
|
+
|
|
106
|
+
# 4. 中断后恢复
|
|
107
|
+
harnessed status # 看当前 phase
|
|
108
|
+
harnessed resume # 从最近 checkpoint 继续
|
|
109
|
+
|
|
110
|
+
# 5. 健康检查
|
|
111
|
+
harnessed doctor # 检测上游 stale / Windows ACL / 配置漂移
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
## FAQ — 常见疑问
|
|
115
|
+
|
|
116
|
+
**Q1. 装了 harnessed,还需要装 superpowers/gstack/GSD 等上游 plugin 吗?**
|
|
117
|
+
|
|
118
|
+
需要,但**用户感知 = 一行命令**:`harnessed install <workflow>` 自动解析 manifest 依赖图、装齐所有上游。类比 `brew install <formula>` 装全套依赖——你不需要单独 `brew install` 每个依赖项。
|
|
119
|
+
|
|
120
|
+
**Q2. 为什么不把 superpowers/gstack 的相关 skill 直接 vendor 进 harnessed 仓库?**
|
|
121
|
+
|
|
122
|
+
4 条理由:
|
|
123
|
+
|
|
124
|
+
1. **差异化哲学**([ADR 0001](./docs/adr/0001-manifest-schema-v1.md) + PROJECT-SPEC § 6 wedge):harnessed 是「装配主义包管理器」对位 ECC 的「all-in-one 自建派」。vendor = 失去 wedge → 沦为又一个 plugin pack
|
|
125
|
+
2. **License + attribution 噩梦**:vendor 4-5 个主动维护的上游 = 复杂 license 拼盘 + 违反 [vendor/ENTRY-CRITERIA.md](./vendor/ENTRY-CRITERIA.md)(要求"上游已停摆"才允许 vendor)
|
|
126
|
+
3. **上游升级反向**:当前 manifest 描述 → 上游升级用户重 install 即得新版;vendor 后必须手动 sync code → 永远落后
|
|
127
|
+
4. **Bus factor 1**:单 maintainer 维护 vendor 4-5 上游 = 加速 burnout(Avelino 论文实证 OSS 单 maintainer 年掉队率 36%)
|
|
128
|
+
|
|
129
|
+
**Q3. gstack 的 `/office-hours`、GSD 的 `/gsd-discuss-phase`、superpowers 的 brainstorming 看起来都是"plan/discuss"类,是不是重叠?**
|
|
130
|
+
|
|
131
|
+
不是。它们是**三层栈的不同阶段**(PROJECT-SPEC § 10 phases schema 显式编排):
|
|
132
|
+
|
|
133
|
+
| 阶段 | 上游 | 职责 |
|
|
134
|
+
|------|------|------|
|
|
135
|
+
| Governance | gstack | 多角色决策关卡(CEO/EM/Designer/Paranoid Engineer) |
|
|
136
|
+
| Brainstorming | superpowers | 子任务设计澄清、方案对比 |
|
|
137
|
+
| Orchestration | GSD | 高层 phase 任务图 + 依赖分析 |
|
|
138
|
+
| Persistence | planning-with-files | 持久化 task_plan / progress / findings 到 markdown |
|
|
139
|
+
|
|
140
|
+
`/harnessed:plan-feature` 把这 4 个阶段串起来——每个阶段做不同事,输出喂给下一阶段。**没有合并**。
|
|
141
|
+
|
|
142
|
+
**Q4. workflow phase 之间是自动跑还是等用户?**
|
|
143
|
+
|
|
144
|
+
看 `workflows/<name>/SKILL.md` frontmatter 的 `pause` 字段:
|
|
145
|
+
|
|
146
|
+
- `pause: human_review` → 阻塞等用户 approve(governance gate / final lock 用,如 plan-feature 的 phase 01 + 05)
|
|
147
|
+
- 无 `pause` → 自动 chain 到下一 phase(中间步骤)
|
|
148
|
+
|
|
149
|
+
每个 phase 输出写到 `.harnessed/checkpoints/`,session 中断后 `harnessed resume` 从最近 checkpoint 继续。
|
|
150
|
+
|
|
151
|
+
**Q5. harnessed 自己是 CC plugin 吗?**
|
|
152
|
+
|
|
153
|
+
混合体:
|
|
154
|
+
|
|
155
|
+
- `npx harnessed@latest setup` 跑的是 **Node.js CLI**(`bin/harnessed`)
|
|
156
|
+
- setup 装的 **workflow skills**(markdown)进 `~/.claude/skills/`,由 Claude Code 在运行时加载
|
|
157
|
+
- `/harnessed:*` 是 CC 内的 slash command,触发 skill 执行
|
|
158
|
+
- CLI 和 CC skill 共享 `.harnessed/checkpoints/` 状态目录
|
|
159
|
+
|
|
160
|
+
## 文档导航
|
|
161
|
+
|
|
162
|
+
- [PROJECT-SPEC.md](./PROJECT-SPEC.md) — 立项参数 spec sheet(v2.1)
|
|
163
|
+
- [WORKFLOWS-MVP.md](./WORKFLOWS-MVP.md) — 3 个 MVP workflow 展开(v2.1)
|
|
164
|
+
- [docs/adr/](./docs/adr/) — 架构决策记录(17 ADRs 0001-0017)|[docs/WORKFLOW.md](./docs/WORKFLOW.md) — 项目实际 dev 工作流 mermaid + 16-phase cadence 模式表 + CLAUDE.md gap 分析
|
|
165
|
+
- [.planning/ROADMAP.md](./.planning/ROADMAP.md) — 4 milestones × 3-5 phases 路线图
|
|
166
|
+
- [.planning/STATE.md](./.planning/STATE.md) — 跨 session 项目记忆 SSOT
|
|
167
|
+
- [CONTRIBUTING.md](./CONTRIBUTING.md) — 贡献指南(含 Windows corepack ACL workaround)
|
|
168
|
+
- [SECURITY.md](./SECURITY.md) — 漏洞披露通道
|
|
169
|
+
|
|
170
|
+
## Sponsor / Co-maintainer
|
|
171
|
+
|
|
172
|
+
GitHub Sponsors **已启用** (Phase 4.2 SHIPPED v0.4.0) — [](https://github.com/sponsors/easyinplay). Co-maintainer 6 月招募窗口已开启 — 完整入门指引参考 [docs/MAINTAINER-ONBOARDING.md](./docs/MAINTAINER-ONBOARDING.md)(30 分钟可跑通 dev 环境 per R8.2 验收).
|
|
173
|
+
|
|
174
|
+
stale-bot 已上线 — 90 天无活动 issue/PR 自动关闭 (`.github/workflows/stale.yml`); issue 模板见 `.github/ISSUE_TEMPLATE/`。
|
|
175
|
+
|
|
176
|
+
## License
|
|
177
|
+
|
|
178
|
+
[Apache-2.0](./LICENSE) — 见 [NOTICE](./NOTICE)(含 Harness Inc. 商标 disclaimer)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# config-templates/ — 配置注入层
|
|
2
|
+
|
|
3
|
+
`config-templates/` 包含 harnessed setup 时**注入用户项目**的配置模板。
|
|
4
|
+
|
|
5
|
+
## 结构
|
|
6
|
+
|
|
7
|
+
- `statusline.json` — Claude Code statusline 配置模板(v0.4+)
|
|
8
|
+
- `hooks/` — UserPromptSubmit hook 配置(B+C 混合 C 层 SSOT)
|
|
9
|
+
- `claude-md-block.md` — 注入 CLAUDE.md 的 harnessed 路由块模板
|
|
10
|
+
|
|
11
|
+
## 安全约束(PROJECT-SPEC.md § 8.3)
|
|
12
|
+
|
|
13
|
+
- **routing/*.md(hook 配置)必须纯 yaml/markdown** — 数据驱动,无可执行逻辑
|
|
14
|
+
- **harnessed 自带 hook 脚本严格受控** — 用 Node.js 内置 `fs` / `child_process`,禁动态 shell escape
|
|
15
|
+
- **install 时 print 全部脚本代码 + 配置 diff**(100% 透明)
|
|
16
|
+
- **1-key uninstall** 完全清理 settings.json hook entry + 所有 script files
|
|
17
|
+
|
|
18
|
+
## 关联
|
|
19
|
+
|
|
20
|
+
- setup 流程:`src/cli/setup.ts`(v0.1 phase 1.3)
|
|
21
|
+
- 用户备份:`<user-project>/.harnessed-backup/`
|
|
File without changes
|
package/dist/cli.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#!/usr/bin/env node
|