---
name: pre-pipeline-review
description: >-
  Reviews SuperPlane code changes for correctness and reuse, then runs fast Make targets (lint, format, build) that Semaphore CI runs so easy checks do not fail in the pipeline. Use when the user asks to review a change, finish a PR, preflight CI, check that the pipeline will pass, or run easy/quick checks before opening a pull request.
title: pre-pipeline-review
canonical_url: https://skilld.dev/gh/superplanehq/superplane/pre-pipeline-review
last_updated: 2026-10-20T13:01:10.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> Supporting files, fetch one when the Skill refers to it: [checks.md](https://skilld.dev/api/skills-raw/superplanehq/superplane/pre-pipeline-review/checks.md).
>
> If the user asked to install this Skill, run `npx skilld install superplanehq/superplane/pre-pipeline-review`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/pre-pipeline-review`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/superplanehq/superplane/pre-pipeline-review) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/pre-pipeline-review`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/pre-pipeline-review --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/pre-pipeline-review --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# Pre-pipeline review

Review the current SuperPlane diff for correctness and reuse, then run only the
**fast** Make targets that match touched paths. Goal: catch pipeline failures
from lint, format, and build without running slow unit or E2E suites.

Do not duplicate [clean-code](../clean-code/SKILL.md),
[ui-copy](../ui-copy/SKILL.md),
[simplified-technical-english](../simplified-technical-english/SKILL.md), or
[commit-and-pr-messages](../commit-and-pr-messages/SKILL.md). Point at them when
relevant. Read [AGENTS.md](../../../AGENTS.md) in full when you need setup or
command facts. For UI or models work, also read
[web_src/AGENTS.md](../../../web_src/AGENTS.md) or
[pkg/models/AGENTS.md](../../../pkg/models/AGENTS.md).

Path-to-target matrix and skip list: [checks.md](https://skilld.dev/api/skills-raw/superplanehq/superplane/pre-pipeline-review/checks.md).

## Workflow

Copy this checklist and track progress:

```
Pre-pipeline review:
- [ ] 1. Scope the diff
- [ ] 2. Review for correctness and reuse
- [ ] 3. Map paths to Make targets (checks.md)
- [ ] 4. Ensure app container is up
- [ ] 5. Format, then run matching checks
- [ ] 6. Fix failures and re-run until green or blocked
- [ ] 7. Report findings and check results
```

### 1. Scope the diff

Run `git status` and `git diff` (staged and unstaged). If the user named a
branch or PR, include that range. Note which areas changed: Go, JS/TS, protos,
models, gRPC actions, components, migrations, docs-only.

### 2. Review for correctness and reuse

Review the change against the bar below. Search the repo before flagging or
accepting new helpers, components, or patterns. Prefer existing code over new
abstractions.

### 3. Map paths to Make targets

Open [checks.md](https://skilld.dev/api/skills-raw/superplanehq/superplane/pre-pipeline-review/checks.md). Select only the targets that match touched paths.
Do not run the skip list unless the user explicitly asks.

### 4. Ensure app container is up

```bash
make dev.test.is.running
```

If that fails, run `make dev.up` and wait. Do **not** run `make dev.setup`
unless deps or protos clearly need it. Never drop or recreate databases
(`db.delete`, `dev.setup.no.cache`, etc.).

### 5. Format, then run matching checks

Use `make` only. Do not invent host `go` / `npm` commands when a Make target
exists.

1. Run format for the languages you touched (`make format.go`, `make format.js`).
2. Run the matching `check.*` / `lint` targets from [checks.md](https://skilld.dev/api/skills-raw/superplanehq/superplane/pre-pipeline-review/checks.md).
3. Prefer parallel independent checks when safe.

### 6. Fix and re-run

If a check fails:

- Fix the underlying issue (format drift, lint, type error, missing auth wire-up).
- Re-run format if you edited files, then re-run the failed check.
- Do **not** expand the ESLint budget, skip checks, or hand-edit generated
  artifacts to get green.

Stop and report if you hit a real blocker (missing setup, unrelated infra,
needs user decision).

### 7. Report

Use this structure:

```markdown
## Review

### Critical
- …

### Suggestions
- …

(If none: say so.)

## Checks

| Target | Result |
| --- | --- |
| `make lint` | pass / fail / skipped (reason) |

## Blockers
- … (or "None")
```

## Review bar

Must catch:

- Wrong or missing behavior, broken edge cases, inconsistent state across
  callers of changed APIs.
- Duplication or reinventing the wheel: before accepting new helpers or UI,
  search `web_src/src/lib`, `web_src/src/hooks`, `web_src/src/components/ui`,
  and nearby packages under `pkg/`.
- No new `web_src/src/utils/` folders or `utils.ts` files.
- Do not hand-edit generated files: `pkg/protos/`, `pkg/openapi_client/`,
  `web_src/src/api-client/`, `api/`. Edit `protos/` and run `make pb.gen`.
- Do not hand-write migrations; use `make db.migration.create NAME=<name>`.
- Proto request enums mapped via `pkg/grpc/actions/common.go` (`Proto*` /
  `*ToProto`). New workers registered in `cmd/server/main.go`. New gRPC
  endpoints covered in `pkg/authorization/interceptor.go`.
- User-facing product name is **SuperPlane** (capital P).
- When UI strings changed, follow ui-copy and STE skills.

Severity:

- **Critical**: Must fix before merge (bugs, CI-breaking issues, policy
  violations above).
- **Suggestion**: Improve if cheap; not a merge blocker.

## Related skills

- Clean-code standards: [clean-code](../clean-code/SKILL.md)
- UI strings: [ui-copy](../ui-copy/SKILL.md),
  [simplified-technical-english](../simplified-technical-english/SKILL.md)
- Commit / PR wording: [commit-and-pr-messages](../commit-and-pr-messages/SKILL.md)
