dw-bootstrap · git:20261116.82a397b · 2026-11-16 · sha256 9af00d15b5e97868

dw-bootstrap git:20261116.82a397bA

Immutable. This exact content never changes and is served at /api/v1/blob/9af00d15b5e97868.

No tool to install first
claude plugin marketplace add https://markdownregistry.com/mp/a/art_yb2ryjwmzssfrxoy/9af00d15b5e97868221aabd92b522c53331da35fd2ecebc6481f0f8a28851b48.json

Then /plugin install dw-bootstrap@markdownregistry-yb2ryjwmzssfrxoy in Claude Code. It installs this exact version, the one graded A here, pinned to the commit it was graded at, and leaves it there.

---
name: dw-bootstrap
description: 初始化/迁移 dw-harness 到当前项目(写 AGENTS.md、rules、harness.json,合并 settings.json)。仅在用户明确要求安装或升级 harness 时使用。
disable-model-invocation: true
allowed-tools: Read, Write, Edit, Glob, Bash(dw init:*), Bash(dw doctor:*)
---

# dw-bootstrap:安装 / 迁移

## 流程

1. 合并式安装(不覆盖用户修改,写备份):

```bash
dw init --target . --python python
```

插件中调用时加 \`--mode plugin\`,只安装项目文件。

2. 首次安装检查:`dw doctor`
3. v1 项目升级:旧 hook 自动停用,八个旧命令对照见 `docs/upgrade-from-v1.md`
   (插件模式命令带 `dw-harness:` 前缀;模板模式保留原名)

## 要点

- 重复执行不产生重复 hook 配置(按 matcher 去重)
- 用户改过的文件报 conflict 并保留原样,绝不动手覆盖
- 需要 MCP 时:`dw init --mcp`(默认关闭,显式开启)

## 交付物

AGENTS.md、CLAUDE.md(引用 @AGENTS.md)、.claude/dw/*、.claude/rules/*、settings.json 合并报告