precommit-review

Analyze uncommitted code diffs for bugs, security issues, and standards.

6|1|Updated Dec 13, 2017
One-click install
npx skills add https://github.com/esassoc/neptune --skill precommit-review
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: precommit-review
Source: https://github.com/esassoc/neptune/tree/main/.claude/skills/precommit-review
Command: npx skills add https://github.com/esassoc/neptune --skill precommit-review

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps developers catch bugs, missed patterns, and common errors in their code before they commit changes, improving code quality and reducing the burden on human reviewers.

Core Features & Use Cases

  • Comprehensive Code Analysis: Reviews staged and unstaged changes against a detailed checklist covering correctness, project patterns, security, consistency, completeness, and performance.
  • Jira Integration: Optionally checks code against a Jira card's acceptance criteria for enhanced compliance.
  • Automated Testing: Runs the project's test suite to ensure no regressions are introduced.
  • Use Case: Before committing a new feature, run /precommit-review to get an automated, in-depth review that flags potential issues, ensuring only high-quality code makes it into the repository.

Quick Start

Run /precommit-review to analyze all uncommitted changes.

Frequently Asked Questions about precommit-review

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

FAQPage Schema
How do I run a pre-commit code review on my uncommitted git changes?

Run /precommit-review to analyze all uncommitted git changes. The pre-commit code review automatically evaluates staged and unstaged diffs against a comprehensive checklist covering correctness, security, and project patterns.

Can I validate my code against Jira acceptance criteria before committing?

Yes, pre-commit code review optionally integrates with Jira to validate your code against a Jira card's acceptance criteria. This ensures your uncommitted changes comply with established project requirements before they are committed.

Does automated testing run during the pre-commit review process?

Automated testing is executed during the pre-commit review process. The code reviewer runs the project's test suite to detect potential regressions and ensure code quality before you finalize your git commit.

What does the pre-commit code reviewer check for in my diffs?

The pre-commit code reviewer checks your diffs for potential bugs, security vulnerabilities, and deviations from established coding standards. It analyzes file contents and project-specific patterns across correctness, consistency, completeness, and performance.

Do I need any external dependencies to use the pre-commit code reviewer?

No external dependencies are required to use the pre-commit code reviewer. It operates autonomously using internal scripts and references to analyze your uncommitted code changes and execute automated tests.

Why use an automated pre-commit review instead of waiting for human code review?

An automated pre-commit review catches bugs, missed patterns, and common errors in your code before you commit, improving overall code quality. This reduces the burden on human reviewers by ensuring only high-quality code enters the repository.