repo-harness 0.2.2 → 0.2.3

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/README.es.md CHANGED
@@ -187,13 +187,11 @@ npx -y repo-harness init
187
187
  ```
188
188
 
189
189
  La npm package release line es ahora `0.2.x`; el workflow compatibility model line
190
- generado se rastrea por separado como `5.x`. `repo-harness@0.2.1` separa el
191
- bootstrap global inicial (`repo-harness init`) del refresco repo-local
192
- (`repo-harness update`), conserva el instalador global de plugin/hook
193
- (`scripts/setup-plugins.sh`), el centinela de seguridad de configuración de solo
194
- lectura (`repo-harness security scan`), el ciclo de vida draft-plan explícito de
195
- Claude/Codex y añade inicialización no bloqueante del índice CodeGraph para el
196
- routing estructural de prompts.
190
+ generado se rastrea por separado como `5.x`. `repo-harness init` es el bootstrap
191
+ global y `repo-harness update` es el refresco repo-local. `repo-harness init`
192
+ configura el CLI, los hook adapters de nivel usuario, Waza, Mermaid, el brain
193
+ root y CodeGraph MCP; el viejo camino Claude plugin `scripts/setup-plugins.sh`
194
+ queda retirado.
197
195
 
198
196
  Si trabajas desde un checkout del código fuente:
199
197
 
@@ -237,9 +235,9 @@ Aplica solo después de que el reporte del dry-run sea correcto:
237
235
  npx -y repo-harness update
238
236
  ```
239
237
 
240
- Para un proyecto o módulo nuevo, usa el command skill `repo-harness-scaffold`. Para
241
- un repositorio existente, usa `repo-harness-init`; este instala o refresca el
242
- harness y no crea el stack tecnológico de la aplicación.
238
+ Para un proyecto o módulo nuevo, usa la branch command `repo-harness-scaffold`.
239
+ Para un repositorio existente, usa `repo-harness update`; este instala o refresca
240
+ el harness y no crea el stack tecnológico de la aplicación.
243
241
 
244
242
  ### Cómo se ve el éxito
245
243
 
@@ -346,22 +344,23 @@ Guards habituales:
346
344
  - `repo-harness update` refresca las runtime pieces:
347
345
  - los `repo-harness` skill aliases
348
346
  - los global Codex/Claude hook adapters
349
- - las Waza skills: `check`, `design`, `health`, `hunt`, `learn`, `read`, `think`, `write`
350
- - sincroniza `diagram-design` si existe la source copy
347
+ - las Waza skills: `think`, `hunt`, `check`, `health`
348
+ - Mermaid
351
349
  - El resto del external tooling se mantiene advisory-only:
352
350
  - `bash scripts/check-agent-tooling.sh --host both --check-updates`
353
351
  - no configura automáticamente gstack, gbrain, CodeGraph MCP, daemon ni provider
354
352
 
355
353
  ## Action Command Skills
356
354
 
357
- Los command skill facades públicos están en `assets/skill-commands/`:
355
+ Los command facades públicos están en `assets/skill-commands/`; preservan la
356
+ compatibilidad de discovery por skills, mientras el CLI y los hooks ejecutan:
358
357
 
359
358
  - Planning / review: `repo-harness-plan`, `repo-harness-review`, `repo-harness-autoplan`
360
359
  - Repo workflow actions: `repo-harness-ship`, `repo-harness-init`, `repo-harness-migrate`, `repo-harness-upgrade`, `repo-harness-capability`, `repo-harness-architecture`, `repo-harness-handoff`, `repo-harness-deploy`, `repo-harness-repair`, `repo-harness-check`
361
- - Project creation: `repo-harness-scaffold`
360
+ - Branch project creation: `repo-harness-scaffold`
362
361
 
363
- `repo-harness-init` se usa para repositorios existentes; `repo-harness-scaffold` se
364
- usa para crear proyectos o módulos nuevos. `hooks-init`, `docs-init` y
362
+ `repo-harness update` se usa para repositorios existentes; `repo-harness-scaffold`
363
+ queda como branch command para crear proyectos o módulos nuevos. `hooks-init`, `docs-init` y
365
364
  `create-project-dirs` son pasos internos, no commands públicos.
366
365
 
367
366
  ## Maintainer Reference
package/README.fr.md CHANGED
@@ -191,18 +191,11 @@ npx -y repo-harness init
191
191
  ```
192
192
 
193
193
  La release line du package npm est désormais `0.2.x` ; la generated workflow
194
- compatibility model line est suivie séparément en `5.x`. `repo-harness@0.2.1`
195
- sépare le bootstrap global initial (`repo-harness init`) du rafraîchissement
196
- repo-local (`repo-harness update`), conserve l'installateur global de plugin/hook
197
- (`scripts/setup-plugins.sh`), la sentinelle de sécurité en lecture seule
198
- (`repo-harness security scan`), le cycle de vie draft-plan explicite de
199
- Claude/Codex, et ajoute l'initialisation non bloquante de l'index CodeGraph pour
200
- le routing structurel des prompts. Ces capacités reposent sur le CLI renommé, le
201
- bootstrap de l'adapter de hook de niveau utilisateur, les AI-native scaffold
202
- overlays, le typed prompt-guard decision engine, le nommage des task artifacts par
203
- plan-stem, les runtime aliases
204
- `REPO_HARNESS_*`, la Waza runtime skill sync, et le release gate que le maintainer
205
- utilise avant de publier sur npm.
194
+ compatibility model line est suivie séparément en `5.x`. `repo-harness init`
195
+ sert au bootstrap global et `repo-harness update` sert au rafraîchissement
196
+ repo-local. `repo-harness init` configure le CLI, les hook adapters de niveau
197
+ utilisateur, Waza, Mermaid, le brain root et CodeGraph MCP ; l'ancien chemin
198
+ Claude plugin `scripts/setup-plugins.sh` est retiré.
206
199
 
207
200
  Si vous travaillez depuis un checkout source :
208
201
 
@@ -246,9 +239,9 @@ Appliquez seulement une fois que le rapport du dry-run est correct :
246
239
  npx -y repo-harness update
247
240
  ```
