pr-title

Generate conventional commit PR titles from git diff analysis.

3.0k|1.6k|Updated Jul 18, 2018
One-click install
npx skills add https://github.com/MetaMask/metamask-mobile --skill pr-title-metamask
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pr-title
Source: https://github.com/MetaMask/metamask-mobile/tree/main/.agents/skills/pr-title
Command: npx skills add https://github.com/MetaMask/metamask-mobile --skill pr-title-metamask

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the creation of PR titles that conform to the conventional commit style, reducing manual drafting time and ensuring consistency.

Core Features & Use Cases

  • Generate a PR title from a git diff analysis.
  • Enforce conventional-commit format including type, optional scope, and description.
  • Handle length constraints (max 72 characters) and imperative mood.

Quick Start

Provide the current branch or diff output and ask the AI to generate a conventional PR title.

Frequently Asked Questions about pr-title

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

FAQPage Schema
How do I generate a conventional commit PR title from a git diff?

To generate a conventional commit PR title, provide your branch's git diff to the tool, which analyzes code changes and outputs a formatted title following the conventional commits structure.

What is the conventional commit format for pull request titles?

The conventional commit format for PR titles requires a type, an optional scope, and a description (e.g., type[optional scope]: description). The type and scope must be lowercase, use imperative mood, and stay under 72 characters.

How do I write a PR title in imperative mood from code changes?

Writing a PR title in imperative mood from code changes involves analyzing the git diff to determine the change type, then structuring the description as a direct command such as add, fix, or refactor.

Does the conventional PR title generator enforce a character limit?

Yes, the conventional PR title generator enforces a strict maximum length of 72 characters to ensure repository history remains clean and readable across different Git platforms.

Can I automate PR title creation for feature and refactor branches?

Yes, you can automate PR title creation for feature and refactor branches by passing the git diff output to the tool, which identifies the change type and generates the appropriate conventional commit title.

Why do my pull request titles fail conventional commit checks?

Pull request titles fail conventional commit checks when they exceed 72 characters, use incorrect capitalization, lack a valid type, or miss the imperative mood structure required by standard Git workflow linters.