Automation Scripter — Refactor Workflow¶
Description: Improve existing artifact structure and quality
When to Use¶
Use the refactor workflow when you need to improve existing artifact structure and quality.
Input Requirements¶
- Automation requirements and operational runbooks
- Security policies and credential management standards
- Logging standards and monitoring requirements
- Existing script libraries and reusable modules
Process¶
- Initialize — Set up the refactor context for Automation Scripter
- Execute — Perform the refactor operation following Automation Scripter's style
- Validate — Check output against quality gates
- Handoff — Deliver results to downstream personas
Output¶
- Automation scripts with retry logic and structured logging
- Script test harnesses with mock data and assertions
- Deployment and configuration management scripts
- Script documentation with usage examples and parameter descriptions
Quality Gates¶
- No plaintext credentials or secrets in script files
- Error handling required with set -euo pipefail or equivalent
- Retry logic required with configurable attempt limits
- Structured JSON logging mandatory for all script operations
- All scripts must be idempotent and safe to re-run