harness-init
Installation
SKILL.md
Harness Init
Create or repair one harness outside every checkout. In Git repositories, store it at <git-common-dir>/project-harness/; linked worktrees share consolidated knowledge while sessions retain worktree identity. Outside Git, use $PROJECT_HARNESS_HOME or an XDG/user-data fallback keyed by project path. Canonical project knowledge belongs in README.md and docs/.
Procedure
- Identify the project root or current worktree.
- Run
scripts/init_harness.py <project-root>. - Read the printed shared path. Do not assume
.project-harness/exists in the checkout. - Inspect migration reports and backup paths. The script copies every legacy worktree harness before merging, never overwrites differing content, and places conflicts under
references/migrations/. - Remove or untrack a legacy
.project-harness/only after verifying the shared copy and backup. Never delete tracked or modified user content as part of initialization. - Run
scripts/resolve_harness.py <project-root> --format jsonwhenever another tool needs the location.