使用方法
- 复制安装命令,在自己的智能体环境安装前先检查源码包。
- 从原始文档核对所需工具、凭据和支持的宿主。
- 说明输入材料与期望交付物,并对照来源检查输出。
npx skills add https://github.com/transilienceai/communitytools --skill script-generator开始前需了解
- 安装不包含模型订阅、API 额度或访问文件的权限。
- 仓库星数和安装量反映活跃情况,不等于独立质量或安全测试。
按源仓库内容呈现,保留标题、案例、代码、表格、链接以及原文引用的演示图片。
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 failedOptimization
- 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


