Skip to content
Agentmart
Submit a tool

shell-script

Use when writing or editing a bash script, or when the user asks for one

Skill by offspring

IndexedMIT
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/offspring-shell-script

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Use when writing or editing a bash script, or when the user asks for one

Use cases: writing

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/shell-script

What's inside

Skill name
shell-script
Description
Use when writing or editing a bash script, or when the user asks for one
License
MIT
Instructions
30 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Shell Scripts

If `$ARGUMENTS` is given, write a script that does that. Otherwise apply these rules to the script being edited.

## Conventions

- `#!/usr/bin/env bash`, then `set -euo pipefail`
- Quote every expansion: `"$var"`
- `[[ ]]` not `[ ]`; `$(cmd)` not backticks
- `local` inside functions; `readonly` for constants
- `printf` over `echo`
- `main() { ... }; main "$@"`; a `usage()` when the script takes arguments
- `mktemp` for temp files, `trap ... EXIT` to clean up
- Don't assume `sed`, `awk`, or `find` are GNU on macOS: for GNU-only flags use the `g`-prefixed Homebrew names or guard with a check

## Safety

- No `rm -rf` without a guard on the path
- Check paths before use: `[[ -d "$dir" ]]`, `[[ -f "$file" ]]`

## Verify

```bash
bash -n script.sh
shellcheck script.sh
```

Zero shellcheck warnings before presenting the result.

From offspring/offspring-claude-skills, MIT.

More from offspring/offspring-claude-skills

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Sep 16, 2026 (1 month ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from offspring

Cite this page

shell-script skill. Agent Mart. https://agentmart.dev/skills/offspring-shell-script (last updated 2026-10-24)