script-generator

A script-writing helper that creates and checks scripts without running them. It can work with Python, PowerShell, or Bash.

In plain words
What is it for?
Use it to generate scripts for multiple computers or websites, reuse authenticated connections, combine common libraries, and save the result as a file.
Why use it?
It reduces the manual work of writing longer scripts, especially when they repeat connections, authentication, or requests across several targets. Because it never executes scripts, you must run them yourself.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/transilienceai/communitytools/script-generator
Any agent
npx skills add transilienceai/communitytools --skill script-generator
Clone the repo
git clone --depth 1 https://github.com/transilienceai/communitytools

Made for: Claude Code, Codex.

Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 379 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00026 $0.00379
Opus 5 $0.00013 $0.00189
Sonnet 5 $0.00005 $0.00076
Haiku 4.5 $0.00003 $0.00038

Measured 3d ago against content hash 05bf5708fa91, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

script-generator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/script-generator/SKILL.md · 56 lines

What it actually says

Script Generator

Generates optimized, syntax-validated scripts on demand. Never executes scripts.

When to Use

  • Scripts exceed ~30 lines
  • Parallel operations on multiple targets
  • Multi-library patterns (impacket + ldap3, pypsrp + concurrent.futures)
  • Repeated auth handshakes or connection setup

Request Format

LANGUAGE: python3 | powershell | bash
TASK: What the script should accomplish
TARGETS: IPs, hostnames, URLs
CREDENTIALS: user, pass, hash, domain, certs
AVAILABLE_LIBRARIES: What's installed
OUTPUT_FORMAT: stdout format, file writes
CONSTRAINTS: timeout, no destructive ops, output directory
CONTEXT: (optional) Prior output, errors, what failed

Optimization

  • Multiple targets → concurrent.futures.ThreadPoolExecutor
  • 3 HTTP requests to same host → requests.Session

  • Repeated auth → single auth, reuse session/token
  • Prefer high-level libraries (impacket, ldap3, requests)

Output

Write to OUTPUT_DIR/artifacts/<task_name>.<ext>. Return:

SCRIPT_PATH: OUTPUT_DIR/artifacts/task_name.py
LANGUAGE: python3
VALIDATION: PASSED
EXECUTION: python3 OUTPUT_DIR/artifacts/task_name.py
DEPENDENCIES: impacket, concurrent.futures (stdlib)

Rules

  • Never execute scripts — only generate, optimize, validate
  • Per-operation error handling — no bare except:
  • Timeout enforcement on all I/O
  • Validate syntax before returning
  • No secrets hardcoded — credentials as variables at top
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 56 lines · 26 tokens per session scan A 05bf5708fa91

Subscribe to this mod's changes

script-generator is a skill published in the GitHub repository transilienceai/communitytools (498 stars, last pushed 1mo ago), licensed MIT. It adds 26 tokens to every session and 379 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

pentester-playwright

Phases 1b/3/4 authorized browser automation — SPA recon, multi-role auth, route/API catalog, PoC screenshots, Evidence landing (scoped proxy). Skill-gate read for web phases. Use when Phase 1b/3/4 web work, JS-rendered SPA, real browser needed, HAR/network capture, or Playwright PoC evidence.

fb0sh/pentester · 81 tokens

osint-recon

Phase 1 conditional OSINT depth — four-dimension model (server→site→domain→people; people is conditional). Skill-gate companion to pentester-enum-services / pentester-recon. Use for passive OSINT depth, full recon dimensions, author tracking, not as Phase 0/Schema replacement.

fb0sh/pentester · 69 tokens

pentester-exploit

Phase 4 exploitation — PoC construction, exploit-db/msf search, safe verification. Required Skill-gate read at Phase 4. Use when starting Phase 4, exploitation, exploit, PoC, exploit-db, msf, Metasploit, or payload delivery.

fb0sh/pentester · 61 tokens

pentester-recon

Phase 1 intelligence recon methodology — passive+active recon, stack fingerprint, attack-surface map. Required Skill-gate read at Phase 1 (with pentester-enum-services). Use when starting Phase 1, intelligence gathering, recon, reconnaissance, OSINT prep, target profiling, or attack surface mapping.

fb0sh/pentester · 68 tokens

pentester-toolkit

Provision the pinned pentest toolset via DotSlash for the current scanenv (host-kali or kali-target-${ID}). Adapter, not a tool wrapper.

fb0sh/pentester · 37 tokens

pentester-waf-bypass

Phase 4 conditional — WAF/filter bypass for authorized CTF/range/pentest when payloads are blocked. Use at Phase 4 if blocked, or when user mentions WAF bypass, filter evasion, SQL/XSS/command-injection bypass, or security filter analysis.

fb0sh/pentester · 64 tokens