Defends against OS command injection by using argument arrays instead of shell strings. Covers subprocess.run, execFile, exec.Command patterns and -- separator for flag injection prevention.
The moment you assemble a command as a string and hand it to a shell, every
metacharacter in it becomes live: a semicolon, backtick, $(), or pipe in
user input runs a second command of the attacker's choosing. Quoting and
escaping are a losing arms race against shell parsing rules. The durable fix
is to never involve a shell: pass the program and its arguments as a list so
the operating system executes exactly one binary with exactly those args.
subprocess.run(["convert", src, dst]) in Python, execFile or
spawn with an args array in Node, exec.Command("git", "clone", url)
in Go. The arguments reach the program verbatim, so shell metacharacters
are inert data.shell=True and its equivalents out. subprocess with
shell=True, Node exec, Ruby backticks, and system("string") all
invoke /bin/sh on your string. If you did not type a literal command,
these must not appear in the diff.["sh", "-c", f"convert {name}"]: that reintroduces the shell you just
avoided. Put each value in its own array slot so the program, not a
shell, receives it.--. Insert -- before any
user-controlled path or value so a filename beginning with - is treated
as an operand, not a flag. This stops argument injection, the quieter
cousin where input becomes an unintended option.dig; manipulate images with a binding, not a
convert subprocess. No child process means no command to inject into.shell=True,
exec(), backticks, or sh -c on a built string?; rm -rf / or $(curl evil) land as a literal argument,
doing nothing?-- present before user-controlled operands that could look like
flags?This addresses OS command execution. Injection into SQL, LDAP, XML, or template engines is the same disease in a different interpreter and needs that interpreter's parameterized interface. Where a value genuinely must reach a shell feature like a pipeline, build the pipeline in code with connected process handles rather than a shell string.
What SKILL.md sets; muted values are Claude Code's defaults
Not loaded · from ai-skills-commands
Claude Code won't load this skill
It ships in ai-skills-commands at skills/, but Claude Code only loads skills/<name>/SKILL.md and folders listed under skills in plugin.json. Installing the plugin doesn't add it.
npx claudepluginhub amey-thakur/ai-skills --plugin ai-skills-commands1,000 skills in this plugin
/ab-test-designDesign product experiments with real hypotheses, honest sample-size math, guardrails, and peeking discipline. Use when validating a change by experiment or reviewing a test before believing its result./accessibility-reviewAudit a UI for real accessibility, keyboard-first, with concrete failures and fixes rather than checkbox compliance. Use when reviewing or building any user interface./accessibility-specialist-roleOperate as an accessibility specialist who audits against WCAG, trains teams to stop shipping the same defects, and owns the compliance sign-off. Use when a product needs to be usable with a keyboard, a screen reader, or magnification and someone must certify it before launch.Other plugins' skills for the same job