# Remove steps that repeat work an earlier job already did

Jobs that each rebuild what a previous job already built, wired to share artefacts instead.

Category: Pipeline speed and cost
Source: https://letsship.ai/use-cases/remove-duplicated-pipeline-steps
Published: 2026-08-25

## Goal

Remove pipeline steps that repeat work an earlier job already completed.

## Acceptance criteria

- The job graph is attached before and after
- Artefacts are passed between jobs rather than rebuilt
- Total pipeline minutes are recorded either side
- Job independence needed for reliability is preserved deliberately

## What lands as proof

Before and after job graphs plus the minutes saved, so the change is visible rather than asserted.

## Prompt

Copy this to an agent to open the ticket:

```text
Create a Linear issue in my team and assign it to the SHIP agent.

Title: Remove the duplicated steps in {workflow}

Description: Remove pipeline steps that repeat work an earlier job already completed.

Acceptance criteria:
- The job graph is attached before and after
- Artefacts are passed between jobs rather than rebuilt
- Total pipeline minutes are recorded either side
- Job independence needed for reliability is preserved deliberately

Before you create the issue, read this repository's workflow files and identify jobs rebuilding the same artefact. Replace {workflow}.
```

## Questions

### What does the agent actually change?

The ticket is scoped to one outcome: remove pipeline steps that repeat work an earlier job already completed. Work that serves that outcome is in scope, and anything outside it is left for a separate ticket, so the pull request stays reviewable.

### How do I know the work is done?

The pull request carries the evidence, not only the diff. Here that means job graph attached before and after, so a reviewer can confirm the result without reproducing the work locally.

### How much oversight does this need?

The run stops for the plan, and the review bar is raised afterwards so that smaller suggestions block the merge too, not only serious findings.
