Agent skill

Worktree Provider Guard

by protect-my-hair in protect-my-hair/nucleus-marketplace

写操作前检查 target repo worktree、dirty baseline、session binding 与 provider health evidence。

MITAuto-check passedDevelopment

Install Worktree Provider Guard

skills CLI
$ npx skills add protect-my-hair/nucleus-marketplace --skill worktree-provider-guard -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install protect-my-hair/nucleus-marketplace worktree-provider-guard --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/protect-my-hair/nucleus-marketplace.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/nucleus/skills/worktree-provider-guard .claude/skills/worktree-provider-guard && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
worktree-provider-guard
GitHub stars
164
Token cost
~239 tokens
SKILL.md length
51 words
Files
9 (incl. scripts, references, assets)
Skills in repo
18
Repo updated
First seen
Licence
MIT

At a glance

写操作前检查 target repo worktree、dirty baseline、session binding 与 provider health evidence。

  • Tasks that involve Git worktrees
  • Runs Python scripts from its folder; calls python3

What it does

Worktree Provider Guard is an agent skill from protect-my-hair/nucleus-marketplace. 写操作前检查 target repo worktree、dirty baseline、session binding 与 provider health evidence。

Its SKILL.md is about 240 tokens, which your agent loads only when the skill is triggered. The skill folder holds 12 other files, including scripts, reference files and assets (for example `agents/openai.yaml`, `assets/nucleus-provider-health-report.schema.json` and `assets/nucleus-worktree-provider-guard-report.schema.json`).

It sits in Development, covering Git worktrees. The repository describes itself as: Nucleus — Claude Code / Codex 工作流插件,确保 AI 编码产出结构可信、边界可审计、过程可追溯. The licence is MIT.

When your agent uses it

  • Tasks that involve Git worktrees

Example prompts

  • “/worktree-provider-guard”

Requirements

  • Python 3

What it can do on your machine

Read from SKILL.md and the folder at commit 3c82085. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Worktree Provider Guard loads about 239 tokens when it runs, and up to ~553 if it reads all its reference files. Until then it costs about 28 tokens; SKILL.md has 51 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~28
When it runs · the whole SKILL.md, loaded when a task matches
~239
With references · SKILL.md plus every file in references/, read only if the agent opens them
~553

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from protect-my-hair/nucleus-marketplace at commit 3c82085, republished under its MIT licence (© protect-my-hair). 51 words, ~239 tokens.

