Skip to content
Skills Library
DevOps & cloud · Testing

local-ci

/local-ci

Run this repository's local CI parity commands and `pnpm run ci:local` jobs. Use when validating a change against the same job shapes used in GitHub Actions, choosing the smallest local CI job for a package, workflow, E2E, Metro, devtools, bundle-size, or build-and-test change.

Repository
core ↗
Licence
MIT
Last repository change
20.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
3
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 20.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Run this repository's local CI parity commands and `pnpm run ci:local` jobs. Use when validating a change against the same job shapes used in GitHub Actions, choosing the smallest local CI job for a package, workflow, E2E, Metro, devtools, bundle-size, or build-and-test change.

Original author description

Run this repository's local CI parity commands and `pnpm run ci:local` jobs. Use when validating a change against the same job shapes used in GitHub Actions, choosing the smallest local CI job for a package, workflow, E2E, Metro, devtools, bundle-size, or build-and-test change.

How it works

  1. Quick Start
  2. Workflow
  3. Common Cases
  4. Notes
Original SKILL.md headings · 100 lines, 496 words
SKILL.md preview
---
name: local-ci
description: Run this repository's local CI parity commands and `pnpm run ci:local` jobs. Use when validating a change against the same job shapes used in GitHub Actions, choosing the smallest local CI job for a package, workflow, E2E, Metro, devtools, bundle-size, or build-and-test change.
---

# Local CI

Use the local CI runner and Turbo/package scripts as the source of truth for validation in this repo.

## Quick Start

1. Start with the smallest deterministic check that matches the change.
2. Prefer `pnpm run ci:local --only=<job>` for CI-parity validation.
3. Prefer direct Turbo or package scripts only when they are the smaller equivalent of the CI job.
4. Report exactly which command ran, what failed first, and which expected checks were skipped.

## Workflow

### 1. Inspect available local CI jobs

Run:

```bash
pnpm run ci:local --list
```

Use this when the right job is unclear or when the repo may have added or renamed jobs.

For the current job map, read [references/jobs.md](./references/jobs.md).

### 2. Pick the smallest matching job

Use these defaults:

- Package code in `packages/*`: start with `build-and-test` only if the change is broad; otherwise prefer package build/test commands.
- Metro packages or Metro workflow changes: use `build-metro`, then Metro E2E jobs only if relevant.
- E2E app changes: run the matching `e2e-*` job instead of `build-and-test`.
- Devtools workflow or Playwright/devtools changes: run `devtools`.
- Bundle-size workflow/reporting changes: run `bundle-size`.
- GitHub workflow syntax only: use `actionlint` locally only to see skip behavior; the actual action is CI-only.
- Broad CI, packaging, publint, Turbo, or shared runtime changes: run `build-and-test`.

### 3. Run commands in CI order

When reproducing CI, use the same command shape as the repo:

```bash
pnpm run ci:local --only=build-and-test
pnpm run ci:local --only=devtools
pnpm run ci:local --only=e2e-runtime
```

To run more than one job:

```bash
pnpm run ci:local --only=build-and-test,bundle-size
```

### 4. Interpret failures correctly

- Treat the first failing step as the actionable failure.
- Ignore known noisy warnings unless they exit non-zero.
- Distinguish repo-wide drift from changed-file gates.
- If `ci:local` fails in `Check code format`, inspect the changed-file formatter result before running broader builds.
- If a dependency build outside the touched scope fails, note it separately as an unrelated blocker.

## Common Cases

### Broad package or runtime/plugin change

Run:

```bash
pnpm run ci:local --only=build-and-test
```

If that fails on format first, fix the changed files before rerunning the whole job.

### One package only

Prefer the smaller direct command first:

```bash
pnpm exec turbo run build --filter=@module-federation/<pkg>
pnpm exec turbo run test --filter=@module-federation/<pkg> --force
```

Then run `build-and-test` only if the user asks for CI parity or the package change affects shared build/runtime behavior.

### E2E change

Run the matching job from [references/jobs.md](./references/jobs.md), not the whole matrix.

### Workflow change

Use the local CI job if one exists for the workflow's behavior. For workflow syntax, pair local validation with the repo's actionlint path when relevant.

## Notes

- `ci:local` sets `CI=true` and mirrors the repo workflow order.
- Some jobs intentionally skip GitHub-only actions such as `actionlint` and `bundle-size-comment`.
- The repo uses `pnpm`, Node 24, and Turbo as the standard execution path.
- In worktrees, still use Turbo/package scripts directly as documented by the repo instructions.
Files in this package (3)
  • SKILL.md 4 KB
  • agents/openai.yaml 1 KB
  • references/jobs.md 2 KB

Versions

RepositoryScoreLicence
This page · module-federation/core100MIT
mgionas/ai-dev-guild100MIT
penpot/penpot100MPL-2.0
Atypical-Consulting/local-ci100MIT
redwoodjs/local-ci100MIT

Database snapshot: 13.11.2026 · package version aab129635925 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100npm-trusted-publishing-github-workflow
    Generate, repair, or debug the GitHub Actions workflow FILE that performs an OIDC trusted publish of a pnpm package — the concrete publish.yml, its test → build → publish job shape, the package tarball artifact handoff, Node-version inference from package.json, version-aware…
  • 100github-actions-template
    GitHub Actions CI pipeline templates and workflow YAML patterns. TRIGGER when: creating or editing a CI workflow, adding a CI job, or wiring build/test/deploy steps. SKIP: container build internals (use docker-templates); local git workflow (use git-operations).
  • 100local-ci-dev
    Run local CI via the in-tree dev build of local-ci (`pnpm local-ci-dev`) to verify changes to this repo before completing work. Runs `pnpm local-ci-dev run --all` in the background, watches the log for step failures, and retries failed runners after fixes. Use before reporting…
  • 100github-actions
    GitHub Actions CI/CD. Covers workflows, jobs, and deployment. Use for automating builds, tests, and deployments. USE WHEN: user mentions "github actions", "workflow", "ci/cd", ".github/workflows", "actions/checkout", "github workflow", asks about "automate tests", "deploy on…
  • 100adopt-ec2-runners
    Moves a repository's GitHub Actions jobs onto ec2-runners by choosing ec2 or microvm labels and sizes for each job. Use when migrating workflows from GitHub-hosted or other self-hosted runners to ec2-runners, or sizing a job's runs-on labels.
  • 90run-ci
    Analyze current branch changes with the repo CI detector and run user-selected local CI jobs. Use when the user asks to run, reproduce, or choose local CI checks.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.