skills/install-script-generator/SKILL.md
Generate cross-platform installation scripts for any software, library, or module. Use when users ask to "create an installer", "generate installation script", "automate installation", "setup script for X", "install X on any OS", "write an install script", "deployment script", or need automated deployment across Windows, Linux, and macOS. Follows a three-phase approach with environment detection, installation planning with verification/rollback, and documentation generation. Trigger this skill whenever the user wants to automate installing or deploying software, even if they just say "how do I install X everywhere".
npx skillsauth add montimage/skills install-script-generatorInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Generate robust, cross-platform installation scripts with automatic environment detection, verification, and documentation.
Before generating any output files, sync with the remote to avoid conflicts:
branch="$(git rev-parse --abbrev-ref HEAD)"
git fetch origin
git pull --rebase origin "$branch"
If the working tree is dirty, stash first, sync, then pop. If origin is missing or conflicts occur, stop and ask the user before continuing.
Gather comprehensive system information:
# Run the environment explorer script
python3 {SKILL_DIR}/scripts/env_explorer.py
Use sub-agents for parallel discovery. Launch multiple Agent tool calls concurrently to keep the main context clean:
env_explorer.py and parse the JSON output. Detect OS, version, CPU architecture, and user permissions (admin/sudo availability). Return a structured summary.Collect the results from all three agents before proceeding.
The script detects:
Output: JSON summary of system capabilities and constraints.
Based on the environment analysis and target software:
Create the plan using:
python3 {SKILL_DIR}/scripts/plan_generator.py --target "<software_name>" --env-file env_info.json
Plan structure:
target: "<software_name>"
platform: "detected_os"
steps:
- name: "Install dependency X"
command: "..."
verify: "command to verify success"
rollback: "cleanup command if failed"
- name: "Configure system"
command: "..."
verify: "..."
Execute the plan with real-time verification:
python3 {SKILL_DIR}/scripts/executor.py --plan installation_plan.yaml
Execution behavior:
After successful installation, generate usage documentation:
python3 {SKILL_DIR}/scripts/doc_generator.py --target "<software_name>" --plan installation_plan.yaml
Use sub-agents for parallel documentation. The documentation sections are independent of each other. Dispatch them concurrently using the Agent tool, then collect results:
install_report.md with the execution log, step-by-step status, and any warnings or errors encountered during installation.USAGE_GUIDE.md with a quick start guide, common commands/usage examples, and troubleshooting tips based on the installed software.Each agent should return the path(s) of files it created or updated.
Output includes:
The skill generates these files in the current directory:
| File | Description |
|------|-------------|
| env_info.json | System environment analysis |
| installation_plan.yaml | Detailed installation steps |
| install_report.md | Execution log and status |
| USAGE_GUIDE.md | User documentation |
winget over choco when availableUser request: "Create an installation script for Node.js"
development
Expand unit test coverage by targeting untested branches and edge cases. Use when users ask to "increase test coverage", "add more tests", "expand unit tests", "cover edge cases", "improve test coverage", "find untested code", "what's not tested", "run coverage report", "write missing tests", or want to identify and fill gaps in existing test suites. Adapts to project's testing framework. Trigger this skill whenever the user mentions test gaps, untested code, coverage percentages, or wants to harden their test suite.
development
Audit npm/pip/Docker/GitHub Actions for supply chain risks; apply cooldown, lockfile, ignore-scripts, SHA pinning, scanning after approval. Use for 'supply chain audit', 'harden dependencies'. Skip for runtime vulns, secret scanning, code review.
development
Analyze agent skills for security risks, malicious patterns, and potential dangers before installation. Use when asked to "audit a skill", "check if a skill is safe", "analyze skill security", "review skill risk", "should I install this skill", "is this skill safe", "scan this skill", or when evaluating any skill directory for trust and safety. Also triggers when the user pastes a skill install command like "npx skills add https://github.com/org/repo --skill name". Produces a comprehensive security report with a clear install/reject verdict. Trigger this skill proactively whenever the user is about to install a third-party skill or mentions concerns about skill safety.
development
Add OSS-standard files (README, CONTRIBUTING, LICENSE, CODE_OF_CONDUCT, SECURITY, GitHub templates) and run an 8-section readiness audit. Use for 'make this open source', 'OSS readiness', 'public release'. Skip for marketing pages or closed code.