pre-pr

Execute code quality and compliance checks on pull requests.

1|Updated Mar 9, 2026
One-click install
npx skills add https://github.com/oscardlfr/AndroidCommonDoc --skill pre-pr-oscardlfr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pre-pr
Source: https://github.com/oscardlfr/AndroidCommonDoc/tree/main/skills/pre-pr
Command: npx skills add https://github.com/oscardlfr/AndroidCommonDoc --skill pre-pr-oscardlfr

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires git, gradlew, trufflehog, mcp-server, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill automates the execution of various checks to ensure code quality and compliance before opening a pull request, reducing the likelihood of CI failures and enhancing codebase integrity.

Core Features & Use Cases

  • Commit Linting: Validates commit messages for consistency and correctness.
  • Resource Linting: Checks string resources for naming conventions and errors.
  • Architecture Guards: Ensures adherence to architectural guidelines.
  • KMP Safety Checks: Validates Kotlin Multiplatform code for safety patterns.
  • Secret Scan: Detects sensitive information in the codebase.
  • Dependency Freshness: Checks for outdated dependencies.
  • Catalog Coverage: Ensures catalog coverage for dependency management.
  • Agent Template Tests: Validates agent templates for correct usage.
  • Behavioral Lint: Checks agent templates for role keyword contracts and tool-body cross-references.
  • Registry Hash Freshness: Ensures registry hashes are up-to-date.
  • Build + Test: Executes build and test steps if not skipped.
  • Summary Table: Provides a summary of the checks and their outcomes.
  • Pre-PR Stamp: Writes a pre-PR stamp upon successful completion.

Quick Start

Run the pre-pr skill with the command: /pre-pr

Frequently Asked Questions about pre-pr

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I validate code quality and compliance before opening a pull request?

To validate code quality before opening a pull request, you can run automated checks for commit linting, architecture guards, and secret scanning. This ensures codebase integrity and reduces the likelihood of CI failures.

What checks are needed for Kotlin Multiplatform code safety before merging?

Kotlin Multiplatform code safety requires executing targeted safety checks to validate patterns. Running these checks alongside resource linting and architecture guards ensures KMP code adheres to structural guidelines before merging.

Does pre-pr require git and trufflehog to run secret scanning checks?

Yes, secret scanning checks require trufflehog and git dependencies to detect sensitive information in the codebase. The environment also requires gradlew and mcp-server to execute the full suite of validation scripts.

How do I automate dependency freshness and catalog coverage checks for my codebase?

You can automate dependency freshness and catalog coverage checks by running a pre-PR validation skill. This process identifies outdated dependencies and ensures proper catalog coverage for dependency management.

What is the best way to enforce commit message linting and architecture guards locally?

The best way to enforce commit message linting and architecture guards locally is running an automated validation script. This approach checks string resources and architectural guidelines, generating a summary table of check outcomes.