local-fixlisted
Install: claude install-skill x-mesh/xm
# x-local-fix — Same-Host Cross-Project Fix
Use this only for a registered project available on the same machine. It keeps
the `toss` audit contract but replaces the waiting period with a target-owned
worktree.
## Flow
1. Capture and create the target worktree from the sender project:
```bash
xm local-fix <project> "<title>" --command "<repro command>" --output "<actual output>" --fix "<concrete direction>" --json
```
The command writes the sender's `.xm/outbox/<id>.json`, resolves the exact
registered target, and runs `GK_AGENT=1 git-kit worktree acquire`. It does
not call mem-mesh, edit code, commit, push, or open a PR.
2. Deliver `mcp_calls.pin_add` and `mcp_calls.add` from the JSON output
verbatim to `mcp__mem-mesh__pin_add` and `mcp__mem-mesh__add`. They carry
`tags=["inbox", "local-fix"]`, so the target project's existing mem-mesh
hook and later history can identify this as an immediate local repair.
Record the returned ids in the **sender** worktree:
```bash
xm inbox record <item_id> --pin-id <pin id> --memory-id <memory id> --json
```
3. In `target_worktree`, materialize and take the same item. This makes the
target project own its `.xm/inbox/<id>.json` record:
```bash
xm inbox materialize --content '<memory content JSON>' --memory-id <memory id> --pin-id <pin id> --json
xm inbox take <item_id>
```
4. Read the target worktree's instructions, fix only the reported issue, and
run its discovered checks. R