# Clean Pull Requests: Commit Lint, Size Check, PR Splitting

> Lint Conventional Commits and PR titles, measure PR size, split oversized PRs into ordered parts and write the description. Stdlib only.

Clean Pull Requests: Commit Lint, Size Check, PR Splitting is a paid AI agent skill on Agensi by José Miguel Gómez, in Code Quality & Review. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $7 (one-time purchase)
- Creator: [José Miguel Gómez](https://www.agensi.io/creators/jose-miguel-gomez)
- Category: [Code Quality & Review](https://www.agensi.io/skills/code-quality-review)
- Version: 1.0
- Last updated: 2026-12-03
- Security: scan passed (2026-12-03); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/clean-pull-requests-commit-lint-size-check-pr-splitting
- Tags: code-review, git, productivity, documentation, automation

## What it does

- Identifies commit messages and titles that do not follow standard naming rules
- Suggests specific text fixes for every messy commit message in your history
- Calculates the true size of your changes while ignoring generated or vendor files
- Creates a step-by-step plan to split oversized changes into smaller logical parts
- Generates a detailed description covering the purpose, risks, and testing of your work

## Who it's for

- **Developers cleaning up code history:** Clean up your commit messages and PR titles to meet team standards before you push. Try: "Check if my branch is ready for a PR and fix my commit messages."
- **Tech leads reviewing large changes:** Break down massive, unreviewable pull requests into small, logical parts that are easy to check. Try: "This PR is way too big. Help me split it into smaller parts."
- **Teams using Conventional Commits:** Enforce consistent naming for every change so your project history stays readable. Try: "Audit these commit messages against our team policy."

## About this skill

When a code change gets too big or messy, reviewers struggle to understand it. This skill helps you polish your pull requests until they are easy to read and safe to merge. It checks your commit messages against professional standards and flags titles that do not follow the rules. If your change has grown too large, it suggests exactly how to slice it into smaller, logical branches.

**How it works**

1. Provide the list of file changes and your commit messages to your AI agent.
2. Review the report on commit quality and the total size of your changes.
3. Follow the suggested fixes for any messages that fail the check.
4. Use the generated plan to split a large change into smaller, ordered parts if needed.
5. Create a clear description using the provided template for your final submission.

**What you get:** A ready-to-merge pull request with clean history and a logical structure.

## Requires

- Python
- Git

## Known limitations

You must manually run the git commands to get the logs and diffs to show your AI agent. It cannot push code to your repository for you.

## Technical details

This skill uses Python 3.10 scripts (pr_check.py, split_plan.py, commit_lint.py) to process git numstat and log outputs. It enforces Conventional Commit standards via a customizable policy (types, scopes, header length). It ignores node_modules, dist, and vendor folders by default when calculating size limits (warn at 400 lines, fail at 1000). It outputs a structured split plan with specific git switch and checkout commands for branch orchestration.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Clean Pull Requests: Commit Lint, Size Check, PR Splitting skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does this skill make my code reviews easier?

This skill checks that your code change messages follow professional standards and identifies if your pull request is too large for a human to review comfortably. If the change is too big, it provides a step by step plan to split it into smaller, logical pieces that are easier to understand and safe to merge.

### Do I need to connect my GitHub account or install anything to use this?

You only need the list of file changes and the history of messages for your code updates. You do not need to install any new software or give the skill access to your private accounts because your AI agent uses the provided scripts to process the text you share.

### What exactly will the AI agent give me after running this skill?

You receive a report showing a ready or not ready status for your pull request along with specific suggestions to fix messy commit titles. If your work is oversized, you get a clear list of commands and paths to reorganize your code into a series of smaller, ordered branches.

### How do I tell my AI agent to start working on my code changes?

You can ask your agent to prepare this branch for a pull request, check if your changes are ready for review, or help you split a large pull request into smaller parts. You should provide the agent with your file change statistics and commit messages to get started.

### Does the skill count every single line of code, including third party libraries?

The skill automatically ignores certain files like lock files, minified code, and folders like node_modules or vendor when measuring size. It focuses on the actual logic you wrote rather than external libraries or generated files.

### What are the specific rules the skill uses to judge my work?

It flags any pull request over 1000 lines as a failure and warns you if it exceeds 400 lines. It also checks that your messages follow the Conventional Commit standard, such as having the correct type and an optional scope.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
