Agent skill

PR Threshold

by WellApp-ai in WellApp-ai/Well

Track commit accumulation and trigger PR when thresholds crossed

MITAuto-check passed

Install PR Threshold

skills CLI
$ npx skills add WellApp-ai/Well --skill pr-threshold -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install WellApp-ai/Well pr-threshold --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/WellApp-ai/Well.git skills-src && mkdir -p .claude/skills && cp -r skills-src/cursor-rules/skills/pr-threshold .claude/skills/pr-threshold && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
pr-threshold
GitHub stars
345
Token cost
~1k tokens
SKILL.md length
269 words
Files
1
Skills in repo
36
Repo updated
First seen
Licence
MIT

At a glance

Track commit accumulation and trigger PR when thresholds crossed

  • Works in 4 steps: Gather Metrics → Evaluate Thresholds → Determine Action → …
  • PR when thresholds crossed
  • SKILL.md covers When to Use, Thresholds, Phase 1: Gather Metrics and Phase 2: Evaluate Thresholds, plus 7 more sections
  • Calls git

What it does

PR Threshold is an agent skill from WellApp-ai/Well. Track commit accumulation and trigger PR when thresholds crossed

Its SKILL.md is about 1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: No more Sundays on Finance. We build the infrastructure that retrieves, processes, and routes your financial and business data to your FinOps stack, so founders can ship, not… The licence is MIT.

When your agent uses it

  • PR when thresholds crossed

Example prompts

  • “/pr-threshold”

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Gather Metrics
  2. Evaluate Thresholds
  3. Determine Action
  4. Handle Decision

What it can do on your machine

Read from SKILL.md and the folder at commit c740217. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

PR Threshold loads about 1k tokens when it runs. Until then it costs about 19 tokens; SKILL.md has 269 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~19
When it runs · the whole SKILL.md, loaded when a task matches
~1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from WellApp-ai/Well at commit c740217, republished under its MIT licence (© WellApp-ai). 269 words, ~1,035 tokens.

