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

    by José Miguel Gómez

    1

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

    $7

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    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 asking: “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 asking: “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 asking: “Audit these commit messages against our team policy.”

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

    Example session with this skill installed

    I have a branch with 15 commits and over 1,200 lines changed. It is a mess. Check if it is ready for a PR and help me split it up if it is too big.

    • Read your context and instructions
    • Compiled the clean pull requests

    I have analyzed your branch data. The current status is NOT READY.

    The total size is 1,254 lines, which exceeds the limit for a single review. I recommend splitting this into three parts.

    1. Commit Message Audit

    • fix: update stuff -> Issue: Too vague. Suggestion: fix: update billing validation logic
    • added new docs -> Issue: Missing type prefix. Suggestion: docs: add installation instructions

    2. Splitting Plan
    I have organized your changes into these parts for easier review:

    • Part 1 (Infrastructure): Changes to configuration and build files. Use branch pr-part-1-config.
    • Part 2 (Logic): The core library updates. Use branch pr-part-2-core.
    • Part 3 (Tests): New test cases and documentation. Use branch pr-part-3-testing.

    3. Next Steps

    1. Run git commit --amend to fix the latest message.
    2. Use git checkout -b for each part listed above and move the specific files I identified.
    3. Once the first part is ready, I can help you write the description for it.

    Would you like the specific git commands to move the files for Part 1?

    Connects securely to your tools. The creator never sees your data.

    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.

    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.

    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

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Frequently Asked Questions

    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.

    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.

    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.

    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.

    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.

    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.

    New in Code Quality & Review

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Code Quality & Review.