script-setup

Generate utility scripts with tests, examples, and documentation in PowerShell, Python, or Bash.

Updated May 11, 2026
One-click install
npx skills add https://github.com/TomasGC/Meerkat --skill script-setup-tomasgc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: script-setup
Source: https://github.com/TomasGC/Meerkat/tree/main/skills/script-setup
Command: npx skills add https://github.com/TomasGC/Meerkat --skill script-setup-tomasgc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Writing utility scripts from scratch involves repetitive boilerplate: help documentation, parameter validation, error handling, tests, and usage examples. This Skill automates that scaffolding so every script follows consistent language-specific standards and ships with tests by default. ## Core Features & Use Cases - Multi-language script generation: Creates scripts in PowerShell 7+ (default), Python, Bash, or Perl with proper shebangs, error handling, and cross-platform path handling. - Automatic test scaffolding: Generates Pester, pytest, or bats-core test files with happy-path, edge-case, and error-handling coverage. - Documentation and examples: Produces comment-based help, usage examples, output format schemas, and troubleshooting sections for scripts with external dependencies. - Use Case: Ask for a script that analyzes git commits, and receive a complete package: the script file, a test suite, an examples directory with runnable demos, and a README documenting parameters and output format. ## Quick Start Ask the assistant to create a new utility script for your task, for example by saying you want a script that validates JSON files in a directory, and let it propose a name, language, and tests.

Frequently Asked Questions about script-setup

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

FAQPage Schema
How do I create a PowerShell script with tests automatically?

Describe the script's purpose and the Skill generates a PowerShell 7+ script with comment-based help, parameter validation, and a Pester test file containing at least three test cases. Tests cover happy path, edge cases, and error handling by default.

What languages does the script generation support?

PowerShell 7+ is the default, with support for Python, Bash, and Perl. Each language gets its own conventions: argparse and pathlib for Python, set -euo pipefail for Bash, and strict/warnings pragmas for Perl.

Can I update an existing script instead of creating a new one?

Yes. The Skill reads the existing script, identifies missing sections such as help documentation, error handling, or tests, and lets you choose which improvements to apply while preserving the existing logic.

Does it generate cross-platform PowerShell scripts?

Yes. Generated PowerShell scripts use System.IO.Path for path operations, avoid platform-specific cmdlets, and include #Requires -Version 7.0. Hardcoded absolute paths are prohibited in favor of paths relative to the script location.

Can I skip test generation for a quick script?

Yes, tests are generated by default but you can explicitly decline. The Skill will warn about verification challenges and can provide a manual test plan instead of automated test files.

What documentation gets generated with each script?

Scripts include comment-based help with synopsis, parameters, and examples. Non-trivial scripts also get an examples directory with runnable demo scripts, a README, output format schema documentation, and a troubleshooting section when external dependencies exist.