Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+22 more

    Commit and PR Writer

    1

    Enforce atomic commits and reviewer-first PRs using git diff analysis and automated linting.

    Free

    1 installSecurity scanned
    Commit and PR Writer

    Commit and PR Writer

    Example session with this skill installed

    Analyze my staged changes in the current repo, suggest how to split them if they touch different areas, and draft a commit message for the main logic.

    • Read your context and instructions
    • Compiled the commit and pr

    I have analyzed the staged changes. You have modifications in src/auth/, tests/auth/, and a stray change in docs/api.md. I recommend splitting these into two commits to maintain atomic history.

    Staged Changes Analysis

    AreaFilesInsertionsDeletions
    src/auth/24512
    tests/auth/1200
    docs/api.md152

    Suggested Split

    1. Auth Logic: git add src/auth/ tests/auth/
    2. Documentation: git add docs/api.md

    Drafted Commit Message (Auth Logic)

    add jwt token revocation to auth provider
    
    Why: The current implementation allows tokens to remain valid until 
    expiry even after user logout, creating a security gap for leaked tokens.
    
    Affects: src/auth/provider.py, src/auth/store.py, tests/auth/test_revocation.py.
    Deliberately avoids touching the session cookie logic.
    
    Verified: python3 -m pytest tests/auth/test_revocation.py -> 3 passed, 0 failed
    Watch: Increased latency on logout due to the new Redis write for the blacklist.
    

    Next steps

    1. Run git reset to unstage the current pile.
    2. Execute the "Auth Logic" git add suggested above.
    3. Commit using the drafted message, ensuring the Verified command matches your local run.

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

    About this skill

    Reviewers often read the commit message and PR body before the diff, yet these are typically written in a hurry from memory. This leads to vague descriptions like "fix stuff" and unrelated changes being crammed into single commits, making code reviews difficult and rollbacks impossible. This skill enforces a disciplined git workflow that prioritizes the reviewer's needs and ensures every change is documented with technical precision.

    What it does

    • Diff analysis extracts file counts, insertions, deletions, and structural changes directly from git before writing begins.
    • Concern splitting analyzes staged paths by area to suggest separate commits for unrelated changes, ensuring clean history.
    • Message drafting generates imperative subjects under 72 characters and structured bodies covering the "why," impact, and verification.
    • Automated linting validates messages for length, mood, vagueness, and mandatory verification commands to prevent low-quality logs.
    • PR assembly builds reviewer-first pull request bodies including risk assessments, rollback plans, and grouped commit summaries.

    How it works

    1. Analyze: Run facts to get a data-driven report of what actually changed in the staged files or commit range.
    2. Organize: Use split to group changes by logical area and generate the specific git add commands needed for atomic commits.
    3. Draft: Execute draft to produce a subject line and body scaffold based on the largest functional changes detected.
    4. Validate: Pipe the written message through lint to check for vagueness, missing verification commands, or subject line errors.

    Frameworks & tools

    The core logic is contained in a Python script using the standard library. It interacts directly with git CLI via subcommands like facts, split, draft, pr, and lint. It requires no external dependencies or network access.

    Why this beats prompting it yourself

    Generic AI prompts often guess what changed based on filenames alone and produce "hallucinated" summaries of the logic. This skill uses a Python-backed analysis of the actual git diff to ground every claim in data, ensuring the "Verified" and "Risk" sections reflect real code impact rather than polite filler.

    Use cases

    • Splitting a large, messy "work in progress" stash into a clean series of atomic commits.
    • Generating a professional PR description for a complex branch with multiple contributors.
    • Enforcing commit message standards across a team to ensure "fix stuff" never hits the main branch.
    • Validating that every commit includes a repeatable verification command and output log.

    Known limitations

    It requires a local git environment and Python 3. The lint command needs access to the repository to validate diff-related claims; without it, only basic subject and body formatting checks are performed.

    How to use

    Skills on Agensi run inside your AI agent. Copy the prompt, paste it into your agent, and it connects to Agensi and installs this skill for you. If a payment is needed, your agent shows it to you first.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill passes our trust checks below.

    Security scanned

    Passed our 8-point scan before listing

    1 install

    Downloaded by developers to date

    Free forever

    No account required to browse

    Trust & safety

    Security scanned

    Verified clean 4 days ago

    • Free to download with an account

    Requires

    Python
    Git

    Listed4 days ago

    What's inside

    Frequently Asked Questions