| name | init |
| description | Explicitly audit, initialize, import, or repair Agent Harness setup and config migration; not for ordinary status, intake, or product implementation. / 显式接入、迁移或修复 Harness。 |
Harness Init
Use this skill only for explicit Harness setup, import, migration, or repair.
Doctor and activation preview remain read-only.
Read Setup And Migration Safety before
any mutating init, import, or repair action.
- Read repo instructions and inspect current state:
node <plugin-root>/scripts/agent-harness.mjs doctor --cwd <project>
node <plugin-root>/scripts/agent-harness.mjs config inspect --cwd <project> --json
node <plugin-root>/scripts/agent-harness.mjs config validate --cwd <project> --json
- Before mutation, identify the existing Goal index and adapter paths. Never
create a second Goal index when importing an existing project.
- Preview import/migration with
--dry-run --json. Canonical output writes
contract, canonical paths, worktree.defaultPolicy, and completion gates.
Legacy aliases are read for one migration boundary; conflicts fail.
- Initialize or import only after explicit setup authority:
node <plugin-root>/scripts/agent-harness.mjs init --cwd <project> --contract adapter
node <plugin-root>/scripts/agent-harness.mjs config import --cwd <project> --task-index todolist.md --dry-run --json
- Every planned write must pass project-root, configured-root, absolute/
..,
and existing-parent realpath/symlink containment before any file is written.
Do not overwrite existing artifacts without explicit authority, edit
AGENTS.md from an activation preview, start implementation, create workers,
or perform delivery/deploy actions.