Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/vikisingh23/neuraforge-ainpx agentmods add skills/vikisingh23/neuraforge-ai/git-worktreesWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/vikisingh23/neuraforge-ai/git-worktrees)<a href="https://agentmods.dev/skills/vikisingh23/neuraforge-ai/git-worktrees"><img src="https://agentmods.dev/badge/skills/vikisingh23/neuraforge-ai/git-worktrees/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/vikisingh23/neuraforge-ai/git-worktrees"><img src="https://agentmods.dev/badge/skills/vikisingh23/neuraforge-ai/git-worktrees.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.00446 |
| Opus 5.5 | $0.00000 | $0.00178 |
| Sonnet 5.5 | $0.00000 | $0.00089 |
| Haiku 4.5 | $0.00000 | $0.00045 |
Grade A, and why
git-worktrees scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
Git Worktrees — Isolated Feature Development
When This Activates
Before starting any feature implementation (after architecture approval), create an isolated worktree so the main branch stays clean.
Workflow
# 1. Create worktree on a new branch
git worktree add ../feature-${feature_name} -b feature/${feature_name}
# 2. Move into it
cd ../feature-${feature_name}
# 3. Install dependencies (verify clean baseline)
npm install # or dotnet restore, etc.
# 4. Run existing tests (must pass before any changes)
npm test # or dotnet test
# 5. Develop in isolation — main branch untouched
# ... all changes happen here ...
# 6. When done — merge or create PR
git push -u origin feature/${feature_name}
# Create MR/PR from this branch
# 7. Clean up worktree
cd ..
git worktree remove feature-${feature_name}
Rules
- Never develop on main/master — always create a worktree
- Verify clean baseline — tests must pass BEFORE you write any code
- One feature per worktree — don't mix concerns
- Clean up after merge — remove worktree once PR is merged
When to Skip
- Single-file hotfix (< 10 lines)
- Documentation-only changes
- Config changes that don't affect code
For Agents
When forge, react-forge, or fullstack-orchestrator starts implementation:
# Check if we're on main
CURRENT=$(git branch --show-current)
if [ "$CURRENT" = "main" ] || [ "$CURRENT" = "master" ]; then
git worktree add "../wt-${FEATURE}" -b "feature/${FEATURE}"
cd "../wt-${FEATURE}"
echo "Working in isolated worktree: $(pwd)"
fi
After completion:
git add -A
git commit -m "feat: ${FEATURE_DESCRIPTION}"
git push -u origin "feature/${FEATURE}"
# Return to original directory
cd -
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 69 lines · 0 tokens per session scan A f0f34c48b73c
git-worktrees is a skill published in the GitHub repository vikisingh23/neuraforge-ai (4 stars, last pushed 16d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 446 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
git-worktrees compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| git-worktreesvikisingh23/neuraforge-ai | Skill | 4 | 16d ago | Apache-2.0 | A | 0 | Claude Code |
| address-reviewfpindej/netrock | Skill | 235 | 4d ago | MIT | A | 14 | Claude Code |
| releaseAterDev/Perigon.CLI | Skill | 54 | 3d ago | Apache-2.0 | A | 34 | Claude Code, Codex |
| git-workflowmodelcontextprotocol/csharp-sdk | Skill | 4.6k | yesterday | none | A | 19 | Claude Code, Codex |
| cratis-commits-and-pull-requestsCratis/AI | Skill | 4 | yesterday | MIT | A | 46 | Claude Code, Codex |
| cratis-orchestration-merge-gatesCratis/AI | Skill | 4 | yesterday | MIT | A | 46 | Claude Code, Codex |
| maintain-discatsharpAiko-IT-Systems/DisCatSharp | Skill | 140 | yesterday | none | A | 69 | Codex |