shell-helpers

shell-helpers is a skill for Claude Code from ShivaeDev/pardes. It costs 50 tokens per session (1,002 once invoked), scanned A, original, MIT.

A set of shell commands for routine Git cleanup and synchronization. Git is a tool for tracking code changes; these helpers update a checkout, remove branches whose pull requests merged, and clean up unused worktrees, which are extra working copies of a repository.

In plain words
What is it for?
Use them after merges or parallel agent work to update the main checkout, prune merged local branches, and remove stale worktrees.
Why use it?
They reduce repetitive command-line work while protecting uncommitted changes and worktrees that still contain useful work.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Part of the shell-helpers plugin — 1 skill shipped together

Good fit Use them after merges or parallel agent work to update the main checkout, prune merged local branches, and remove stale worktrees.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/shivaedev/pardes/shell-helpers
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ShivaeDev/pardes --skill shell-helpers
Clone the repo
git clone --depth 1 https://github.com/ShivaeDev/pardes

Made for: Claude Code.

Or install shell-helpers, the plugin that ships this one along with the rest of its 1 skill.

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 shell-helpers

README.md
[![agentmods](https://agentmods.dev/badge/skills/shivaedev/pardes/shell-helpers/github.svg)](https://agentmods.dev/skills/shivaedev/pardes/shell-helpers)
Your own site
<a href="https://agentmods.dev/skills/shivaedev/pardes/shell-helpers"><img src="https://agentmods.dev/badge/skills/shivaedev/pardes/shell-helpers/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 shell-helpers

Your own site · 80×15
<a href="https://agentmods.dev/skills/shivaedev/pardes/shell-helpers"><img src="https://agentmods.dev/badge/skills/shivaedev/pardes/shell-helpers.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,002 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.00050 $0.01002
Opus 5.5 $0.00020 $0.00401
Sonnet 5.5 $0.00010 $0.00200
Haiku 4.5 $0.00005 $0.00100

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

Security

Grade A, and why

shell-helpers 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.

plugins/shell-helpers/skills/shell-helpers/SKILL.md · 64 lines

How it starts

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

shell-helpers

A small set of portable git/shell helpers for the mechanical parts of orchestration. They install as bin/ executables, so each is a bare command on your PATH — call them directly. Every project-specific is an environment variable with a safe default; nothing is hardcoded.

Reach for these instead of hand-typing the equivalent git incantations: they carry the safety contracts (never reset a dirty tree, never reap a worktree with work in it) that make them safe to lean on unattended.

When to use which

  • freshen — after a PR merges, or when an agent worktree has drifted, to bring the current checkout to a clean, current baseline and tidy up. Prefer it over a hand-rolled git fetch && switch && merge when you also want setup re-run and merged branches pruned.
  • prune-merged-branches — to clear out local branches whose PRs already merged.
  • reap-stale-worktrees — after a parallel-worktree wave, to clean up worktrees you no longer need.

freshen

freshen brings the current checkout to a clean, current baseline, then tidies up:

  • Primary checkout: switches to the default branch and fast-forwards it to origin.
  • Linked worktree: fetches with prune, then fast-forwards the worktree's branch to the default branch.
  • Then: runs the configured setup command (SH_SETUP_CMD), prunes merged branches, and — if a managed worktree directory is set — reaps stale worktrees.

Safety contract: freshen NEVER does a destructive reset. If the working tree is dirty, or a worktree cannot fast-forward (it has diverged), it aborts and reports rather than discarding work. So advancing local main after a merge is just:

freshen

If the merge touched the dependency manifest or lockfile, freshen already re-runs SH_SETUP_CMD for you, so regenerated clients and freshly applied migrations stay current — provided that env var points at the repo's setup step.

prune-merged-branches

Deletes local branches whose upstream remote ref is gone (the remote branch was deleted after the PR merged).

Read the full file on GitHub · 64 lines

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 · 64 lines · 50 tokens per session scan A c6160154b192

Subscribe to this mod's changes

shell-helpers is a skill published in the GitHub repository ShivaeDev/pardes (5 stars, last pushed 3mo ago), licensed MIT. It adds 50 tokens to every session and 1,002 once invoked, about $0.0002 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.