Agent skill

PR Worktree

by juliepy in juliepy/AI-Engineer-from-scrach

Create and tear down the throwaway git worktrees used to test community PRs for waku-agent, without leaking API keys or leaving branches behind.

No licenceAuto-check: notesDevelopment

Install PR Worktree

skills CLI
$ npx skills add juliepy/AI-Engineer-from-scrach --skill pr-worktree -a claude-code

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

GitHub CLI
$ gh skill install juliepy/AI-Engineer-from-scrach pr-worktree --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/juliepy/AI-Engineer-from-scrach.git skills-src && mkdir -p .claude/skills && cp -r skills-src/12-hermes-agent-small/.claude/skills/pr-worktree .claude/skills/pr-worktree && 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
pr-worktree
GitHub stars
430
Token cost
~953 tokens
SKILL.md length
384 words
Files
1
Skills in repo
15
Repo updated
First seen
Licence
None found

At a glance

Create and tear down the throwaway git worktrees used to test community PRs for waku-agent, without leaking API keys or leaving branches behind.

  • Setting up to test a PR
  • SKILL.md covers Setting one up, Running its dashboard, Tearing it down — do this the… and Checklist before you say a PR…
  • Calls git, python and uv
  • ALWAYS after a PR is merged

What it does

PR Worktree is an agent skill from juliepy/AI-Engineer-from-scrach. Create and tear down the throwaway git worktrees used to test community PRs for waku-agent, without leaking API keys or leaving branches behind. Use when setting up to test a PR, and ALWAYS after a PR is merged, closed, or parked.

Its SKILL.md is about 950 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Git worktrees.

When your agent uses it

  • Setting up to test a PR
  • ALWAYS after a PR is merged

Example prompts

  • “/pr-worktree”

Requirements

  • Python 3

What it can do on your machine

Read from SKILL.md and the folder at commit d9e02cb. 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

    Shell commands in SKILL.md call:

    • git
    • python
    • uv
    • gh

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

  • Network

    No URLs in SKILL.md. Its commands use git, uv and gh, which can reach the network depending on how they are called.

    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

PR Worktree loads about 953 tokens when it runs. Until then it costs about 61 tokens; SKILL.md has 384 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~61
When it runs · the whole SKILL.md, loaded when a task matches
~953

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: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:27
    ### Only link `.env` when the test actually needs keys
  • NoteMentions a .env fileSKILL.md:34
    ln -sfn $REPO/.env ~/Developer/waku-prs/pr$N/.env
  • NoteMentions a .env fileSKILL.md:40
    **replaces a symlinked `.env` with a regular file**. The moment anyone saves a
  • NoteMentions a .env fileSKILL.md:42
    every key in the real `.env`: Anthropic, OpenAI, Gemini, Moonshot, xAI, Zhipu,
  • NoteMentions a .env fileSKILL.md:45
    ny test that saved settings, assume the `.env` is a real file and
  • NoteMentions a .env fileSKILL.md:47
    main `.env` rather than losing it.
  • NoteMentions a .env fileSKILL.md:50
    [ -L ~/Developer/waku-prs/pr$N/.env ] && echo "symlink (safe)" || echo "REAL FILE — copy of all keys"
  • NoteMentions a .env fileSKILL.md:53
    a PR introduces belong in the **main** `.env`, not the worktree's.
  • NoteMentions a .env fileSKILL.md:82
    1. rescue any new env vars into the MAIN .env first (see above)
  • NoteMentions a .env fileSKILL.md:90
    find ~/Developer/waku-prs -name ".env" 2>/dev/null

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); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 384 words (~953 tokens).

“Testing a contributor's PR must never disturb the live dashboard on 7777, and it must never leave a second copy of Sean's API keys on disk. Both have happened.”

— opening of SKILL.md by juliepy
name
pr-worktree

Read the full SKILL.md on GitHub

Files

Just SKILL.md in 12-hermes-agent-small/.claude/skills/pr-worktree of juliepy/AI-Engineer-from-scrach.

Open the folder on GitHubat commit d9e02cb

Compare with similar skills

PR Worktree 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.

PR Worktree compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
PR Worktree this skilljuliepy/AI-Engineer-from-scrach430—~953Automated safety check: NotesNone
Finishing a Development Branchobra/superpowers296k5 repos~1.9kAutomated safety check: PassMIT
Migrate Core Code to Submodulestinyhumansai/openhuman41k—~2.6kAutomated safety check: PassGPL-3.0
Finishing A Development Branchfarm-fe/farm5.6k33 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.

    296k 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.

    41k GitHub stars~2.6k tokensUpdated yesterday
    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 33 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 yesterday
    DevelopmentAuto-check passed

