lean-pr

Create and label Lean core and Mathlib4 PRs with dependency cross-linking.

2|Updated May 26, 2026
One-click install
npx skills add https://github.com/r-irbe/proof-skills --skill lean-pr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lean-pr
Source: https://github.com/r-irbe/proof-skills/tree/main/skills/_overrides/lean-pr
Command: npx skills add https://github.com/r-irbe/proof-skills --skill lean-pr

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides a unified, policy-driven workflow for creating, labeling, and wiring PRs across Lean ecosystem repositories, ensuring consistent conventions and cross-repo traceability.

Core Features & Use Cases

  • Centralizes PR conventions for Lean core and Mathlib4, including title formats, changelog labels, and dependency handoffs.
  • Guides developers through branch-from-fork workflows, upstream filing, and cross-linking dependent PRs, reducing review friction.
  • Provides a redirect mechanism for downstream tooling and maintains a clear handoff map to lean-proof-review and lean-zettelkasten.

Quick Start

Branch from a fork, choose the target convention, and draft the PR following Lean/Mathlib4 guidelines.

Frequently Asked Questions about lean-pr

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

FAQPage Schema
How do I create a PR for Mathlib4 that follows the correct branching and title conventions?

To create a Mathlib4 PR, branch from a fork and follow upstream conventions for title formatting and changelog labels. This ensures consistent routing and cross-repo traceability across Lean ecosystem repositories.

What is the correct workflow for cross-linking dependent PRs in the Lean ecosystem?

Cross-linking dependent PRs in the Lean ecosystem involves applying policy-driven dependency handoffs and referencing upstream conventions. This maintains clear traceability between Lean core and Mathlib4 contributions.

Can I use this workflow for both Lean core and Mathlib4 contributions?

Yes, this workflow supports both Lean core and Mathlib4 contributions. It centralizes PR conventions for both repositories, applying appropriate labeling, title formats, and dependency cross-linking.

How do I apply changelog labels and formatting when filing upstream PRs for Lean?

Filing upstream Lean PRs requires choosing the target convention and applying centralized changelog labels and title formats. This is done after branching from a fork to reduce review friction.

What is the best way to manage PR handoffs to lean-proof-review in the Lean ecosystem?

Managing PR handoffs to lean-proof-review requires using a unified workflow that provides a clear handoff map. It redirects downstream tooling and enforces branching from forks for consistent processing.