pr-ready

Validates that code is ready for a pull request by running automated checks (type checking, linting, tests) and reviewing changes.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "pr-ready" with this command: npx skills add anamtechjay/cowboy-v2/anamtechjay-cowboy-v2-pr-ready

PR Readiness Checker

Validates that code is ready for a pull request by running automated checks (type checking, linting, tests) and reviewing changes.

Quick Start

Run the unified PR readiness script:

bash "$SKILL_DIR/scripts/check-deploy-ready.sh"

Or run individual checks:

Type checking only

bash "$SKILL_DIR/scripts/check-types.sh"

Linting only

bash "$SKILL_DIR/scripts/check-lint.sh"

Tests only

bash "$SKILL_DIR/scripts/check-tests.sh"

Git diff for code review

bash "$SKILL_DIR/scripts/git-diff-for-review.sh" --stdout

What Gets Checked

  1. Type Errors
  • TypeScript: Runs tsc --noEmit (finds local install first, then global)

  • Python: Runs mypy or pyright if available

  1. Lint Issues
  • Node.js: Auto-detects Biome, ESLint, or project-configured linter

  • Python: Auto-detects ruff, flake8, or pylint

  1. Tests
  • Node.js: Auto-detects npm test script, Jest, Vitest, Mocha, or Bun test

  • Python: Auto-detects pytest or unittest

  1. Code Quality (Git Diff Review)
  • Generates diff of staged/unstaged changes

  • YOU must analyze the diff for issues (see checklist below)

Workflow

Step 1: Run Automated Checks

bash "$SKILL_DIR/scripts/check-deploy-ready.sh"

Step 2: Review Diff Output

Analyze the generated diff for these issues:

Critical (must fix):

  • any type usage (TypeScript) or missing type hints (Python)

  • console.log /print() debug statements

  • Unhandled errors or missing try-catch

  • Security issues (SQL injection, XSS, hardcoded secrets)

Warnings:

  • TODO/FIXME comments

  • Magic numbers without constants

  • Functions without return types

  • Deep nesting (>3 levels)

Info:

  • Long functions (>50 lines)

  • Poor variable naming

  • Missing docstrings for public APIs

Step 3: Report Findings

Format your findings like this:

Code Review: [filename]

Critical:

  • Line X: [issue] - [suggestion]

Warnings:

  • Line Y: [issue] - [suggestion]

Info:

  • Line Z: [minor improvement]

Manual Commands

Node.js/TypeScript

Type check (prefers local tsc)

./node_modules/.bin/tsc --noEmit

or

npx tsc --noEmit

Lint (auto-detected)

./node_modules/.bin/eslint . --ext .ts,.tsx,.js,.jsx

or for Biome

npx biome check .

Run tests

npm test

or directly with Jest

npx jest

or with Vitest

npx vitest run

Python

Type check

mypy .

or

pyright

Lint

ruff check .

or

flake8 .

Run tests

pytest

or with unittest

python -m unittest discover

Interpreting Results

All Checks Passed

The code is ready for a pull request.

Checks Failed

  • Fix type errors first (they indicate real bugs)

  • Fix lint errors (many can be auto-fixed with --fix )

  • Fix failing tests (ensure all tests pass before deployment)

  • Address code review findings by severity

Troubleshooting

TypeScript not found:

npm install typescript --save-dev

Python type checker not found:

pip install mypy # or: pip install pyright

No linter detected:

Node.js

npm install eslint --save-dev

Python

pip install ruff # or: pip install flake8

No test framework detected:

Node.js (Jest)

npm install jest --save-dev

Add to package.json scripts: "test": "jest"

Node.js (Vitest)

npm install vitest --save-dev

Python

pip install pytest

Empty diff output:

  • Stage changes with git add or use --unstaged flag

  • Ensure you're in a git repository

Reference

See code-review-guide.md for detailed code review patterns and examples.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

gcp-error-logs

No summary provided by upstream source.

Repository SourceNeeds Review
General

pr-ready

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

Webhook Tester

Webhook testing and debugging tool. Send test webhook payloads to any URL, simulate various webhook events (GitHub, Stripe, Slack), inspect responses, and lo...

Registry SourceRecently Updated
Coding

Azuredatastudio

Azure Data Studio is a data management and development tool with connectivity to popular cloud and o azuredatastudio, typescript, azure, azure-data-studio, e...

Registry SourceRecently Updated
1130ckchzh