# Script generator

> Script generator is an open-source agent skill for developer tools. Generates syntax-checked Python, PowerShell or bash scripts for multi-target tasks. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/transilienceai/communitytools/tree/main/skills/script-generator
- **Repository:** https://github.com/transilienceai/communitytools
- **GitHub stars:** 641
- **License:** MIT
- **Skill name:** script-generator
- **Collection:** https://github.com/transilienceai/communitytools
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-02

## About

This skill tells the agent to write standalone scripts on request rather than run them. It is aimed at jobs that have grown past a short snippet, such as work across many hosts, combinations of libraries like impacket with ldap3, or repeated authentication and connection setup.

The workflow starts from a structured request that names the language, task, targets, credentials, available libraries, output format and constraints. The agent then applies a few optimization patterns, including a thread pool for multiple targets, a reusable HTTP session for repeated requests to one host, and a single authentication shared across operations. Scripts are written to an artifacts folder inside an output directory, syntax-checked before being returned, and reported with the path, run command and dependencies.

The guidelines require per-operation error handling without bare except clauses, timeouts on all I/O, and credentials kept as variables at the top of the file rather than hardcoded. The skill ships as a single SKILL.md with no bundled scripts, so it needs an agent that can write files and a Python, PowerShell or bash environment for the user to run the output.

## When your agent uses it

> Generates optimized, syntax-validated scripts on demand. Never executes — only generates, optimizes, and validates.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/transilienceai/communitytools/tree/HEAD/skills/script-generator)
- [License: MIT](https://github.com/transilienceai/communitytools/tree/HEAD/skills/script-generator)

## Features

- **Structured script requests:** Takes a defined request format covering language, targets, credentials, libraries and output expectations.
- **Concurrent target handling:** Switches to a thread pool when one operation has to run across several targets.
- **Session and auth reuse:** Reuses HTTP sessions and tokens so repeated authentication is avoided.
- **Syntax validation before return:** Checks generated code for syntax errors before handing back the script path.
- **Error handling and timeouts:** Requires per-operation error handling and timeouts on all network and file I/O.
- **Credentials kept as variables:** Places secrets in variables at the top of the script instead of hardcoding them.

## Good for

- Write a Python script that checks many hosts in parallel and logs results
- Build an LDAP and SMB query script combining impacket and ldap3
- Generate a PowerShell script that connects to several remote machines
- Create a bash script that calls one API repeatedly with a shared session

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/script-generator` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/transilienceai/communitytools.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/script-generator &&
cp -R "$tmp/skills/script-generator" ~/.claude/skills/script-generator &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/script-generator` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/script-generator` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/transilienceai/communitytools.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/script-generator &&
cp -R "$tmp/skills/script-generator" ~/.agents/skills/script-generator &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/script-generator` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/script-generator` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/transilienceai/communitytools.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/script-generator &&
cp -R "$tmp/skills/script-generator" ~/.cursor/skills/script-generator &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/script-generator` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/transilienceai/communitytools.git --path skills/script-generator
```

Or copy the folder to `~/.gemini/skills/script-generator` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/script-generator`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/transilienceai/communitytools.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/script-generator &&
cp -R "$tmp/skills/script-generator" ~/.copilot/skills/script-generator &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/script-generator` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/transilienceai/communitytools.git
```

Then copy `communitytools/skills/script-generator` into your agent's skills folder as `script-generator`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Does the skill run the scripts Script generator generates?

No. It only generates, optimizes and validates scripts. The user runs the output themselves.

### Which languages does Script generator target?

The request format lists python3, powershell and bash as the supported languages.

### When should the skill be used?

It is meant for scripts longer than about 30 lines, multi-target operations, multi-library patterns, and repeated auth or connection setup.

### Does Script generator come with bundled scripts or dependencies?

No scripts are bundled. The skill is a single SKILL.md file.

### How do I install Script generator in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/script-generator to use it in all your projects, or to .claude/skills/script-generator in one project.

### Does Script generator run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Script generator?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Script generator?

The closest alternatives to Script generator are Skill creator, Skill writer, Skill creator, Skill creator and Batch script progress.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Skill creator](https://ai-powered.com/skills/skill-creator): Skill creator is a free agent skill for ai models and llm tooling.
- [Skill writer](https://ai-powered.com/skills/skill-writer): Skill writer is an open-source agent skill for developer tools.
- [Skill creator](https://ai-powered.com/skills/skill-creator-melandlabs): Skill creator is an open-source agent skill for developer tools.
- [Skill creator](https://ai-powered.com/skills/skill-creator-base44): Skill creator is an open-source agent skill for developer tools.
- [Batch script progress](https://ai-powered.com/skills/batch-script-progress): Batch script progress is an open-source agent skill for developer tools.
- [Agent skill stack](https://ai-powered.com/skills/agent-skill-stack): Agent skill stack is an open-source agent skill for developer tools.
- [Skill authoring](https://ai-powered.com/skills/skill-authoring): Skill authoring is an open-source agent skill for developer tools.
- [Spec driven dev v2](https://ai-powered.com/skills/spec-driven-dev-v2): Spec driven dev v2 is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/script-generator