248
241
 
249
- Pour un nouveau projet ou un nouveau module, utilisez la command skill
250
- `repo-harness-scaffold`. Pour un dépôt existant, utilisez `repo-harness-init` ; il
251
- installe ou rafraîchit le harness sans créer de stack applicatif.
242
+ Pour un nouveau projet ou un nouveau module, utilisez la branch command
243
+ `repo-harness-scaffold`. Pour un dépôt existant, utilisez `repo-harness update` ;
244
+ il installe ou rafraîchit le harness sans créer de stack applicatif.
252
245
 
253
246
  ### À quoi ressemble le succès
254
247
 
@@ -355,22 +348,24 @@ Guards courants :
355
348
  - `repo-harness update` rafraîchit les runtime pieces :
356
349
  - les `repo-harness` skill aliases
357
350
  - les global Codex/Claude hook adapters
358
- - les Waza skills : `check`, `design`, `health`, `hunt`, `learn`, `read`, `think`, `write`
359
- - synchronise `diagram-design` si la source copy existe
351
+ - les Waza skills : `think`, `hunt`, `check`, `health`
352
+ - Mermaid
360
353
  - Les autres outils externes restent advisory-only :
361
354
  - `bash scripts/check-agent-tooling.sh --host both --check-updates`
362
355
  - pas de configuration automatique de gstack, gbrain, CodeGraph MCP, daemon ou provider
363
356
 
364
357
  ## Action Command Skills
365
358
 
366
- Les command skill facades publics se trouvent dans `assets/skill-commands/` :
359
+ Les command facades publics se trouvent dans `assets/skill-commands/` ; ils
360
+ préservent la découverte par skills, tandis que l'exécution appartient au CLI et
361
+ aux hooks :
367
362
 
368
363
  - Planning / review : `repo-harness-plan`, `repo-harness-review`, `repo-harness-autoplan`
369
364
  - Repo workflow actions : `repo-harness-ship`, `repo-harness-init`, `repo-harness-migrate`, `repo-harness-upgrade`, `repo-harness-capability`, `repo-harness-architecture`, `repo-harness-handoff`, `repo-harness-deploy`, `repo-harness-repair`, `repo-harness-check`
370
- - Project creation : `repo-harness-scaffold`
365
+ - Branch project creation : `repo-harness-scaffold`
371
366
 
372
- `repo-harness-init` sert aux dépôts existants ; `repo-harness-scaffold` sert à
373
- créer un nouveau projet ou module. `hooks-init`, `docs-init` et
367
+ `repo-harness update` sert aux dépôts existants ; `repo-harness-scaffold` sert de
368
+ branch command pour créer un nouveau projet ou module. `hooks-init`, `docs-init` et
374
369
  `create-project-dirs` sont des étapes internes, pas des commands publiques.
375
370
 
376
371
  ## Maintainer Reference
package/README.ja.md CHANGED
@@ -77,7 +77,7 @@ product boundary は意図的に地味です。対象リポジトリを検査し
77
77
 
78
78
  設計は 3 層に分かれます。
79
79
 
80
- 1. **ソースパッケージ層**:本リポジトリが CLI、command skill facades、templates、hook assets、
80
+ 1. **ソースパッケージ層**:本リポジトリが CLI、CLI-backed command facades、templates、hook assets、
81
81
  workflow contract、tests、release gate を所有します。
82
82
  2. **対象リポジトリ contract 層**:`repo-harness update` または migration が、`docs/spec.md`、
83
83
  `plans/`、`tasks/`、`.ai/context/`、`.ai/harness/`、helper scripts、`.ai/hooks/` といった
@@ -160,11 +160,9 @@ npx -y repo-harness init
160
160
  ```
161
161
 
162
162
  npm package の release line は現在 `0.2.x` です。生成される workflow compatibility model line は
163
- 別途 `5.x` として追跡されます。`repo-harness@0.2.1` は、初回 global bootstrap
164
- (`repo-harness init`)と repo-local refresh(`repo-harness update`)を分離し、グローバルな
165
- plugin/hook インストールスクリプト(`scripts/setup-plugins.sh`)、読み取り専用の設定セキュリティ哨兵
166
- (`repo-harness security scan`)、明示的な Claude/Codex draft-plan ライフサイクルを保ち、
167
- 構造的 prompt routing 用の非ブロッキング CodeGraph index 初期化を追加します。
163
+ 別途 `5.x` として追跡されます。`repo-harness init` global bootstrap、`repo-harness update` は
164
+ repo-local refresh です。`repo-harness init` は CLI、user-level hook adapters、Waza、Mermaid、
165
+ brain root、CodeGraph MCP を設定し、退役した `scripts/setup-plugins.sh` の Claude plugin path は使いません。
168
166
 
169
167
  ソースの checkout から作業する場合:
170
168
 
@@ -206,8 +204,8 @@ dry-run のレポートが正しいことを確認してから適用します。
206
204
  npx -y repo-harness update
207
205
  ```