More from juliepy/AI-Engineer-from-scrach

All 15 skills in this repo
  • Harness Creator

    juliepy/AI-Engineer-from-scrach

    Build, audit, and improve lightweight harnesses for AI coding agents: AGENTS.md/CLAUDE.md, feature state, verification workflows, scope boundaries, lifecycle handoff, memory persistence, context…

    430 GitHub stars~1.2k tokensUpdated 1 mo ago
    Auto-check passed
  • Review PR

    juliepy/AI-Engineer-from-scrach

    Review an incoming community PR for waku-agent and present it Sean's way — bilingual (English + 中文), three fixed sections: what they did & why it matters, verdict (merge / change / close), and how…

    430 GitHub stars~946 tokensUpdated 1 mo ago
    Auto-check: notes
  • Implement

    juliepy/AI-Engineer-from-scrach

    Read a plan file, execute every task in dependency order with per-task validation, then write an implementation report to reports/<feature-slug-implementation-report.md.

    430 GitHub stars~638 tokensUpdated 1 mo ago
    Auto-check passed
  • Plan

    juliepy/AI-Engineer-from-scrach

    Analyze a ticket or feature description, read the codebase, identify risks, and write a context-rich implementation plan to plans/<feature-slug-plan.md.

    430 GitHub stars~746 tokensUpdated 1 mo ago
    Auto-check passed
  • Validate

    juliepy/AI-Engineer-from-scrach

    Run the full quality gate (ruff + mypy + pytest + tsc + vitest) and report PASS/FAIL for each command.

    430 GitHub stars~500 tokensUpdated 1 mo ago
    Auto-check passed
  • Implement

    juliepy/AI-Engineer-from-scrach

    读取计划文件,按依赖顺序执行每个任务并做任务级验证,最后写实现报告到 reports/<feature-implementation-report.md。

    430 GitHub stars~295 tokensUpdated 1 mo ago
    Auto-check passed

Categories

Questions about PR Worktree

What does PR Worktree do?

Create and tear down the throwaway git worktrees used to test community PRs for waku-agent, without leaking API keys or leaving branches behind. PR Worktree is an agent skill from juliepy/AI-Engineer-from-scrach. Create and tear down the throwaway git worktrees used to test community PRs for waku-agent, without leaking API keys or leaving branches behind.

When should I use PR Worktree?

PR Worktree fits situations like: setting up to test a PR; ALWAYS after a PR is merged.

How do I install PR Worktree in Claude Code?

Run `npx skills add juliepy/AI-Engineer-from-scrach --skill pr-worktree -a claude-code`. Or copy the skill folder (12-hermes-agent-small/.claude/skills/pr-worktree in juliepy/AI-Engineer-from-scrach) into .claude/skills/pr-worktree in your project. Claude Code loads it when a task matches its description.

How do I install PR Worktree in Codex?

Run `npx skills add juliepy/AI-Engineer-from-scrach --skill pr-worktree -a codex`. Or copy the skill folder (12-hermes-agent-small/.claude/skills/pr-worktree in juliepy/AI-Engineer-from-scrach) into .agents/skills/pr-worktree in your project. Codex loads it when a task matches its description.

Can I use PR Worktree 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 juliepy/AI-Engineer-from-scrach --skill pr-worktree -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/pr-worktree, .gemini/skills/pr-worktree, .github/skills/pr-worktree and .opencode/skills/pr-worktree in your project.

What does PR Worktree need to run?

Going by SKILL.md and its folder, PR Worktree needs the command-line tools its instructions call (git, python, uv and gh). Our summary lists: Python 3.

Does PR Worktree access the network?

SKILL.md contains no URLs. Its commands use git, uv and gh, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is PR Worktree safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does PR Worktree use?

No licence was found for PR Worktree or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does PR Worktree use?

About 953 tokens (SKILL.md is roughly 3.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to PR Worktree?

Skills that share tags, products or a category with PR Worktree: Finishing a Development Branch (obra/superpowers, 296k stars), Migrate Core Code to Submodules (tinyhumansai/openhuman, 41k 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 PR Worktree?

juliepy (a GitHub user) maintains it in juliepy/AI-Engineer-from-scrach, which has 430 GitHub stars. The repository holds 15 skills in this directory. The repository was last updated on September 6, 2026.

Source: juliepy/AI-Engineer-from-scrach on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.