Download SKILL.mdSave it as .claude/skills/pr-threshold/SKILL.md (or your agent's skills folder).
name
pr-threshold
description
Track commit accumulation and trigger PR when thresholds crossed

PR Threshold Skill

Monitor accumulated commits and metrics to determine when a PR should be pushed for human review. Prevents PRs from becoming too large or complex for effective review.

When to Use

  • After each successful git commit
  • During Agent Mode commit-level workflow
  • Manually with "use pr-threshold skill"

Thresholds

MetricTrigger ValueRationale
Lines of Code> 300Human cognitive limit
Files Changed> 10Context switching cost
Commits> 5Review complexity
Risk ScoreHIGHNeeds careful review
Scope Completion100%Feature complete

Phase 1: Gather Metrics

1.1 Lines of Code
bash
git diff origin/develop --stat | tail -1

Extract: insertions + deletions

1.2 Files Changed
bash
git diff origin/develop --name-only | wc -l
1.3 Commit Count
bash
git rev-list origin/develop..HEAD --count
1.4 Risk Score

Sum of risk from pr-review across all commits:

  • LOW = 1
  • MEDIUM = 2
  • HIGH = 3
1.5 Scope Completion

From Commit Plan:

  • Total commits planned: N
  • Commits completed: M
  • Completion: M/N * 100%

Phase 2: Evaluate Thresholds

markdown
## PR Threshold Check

| Metric | Current | Threshold | Status |
|--------|---------|-----------|--------|
| Lines of Code | [N] | 300 | OK/CROSSED |
| Files Changed | [N] | 10 | OK/CROSSED |
| Commits | [N] | 5 | OK/CROSSED |
| Risk Score | [N] | HIGH | OK/CROSSED |
| Scope Completion | [N]% | 100% | OK/CROSSED |

Phase 3: Determine Action

CONTINUE (No threshold crossed)
markdown
## Verdict: CONTINUE

No thresholds crossed. Proceeding to next commit.

### Current Accumulation:
- LOC: [N]/300
- Files: [N]/10
- Commits: [N]/5
- Scope: [N]%

### Next Commit:
[Name of next commit from plan]
TRIGGER_PR (Threshold crossed)
markdown
## Verdict: TRIGGER_PR

**Threshold crossed:** [Which metric(s)]

### Recommendation:
Push PR now for human review before continuing.

### PR Scope:
- Commits: [List of commit names]
- Total LOC: [N]
- Files: [N]
- Risk: [LOW/MEDIUM/HIGH]

### Remaining Work:
- Commits left: [N]
- Features incomplete: [List]

**Proceed to push-pr mode?** (Yes / Continue anyway)
BLOCK (Threshold crossed, no override)

If threshold crossed and user has NOT provided explicit override:

markdown
## Verdict: BLOCK

**Threshold crossed:** [Which metric(s)]

IMPLEMENTATION PAUSED - User decision required.

| Option | Action |
|--------|--------|
| A | Push PR now (recommended) |
| B | Continue anyway (override logged) |

Reply with A or B to proceed.

Do NOT continue until user responds. This is a hard stop per 00-hard-rules.mdc.

Phase 4: Handle Decision

If TRIGGER_PR
  1. Present metrics summary
  2. Recommend push-pr mode
  3. If user approves: Switch to push-pr mode
  4. If user continues: Log override, proceed
If CONTINUE
  1. Proceed to next commit in plan
  2. Update accumulated metrics

Threshold Overrides

User can override thresholds with explicit confirmation:

markdown
**Warning:** LOC threshold exceeded (350/300).

Continuing without PR may make review harder.

**Override and continue?** (Yes / Push PR now)

Log overrides for later review.

Integration

This skill is invoked by:

  • agent.mdc - After each successful commit
  • commit.mdc - After commit completes

Metrics Storage

Track across commits:

Accumulated Metrics:
- Total LOC: [running sum]
- Total Files: [unique count]
- Commit Count: [N]
- Highest Risk: [LOW/MEDIUM/HIGH]
- Started: [timestamp]

Reset after successful PR push.

Output Format

markdown
## PR Threshold Status

**Verdict:** [CONTINUE / TRIGGER_PR]

| Metric | Value | Threshold | % |
|--------|-------|-----------|---|
| LOC | [N] | 300 | [N]% |
| Files | [N] | 10 | [N]% |
| Commits | [N] | 5 | [N]% |
| Scope | [N]% | 100% | [N]% |

[Action recommendation]

Invocation

Invoked automatically after each commit, or manually with "use pr-threshold skill".

© WellApp-ai, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in cursor-rules/skills/pr-threshold of WellApp-ai/Well.

Open the folder on GitHubat commit c740217

Compare with similar skills

PR Threshold next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

PR Threshold compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
PR Threshold this skillWellApp-ai/Well345—~1kAutomated safety check: PassMIT
Commitsickn33/agentic-awesome-skills47k2 repos~1.3kAutomated safety check: PassMIT
Commitdavila7/claude-code-templates32k3 repos~730Automated safety check: PassMIT
Commitwindmill-labs/windmill18k—~447Automated safety check: PassCustom licence
Commitccusage/ccusage19k—~722Automated safety check: PassCustom licence
CommitsJetBrains/intellij-community21k—~589Automated safety check: PassCustom licence

Similar skills

  • Commit

    sickn33/agentic-awesome-skills

    ALWAYS use this skill when committing code changes — never commit directly without it.

    47k GitHub starsUsed in 2 repos~1.3k tokens
    DevelopmentAuto-check passed
  • Commit

    davila7/claude-code-templates

    Create commit messages following Sentry conventions. An agent skill from davila7/claude-code-templates.

    32k GitHub starsUsed in 3 repos~730 tokens
    DevelopmentAuto-check passed
  • Commit

    windmill-labs/windmill

    Create a git commit with conventional commit format. An agent skill from windmill-labs/windmill.

    18k GitHub stars~447 tokensUpdated today
    DevelopmentAuto-check passed
  • Commit

    ccusage/ccusage

    Creates atomic Conventional Commits. An agent skill from ccusage/ccusage.

    19k GitHub stars~722 tokensUpdated today
    DevelopmentAuto-check passed
  • Commits

    JetBrains/intellij-community

    Official

    Create, amend, or rename IntelliJ commits and write commit messages.

    21k GitHub stars~589 tokensUpdated today
    DevelopmentAuto-check passed
  • Commit

    antiwork/gumroad

    Stage and commit changes with a clear, concise commit message.

    9.8k GitHub stars~503 tokensUpdated today
    DevelopmentAuto-check passed

More from WellApp-ai/Well

All 36 skills in this repo
  • Tech Divergence

    WellApp-ai/Well

    Evaluate technical options with scoring matrix, trigger Gate 4 for significant decisions

    345 GitHub stars~1.3k tokensUpdated yesterday
    Auto-check passed
  • Ar Aging

    WellApp-ai/Well

    Produce an accounts-receivable aging report and surface overdue invoices for a Well workspace.

    345 GitHub stars~532 tokensUpdated yesterday
    Auto-check passed
  • Autonomous Loop

    WellApp-ai/Well

    Iterate until success or limit, composing existing skills with Jidoka integration

    345 GitHub stars~1k tokensUpdated yesterday
    Auto-check passed
  • Balance Sheet

    WellApp-ai/Well

    Build a balance sheet (bilan) from a Well workspace. An agent skill from WellApp-ai/Well.

    345 GitHub stars~534 tokensUpdated yesterday
    Auto-check passed
  • Bpmn Workflow

    WellApp-ai/Well

    Generate and maintain BPMN 2.0 diagrams linked to Gherkin scenarios

    345 GitHub stars~1.4k tokensUpdated yesterday
    Auto-check passed
  • Cash Flow Forecast

    WellApp-ai/Well

    Forecast cash flow and runway for a Well workspace from booked invoices and collected bank transactions.

    345 GitHub stars~567 tokensUpdated yesterday
    Auto-check passed

Questions about PR Threshold

What does PR Threshold do?

Track commit accumulation and trigger PR when thresholds crossed. PR Threshold is an agent skill from WellApp-ai/Well.

When should I use PR Threshold?

PR Threshold fits situations like: PR when thresholds crossed.

How do I install PR Threshold in Claude Code?

Run `npx skills add WellApp-ai/Well --skill pr-threshold -a claude-code`. Or copy the skill folder (cursor-rules/skills/pr-threshold in WellApp-ai/Well) into .claude/skills/pr-threshold in your project. Claude Code loads it when a task matches its description.

How do I install PR Threshold in Codex?

Run `npx skills add WellApp-ai/Well --skill pr-threshold -a codex`. Or copy the skill folder (cursor-rules/skills/pr-threshold in WellApp-ai/Well) into .agents/skills/pr-threshold in your project. Codex loads it when a task matches its description.

Can I use PR Threshold in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add WellApp-ai/Well --skill pr-threshold -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/pr-threshold, .gemini/skills/pr-threshold, .github/skills/pr-threshold and .opencode/skills/pr-threshold in your project.

What does PR Threshold need to run?

Going by SKILL.md and its folder, PR Threshold needs the command-line tools its instructions call (git).

Does PR Threshold access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is PR Threshold safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does PR Threshold use?

PR Threshold is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does PR Threshold use?

About 1k tokens (SKILL.md is roughly 4.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to PR Threshold?

Skills that share tags, products or a category with PR Threshold: Commit (sickn33/agentic-awesome-skills, 47k stars), Commit (davila7/claude-code-templates, 32k stars), Commit (windmill-labs/windmill, 18k stars) and Commit (ccusage/ccusage, 19k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains PR Threshold?

WellApp-ai (a GitHub organization) maintains it in WellApp-ai/Well, which has 345 GitHub stars. The repository holds 36 skills in this directory. The repository was last updated on October 7, 2026.

Source: WellApp-ai/Well on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.