Automationprompt onlyIntermediate

Automate Repetitive Task

This loop identifies repetitive manual tasks in a project and automatically generates automation scripts to replace them. The agent iteratively analyzes workflows, creates optimized scripts, validates their effectiveness, and refines until all targeted manual steps are eliminated.

← all loops
automationscriptingworkflowefficiencytask optimization

Goal

Replace manual workflow with automation

How to Run

Run this loop in your preferred AI coding environment to identify and automate manual tasks in your project.

  1. 01

    Start the Loop

    Paste the kickoff prompt into your AI agent interface (Cursor, Claude Code, etc.) to begin task identification.

  2. 02

    Review Workflow Analysis

    Examine the agent's analysis of repetitive tasks and approve the proposed automation approach.

  3. 03

    Validate Output

    After each automation script is generated, run tests to confirm it replaces the manual step effectively.

  4. 04

    Iterate Until Complete

    Continue the loop until the check command confirms no manual steps remain, or max iterations reached.

Workflow Steps

  1. 01

    Identify Repetitive Task

    Analyze project files and workflows to detect manual steps performed more than once daily

  2. 02

    Analyze Task Pattern

    Document the exact inputs, outputs, and conditions required for the manual task

  3. 03

    Generate Automation Script

    Create optimized script code (shell, Python, etc.) to perform the task automatically

  4. 04

    Test Script Effectiveness

    Run generated script and compare results with manual execution to verify accuracy

  5. 05

    Deploy Automation

    Integrate validated script into project workflow with appropriate triggers

  6. 06

    Monitor Results

    Track automated task performance and maintain logs for continuous improvement

Kickoff Prompt

Start the "Automate Repetitive Task" loop.

Goal: Replace manual workflow with automation
Max iterations: 10
Between iterations run: automation validation
Exit when: Manual step count is zero


Please analyze this project to identify repetitive manual tasks that can be automated. For each task found, create an automation script that replaces the manual workflow. Validate each script by testing it against the original process, then deploy and monitor until all manual steps are eliminated.

Self-pace this loop. After each iteration, run `automation validation` and evaluate the output, and only continue if the exit condition is not met (Manual step count is zero). Stop when the exit condition passes or 10 iterations are reached. Give a short status update each pass.

Guardrails

hardcoded
  • ·Ensure automation scripts are safe and reversible to prevent data loss or corruption
  • ·Validate each script's output before proceeding to next iteration
  • ·Maintain audit trail of all changes for accountability
  • ·Prioritize non-destructive automation strategies
  • ·Prevent infinite loops by limiting to 10 iterations maximum

Flow Diagram

rendering…

Related loops — Automation