Shell Script Installer

Create and install fish, bash, zsh, or sh scripts into PATH.

Updated Feb 26, 2023
One-click install
npx skills add https://github.com/bradreaves/chezmoi --skill shell-script-installer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Shell Script Installer
Source: https://github.com/bradreaves/chezmoi/tree/main/dot_claude/skills/shell-script-installer
Command: npx skills add https://github.com/bradreaves/chezmoi --skill shell-script-installer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Creating, installing, and managing custom command-line tools can be a complex and time-consuming process, involving shell scripting, permission handling, PATH configuration, and proper version control. This Skill automates these intricate steps, allowing you to effortlessly build and deploy your own utilities without getting bogged down in the technical details.

Core Features & Use Cases

  • Automated Script Generation: Quickly generate executable scripts in Fish (preferred), Bash, Zsh, or Sh, complete with best practices like structured logging and CLI standards (--help, --version, --test).
  • Seamless Installation & PATH Management: Automatically installs your new scripts to ~/bin/scripts, ensures correct permissions, and verifies that the installation directory is in your system's PATH.
  • Integrated Git Workflow: Manages all script changes within a dedicated Git repository, handling branching, committing with detailed messages, and merging, so your custom tools are always version-controlled.
  • Use Case: Imagine you need a simple command to quickly check a server's status. You can ask the AI, "Create a fish script named 'server-status' that pings 'example.com' and reports if it's reachable." The Skill will write the script, install it, and commit it to your dotfiles repository, making it instantly available from your terminal.

Quick Start

Create a bash script named 'hello-world' that prints "Hello, skills.rest!" to the console.

Frequently Asked Questions about Shell Script Installer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create and install custom shell scripts to my PATH?

Shell Script Installer automates creation and installation of executable scripts (Fish, Bash, Zsh, or Sh) directly to ~/bin/scripts with correct permissions and PATH verification. It generates scripts with best practices like structured logging, help flags, and version handling.

Can I manage my scripts with git while creating them?

Yes. The Skill integrates Git workflow automatically, handling branching, commits with detailed messages, and merges for all script changes in a dedicated repository, keeping your CLI tools version-controlled.

What shell scripting languages does this support?

Shell Script Installer supports Fish (default), Bash, Zsh, and Sh. It applies shebang handling and cross-shell compatibility conventions, letting you choose the shell that fits your workflow.

Do I need to manually set up a repository before using this?

Yes. The Skill requires a git-managed repository at ~/bin/scripts as a prerequisite. Once configured, it handles all subsequent script generation, installation, and version control automatically.

What happens if my PATH doesn't include the scripts directory?

Shell Script Installer verifies that ~/bin/scripts is in your system PATH during installation. If missing, it alerts you so you can add it; scripts won't be callable from the terminal until PATH is corrected.

Can this create command-line utilities with standard CLI conventions?

Yes. Generated scripts include built-in support for standard CLI flags like --help, --version, and --test, plus structured logging using logger with per-shell conventions for production-grade CLI tools.