pre-pr

Run Roslynator, build, test, duplication, and format checks for .NET PRs.

32|3|Updated Feb 12, 2026
One-click install
npx skills add https://github.com/asynkron/asynkron-skills --skill pre-pr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pre-pr
Source: https://github.com/asynkron/asynkron-skills/tree/main/skills/pre-pr
Command: npx skills add https://github.com/asynkron/asynkron-skills --skill pre-pr

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automatically enforce mandatory pre-PR quality gates for .NET projects to prevent broken builds, failing tests, and style inconsistencies from entering the codebase.

Core Features & Use Cases

  • Runs Roslynator fixes to correct common code issues before PRs
  • Builds the solution or project to verify compilability
  • Executes tests to ensure behavioral correctness
  • Checks for code duplication and formatting to maintain quality
  • Provides a clear pass/fail gate for PR readiness with guidance for remediation

Quick Start

Run the pre-pr skill on your solution or project path to automatically perform quality checks before PR submission.

Frequently Asked Questions about pre-pr

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

FAQPage Schema
How do I automate pre-PR quality checks for .NET projects?

You can automate pre-PR quality checks for .NET projects using a deterministic workflow that validates compilation, executes unit tests, detects code duplication, and enforces formatting before allowing a pull request to proceed.

What steps are required to verify .NET code quality before submitting a pull request?

Verifying .NET code quality before a pull request involves running Roslynator fixes, building the solution, executing tests, checking for duplication, and applying dotnet format to ensure codebase integrity and style consistency.

Does this pre-PR validation process use Roslynator to fix code formatting automatically?

Yes, the pre-PR validation process uses Roslynator to automatically correct common code issues, followed by dotnet format checks to maintain style consistency across the .NET solution.

Can I use dotnet build and dotnet test as mandatory gates for CI-CD pipelines?

Yes, you can use dotnet build and dotnet test as mandatory failure gates within CI-CD pipelines to prevent broken builds and failing tests from entering the codebase during pull request preparation.

What happens if unit tests or code duplication checks fail during pre-PR validation?

If unit tests or code duplication checks fail during pre-PR validation, the process implements failure gating to stop the PR from proceeding and provides clear guidance for remediating the identified issues.