X.2.4 · Skill in Systems thinking

Workflow automation

Automating repeated tasks with scripts, integrations and appropriate checks.

Automation turns repeated personal and team tasks into reliable workflows using scripts, integrations or AI where appropriate. Start with a clear process and handle partial failures explicitly. Keep a human check where errors are costly.

Your status · Workflow automation

Saved in this browser. Sign in to keep it on every device.It colours this skill's tile on your map.

Why it matters for a product engineer

Every team repeats tasks by hand: reports, data fixes, releases, onboarding steps. Automating them saves time and removes mistakes, but only if the automation is reliable. A script that fails silently is worse than no script, because people stop checking. With AI, more of these tasks can be automated, including ones that need judgement. The engineering is the same: a clear process, explicit handling of failures, and a person in the loop where an error costs a lot.

How to do it

  1. Do the task by hand a few times and write the steps down before you automate them.
  2. Automate the steps that are clear and repeated; keep judgement steps for a person or a reviewed AI step.
  3. Make every run report success, not only failure, so silence is a warning.
  4. Handle partial failures: retry safe steps, stop and alert on the others.
  5. Test the result, not the run: restore the backup, open the report, check the record.

Common mistakes

  • Alerts that only fire on failure, sent to a channel nobody reads.
  • Automation that depends on a version or setting that can change without notice.
  • No owner, so a broken job runs for months.
  • Using an agent where a simple script would do the job reliably.

Example

On 31 January 2017, an engineer at GitLab deleted the production database by mistake, thinking it was a replica. The team then found that the daily backups were missing. The job used pg_dump 9.2 against a PostgreSQL 9.6 database, so it failed every time. The failure emails were rejected because of an email security setting, so nobody knew. GitLab restored from a copy made for staging six hours earlier, and lost data for about 5,000 projects.

Flow

How GitLab's daily backup failed without anyone knowing

Daily backuppg_dump 9.2Job failsDatabase is 9.6Alert emailRejectedData deleted31 Jan 2017RestoreStaging copyDaily backuppg_dump 9.2Job failsDatabase is 9.6Alert emailRejectedData deleted31 Jan 2017RestoreStaging copy

The automation ran every day and produced nothing. An alert that only fires on failure cannot warn you when the alert itself fails.

ReportedGitLab postmortem, 10 February 2017

Sources: Postmortem of database outage of January 31 (GitLab) ↗ · Building effective AI agents (Anthropic) ↗

Resources

2

Tools

2
Tools for Systems thinking
  • ToolFree
    LOOPY

    Draw causal loop diagrams in the browser and watch the feedback play out.

  • ToolFreemium
    Kumu

    Map systems, stakeholders and relationships as interactive diagrams.