208
206
 
209
- 新しいプロジェクトやモジュールには `repo-harness-scaffold` command skill を使います。既存リポジトリには
210
- `repo-harness-init` を使います。これは harness をインストールまたはリフレッシュするもので、アプリケーション
207
+ 新しいプロジェクトやモジュールには支線 command `repo-harness-scaffold` を使います。既存リポジトリには
208
+ `repo-harness update` を使います。これは harness をインストールまたはリフレッシュするもので、アプリケーション
211
209
  スタックは作成しません。
212
210
 
213
211
  ### 成功した状態
@@ -313,21 +311,21 @@ hook がブロックしたときは、まず terminal の構造化された出
313
311
  - `repo-harness update` は runtime pieces をリフレッシュします:
314
312
  - `repo-harness` skill aliases
315
313
  - global Codex/Claude hook adapters
316
- - Waza skills:`check`、`design`、`health`、`hunt`、`learn`、`read`、`think`、`write`
317
- - source copy が存在すれば `diagram-design` を同期
314
+ - Waza skills:`think`、`hunt`、`check`、`health`
315
+ - Mermaid
318
316
  - その他の外部ツールは advisory-only のままです:
319
317
  - `bash scripts/check-agent-tooling.sh --host both --check-updates`
320
318
  - gstack、gbrain、CodeGraph MCP、daemon、provider を自動設定しない
321
319
 
322
320
  ## Action Command Skills
323
321
 
324
- 公開 command skill facades は `assets/skill-commands/` にあります。
322
+ 公開 command facades は `assets/skill-commands/` にあります。host skill discovery との互換性を残しつつ、実行は CLI と hooks が担います。
325
323
 
326
324
  - Planning / review:`repo-harness-plan`、`repo-harness-review`、`repo-harness-autoplan`
327
325
  - Repo workflow actions:`repo-harness-ship`、`repo-harness-init`、`repo-harness-migrate`、`repo-harness-upgrade`、`repo-harness-capability`、`repo-harness-architecture`、`repo-harness-handoff`、`repo-harness-deploy`、`repo-harness-repair`、`repo-harness-check`
328
- - Project creation:`repo-harness-scaffold`
326
+ - Branch project creation:`repo-harness-scaffold`
329
327
 
330
- `repo-harness-init` は既存リポジトリ向け、`repo-harness-scaffold` は新しいプロジェクトやモジュールの作成向けです。
328
+ `repo-harness update` は既存リポジトリ向け、`repo-harness-scaffold` は支線 command として新しいプロジェクトやモジュールを作成します。
331
329
  `hooks-init`、`docs-init`、`create-project-dirs` は内部ステップであり、公開 commands ではありません。
332
330
 
333
331
  ## Maintainer Reference
package/README.md CHANGED
@@ -34,16 +34,15 @@ This repository now dogfoods its own tasks-first contract. It is both:
34
34
  read a 1KB capability contract or query the index instead of spending thousands of
35
35
  tokens rediscovering structure.
36
36
 
37
- ## What's New in 0.2.2
38
-
39
- - **Safer global init defaults.** `repo-harness init` now streams setup progress
40
- directly to the terminal and no longer installs the Superpowers Claude
41
- marketplace plugin by default. Use `repo-harness init --with-superpowers` only
42
- when you explicitly want that marketplace plugin.
43
- - **Global init command (`repo-harness init`).** One command bootstraps the global
44
- Claude environment: essential plugins, configurable policy hooks (worktree guard,
45
- atomic commit/pending), optional LSP plugins by project type, and four hook profiles
46
- (`standard`, `minimal`, `biome`, `biome-strict`).
37
+ ## What's New in 0.2.3
38
+
39
+ - **Safer global init defaults.** `repo-harness init` no longer calls the legacy
40
+ Claude plugin setup script or any Superpowers marketplace installer path.
41
+ - **Global init command (`repo-harness init`).** One command installs the
42
+ `repo-harness` CLI globally, refreshes repo-harness skill aliases, installs
43
+ user-level Codex/Claude hook adapters, configures Waza
44
+ (`think`, `hunt`, `check`, `health`) plus Mermaid, persists the brain root, and
45
+ configures CodeGraph MCP.
47
46
  Run `npx -y repo-harness init`; no source checkout is required.
48
47
  - **Repo refresh command (`repo-harness update`).** Existing-repo install and
49
48
  refresh now has its own command surface, preserving the previous repo-local
@@ -91,7 +90,7 @@ workflow surfaces stay consistent.
91
90
 
92
91
  The design has three layers:
93
92
 
94
- 1. **Source package**: this repository owns the CLI, command skill facades,
93
+ 1. **Source package**: this repository owns the CLI, CLI-backed command facades,
95
94
  templates, hook assets, workflow contract, tests, and release gate.
96
95
  2. **Target repo contract**: `repo-harness update` or migration writes repo-local
97
96
  files such as `docs/spec.md`, `plans/`, `tasks/`, `.ai/context/`,
@@ -177,10 +176,11 @@ safe to adopt in a real repo.
177
176
  npx -y repo-harness init
