init-prettier-git-hooks

Community

Bootstrap git hooks for automatic code formatting.

Authorruan-cat
Version1.0.0
Installs0

System Documentation

What problem does it solve?

In Node.js projects, inconsistent code formatting and manual setup of git hooks waste time and introduce drift. This Skill provides a repeatable, automated way to initialize Prettier + lint-staged + simple-git-hooks for pre-commit formatting and lint checks.

Core Features & Use Cases

  • Automates the installation of formatting and linting tooling (Prettier, lint-staged, simple-git-hooks, and commitlint) as development dependencies.
  • Configures Prettier with a sensible workflow and integrates with lint-staged and git hooks to enforce standards automatically.
  • Updates package.json with scripts for formatting and hook preparation, and initializes the git hooks to run pre-commit and commit-msg checks.

Quick Start

Run the initialization to set up git hooks using lint-staged and simple-git-hooks in your Node.js project.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: init-prettier-git-hooks
Download link: https://github.com/ruan-cat/monorepo/archive/main.zip#init-prettier-git-hooks

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.