bash-scripting-patterns

bash-scripting-patterns is a skill for Claude Code from Nmor/the-claude-council. It costs 114 tokens per session (9,281 once invoked), scanned A, original, no licence file.

A guide to writing safer Bash and shell scripts, including strict error handling, naming, argument parsing, logging, quoting, and cleanup.

In plain words
What is it for?
It is for creating command-line tools, build scripts, deployment scripts, and other Bash automation.
Why use it?
It helps scripts fail visibly and predictably instead of hiding errors, mishandling input, or leaving temporary resources behind.

Skill for Claude Code

Written for Claude Code: paths in frontmatter.

Good fit It is for creating command-line tools, build scripts, deployment scripts, and other Bash automation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nmor/the-claude-council/bash-scripting-patterns
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 Nmor/the-claude-council --skill bash-scripting-patterns
Clone the repo
git clone --depth 1 https://github.com/Nmor/the-claude-council

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 bash-scripting-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/nmor/the-claude-council/bash-scripting-patterns.svg)](https://agentmods.dev/skills/nmor/the-claude-council/bash-scripting-patterns)
Your own site
<a href="https://agentmods.dev/skills/nmor/the-claude-council/bash-scripting-patterns"><img src="https://agentmods.dev/badge/skills/nmor/the-claude-council/bash-scripting-patterns.svg" alt="Measured on agentmods" height="20"></a>
Per session 114 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 9,281 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. ✓ AI security review Fable 5.1 · 7 Sept 2026 📄 Read the review
Origin unknown 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.00114 $0.09281
Opus 5 $0.00057 $0.04640
Sonnet 5 $0.00023 $0.01856
Haiku 4.5 $0.00011 $0.00928

Measured 4d ago against content hash 6efd111fb5bc, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

bash-scripting-patterns 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 4d 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.

skills/bash-scripting-patterns/SKILL.md · 1,363 lines

The source is not reproduced here

A licence we could not identify

The repository carries a LICENSE file, but it is custom or dual enough that GitHub cannot name it and neither can this catalogue. Unknown terms are not permission, so the body is not copied here. Read the licence at the source and decide for yourself.

Read it on GitHub

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. 4d ago First seen · 1,363 lines · 114 tokens per session scan F 6efd111fb5bc

Subscribe to this mod's changes

bash-scripting-patterns is a skill published in the GitHub repository Nmor/the-claude-council (9 stars, last pushed yesterday), with no licence file. It adds 114 tokens to every session and 9,281 once invoked, about $0.0006 per session on Opus 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-09-03.

Related

Other skills, from other repositories

code-quality

Agents should invoke this skill for code reviews, linting/formatting setup, maintainability checks, complexity concerns, warning cleanup, coding standards, or quality gates in Rust, TypeScript, Python, shell, and mixed repos.

waybarrios/opencode-power-pack · 49 tokens

coding-standards

Universal coding standards - naming, formatting, error handling, immutability, SOLID principles.

vibeeval/vibecosystem · 23 tokens

ring:adopting-lib-commons-huma-wrapper

Adopting the lib-commons/v5 shared Huma (OAS 3.1) OpenAPI wrapper + RFC 9457 problem model (commons/net/http/{openapi,problem}) in a Lerian Go service: wire openapi.New/ServeSpec + problem.Install (central >=500 scrub) on BOTH runtime and spec-gen paths, the per-rail problem.MapError flex seam, and rename-only spec…

LerianStudio/ring · 142 tokens

ring:applying-licenses

Applying or switching a repository's license (Apache 2.0, Elastic License v2, or Proprietary): rewrites the LICENSE file, updates Go/TS source headers, sets SPDX identifiers, and validates consistency after user confirmation. Use when asked to set, apply, or switch a license, or when scaffolding a service with no…

LerianStudio/ring · 94 tokens

ring:auditing-dependency-security

Auditing a dependency for supply-chain risk before install (pip/npm/go/cargo): checks typosquatting, maintainer/age risk, vulnerability DBs (OSV, GHSA, Socket), and lockfile hash pinning, then emits a risk score and approve/conditional/escalate/block decision. Use when adding or updating a dependency, reviewing a…

LerianStudio/ring · 102 tokens

php-best-practices

PHP 8.x modern patterns, PSR standards, and SOLID principles. Use when reviewing PHP code, checking type safety, auditing code quality, or ensuring PHP best practices. Triggers on "review PHP", "check PHP code", "audit PHP", or "PHP best practices".

AsyrafHussin/agent-skills · 64 tokens