Defends against path traversal attacks by canonicalizing user-supplied paths and verifying they remain within a restricted directory. Covers symlinks, URL-encoding, Zip Slip, and archive extraction.
Any time a caller controls part of a path, they are one ../ away from a
file you never meant to expose. The failure is subtle because open(base + name) looks confined until name is ../../etc/shadow, and string checks
for .. miss URL-encoding, absolute paths, symlinks, and Windows
separators. The reliable defense is to resolve the path to its real
location and prove it still sits inside the jail.
os.path.realpath,
Java toRealPath, or Node fs.realpath on the joined path. This
collapses .., follows symlinks, and normalizes separators, giving you
the actual target instead of the string the attacker wrote./data/users does not match /data/users-evil. In Python:
os.path.commonpath([base, resolved]) == base. Reject anything that
fails, do not try to repair it.%2e%2e%2f and overlong
encodings do not slip past a filter that ran on the raw string. Decode
exactly once to avoid double-decoding surprises.../ in member
names...%2f..%2fetc%2fpasswd resolve, fail the jail check,
and return 403 rather than the file?..?This confines filesystem paths. The same shape of bug in URLs handed to an outbound fetcher is SSRF, and in database identifiers is injection: those have their own skills. Some frameworks and static-file servers already canonicalize and jail; when one does, rely on it and confirm with a traversal probe rather than adding a second inconsistent check.
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