Executes a series of linting, testing, and build checks to validate PR readiness before submission.

Install

mkdir -p .claude/skills/pr-check-timothy191 && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/12067" && unzip -o skill.zip -d .claude/skills/pr-check-timothy191 && rm skill.zip

Installs to .claude/skills/pr-check-timothy191

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Pre-submit validation checklist for PRs
39 charsno explicit “when” trigger
Intermediate

Key capabilities

  • Perform type checking on the codebase
  • Run linting checks for code quality
  • Verify code formatting compliance
  • Execute unit and end-to-end tests
  • Audit for design system violations

How it works

The skill executes a series of commands for type checking, linting, formatting, testing, and building, then audits for design system violations and checks git status.

Inputs & outputs

You give it
Codebase files and git repository state
You get back
Validation results for type, lint, format, tests, design system, and build, with PASS/FAIL status

When to use pr-check

  • Run pre-submit validation before PR creation
  • Check linting and formatting compliance
  • Verify E2E tests pass for the current branch
  • Audit design system tokens in changed files

About this skill

PR Check Skill

Purpose

Run comprehensive pre-submit validation before creating a pull request.

Checklist

1. Type Check

pnpm --filter portal type-check
  • Must pass with no errors

2. Lint Check

pnpm lint
  • Must pass with no warnings

3. Format Check

pnpm exec prettier --check "**/*.{ts,tsx,md}"
  • If fails, run pnpm format to fix

4. Test Suite

# Unit tests
pnpm --filter portal test

# E2E tests (requires dev server)
pnpm test:e2e

5. Design System Audit

Check for forbidden patterns in changed files:

  • font-bold, font-semibold -> use font-medium
  • bg-white/5, border-white/10 -> use design tokens
  • shadow-* -> use border for depth
  • Direct clsx/tailwind-merge -> use cn() from @repo/ui/lib/utils

6. Build Verification

pnpm --filter portal build
  • Must complete without errors

7. Git Status

  • No uncommitted changes
  • Branch name follows convention (feature/, fix/, chore/*)

Output Format

## PR Check Results

- [ ] Type check: PASS/FAIL
- [ ] Lint: PASS/FAIL
- [ ] Format: PASS/FAIL
- [ ] Tests: PASS/FAIL (X passed, Y failed)
- [ ] Design system: PASS/FAIL (list violations)
- [ ] Build: PASS/FAIL

Ready to submit: YES/NO

If Failures Found

List each failure with:

  1. Command that failed
  2. Error message
  3. Suggested fix

When not to use it

  • When there are uncommitted changes in the git repository
  • When the branch name does not follow convention (feature/_, fix/_, chore/*)
  • When the `portal` filter for pnpm is not applicable

Limitations

  • Requires `pnpm` for package management and script execution
  • E2E tests require a running dev server
  • Design system audit checks for specific forbidden patterns like `font-bold` or `bg-white/5`

How it compares

This skill provides a complete, automated pre-submit validation checklist for pull requests, ensuring adherence to project standards before submission, unlike manual checks.

Compared to similar skills

pr-check side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
pr-check (this skill)03moReviewIntermediate
verify03moReviewBeginner
verification-loop04moReviewIntermediate
frontend-mix-validate02moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry