Finishing a Development Branch
obra/superpowers
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.
Safely rebase or fast-forward the active Pigweed worktree onto its target branch (origin/main), resolve Pigweed dual-build and code conflicts, preserve Gerrit Change-Id footers, and verify local…
$ npx skills add pigweed-project/pigweed --skill freshen -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install pigweed-project/pigweed freshen --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/pigweed-project/pigweed.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/freshen .claude/skills/freshen && rm -rf skills-srcUse ~/.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/
Install the "freshen" agent skill from https://github.com/pigweed-project/pigweed/tree/main/.agents/skills/freshen into .claude/skills/freshen/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "freshen", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/pigweed-project/pigweed/tree/main/.agents/skills/freshenType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add pigweed-project/pigweed --skill freshen -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install pigweed-project/pigweed freshen --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/pigweed-project/pigweed.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/freshen .agents/skills/freshen && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "freshen" agent skill from https://github.com/pigweed-project/pigweed/tree/main/.agents/skills/freshen into .agents/skills/freshen/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "freshen", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add pigweed-project/pigweed --skill freshen -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install pigweed-project/pigweed freshen --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/pigweed-project/pigweed.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/freshen .cursor/skills/freshen && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "freshen" agent skill from https://github.com/pigweed-project/pigweed/tree/main/.agents/skills/freshen into .cursor/skills/freshen/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "freshen", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/pigweed-project/pigweed.git --path .agents/skills/freshen--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add pigweed-project/pigweed --skill freshen -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install pigweed-project/pigweed freshen --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/pigweed-project/pigweed.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/freshen .gemini/skills/freshen && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "freshen" agent skill from https://github.com/pigweed-project/pigweed/tree/main/.agents/skills/freshen into .gemini/skills/freshen/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "freshen", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install pigweed-project/pigweed freshenInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add pigweed-project/pigweed --skill freshen -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/pigweed-project/pigweed.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/freshen .github/skills/freshen && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "freshen" agent skill from https://github.com/pigweed-project/pigweed/tree/main/.agents/skills/freshen into .github/skills/freshen/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "freshen", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add pigweed-project/pigweed --skill freshen -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install pigweed-project/pigweed freshen --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/pigweed-project/pigweed.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/freshen .opencode/skills/freshen && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "freshen" agent skill from https://github.com/pigweed-project/pigweed/tree/main/.agents/skills/freshen into .opencode/skills/freshen/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "freshen", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
freshenSafely rebase or fast-forward the active Pigweed worktree onto its target branch (origin/main), resolve Pigweed dual-build and code conflicts, preserve Gerrit Change-Id footers, and verify local…
Freshen is an agent skill from pigweed-project/pigweed. Safely rebase or fast-forward the active Pigweed worktree onto its target branch (origin/main), resolve Pigweed dual-build and code conflicts, preserve Gerrit Change-Id footers, and verify local build/format health.
Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `TEST.md`).
It sits in Development, covering Git worktrees and Git workflow. It works with Git. The repository describes itself as: Modern software development for embedded systems. The licence is Apache-2.0.
4 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 6f775b5. It shows what the files ask for, not the result of running them.
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.
Shell commands in SKILL.md call:
gitghFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use git 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.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Freshen loads about 1.7k tokens when it runs. Until then it costs about 56 tokens; SKILL.md has 814 words of instructions outside code blocks.
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.
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); files beside SKILL.md are not scanned.
The full file from pigweed-project/pigweed at commit 6f775b5, republished under its Apache-2.0 licence (© pigweed-project). 814 words, ~1,713 tokens.
.claude/skills/freshen/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub./freshen)/freshen brings the current Pigweed worktree and branch up to date with its
upstream target branch (defaulting to origin/main) without losing warm Bazel
caches, clobbering Gerrit Change-Id: footers, or silently breaking dual-build
(BUILD.bazel / BUILD.gn / CMakeLists.txt) parity.
Use /freshen standalone whenever a worktree or CL is behind origin/main, or
invoke it as the first stage of /crank.
PRE_FRESHEN_SHA=$(git rev-parse HEAD) and log it. If an irreconcilable
conflict occurs, abort (git rebase --abort) and verify HEAD matches
PRE_FRESHEN_SHA.Change-Id: footers: Every rebased or amended commit MUST
retain its exact original Change-Id: I... line so Gerrit links new
patchsets to the existing Change List (CL).origin/main if
the CL targets a feature or release branch (e.g., sandbox/*). Query
./gh pr view --json branch first when a CL exists.git worktree directories just to rebase—doing so invalidates
the local Bazel output_base.Run ./gh sense (or inspect its output if already called by /crank) and record
a rollback anchor before any mutating Git command:
PRE_FRESHEN_SHA=$(git rev-parse HEAD)
echo "PRE_FRESHEN_SHA=${PRE_FRESHEN_SHA}"
./gh sense./gh sense computes an in-memory 3-way merge check (git merge-tree --write-tree HEAD origin/main)
and outputs a Rebase: verdict:
REBASE_SKIP_KEEP_CQ: The branch merges cleanly with origin/main in
memory, has zero unresolved comments/drafts, and already has active/passing
CQ+1 tryjobs. Skip rebasing unless the user explicitly requested a
standalone /freshen—uploading a trivial rebased patchset would reset active
CQ tryjobs for zero benefit!REBASE_CONFLICT or REBASE_RECOMMENDED: Proceed to Step 2 (git fetch originorigin/<target_branch>).Choose the appropriate mode based on local state:
| Local State | Mode | Exact Action |
|---|---|---|
Clean & Merged / Synced (ahead == 0 or CL state == "MERGED", clean tree) | Fast-Forward / Next | If preparing the checkout for a specific new bug or CL, run ./gh sense --prepare [<target>]. If simply fast-forwarding onto origin/main, run git fetch origin && git merge --ff-only origin/main (or ./gh wt next if using ./gh wt). |
Dirty Working Tree (git status --porcelain non-empty) | Autostash + Rebase | Stash tracked and untracked changes before rebasing: git stash push -u -m "freshen-autostash-${PRE_FRESHEN_SHA}", run git fetch origin && git rebase <UPSTREAM>, then git stash pop and resolve any stash overlap. |
Unmerged Local Commit(s) / Active CL (ahead > 0, CL state == "NEW" or unuploaded) | Target-Aware Rebase | Run git fetch origin && git rebase <UPSTREAM>. |
Already Mid-Rebase / Mid-Merge (.git/rebase-merge or MERGE_HEAD exists) | Conflict Recovery | Inspect conflicted files (git diff --name-only --diff-filter=U) and proceed directly to Step 3. |
If git rebase <UPSTREAM> stops with conflicts, inspect every conflicted file
(git diff --name-only --diff-filter=U) and resolve using Pigweed domain rules:
BUILD.bazel, BUILD.gn, CMakeLists.txt):--ours or --theirs when both upstream and the
local commit added targets, srcs, hdrs, or deps.srcs, hdrs, deps, public)
sorted alphabetically, and ensure any new source/header added in
BUILD.bazel is identically reflected in BUILD.gn (and CMakeLists.txt
if present in that module).MODULE.bazel / MODULE.bazel.lock / CIPD Tool Rolls:origin/main) version bumps and pin updates, then re-apply
only the specific dependency additions introduced by the local commit.git log -n 5 -p <UPSTREAM> -- <conflicted_file>pw::Result
signatures, pw_async2 dispatcher changes, renamed headers) while
honoring Pigweed style (C++17 compatibility, no dynamic allocation in core
modules, #pragma once).Change-Id: Preservation:git add <files>) and run:GIT_EDITOR=true git rebase --continuegit log -1 --format=%B HEAD that the original Change-Id:
footer is intact.If upstream deleted the target module or replaced the subsystem architecture such that a mechanical/semantic rebase would require a ground-up redesign:
git rebase --abort.git rev-parse HEAD equals PRE_FRESHEN_SHA.git log -1 <UPSTREAM> -- <path>) that
superseded or conflicted with the change so /crank or the user can decide
whether to abandon or re-architect.Whenever commits were rebased (ahead > 0 after rebase):
./pw format (or ./pw format --fix). If formatting modified any files
in a single-commit CL, fold them into HEAD without touching the commit
message:git add -u && git commit --amend --no-editgit diff --name-only <UPSTREAM>...HEAD
and run hermetic Bazel tests:bazelisk test --noshow_progress --noshow_loading_progress //<module>/...HEAD SHA and number of upstream commits integrated../pw format and bazelisk test results)./crank, which handles pushing in its CI loop).© pigweed-project, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 1 other file in .agents/skills/freshen of pigweed-project/pigweed.
Open the folder on GitHubat commit 6f775b5
Freshen 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Freshen this skillpigweed-project/pigweed | 548 | — | ~1.7k | Automated safety check: Pass | Apache-2.0 | |
| Finishing a Development Branchobra/superpowers | 297k | 5 repos | ~1.9k | Automated safety check: Pass | MIT | |
| Git Worktree Cleanuplobehub/lobehub | 83k | — | ~2.8k | Automated safety check: Pass | Custom licence | |
| Ccmanager Configkbwo/ccmanager | 1.3k | — | ~1.5k | Automated safety check: Pass | MIT | |
| Git Worktree Managermicrosoft/WindowsAppSDK | 4.7k | — | ~2k | Automated safety check: Pass | MIT | |
| Git Worktree IsolationjnMetaCode/superpowers-zh | 8.3k | 1 repos | ~982 | Automated safety check: Pass | MIT |
obra/superpowers
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.
lobehub/lobehub
Audits stale Git worktrees and branches with a bundled script, classifies each one, and deletes only after you approve the exact candidates.
kbwo/ccmanager
Set up, review, or repair a CCManager config — .ccmanager.json at a git repository root, or the global ~/.config/ccmanager/config.json.
microsoft/WindowsAppSDK
Creates and manages Git worktrees with PowerShell scripts so separate issues and Copilot sessions each get an isolated branch, build and test environment.
jnMetaCode/superpowers-zh
Sets up an isolated workspace before feature work or plan execution, preferring native worktree tools and falling back to git worktree, with instructions in Chinese.
tisfeng/Easydict
起草、创建或汇报 Angular-style 本地 Git 提交。用于明确的提交交付;分支集成使用 worktree-rebase-merge,不 push。
pigweed-project/pigweed
Pigweed oncall rotation runbooks and maintenance workflows (such as rolling CIPD client tools for b/315378787).
pigweed-project/pigweed
Autonomous "take the next step" workflow orchestrator for Pigweed.
pigweed-project/pigweed
A skill your agent uses for ALL documentation-related workflows: rst style guide, changelog updates, C/C++ API reference (Doxygen)
pigweed-project/pigweed
Interactively "taste the CLI" and "kick the tires" on any CLI tool or subcommand (/manual-cli-test, /agent-cli-kick-tires).
pigweed-project/pigweed
Address Gerrit review comments and private author drafts on a Pigweed CL with calibrated engineering judgment—implementing valid fixes, answering questions, or pushing back respectfully with…
pigweed-project/pigweed
High-signal, embedded-aware Pigweed code review skill with strict comment calibration.
Works with
Categories
Safely rebase or fast-forward the active Pigweed worktree onto its target branch (origin/main), resolve Pigweed dual-build and code conflicts, preserve Gerrit Change-Id footers, and verify local…. Freshen is an agent skill from pigweed-project/pigweed. Safely rebase or fast-forward the active Pigweed worktree onto its target branch (origin/main), resolve Pigweed dual-build and code conflicts, preserve Gerrit Change-Id footers, and verify local build/format health.
Freshen fits situations like: tasks that involve Git worktrees; tasks that involve Git workflow.
Run `npx skills add pigweed-project/pigweed --skill freshen -a claude-code`. Or copy the skill folder (.agents/skills/freshen in pigweed-project/pigweed) into .claude/skills/freshen in your project. Claude Code loads it when a task matches its description.
Run `npx skills add pigweed-project/pigweed --skill freshen -a codex`. Or copy the skill folder (.agents/skills/freshen in pigweed-project/pigweed) into .agents/skills/freshen in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add pigweed-project/pigweed --skill freshen -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/freshen, .gemini/skills/freshen, .github/skills/freshen and .opencode/skills/freshen in your project.
Going by SKILL.md and its folder, Freshen needs the command-line tools its instructions call (git and gh). Our summary lists: Python 3.
SKILL.md contains no URLs. Its commands use git and gh, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
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. Review the folder before installing.
Freshen is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.7k tokens (SKILL.md is roughly 6.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Freshen: Finishing a Development Branch (obra/superpowers, 297k stars), Git Worktree Cleanup (lobehub/lobehub, 83k stars), Ccmanager Config (kbwo/ccmanager, 1.3k stars) and Git Worktree Manager (microsoft/WindowsAppSDK, 4.7k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
pigweed-project (a GitHub organization) maintains it in pigweed-project/pigweed, which has 548 GitHub stars. The repository holds 10 skills in this directory. The repository was last updated on October 11, 2026.
Source: pigweed-project/pigweed on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.