AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Shell Mastery

skill-josephsanjaya-skills-shell-expert · by JosephSanjaya

Expert shell configuration, optimization, and automation for Bash, Zsh, and PowerShell. Use when optimizing shell startup times, profiling performance bottlenecks, implementing defensive scripting patterns, configuring modern CLI tools (fzf, tmux, Atuin), writing portable POSIX scripts, engineering Zsh interactive environments, implementing PowerShell parallel execution, or troubleshooting shell…

No reviews yet
0 installs
35 views
0.0% view→install

Install

$ agentstack add skill-josephsanjaya-skills-shell-expert

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-josephsanjaya-skills-shell-expert)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
2mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Shell Mastery? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Optimize shell configurations and scripts to meet strict performance and defensive targets.

Shell Selection & Performance

| Use Case | Shell | Key Choice Reason | |----------|-------|--------------------| | System Automation | Bash | Universal container/VM compatibility | | Interactive Dev | Zsh | Native macOS shell, rich completions | | Windows/Cloud | PowerShell | Object pipeline, native .NET APIs |

  • Interactive Startup Target: 0.1s - 0.5s. Profile slow shells with Zsh zprof or PowerShell Measure-Command.
  • Fuzzy Search Latency:

Core Scripting & Config Snippets

1. Defensive Bash (Fail-Fast)

#!/bin/bash
set -euo pipefail
trap cleanup EXIT INT TERM
cleanup() { rm -f "$TEMP_FILE"; }

2. Portable Argument Parsing (POSIX)

while [ $# -gt 0 ]; do
    case "$1" in
        -h|--help) show_help; exit 0 ;;
        -v|--verbose) VERBOSE=1 ;;
        *) echo "Unknown option: $1" >&2; exit 1 ;;
    esac
    shift
done

3. Zsh Lazy-Loading & Async Plugins

# Lazy-load NVM
nvm() { unset -f nvm node npm; [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"; nvm "$@"; }

# Async plugins via Zinit
zinit ice wait lucid
zinit light zsh-users/zsh-autosuggestions

4. PowerShell Parallelism

1..100 | ForEach-Object -Parallel { # Parallel work } -ThrottleLimit 10

Deep-Dive Reference Manuals

  • Read [performance-optimization.md](references/performance-optimization.md) to diagnose slow shells, lazy-load SDKs, or profile startup latency.
  • Read [defensive-scripting.md](references/defensive-scripting.md) when writing production scripts requiring signal traps, file locking, or strict error checking.
  • Read [portability.md](references/portability.md) to rewrite Bashisms into POSIX-compliant syntax for Alpine/minimal containers.
  • Read [modern-toolkit.md](references/modern-toolkit.md) to configure fzf, tmux, Atuin, ripgrep, bat, or eza aliases.
  • Read [zsh-optimization.md](references/zsh-optimization.md) to customize ZLE widgets, completion styles, or advanced glob qualifiers.
  • Read [powershell-patterns.md](references/powershell-patterns.md) for object-oriented pipelines, ThreadJobs, and secure credential handling.
  • Scripts MUST use defensive patterns (set -euo pipefail) to fail fast.
  • Non-critical plugins and SDK initializers (e.g. NVM, Conda) SHOULD be lazy-loaded.
  • Always verify shell compatibility (POSIX vs Bash/Zsh specific features) before execution.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.