178
177
  ```
179
178
 
180
- `init` is the first-run global bootstrap path. It runs the packaged
181
- `scripts/setup-plugins.sh`, installs global Claude plugins and hook profiles, and
182
- defaults to `--hooks standard`. Use `--hooks <profile>` or `--no-hooks` when you
183
- need a different hook profile.
179
+ `init` is the first-run global bootstrap path. It installs the current npm
180
+ package as the global CLI, refreshes repo-harness skill aliases, installs
181
+ user-level hook adapters, configures Waza runtime skills, persists a brain root
182
+ under `~/.repo-harness/config.json`, and configures CodeGraph MCP. It does not
183
+ apply repo-local workflow files to the current directory.
184
184
 
185
185
  ### Install or refresh a repo-local harness
186
186
 
@@ -194,13 +194,13 @@ repository to install or refresh workflow files, hook assets, host adapters,
194
194
  skill aliases, and repo-local verification surfaces from the current npm package.
195
195
 
196
196
  The npm package release line is now `0.2.x`; generated workflow compatibility is
197
- tracked separately as the `5.x` model line. The `0.2.2` package splits first-run
197
+ tracked separately as the `5.x` model line. The `0.2.3` package splits first-run
198
198
  global bootstrap (`repo-harness init`) from repo-local refresh
199
- (`repo-harness update`), keeps the global plugin/hook installer
200
- (`scripts/setup-plugins.sh`), the read-only config security sentinel
199
+ (`repo-harness update`), replaces the legacy global plugin installer path with
200
+ typed CLI/hook/dependency bootstrap, keeps the read-only config security sentinel
201
201
  (`repo-harness security scan`), the explicit Claude/Codex draft-plan lifecycle,
202
- adds non-blocking CodeGraph index initialization for structural prompt routing,
203
- and keeps Superpowers behind the explicit `--with-superpowers` opt-in flag.
202
+ and adds non-blocking CodeGraph index initialization for structural prompt
203
+ routing.
204
204
  These sit on top of the renamed `repo-harness` CLI, user-level hook
205
205
  adapter bootstrap, AI-native scaffold overlays, the typed prompt-guard decision
206
206
  engine, plan-stem task artifact naming, `REPO_HARNESS_*` runtime aliases, Waza
@@ -250,8 +250,8 @@ Apply only after the dry-run report looks correct:
250
250
  npx -y repo-harness update
251
251
  ```
252
252
 
253
- For a new project or module, use the `repo-harness-scaffold` command skill. For
254
- an existing repo, use `repo-harness-init`; it installs or refreshes the harness
253
+ For a new project or module, use the branch command `repo-harness-scaffold`. For
254
+ an existing repo, use `repo-harness update`; it installs or refreshes the harness
255
255
  without creating an application stack.
256
256
 
257
257
  ### Success looks like this
@@ -340,7 +340,7 @@ Most common guards:
340
340
 
341
341
  ## Current Release
342
342
 
343
- - npm package: `repo-harness@0.2.2`
343
+ - npm package: `repo-harness@0.2.3`
344
344
  - Generated workflow compatibility: `5.2.3`
345
345
  - GitHub repository: `Ancienttwo/repo-harness`
346
346
  - Release history: [`docs/CHANGELOG.md`](docs/CHANGELOG.md)
@@ -371,16 +371,17 @@ Most common guards:
371
371
  - `complex -> gstack`
372
372
  - `simple -> Waza` with Codex-first runtime copies in `~/.codex/skills`
373
373
  - `knowledge -> gbrain`
374
- - `repo-harness update` bootstraps the Codex/Claude runtime pieces needed for the
374
+ - `repo-harness init` bootstraps the Codex/Claude runtime pieces needed for the
375
375
  default workflow:
376
376
  - refreshes `repo-harness` skill aliases
377
377
  - installs global Codex/Claude hook adapters
378
- - installs Waza skills (`think`, `hunt`, `check`, `health`) through the skills CLI
379
- - installs `mermaid` into Codex/Claude skill roots through the skills CLI
378
+ - installs Waza skills (`think`, `hunt`, `check`, `health`) and Mermaid through the skills CLI
379
+ - persists the brain root in `~/.repo-harness/config.json`
380
+ - configures CodeGraph MCP for selected host agents
380
381
  - Other external tooling stays advisory-only:
381
382
  - `bash scripts/check-agent-tooling.sh --host both --check-updates`
382
383
  - Waza update checks compare upstream `tw93/Waza` `SKILL.md` hashes without running `npx skills check`
383
- - no automatic gstack, gbrain, CodeGraph MCP, daemon, or provider setup
384
+ - no automatic gstack, gbrain MCP, CodeGraph daemon, or provider setup
384
385
  - Manual distillation stays repo-local:
385
386
  - repeated corrections -> `tasks/lessons.md`
386
387
  - deep findings and hidden contracts -> `tasks/research.md`
@@ -407,17 +408,16 @@ are not all bundled product dependencies.
407
408
 
408
409
  ## Action Command Skills
409
410
 
410
- Source-owned command skill facades live in `assets/skill-commands/`. They keep
411
- the public surface action-style while sharing the same router, contract, scripts,
412
- and tests:
411
+ Source-owned command facades live in `assets/skill-commands/`. They keep host
412
+ skill discovery compatible while the CLI and hooks own execution:
413
413
 
414
414
  - Planning and review: `repo-harness-plan`, `repo-harness-review`, `repo-harness-autoplan`
