Skip to content
Back to skills

Shell Script Development

ASecurity

This skill should be used when the user asks to "create a bash script", "write a shell script", or mentions shell scripting conventions.

  • 666 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 2, 2026
ai-agentsshellbash

Security analysis

A100/100

Scanned September 2, 2026

npx -y skills add majiayu000/claude-skill-registry --skill shell-script-development --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Shell Script Development?

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

Security grade badge for Shell Script Development
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-shell-script-development-claude-skill-registry/badge)](https://www.skillsdirectory.com/skills/majiayu000-shell-script-development-claude-skill-registry)

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-script-development
description: This skill should be used when the user asks to "create a bash script", "write a shell script", or mentions shell scripting conventions.
---

# Shell Script Development

Create shell scripts following consistent conventions.

## Template

```bash
#!/usr/bin/env bash

set -e -o pipefail

# Colors
green='\033[0;32m'
red='\033[0;31m'
yellow='\033[1;33m'
blue='\033[0;34m'
nc='\033[0m'

# Script logic here

echo -e "${green}✔${nc} completed successfully"
```

## Conventions

| Element | Convention |
|---------|------------|
| Shebang | `#!/usr/bin/env bash` |
| Safety | `set -e -o pipefail` |
| Local variables | Lowercase (`model`, `dir`, `count`) |
| Environment variables | Uppercase (`PATH`, `HOME`, `USER`) |
| Color variables | Lowercase (`green`, `red`, `nc`) |
| Status words | Lowercase (`error`, `warning`, `note`) |

## Status Output Patterns

```bash
echo -e "${green}✔${nc} task completed"           # success
echo -e "${red}error${nc}: something failed"      # error
echo -e "${yellow}warning${nc}: something to note" # warning
echo -e "${blue}info${nc}: informational message"  # info
```

## Important

After creating or modifying shell scripts, inform the user:

> **Make executable.** Run `chmod +x script.sh` before use.

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…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.