pr-threshold

Evaluate git commit metrics against thresholds and trigger a pull request.

341|48|Updated Apr 4, 2025
One-click install
npx skills add https://github.com/WellApp-ai/Well --skill pr-threshold
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pr-threshold
Source: https://github.com/WellApp-ai/Well/tree/main/cursor-rules/skills/pr-threshold
Command: npx skills add https://github.com/WellApp-ai/Well --skill pr-threshold

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps engineering teams maintain review quality by tracking accumulated commits and automatically signaling when to open a PR for human review. It prevents PRs from becoming too large or complex for effective review.

Core Features & Use Cases

  • Threshold-based evaluation across LOC, files changed, commits, risk, and scope completion.
  • Automated decision-making to CONTINUE or TRIGGER_PR with detailed PR scope.
  • Override and logging capabilities to handle exceptions in the workflow.
  • Use Case: After completing a feature plan, the skill evaluates the committed state and prompts whether to push a PR for review.

Quick Start

Use the pr-threshold skill after a commit to evaluate the current batch against the planned thresholds and determine whether to push a PR now.

Frequently Asked Questions about pr-threshold

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

FAQPage Schema
How do I prevent oversized pull requests during automated git workflows?

PR threshold tracking evaluates accumulated commit metrics like lines of code, files changed, and commit count against configured limits, automatically issuing a TRIGGER_PR verdict when crossed to prevent oversized code reviews.

How do I set up automated PR governance for agent-driven commits?

Automated PR governance for agent-driven commits works by parsing git statistics and a commit plan, comparing accumulated changes against configured thresholds to produce a CONTINUE or TRIGGER_PR verdict after each batch.

What commit metrics should I track to maintain code review quality?

You should track lines of code, files changed, total commits, risk level, and scope completion. Evaluating these commit metrics against configured thresholds determines whether to continue development or trigger a code review.

Can I override the pull request trigger when thresholds are crossed?

Yes, you can override the pull request trigger when thresholds are crossed. The skill includes override and logging capabilities to handle exceptions within the workflow, allowing continued commits despite exceeding configured limits.

When should I evaluate my git workflow against PR thresholds?

You should evaluate your git workflow against PR thresholds immediately after completing a commit or finalizing a feature plan. This evaluates the current committed state to decide whether to push a PR for human review or continue.