Download SKILL.mdSave it as .claude/skills/worktree-provider-guard/SKILL.md (or your agent's skills folder). This skill also uses 8 other files; get the full folder from GitHub.
name
worktree-provider-guard
description
写操作前检查 target repo worktree、dirty baseline、session binding 与 provider health evidence。

Worktree Provider Guard

在任何会写 docs/features/**、tests/**、源码或混合路径的 Nucleus workflow 前运行。

该 Skill 只读检查 git/worktree/status/provider/session evidence,只把 guard report、provider health report 和 result package 写入 .nucleus/runs/<workflowRunId>/**。它不创建 worktree、不切分支、不 stash/reset/clean、不修改 provider 配置。

人审前子代理预审

到达 guard-human-review 前,必须按 workflow 的 subagentPreReview 调度独立 reviewer 子代理;未取得“材料可提交人工审查”预审结论时,不得请求人工评审通过。

最小命令:

bash
python3 skills/worktree-provider-guard/scripts/worktree_provider_guard.py check \
  --repo-root <target-repo> \
  --context <context-json> \
  --write-intent auto

Provider health 只接受同 run 的结构化 evidence:session-binding-report、codex-hook-json、claude-hook-json、pms-connector、adapter-health。approved-write 不把 doctor.py --host all stdout 当 provider health。

© protect-my-hair, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 8 other files (scripts, references, assets) in plugins/nucleus/skills/worktree-provider-guard of protect-my-hair/nucleus-marketplace.

  • SKILL.md
  • agents/openai.yaml
  • assets/nucleus-provider-health-report.schema.json
  • assets/nucleus-worktree-provider-guard-report.schema.json
  • assets/worktree-provider-guard-report-template.md
  • references/blocker-matrix.md
  • references/boundary.md
  • references/provider-health-evidence.md
  • scripts/worktree_provider_guard.py

Open the folder on GitHubat commit 3c82085

Compare with similar skills

Worktree Provider Guard next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Worktree Provider Guard compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Worktree Provider Guard this skillprotect-my-hair/nucleus-marketplace164—~239Automated safety check: PassMIT
Finishing a Development Branchobra/superpowers297k5 repos~1.9kAutomated safety check: PassMIT
Migrate Core Code to Submodulestinyhumansai/openhuman42k—~2.6kAutomated safety check: PassGPL-3.0
Finishing A Development Branchfarm-fe/farm5.6k35 repos~1.8kAutomated safety check: PassMIT
Git Worktree Cleanuplobehub/lobehub83k—~2.8kAutomated safety check: PassCustom licence
Keep Codex Fastvibeforge1111/keep-codex-fast1.6k—~3.1kAutomated safety check: PassMIT

Similar skills

  • Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.

    297k GitHub starsUsed in 5 repos~1.9k tokens
    DevelopmentAuto-check passed
  • Migrate Core Code to Submodules

    tinyhumansai/openhuman

    Plans and carries out moving non-host-specific code and its tests from the OpenHuman core into vendored tiny submodule libraries, then releases the submodule and re-pins the host.

    42k GitHub stars~2.6k tokensUpdated today
    DevelopmentAuto-check passed
  • A skill your agent uses when implementation is complete, all tests pass, and you need to decide how to integrate the work - guides completion of development work by presenting structured options for…

    5.6k GitHub starsUsed in 35 repos~1.8k tokens
    DevelopmentAuto-check passed
  • Git Worktree Cleanup

    lobehub/lobehub

    Audits stale Git worktrees and branches with a bundled script, classifies each one, and deletes only after you approve the exact candidates.

    83k GitHub stars~2.8k tokensUpdated today
    DevelopmentAuto-check passed
  • Keep Codex Fast

    vibeforge1111/keep-codex-fast

    A skill your agent uses when Codex feels slow or bloated, when local sessions/logs/worktrees/config have grown over time, or when a user wants safe maintenance for Codex Desktop/CLI state.

    1.6k GitHub stars~3.1k tokensUpdated 5 mo ago
    DevelopmentAuto-check passed
  • Pre-Release PR Triage

    jamiepine/voicebox

    Sorts a backlog of open pull requests into must-merge, candidate, superseded and deferred, writes a triage doc and works the merge loop before a release.

    57k GitHub stars~3.1k tokensUpdated 4 days ago
    DevelopmentAuto-check passed

More from protect-my-hair/nucleus-marketplace

All 18 skills in this repo
  • Nucleus Delivery Evidence Closure

    protect-my-hair/nucleus-marketplace

    Collects prior Nucleus task evidence into a candidate-only delivery closure package and PR/MR draft text, blocking if any feature's design, review or verification evidence is missing.

    164 GitHub stars~1k tokensUpdated 2 mo ago
    Auto-check passed
  • Nucleus Context Validator

    protect-my-hair/nucleus-marketplace

    Validates the context file for a Nucleus V2 workflow run, discovers standalone context from explicit input, and writes a blocked result when required context is missing.

    164 GitHub stars~576 tokensUpdated 2 mo ago
    Auto-check passed
  • Nucleus Session Binding Report

    protect-my-hair/nucleus-marketplace

    Collects, freezes and validates a Nucleus V2 session binding report that records the native Claude Code or Codex session ID, transcript path and hash.

    164 GitHub stars~477 tokensUpdated 2 mo ago
    Auto-check passed
  • Nucleus Result Package Builder

    protect-my-hair/nucleus-marketplace

    Builds the result.json file for a Nucleus V2 workflow run from its context, gates, blockers and step status, and exits non-zero when the run is blocked.

    164 GitHub stars~414 tokensUpdated 2 mo ago
    Auto-check passed
  • Defect Intake and RCA Candidates

    protect-my-hair/nucleus-marketplace

    Checks whether a defect report has enough context to be accepted, then drafts candidate-only root-cause evidence for human review without confirming causes or changing code.

    164 GitHub stars~745 tokensUpdated 2 mo ago
    Auto-check passed
  • Nucleus Delivery Evidence Finalizer

    protect-my-hair/nucleus-marketplace

    Combines the evidence from completed Nucleus workflow steps into a final evidence report and result package, without scheduling steps, updating trackers or opening pull requests.

    164 GitHub stars~454 tokensUpdated 2 mo ago
    Auto-check passed

Categories

Questions about Worktree Provider Guard

What does Worktree Provider Guard do?

写操作前检查 target repo worktree、dirty baseline、session binding 与 provider health evidence。. Worktree Provider Guard is an agent skill from protect-my-hair/nucleus-marketplace.

When should I use Worktree Provider Guard?

Worktree Provider Guard fits situations like: tasks that involve Git worktrees.

How do I install Worktree Provider Guard in Claude Code?

Run `npx skills add protect-my-hair/nucleus-marketplace --skill worktree-provider-guard -a claude-code`. Or copy the skill folder (plugins/nucleus/skills/worktree-provider-guard in protect-my-hair/nucleus-marketplace) into .claude/skills/worktree-provider-guard in your project. Claude Code loads it when a task matches its description.

How do I install Worktree Provider Guard in Codex?

Run `npx skills add protect-my-hair/nucleus-marketplace --skill worktree-provider-guard -a codex`. Or copy the skill folder (plugins/nucleus/skills/worktree-provider-guard in protect-my-hair/nucleus-marketplace) into .agents/skills/worktree-provider-guard in your project. Codex loads it when a task matches its description.

Can I use Worktree Provider Guard in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add protect-my-hair/nucleus-marketplace --skill worktree-provider-guard -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/worktree-provider-guard, .gemini/skills/worktree-provider-guard, .github/skills/worktree-provider-guard and .opencode/skills/worktree-provider-guard in your project.

What does Worktree Provider Guard need to run?

Going by SKILL.md and its folder, Worktree Provider Guard needs Python for the scripts in its folder and the command-line tools its instructions call (python3). Our summary lists: Python 3.

Does Worktree Provider Guard access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Worktree Provider Guard safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Worktree Provider Guard use?

Worktree Provider Guard is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Worktree Provider Guard use?

About 239 tokens (SKILL.md is roughly 956 characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 314 tokens, read only when the agent opens those files.

What are the alternatives to Worktree Provider Guard?

Skills that share tags, products or a category with Worktree Provider Guard: Finishing a Development Branch (obra/superpowers, 297k stars), Migrate Core Code to Submodules (tinyhumansai/openhuman, 42k stars), Finishing A Development Branch (farm-fe/farm, 5.6k stars) and Git Worktree Cleanup (lobehub/lobehub, 83k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Worktree Provider Guard?

protect-my-hair (a GitHub user) maintains it in protect-my-hair/nucleus-marketplace, which has 164 GitHub stars. The repository holds 18 skills in this directory. The repository was last updated on July 23, 2026.

Source: protect-my-hair/nucleus-marketplace on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.