commit-push-local

Automates Prettier and ESLint checks before Git commits and pushes.

1|Updated Apr 17, 2026
One-click install
npx skills add https://github.com/esneiderbravo/hackaton --skill commit-push-local
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: commit-push-local
Source: https://github.com/esneiderbravo/hackaton/tree/main/.claude/skills/commit-push-local
Command: npx skills add https://github.com/esneiderbravo/hackaton --skill commit-push-local

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates the common Git workflow by ensuring code is formatted with Prettier and linted with ESLint before every commit and push, reducing review time and preventing broken builds.

Core Features & Use Cases

  • Auto-format code on commit using Prettier.
  • Auto-fix lint errors with ESLint before committing.
  • Guard rails to stop commits when issues remain.
  • Works with Husky and lint-staged pre-commit hooks to enforce quality.

Quick Start

Commit your changes and push; the tool will format, lint, and prepare a clean commit automatically.

Frequently Asked Questions about commit-push-local

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

FAQPage Schema
How do I automatically run ESLint and Prettier before a git commit?

To automatically run ESLint and Prettier before a git commit, you can use a local Git workflow automation tool that triggers formatting and linting on commit or push actions. This ensures code is formatted and lint errors are auto-fixed before creating a clean commit.

Can I stop a git commit if ESLint errors remain after auto-fixing?

Yes, you can stop a git commit if ESLint errors remain after auto-fixing by using guard rails that abort the commit process. This prevents broken builds by ensuring no code with remaining lint issues is committed to the repository.

Does this automated linting and formatting workflow work with Husky and lint-staged?

Yes, this automated linting and formatting workflow works with Husky and lint-staged pre-commit hooks. It integrates with these tools to enforce code quality standards and ensure formatters run and lint fixes apply automatically before commits.

What is the best way to format JavaScript and TypeScript code before pushing to git?

The best way to format JavaScript and TypeScript code before pushing to git is to automate the workflow using Prettier and ESLint. This targets local Git workflows to ensure code is formatted, diffs are checked, and a clean commit is created automatically.

Why should I automate code formatting and linting on git push?

You should automate code formatting and linting on git push to reduce code review time and prevent broken builds. By running Prettier and ESLint automatically before every commit and push, you maintain consistent code quality without manual intervention.