415
415
  - Repo workflow actions: `repo-harness-ship`, `repo-harness-init`, `repo-harness-migrate`, `repo-harness-upgrade`, `repo-harness-capability`, `repo-harness-architecture`, `repo-harness-handoff`, `repo-harness-deploy`, `repo-harness-repair`, `repo-harness-check`
416
- - Project creation: `repo-harness-scaffold`
416
+ - Branch project creation command: `repo-harness-scaffold`
417
417
 
418
- `repo-harness-init` is for an existing repo; `repo-harness-scaffold` creates a new
419
- project or module scaffold. `hooks-init`, `docs-init`, and `create-project-dirs`
420
- are internal steps, not public commands.
418
+ `repo-harness update` is for an existing repo; `repo-harness-scaffold` creates a
419
+ new project or module scaffold as a side command. `hooks-init`, `docs-init`, and
420
+ `create-project-dirs` are internal steps, not public commands.
421
421
 
422
422
  `repo-harness-scaffold` keeps the A-K plan catalog as the project-type authority
423
423
  and adds AI-native app structure through an optional `ai_native_profile` overlay.
package/README.zh-CN.md CHANGED
@@ -23,14 +23,14 @@ repo-local workflow 的自托管样例。
23
23
  做渐进式上下文加载:一份小而稳定的 root context(约 12KB),加上只在改到对应文件时才加载的
24
24
  capability 块。agent 读一份 1KB 的 capability 合约或查索引,而不是花上千 token 重新摸清结构。
25
25
 
26
- ## 0.2.2 新特性
27
-
28
- - **更安全的全局初始化默认值。** `repo-harness init` 现在会把 setup 进度直接输出到终端,
29
- 不再默认安装 Superpowers Claude marketplace plugin。只有你明确需要它时,才使用
30
- `repo-harness init --with-superpowers`。
31
- - **全局初始化命令(`repo-harness init`)。** 一条命令引导全局 Claude 环境:essential plugins
32
- 可配置 policy hooks(worktree guard、atomic commit/pending)、按项目类型可选的 LSP plugins,以及
33
- 四档 hook profile(`standard`、`minimal`、`biome`、`biome-strict`)。运行
26
+ ## 0.2.3 新特性
27
+
28
+ - **更安全的全局初始化默认值。** `repo-harness init` 不再调用旧 Claude plugin setup
29
+ 脚本,也没有 Superpowers marketplace installer 路径。
30
+ - **全局初始化命令(`repo-harness init`)。** 一条命令安装全局 `repo-harness` CLI、
31
+ 刷新 repo-harness skill aliases、安装 Codex/Claude user-level hook adapters
32
+ 配置 Waza(`think`、`hunt`、`check`、`health`)和 Mermaid、持久化 brain root,并配置
33
+ CodeGraph MCP。运行
34
34
  `npx -y repo-harness init`,不需要 clone 源码仓库。
35
35
  - **仓库刷新命令(`repo-harness update`)。** 已有仓库的安装/刷新入口独立成命令,继续复用
36
36
  原 repo-local harness migration 路径,同时让 `init` 专注于全局 runtime setup。
@@ -68,7 +68,7 @@ repo-local hooks,然后验证这些 workflow surfaces 仍然一致。
68
68
 
69
69
  整体分三层:
70
70
 
71
- 1. **源码包层**:本仓库维护 CLI、command skill facades、templates、hook assets、
71
+ 1. **源码包层**:本仓库维护 CLI、CLI-backed command facades、templates、hook assets、
72
72
  workflow contract、tests 和 release gate。
73
73
  2. **目标仓库合约层**:`repo-harness update` 或 migration 会写入 `docs/spec.md`、
74
74
  `plans/`、`tasks/`、`.ai/context/`、`.ai/harness/`、helper scripts 和
@@ -149,9 +149,10 @@ flowchart TD
149
149
  npx -y repo-harness init
150
150
  ```
151
151
 
152
- `init` 是首次全局引导入口。它运行 npm 包里自带的 `scripts/setup-plugins.sh`,
153
- 安装全局 Claude plugins hook profiles,默认等价于 `--hooks standard`。
154
- 需要不同 hook profile 时再传 `--hooks <profile>` 或 `--no-hooks`。
152
+ `init` 是首次全局引导入口。它把当前 npm 包安装成全局 CLI,刷新 repo-harness
153
+ skill aliases,安装 user-level hook adapters,配置 Waza runtime skills,把 brain
154
+ root 持久化到 `~/.repo-harness/config.json`,并配置 CodeGraph MCP。它不会把当前目录
155
+ 默认迁移成 repo-local workflow。
155
156
 
156
157
  ### 安装或刷新 repo-local harness
157
158
 
@@ -165,11 +166,11 @@ npx -y repo-harness update
165
166
  repo-local verification surfaces。
166
167
 
167
168
  npm package release line 现在是 `0.2.x`;生成的 workflow compatibility model line
168
- 单独以 `5.x` 追踪。`repo-harness@0.2.2` 把首次全局引导(`repo-harness init`)
169
- 和 repo-local 刷新(`repo-harness update`)拆开,同时保留全局 plugin/hook 安装脚本
170
- (`scripts/setup-plugins.sh`)、只读配置安全哨兵(`repo-harness security scan`)、
171
- 显式 Claude/Codex draft-plan 生命周期,新增 prompt hook 的非阻塞 CodeGraph index 初始化,
172
- 并把 Superpowers 放到显式 `--with-superpowers` opt-in 后面。这些能力叠加在改名后的 CLI、user-level hook adapter bootstrap、AI-native scaffold overlays、
169
+ 单独以 `5.x` 追踪。`repo-harness@0.2.3` 把首次全局引导(`repo-harness init`)
170
+ 和 repo-local 刷新(`repo-harness update`)拆开,同时用 typed CLI/hook/dependency
171
+ bootstrap 替换旧全局 plugin installer 路径,保留只读配置安全哨兵(`repo-harness security scan`)、
172
+ 显式 Claude/Codex draft-plan 生命周期,并新增 prompt hook 的非阻塞 CodeGraph index 初始化。
173
+ 这些能力叠加在改名后的 CLI、user-level hook adapter bootstrap、AI-native scaffold overlays、
173
174
  typed prompt-guard decision engine、plan-stem task artifact 命名、`REPO_HARNESS_*`
174
175
  runtime aliases、Waza runtime skill sync,以及 maintainer 发布 npm 前使用的 release gate 之上。
175
176
 
@@ -213,8 +214,8 @@ dry-run 报告正确后再应用:
213
214
  npx -y repo-harness update
214
215
  ```
