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.
npx agentmods add rules/sordi-ai/skill-everything/shell-scriptinggit clone --depth 1 https://github.com/sordi-ai/skill-everythingWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00026 | $0.00849 |
| Opus 5 | $0.00013 | $0.00425 |
| Sonnet 5 | $0.00005 | $0.00170 |
| Haiku 4.5 | $0.00003 | $0.00085 |
Grade A, and why
shell-scripting 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 2d 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.
How it starts
The opening of the file, as written. The whole thing — 63 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Sub-Skill: Bash / POSIX Scripting
Purpose: Prevent silent failures, portability bugs, and security holes in shell scripts by enforcing safe defaults, clean structure, and ShellCheck compliance.
Rules
Safety & Error Handling
-
Fail-fast header. Always begin every shell script with
set -euo pipefailso that unset variables, failed commands, and pipeline errors abort execution immediately. Reference: ERR-2026-021 -
Trap cleanup. Always register a
trap 'cleanup' EXITfunction to remove temp files and release locks even when the script exits early due to an error. -
Meaningful exit codes. Always exit with a non-zero code that reflects the failure category (e.g.,
exit 1for usage errors,exit 2for dependency missing); never exit with0on failure. -
No eval. Never use
evalto construct or execute dynamic commands; prefer arrays or explicit argument lists to avoid injection vulnerabilities.
Variables & Quoting
-
Quote every variable. Always double-quote variable expansions (
"$var","$@") to prevent word-splitting and glob expansion on values containing spaces or special characters. -
Declare locals. Always declare variables inside functions with
localto prevent accidental global namespace pollution. -
Readonly constants. Use
readonlyfor values that must not change after assignment (e.g.,readonly SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)").
Portability & Compatibility
-
POSIX shebang. Always start scripts with
#!/usr/bin/env bash(or#!/bin/shfor strict POSIX); never rely on/bin/bashbeing present at a fixed path on all target systems. -
Portable syntax. Prefer POSIX-compatible constructs (
[ ]over[[ ]],$(...)over backticks) when the script must run under/bin/sh; use Bash-specific features only when the shebang explicitly targets Bash. -
ShellCheck clean. Ensure every script passes
shellcheck -S warningwith zero warnings before committing; treat ShellCheck output as mandatory, not advisory.
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.
- 2d ago First seen · 63 lines · 26 tokens per session scan A 7af9fe6c7b53
shell-scripting is a cursor rule published in the GitHub repository sordi-ai/skill-everything (19 stars, last pushed 3mo ago), licensed MIT. It adds 26 tokens to every session and 849 once invoked, about $0.0001 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-08-30.
Other cursor rules, from other repositories
00-stack
Stack, runtimes, and MCP servers for this repository.
20-testing
How to run tests and MCP smoke checks.
30-security
Secrets, gitleaks, age encryption, telemetry redaction.
obsidian-memory
Markdown vault memory protocol (vkm-kit).
10-style
Style conventions and contribution hygiene.
retention-predictor
Skill — retention-predictor. Predicts retention potential via usage frequency, habit formation mechanics, and churn risk factors.