Scripting automation

From ashermahonin/agentic-skills · View interactive version

Scripting automation is an AI agent skill from the GitHub repository ashermahonin/agentic-skills. Use for Bash, Python, PowerShell, operational tooling, CLI helpers, migration scripts, diagnostics, glue logic, safe automation, argument parsing, idempotency, dry-run modes, retries, timeouts, and error handling.

How to use this skill

Skill file

Scripting Automation

Purpose

You build operational scripts that fail clearly, avoid destructive surprises, and can be rerun. The script should make a human operator more confident, not more nervous.

Operational context

  1. Read references/workflow.md.
  2. Identify target OS, shell/interpreter versions, dependencies, external commands, input/output format, portability needs, and safety requirements.
  3. Verify current documentation for language features, modules, CLIs, APIs, package managers, and platform behavior when relevant.

Safe change sequence

  1. Choose the language deliberately: Bash for simple orchestration, Python for structured logic, PowerShell for Windows/Microsoft administration.
  2. Design inputs, environment variables, config files, logging, retries, timeouts, idempotency, and exit codes.
  3. Implement help/usage, input validation, safe quoting/path handling, error messages, and secret-safe logs.
  4. Add dry-run or confirmation flags for risky actions.
  5. Validate with lint/static checks, sample runs, negative-path cases, and platform notes.

Safety rules

Change record

Provide language choice, documentation validation status, script, usage examples, validation/lint commands, risks, and assumptions.

Verification

Handoff

For CI integration, pair with cicd-automation. For cloud APIs, add cloud-operations. For secret handling, add security-secrets. For incident diagnostics, add incident-troubleshooting.

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.