215
216
 
216
- 新项目或新模块使用 `repo-harness-scaffold` command skill。已有仓库使用
217
- `repo-harness-init`;它会安装或刷新 harness,不会创建应用技术栈。
217
+ 新项目或新模块使用支线 command `repo-harness-scaffold`。已有仓库使用
218
+ `repo-harness update`;它会安装或刷新 harness,不会创建应用技术栈。
218
219
 
219
220
  ### 成功长什么样
220
221
 
@@ -301,7 +302,7 @@ hook block 工作时,先看 terminal 里的结构化输出。核心字段是
301
302
 
302
303
  ## 当前 Release
303
304
 
304
- - npm package:`repo-harness@0.2.2`
305
+ - npm package:`repo-harness@0.2.3`
305
306
  - Generated workflow compatibility:`5.2.3`
306
307
  - GitHub repository:`Ancienttwo/repo-harness`
307
308
  - Release history:[`docs/CHANGELOG.md`](docs/CHANGELOG.md)
@@ -316,24 +317,26 @@ hook block 工作时,先看 terminal 里的结构化输出。核心字段是
316
317
  - `assets/workflow-contract.v1.json`
317
318
  - Generated repos 默认使用 repo-local harness flow:
318
319
  - `docs/spec.md -> plans/ -> tasks/contracts/ -> tasks/reviews/ -> .ai/context/context-map.json -> .ai/harness/*`
319
- - `repo-harness update` 会刷新 runtime pieces:
320
+ - `repo-harness init` 会刷新 runtime pieces:
320
321
  - `repo-harness` skill aliases
321
322
  - global Codex/Claude hook adapters
322
- - Waza skills:`check`、`design`、`health`、`hunt`、`learn`、`read`、`think`、`write`
323
- - 如果 source copy 存在,同步 `diagram-design`
323
+ - Waza skills:`think`、`hunt`、`check`、`health`
324
+ - 持久化 brain root `~/.repo-harness/config.json`
325
+ - 配置 CodeGraph MCP
324
326
  - 其他外部工具保持 advisory-only:
325
327
  - `bash scripts/check-agent-tooling.sh --host both --check-updates`
326
- - 不自动设置 gstack、gbrain、CodeGraph MCP、daemon 或 provider
328
+ - 不自动设置 gstack、gbrain MCP、CodeGraph daemon 或 provider
327
329
 
328
330
  ## Action Command Skills
329
331
 
330
- 公共 command skill facades 在 `assets/skill-commands/`:
332
+ 公共 command facades 在 `assets/skill-commands/`;它们保留 host skill discovery
333
+ 兼容性,真正执行由 CLI 和 hooks 负责:
331
334
 
332
335
  - Planning / review:`repo-harness-plan`、`repo-harness-review`、`repo-harness-autoplan`
333
336
  - Repo workflow actions:`repo-harness-ship`、`repo-harness-init`、`repo-harness-migrate`、`repo-harness-upgrade`、`repo-harness-capability`、`repo-harness-architecture`、`repo-harness-handoff`、`repo-harness-deploy`、`repo-harness-repair`、`repo-harness-check`
334
- - Project creation:`repo-harness-scaffold`
337
+ - 支线项目创建 command:`repo-harness-scaffold`
335
338
 
336
- `repo-harness-init` 用于已有仓库;`repo-harness-scaffold` 用于创建新项目或模块。
339
+ `repo-harness update` 用于已有仓库;`repo-harness-scaffold` 作为支线 command 创建新项目或模块。
337
340
  `hooks-init`、`docs-init` 和 `create-project-dirs` 是内部步骤,不是公共 commands。
338
341
 
339
342
  ## Maintainer Reference
package/SKILL.md CHANGED
@@ -1,22 +1,23 @@
1
1
  ---
2
2
  name: repo-harness
3
- description: routes repo-harness requests to action-style init, scaffold, migrate, audit, repair, and ship workflows
3
+ description: routes repo-harness requests through the CLI and hook automation plugin for init, update, scaffold, migrate, audit, repair, and ship workflows
4
4
  when_to_use: "repo-harness, repo-harness-skill compatibility, initialize repo-local agentic development harness, scaffold new project with repo-harness, migrate repo-local agentic development harness, audit repo-local agentic development harness, repair repo-local agentic development harness"
5
5
  ---
