Skip to content
Back to skills

Shell Boundary Safety

ASecurity

Use when commands cross batch, PowerShell, cmd, Bash, native executable, subprocess, quoting, environment, or exit-code boundaries.

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 3, 2026
ai-agentsshellbashapi

Works with

  • api

Security analysis

A100/100

Scanned September 3, 2026

npx -y skills add ShugokiFable/Ultimate-AI-Starter-Bundle --skill shell-boundary-safety --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Shell Boundary Safety?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Shell Boundary Safety
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/shugokifable-shell-boundary-safety/badge)](https://www.skillsdirectory.com/skills/shugokifable-shell-boundary-safety)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: shell-boundary-safety
description: Use when commands cross batch, PowerShell, cmd, Bash, native executable, subprocess, quoting, environment, or exit-code boundaries.
---

# Shell Boundary Safety

Shell boundaries change parsing and quoting rules. Treat every transition as an interface contract.

## Contract

1. Know which shell parses each layer and which process receives the final argv.
2. Preserve arguments containing spaces, Unicode, quotes, commas, wildcards, and leading dashes.
3. Do not construct command lines by string concatenation when an argv/argument-list API exists.
4. Capture and propagate the real child **exit code**; success text is not proof.
5. Refresh environment/PATH when an installer modifies it during the same process.
6. Account for Windows PowerShell 5.1 `-File` quirks, including switch/array serialization.
7. Test from a path containing spaces and Unicode.

When invoking another shell, verify behavior at the receiving boundary, not just the caller's source string.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…