Skip to content
Back to skills

Seira Pr Checks

ASecurity

Use before you commit, push, or open a pull request in seira-bot/seira, and when a CI job (checks, build, or a vitest shard) fails on a pull request. Use also when a targeted test run passes but CI fails.

  • 99 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added December 3, 2026
ai-agentsrustgoshellnodetestinggitapi

Works with

  • terminal
  • api

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned December 3, 2026

npx -y skills add seira-bot/seira --skill seira-pr-checks --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Seira Pr Checks?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Seira Pr Checks
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/seira-bot-seira-pr-checks/badge)](https://www.skillsdirectory.com/skills/seira-bot-seira-pr-checks)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: seira-pr-checks
description: "Use before you commit, push, or open a pull request in seira-bot/seira, and when a CI job (checks, build, or a vitest shard) fails on a pull request. Use also when a targeted test run passes but CI fails."
---

# Seira pull request checks

CI runs every guard and the whole suite. A narrow test run that picks tests by name misses the guards that read the whole repository. Find each file type that you changed in the table, and run its checks before you push.

`docs/contributing.md` ("Before you open the PR") has the full checklist. This skill adds the checks that a targeted run often misses.

The commands use only git, node, pnpm, and gh, with no shell-specific syntax. Type them the same way in a macOS, Linux, or Windows terminal.

## Where these commands may run

`pnpm install`, the hooks, and the tests run code from the checkout. Run them only in a trusted checkout: your own work, or work that you have permission to run.

- For a pull request from a fork that you do not trust, do not install, hook, or test it on your machine. Read the diff (`gh pr diff <number>`), and let GitHub CI run it.
- Do not go around the approval that GitHub asks for before CI runs on a fork pull request.
- Run CI again only when your role and the repository rules let you. A rerun needs write access.
- Do not merge, and do not change branch protection or workflow settings, without the approval that the repository requires.

## Once per clone and per worktree

```sh
git config core.hooksPath scripts/git-hooks
pnpm install
```

The pre-commit hook runs the leak check and the private-path check on staged lines. The pre-push hook runs lint, the locale check, and the size and vocabulary guards on the files that a push changes. A checkout without dependencies cannot run the pre-push checks. `docs/contributing.md` ("CI, in one glance") tells how to run them on another machine.

## What you changed, what to run

| You changed | Do this | Check |
|---|---|---|
| Any file | Keep machine details and private files out. | `node scripts/check-local-leaks.mjs` and `node scripts/check-public-paths.mjs` |
| Any product text | Write "Seira", not an old upstream name. | `node scripts/check-brand-names.mjs` |
| `src/locales/en.json` | Add each new key to `src/locales/pt-br.json` in the same PR (`docs/localization-pt-br.md`). Then record the hashes. `--accept` writes the whole pt-br block of `src/locales/source-hashes.json` again: commit only the lines of your own keys (`git add -p`). | `node scripts/generate-locale.mjs pt-br --accept`, then `pnpm i18n:check` and `pnpm exec vitest run src/lib/i18n.test.ts src/locales/` |
| Text that says "Settings → …" (`en.json`, server prompts, `skills/`) | Use only a place that exists in `shared/settings-places.ts`. | `pnpm exec vitest run server/app-settings/places.test.ts` |
| A new page, tab, agent tool, slash command, composer menu row, or release note | Add or update its entry in `shared/app-features.ts`. | `pnpm exec vitest run shared/app-features.test.ts` |
| A page in `docs/` | Some pages have a copy on the docs site, in a section folder. Look for the file name and for a changed sentence. If you find a copy, make the same edit there. | `git ls-files "apps/docs/content/*<page>.mdx"` and `git grep -n -F "<a changed sentence>" -- apps/docs/content`, then `pnpm docs:build` and `pnpm --filter @seira/docs check:links` |
| A new export in a module that tests mock with a factory | Add the export to each `vi.mock(...)` factory of that module. | `git grep -l "vi.mock(.*<module>" -- "*.test.ts"`, then run each file that it lists |
| A code comment | Write only what the code cannot say (`AGENTS.md`, "Comments"). | `pnpm exec vitest run scripts/testing/comment-history.test.ts` |
| A large file or `server/index.ts` | Do not make a listed file longer. | `pnpm exec vitest run scripts/testing/file-size-ratchet.test.ts scripts/testing/index-route-ratchet.test.ts` |
| `packages/phone-protocol/` or `server/testing/fixtures/phone-jobs.json` | Keep the phone contract test green. Tell the phone app maintainers in the PR. | `pnpm exec vitest run server/phones/` |
| `electron/` | Check the desktop shell. | `pnpm check:electron` and `pnpm test:electron` |
| A source guard file or `.github/workflows/ci.yml` | Run the guard set that CI runs. | Copy the file list of the "Source guards" step in `.github/workflows/ci.yml` into `pnpm exec vitest run <files>` |

## Before you open the pull request

```sh
pnpm typecheck
pnpm lint
pnpm test
```

- New server behavior needs a test.
- UI changes follow `DESIGN.md` and have before and after screenshots.
- A change to a server, conversation, or chat UI result needs proof from the `verify-seira` skill.
- Do not change the version number, the update feed, or the publish settings.

## When CI fails

1. Open the log of the `CI` job. It names the job that failed.
2. Look at the latest run on `main`. If `main` fails on the same test, your change did not cause it.
3. For a `checks` failure, run the check that the step names. Most are in the table above.
4. For a `vitest (linux, shard n/8)` failure, follow `docs/ci.md` ("Vitest shards"). A failure names the same shard on every run.
5. A test in `scripts/testing/ci-retry-list.json` can fail for a cause outside the repository (`docs/ci.md`, "Flaky tests"). Run the failed jobs again only for such a test, and only when your role lets you: `gh run rerun <run id> --failed`.
6. Fix every failure that you find before you push again. Each push starts the whole CI again.

## Common mistakes

| Mistake | Result |
|---|---|
| English keys without pt-br values | `activePackComplete` in `src/lib/i18n.test.ts` fails in a vitest shard. `pnpm i18n:check` does not catch it. |
| Targeted run picks tests by the name of the changed file | A factory mock, the places test, or a ratchet fails in CI. |
| Edit of `docs/*.md` only | The docs site copy is different. A docs test or the docs build fails. |
| "Settings → API keys" or a different invented place | `places.test.ts` fails. Use the real path, for example "Settings → AI → Other services". |
| Push without the hooks | The leak check and lint run first in CI. |

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.