6
6
 
7
7
  # repo-harness
8
8
 
9
- `repo-harness` is the repo-local agentic development harness skill. It is a thin
10
- router over a versioned workflow engine and action-style command facades.
9
+ `repo-harness` is the CLI and hook automation plugin for repo-local agentic
10
+ development. The skill entrypoint is a compatibility router over the versioned
11
+ workflow engine and CLI command facades.
11
12
 
12
13
  Compatibility boundary:
13
14
 
14
- - internal engine: tasks-first harness
15
+ - internal engine: CLI plus hook-backed tasks-first harness
15
16
  - contract ID: tasks-first-harness-v1
16
17
  - canonical skill, CLI, and package name: `repo-harness`
17
18
  - compatibility trigger/runtime fallback: `repo-harness-skill`
18
19
  - retired legacy alias: `project-initializer`
19
- - new-project creation surface: `repo-harness-scaffold`
20
+ - new-project creation surface: `repo-harness-scaffold` (secondary generator)
20
21
 
21
22
  `repo-harness-skill` may still route old prompts and runtime fallback lookups.
22
23
  It must not expose duplicate Codex command facades. `project-initializer` is a
@@ -34,8 +35,8 @@ The skill should not carry the whole workflow contract in prose. It should:
34
35
 
35
36
  ## When to use
36
37
 
37
- - initialize a new repo with Codex/Codex-compatible workflow scaffolding
38
- - create a new project or module scaffold, then attach the harness
38
+ - install or refresh the CLI+hooks workflow in an existing repo
39
+ - create a new project or module scaffold only when the user asks for a new product/module skeleton, then attach the harness
39
40
  - migrate an older repo to the current tasks-first harness
40
41
  - audit drift between prompts, hooks, scripts, and repo-local contract files
41
42
  - repair broken task-sync, workflow-contract, or handoff surfaces
@@ -115,10 +116,12 @@ The main engine entrypoints are:
115
116
  - `scripts/check-task-workflow.sh`
116
117
  - `scripts/create-project-dirs.sh`
117
118
 
118
- ## Action Command Surface
119
+ ## CLI Command Facade Surface
119
120
 
120
- The public command skills live in `assets/skill-commands/` as thin facades over
121
- the same engine. Use action-style names for discoverability:
121
+ The command facades live in `assets/skill-commands/` as compatibility wrappers
122
+ over the same CLI and hook engine. Use them for routing when the host discovers
123
+ skills; the implementation authority stays in the CLI, scripts, hooks, and
124
+ contract files:
122
125
 
123
126
  - `repo-harness-plan`: interactive planning; no repo mutation by default
124
127
  - `repo-harness-review`: plan review across product, engineering, design, and DevEx
@@ -275,7 +278,10 @@ Migration defaults:
275
278
  - distill repeated corrections into `tasks/lessons.md`
276
279
  - merge missing `external_tooling` defaults into `.ai/harness/policy.json` without overwriting explicit user values
277
280
  - keep gstack/gbrain/CodeGraph detection advisory-only; do not auto-install, auto-upgrade, auto-sync, or auto-enable MCP
278
- - let `repo-harness init` bootstrap required Codex/Claude runtime skills in one pass: Waza (`think`, `hunt`, `check`, `health`) plus `mermaid` through the skills CLI
281
+ - let `repo-harness init` bootstrap the required global runtime in one pass:
282
+ CLI install, repo-harness runtime alias sync, user-level hook adapters, Waza
283
+ (`think`, `hunt`, `check`, `health`), Mermaid, brain root persistence, and
284
+ CodeGraph CLI/MCP configuration
279
285
  - treat Waza as Codex-first: `~/.codex/skills` is the Codex runtime source, `~/.agents/skills` is only skills CLI staging/cache, and updates require stage -> copy to Codex -> `cmp` verification
280
286
 
281
287
  ## Repo-Local Contract
@@ -17,7 +17,7 @@ root prompt concise; this file owns the detailed routing.
17
17
 
18
18
  ## repo-harness Command Surface
19
19
 
20
- Use these action-style command skills when the work is about installing,
20
+ Use these CLI-backed command facades when the work is about installing,
21
21
  migrating, repairing, or verifying this repo-local harness:
22
22
 
23
23
  | Work type | Command | Boundary |
@@ -14,16 +14,17 @@ source, while `~/.agents/skills` is only the skills CLI staging/cache path used
14
14
  to receive upstream `tw93/Waza` updates before syncing verified copies into
15
15
  Codex.
16
16
 
17
- `repo-harness init` is allowed to bootstrap the workflow-owned runtime skills in
18
- one pass: Waza (`think`, `hunt`, `check`, `health`) plus `mermaid` for Codex and/or Claude, plus the bundled
19
- cross-review skills `codex-review` (Claude host) and `claude-review` (Codex host).
20
- It must not silently install unrelated toolchains.
17
+ `repo-harness init` is allowed to bootstrap the workflow-owned global runtime in
18
+ one pass: the `repo-harness` CLI, repo-harness runtime aliases, user-level
19
+ Codex/Claude hook adapters, Waza (`think`, `hunt`, `check`, `health`), brain
20
+ root persistence, Mermaid, and CodeGraph CLI/MCP configuration. It must not
21
+ silently install unrelated toolchains or Claude marketplace plugins.
21
22
 
22
23
  The cross-review skills are **harness-owned and self-contained** — their source
