- Home
- Skills
- Code Quality & Review
- Commit and PR Writer
Works with the AI Agents you already use
Commit and PR Writer
Enforce atomic commits and reviewer-first PRs using git diff analysis and automated linting.
Free
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
| Area | Files | Insertions | Deletions |
|---|---|---|---|
src/auth/ | 2 | 45 | 12 |
tests/auth/ | 1 | 20 | 0 |
docs/api.md | 1 | 5 | 2 |
Suggested Split
- Auth Logic:
git add src/auth/ tests/auth/ - 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
- Run
git resetto unstage the current pile. - Execute the "Auth Logic"
git addsuggested above. - Commit using the drafted message, ensuring the
Verifiedcommand 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
- Analyze: Run
factsto get a data-driven report of what actually changed in the staged files or commit range. - Organize: Use
splitto group changes by logical area and generate the specificgit addcommands needed for atomic commits. - Draft: Execute
draftto produce a subject line and body scaffold based on the largest functional changes detected. - Validate: Pipe the written message through
lintto 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