openrouter-mcp: Skill for Codex

.agents/skills/git-worktree/SKILL.md

git-worktree is a skill for Codex from physics91/openrouter-mcp. It costs 103 tokens per session (703 once invoked), scanned A, original, MIT.

A set of Git procedures for using multiple branches from one repository through linked worktrees. A worktree is a separate working directory connected to the same Git repository.

In plain words
What is it for?
Use it to create, list, lock, remove, prune, or repair worktrees, and to develop or review branches in separate directories.
Why use it?
It lets you handle parallel work, reviews, or urgent fixes while keeping current changes in place and avoiding extra repository clones.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: installed under .agents/ (shared by several agents).

This is physics91/openrouter-mcp's own configuration. It tells Codex how to work on openrouter-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything openrouter-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to physics91/openrouter-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/physics91/openrouter-mcp/main/.agents/skills/git-worktree/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/physics91/openrouter-mcp

Made for: Codex.

Wrote 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.

agentmods badge for git-worktree

README.md
[![agentmods](https://agentmods.dev/badge/skills/physics91/openrouter-mcp/git-worktree/github.svg)](https://agentmods.dev/skills/physics91/openrouter-mcp/git-worktree)
Your own site
<a href="https://agentmods.dev/skills/physics91/openrouter-mcp/git-worktree"><img src="https://agentmods.dev/badge/skills/physics91/openrouter-mcp/git-worktree/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.

agentmods 80×15 button for git-worktree

Your own site · 80×15
<a href="https://agentmods.dev/skills/physics91/openrouter-mcp/git-worktree"><img src="https://agentmods.dev/badge/skills/physics91/openrouter-mcp/git-worktree.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 103 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 703 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00103 $0.00703
Opus 5.5 $0.00041 $0.00281
Sonnet 5.5 $0.00021 $0.00141
Haiku 4.5 $0.00010 $0.00070

Measured 2mo ago against content hash 59446af9bf6d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

git-worktree 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.

.agents/skills/git-worktree/SKILL.md · 59 lines

How it starts

The opening of the file, as written. The whole thing — 59 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Git Worktree

Overview

Use this skill to operate multiple branches from one repository safely. Default to safe workflows first, then use force/override options only for recovery.

Additional Task Policy

If new tasks are added while current changes are still active, default to creating a new linked worktree instead of switching the current working directory. Use branch switching in the same directory only when the user explicitly requests single-worktree mode.

Workflow Decision

  1. Need a new parallel branch workspace: use git worktree add with -b.
  2. Need to work on an existing branch in another directory: use git worktree add <path> <branch>.
  3. Need temporary checkout not tied to a branch (review/test): use detached mode.
  4. Need to clean up or recover broken metadata: use remove, prune, repair, lock runbook.

For exact commands, read command-patterns.md.

Safety Rules

  • Treat one active branch = one active worktree as the default rule.
  • Do not use --ignore-other-worktrees unless there is a clear recovery need.
  • Do not delete worktree directories manually if git worktree remove is possible.
  • When the worktree path is on removable/network storage, lock it.
  • For scripts, never assume .git layout; resolve paths via git rev-parse.

Standard Runbook

  1. Create: add worktree with explicit branch/start-point.
  2. Verify: check git worktree list --porcelain and branch linkage.
  3. Work: commit/push from the linked directory.
  4. Close: remove linked worktree with git worktree remove.
  5. Maintenance: prune stale metadata and review prune policy.

Recovery Runbook

  1. Branch already checked out elsewhere:
    • Find owner worktree.
    • Prefer switching to that directory or creating a new branch.
    • Use override flags only if policy allows it.
  2. Worktree path moved/deleted manually:
    • Run git worktree repair and git worktree prune.
  3. Locked/prunable confusion:
    • Inspect lock status and reason, then unlock intentionally.

Read the full file on GitHub · 59 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

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.

  1. 2mo ago First seen · 59 lines · 103 tokens per session scan A 59446af9bf6d

Subscribe to this mod's changes

git-worktree is a skill published in the GitHub repository physics91/openrouter-mcp (10 stars, last pushed 1mo ago), licensed MIT. It adds 103 tokens to every session and 703 once invoked, about $0.0004 per session on Opus 5.5. 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-08-31.

Related

git-worktree compared with skills from other repositories

git-worktree next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
git-worktreephysics91/openrouter-mcpSkill101mo agoMITA103Codex
merge-batchdiegosouzapw/OmniRouteSkill83k5d agoMITA46Claude Code
prowler-commitprowler-cloud/prowlerSkill15kyesterdayApache-2.0A44Claude Code, Codex
gh-auth-isolationgithub/gh-awSkill5.6kyesterdayMITA20Claude Code, Codex
github-skillzeenie-ai/OpenCompanySkill1.1kyesterdayMITA51Claude Code
comet-githubrpamis/cometSkill3.3kyesterdayMITA72Claude Code, Codex
release-helperSahir619/fable-methodSkill2.3k1mo agoMITA43Claude Code