23
24
  lives in `assets/skills/<skill>/` and they wrap the peer CLI (`codex exec` /
24
25
  `claude -p`) in a read-only sandbox with no gstack dependency, so installing them
25
- is a workflow-owned runtime concern, not an unrelated toolchain. They install
26
- host-aware: `codex-review` only into `~/.claude/skills` (a Claude session asking
26
+ is a workflow-owned repo-local update concern, not an unrelated toolchain. They
27
+ install host-aware during `repo-harness update`: `codex-review` only into `~/.claude/skills` (a Claude session asking
27
28
  Codex for an independent review) and `claude-review` only into `~/.codex/skills`
28
29
  (a Codex session asking Claude). When gstack is present, its `/codex` and
29
30
  `gstack-claude` skills are a more featureful superset; the harness skills are the
@@ -36,8 +37,8 @@ changes, and untracked files are all in scope. A timeout or missing peer CLI is
36
37
  reported as unavailable review evidence, not as a pass.
37
38
 
38
39
  The Codex automation profile is a runtime reference, not a vendored copy. It
39
- requires Waza `health`, Waza `check`, and the standalone `mermaid` skill
40
- to exist under `~/.codex/skills`; the skill bodies stay owned by their original
40
+ requires Waza `health`, Waza `check`, and the standalone `mermaid` skill to
41
+ exist under `~/.codex/skills`; the skill bodies stay owned by their original
41
42
  installations.
42
43
 
43
44
  ## Detect Safely
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 1,
3
- "surface": "repo-harness-action-style-skill-commands",
3
+ "surface": "repo-harness-cli-hooks-command-facades",
4
4
  "source": "assets/skill-commands",
5
5
  "router": "repo-harness",
6
6
  "commands": [
@@ -41,10 +41,10 @@
41
41
  },
42
42
  {
43
43
  "name": "repo-harness-scaffold",
44
- "class": "project-scaffolding",
44
+ "class": "branch-project-scaffolding",
45
45
  "mutatesRepoByDefault": true,
46
46
  "engine": "init-project.sh plus workflow install",
47
- "summary": "Creates a new project or module scaffold from plan catalog A-K and attaches the harness."
47
+ "summary": "Branch command that creates a new project or module scaffold from plan catalog A-K and attaches the harness."
48
48
  },
49
49
  {
50
50
  "name": "repo-harness-migrate",
@@ -20,7 +20,7 @@ architecture documentation, drift-request, or diagram pass.
20
20
  - module or snapshot docs under `docs/architecture/`
21
21
  - Mermaid fenced block in the relevant module or snapshot Markdown when a visual flow materially helps
22
22
  - optional human-readable diagram artifact under `docs/architecture/diagrams/`
23
- 5. Use Markdown Mermaid as the semantic diagram source; use `mermaid` only for human-readable HTML renderings grounded in observed repo files.
23
+ 5. Use Markdown Mermaid as the semantic diagram source; use `mermaid` only for optional human-readable HTML renderings grounded in observed repo files.
24
24
  6. Archive handled requests with:
25
25
  - `bash scripts/archive-architecture-request.sh --request <request> --status <resolved|superseded|rejected|no-change> --artifact <path> --note <text>`
26
26
  7. Verify with:
@@ -11,11 +11,11 @@ Use this command for an existing repository that needs the repo-local agentic wo
11
11
  ## Protocol
12
12
 
13
13
  1. Confirm the target repo path.
14
- 2. If running from the target repo root, use `repo-harness init`; do not require `--repo .`.
14
+ 2. If running from the target repo root, use `repo-harness update`; do not require `--repo .`.
15
15
  3. Run `bun scripts/inspect-project-state.ts --repo <repo> --format text`.
16
16
  4. If the repo is legacy, route to `repo-harness-migrate`.
17
- 5. Otherwise run the safe path through `repo-harness init` or `bash scripts/migrate-project-template.sh --repo <repo> --apply`.
18
- 6. Bootstrap the expected host runtime skills in the same pass: Waza (`think`, `hunt`, `check`, `health`) and `mermaid` for Codex/Claude when source copies are available.
17
+ 5. Otherwise run the safe path through `repo-harness update` or `bash scripts/migrate-project-template.sh --repo <repo> --apply`.
18
+ 6. Bootstrap the expected host runtime dependencies in the same pass: Waza (`think`, `hunt`, `check`, `health`) and the bundled cross-review skills when source copies are available.
19
19
  7. Verify with `bash scripts/check-task-workflow.sh --strict` inside the target repo when the helper exists.
20
20
 
21
21
  ## Boundaries
@@ -1,12 +1,12 @@
1
1
  ---
2
2
  name: repo-harness-scaffold
3
- description: Creates a new project or module scaffold from the repo-harness plan catalog A-K, then attaches the repo-local workflow harness.
3
+ description: Branch command that creates a new project or module scaffold from the repo-harness plan catalog A-K, then attaches the repo-local workflow harness.
4
4
  when_to_use: "repo-harness-scaffold, scaffold new project, create new app with agentic workflow, Plan A, Plan B, Plan C, Plan D, Plan E, Plan F, Plan G, Plan H, Plan I, Plan J, Plan K"
5
5
  ---
6
6
 
7
7
  # repo-harness-scaffold
8
8
 
9
- Use this command when the user asks to create a new project, app, or module skeleton.
9
+ Use this branch command when the user asks to create a new project, app, or module skeleton.
10
10
 
11
11
  ## Protocol
12
12