clean-shell

clean-shell is a skill for Claude Code from uwuclxdy/agenticat. It costs 30 tokens per session (658 once invoked), scanned B, original, MIT.

A set of rules for writing and testing Bash and POSIX shell scripts. Bash and POSIX shell are command-line scripting languages commonly used for automation.

In plain words
What is it for?
Use it for deployment scripts, system changes, remote commands, cleanup and rollback logic, ShellCheck setup, and Bats tests. Bats is a testing tool for shell scripts.
Why use it?
It reduces mistakes such as unquoted input, unsafe changes, incomplete cleanup, and scripts that behave differently after being run more than once.

Skill for Claude Code

Written for Claude Code: when-to-use in frontmatter.

Good fit Use it for deployment scripts, system changes, remote commands, cleanup and rollback logic, ShellCheck setup, and Bats tests. Bats is a testing tool for shell scripts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/uwuclxdy/agenticat/clean-shell
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 uwuclxdy/agenticat --skill clean-shell
Clone the repo
git clone --depth 1 https://github.com/uwuclxdy/agenticat

Made for: Claude Code.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/uwuclxdy/agenticat/clean-shell"><img src="https://agentmods.dev/badge/skills/uwuclxdy/agenticat/clean-shell.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 658 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00030 $0.00658
Opus 5.5 $0.00012 $0.00263
Sonnet 5.5 $0.00006 $0.00132
Haiku 4.5 $0.00003 $0.00066

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

Security

Grade B, and why

clean-shell scanned grade B with 1 finding 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 13d 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

| Scripts that run as root or mutate live systems: deploy/apply, firewall/sshd/sudoers edits, systemd oneshot+timer units, ssh remote-exec, rollback, cleanup traps, idempotency, parsing input a foreign process controls (
skills/clean-shell/SKILL.md · 31 lines

How it starts

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

Clean Shell

Shell-specific conventions for writing, hardening, reviewing, and testing scripts. The core rules below always apply. Load the one reference file matching the task; don't load them all.

Task touches File
Scripts that run as root or mutate live systems: deploy/apply, firewall/sshd/sudoers edits, systemd oneshot+timer units, ssh remote-exec, rollback, cleanup traps, idempotency, parsing input a foreign process controls (/proc, argv, filenames) references/defensive.md
.shellcheckrc, # shellcheck disable= directives, severity floors, exit codes, CI gating references/shellcheck.md
Bats tests: .bats files, run, setup/teardown, PATH-stub mocking, parallel jobs references/bats.md

Core Rules

  • Pick set flags by intent and comment the reason next to them: set -euo pipefail for orchestration where any failure aborts; drop -e when steps may fail without aborting; set -u alone for long-running loops. A thin wrapper sets no flags and ends with exec.
  • Quote every expansion ("$var", "${arr[@]}", "$(cmd)"); -- end-of-options guard before untrusted operands.
  • Validate input at the boundary into a checked value ("${1:?msg}", a case integer guard); no call site re-tests a raw string. Arithmetic executes text it evaluates (a[$(cmd)] runs cmd): $(( )), (( )), let, [[ -eq/-lt/... ]], an indexed-array subscript, a ${s:off:len} offset, and any assignment to a declare -i/local -i variable; anything reaching one gets the integer guard first.
  • Text another process controls is untrusted input even when a local file carries it (/proc/*/comm, /proc/*/cmdline, filenames); strip every delimiter you later split on.
  • Every mktemp gets an EXIT trap right after creation. Traps are best-effort: SIGKILL, OOM-kill, and power loss skip them.
  • Anything that mutates system state is check-then-act idempotent; add flock where concurrent runs are possible.
  • Never echo a generated secret; set -x tracing and ps//proc/*/cmdline argv leak it too.
  • Every # shellcheck disable= carries a same-line reason comment.
  • Non-trivial scripts get bats tests covering the error paths, not just the happy path.

Read the full file on GitHub · 31 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. 13d ago Changed b882fcf50cad
  2. 27d ago Changed a5dc4c4ac77d
  3. 1mo ago Changed · +1 lines scan A → B 89060cda8cec
  4. 1mo ago First seen · 30 lines · 30 tokens per session scan A e5f363112f68

Subscribe to this mod's changes

clean-shell is a skill published in the GitHub repository uwuclxdy/agenticat (7 stars, last pushed 8d ago), licensed MIT. It adds 30 tokens to every session and 658 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

meta-harness

Run a Meta-Harness-style optimization loop NATIVELY — automatically search over the scaffolding around a FIXED base model (memory, retrieval, context construction, prompt templates, summarization, tool-selection logic) by proposing candidate variants, scoring each on a cheap deterministic eval, and keeping a Pareto…

001TMF/harness-forge · 217 tokens

meta-harness-proteus

Run one iteration of proteus memory-summary evolution. Called by metaharness.py.

001TMF/harness-forge · 24 tokens

gbg

Convert any plan, PRD, feature idea, or brief into a sequenced goal-by-goal execution document with reviewer-gated commits — for everyday feature development, MVPs, migrations, refactors, and hardening alike. Generates a project brief, per-goal scope/tasks/acceptance criteria, an LLM-reviewer prompt (Codex/etc.), a…

cielebak/goal-by-goal · 150 tokens

deploy-docker-compose

Run the Omnigent server as a Docker compose stack (server + Postgres) on any Docker host — your laptop, a VPS, EC2 by hand, or as the base layer of any container-platform deploy. Invoke when the user wants to build the image, bring up the compose stack, debug the stack on a host they already have, or extend the stack…

omnigent-ai/omnigent · 84 tokens

haiku

When writing a haiku for this bot, follow these conventions.

agno-agi/agno · 0 tokens

azure-mgmt-botservice-dotnet

Azure Resource Manager SDK for Bot Service in .NET. Management plane operations for creating and managing Azure Bot resources, channels (Teams, DirectLine, Slack), and connection settings. Triggers: "Bot Service", "BotResource", "Azure Bot", "DirectLine channel", "Teams channel", "bot management .NET", "create bot".

microsoft/skills · 78 tokens