---
name: hashgraph-online-worktree
description: "Use for non-trivial or parallel work that should happen in a separate git worktree."
license: "Apache-2.0"
metadata:
  decimalai-skill-id: "00464f72-5ac7-43ad-aa19-fa4ac500bfc2"
  decimalai-version-id: "56d39600-6232-4a73-88d5-c8408de6bd41"
  decimalai-version: "1"
  decimalai-body-sha256: "647ffc72d3012368901a8f311d33ad93e3f0bff010be0aa2e88ec3ada31a917a"
  decimalai-name: "hashgraph-online/worktree"
  decimalai-format: "1"
  decimalai-invocation: "model"
  decimalai-category: "coding"
  decimalai-source: "https://app.decimal.ai/s/hashgraph-online-worktree@1/SKILL.md"
---
# Worktree

If `topology=multi-module` (triage announcement or coordinator spec/plan declaration), read `../references/multi-module.md`. Treat each repository as an independent Git and worktree boundary; never run a workspace-wide Git mutation from their common parent.

Before creating worktrees, resolve each registered repository and verify status and baseline. Map paths in the coordinator plan and use the change-set ID in names. A missing repo, unrelated dirty change, or red baseline blocks the change. Detached HEAD is allowed for read-only integration, not implementation. Do not clone or clean automatically.

```bash
git worktree add ../<repo>-<topic> -b <type>/<topic>   # <type>: feat | fix | chore | ...
cd ../<repo>-<topic> && <setup> && <run tests>
```

Baseline must be green in every participating repository. If red, STOP - don't build on broken ground. Done → `ship`.

## Tool scope

Worktrees are separate directories from the main repo. Semantic indexing (code graph, symbol search) covers the original repo, not the worktree. File tools (`read`, `grep`, `glob`) work normally. For short-lived worktrees this is acceptable; for long sessions, note this limitation to the agent at dispatch.
