ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

precommit-setup

Configure pre-commit hooks for linting, type checking, formatting, and testing to enforce quality gates on every commit

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/athola/nm-attune-precommit-setup
Or

Night Market Skill — ported from claude-night-market/attune. For the full experience with agents, hooks, and commands, install the Claude Code plugin.

Table of Contents

  • When To Use
  • Philosophy: Three-Layer Defense
  • Standard Hooks (Layer 1)
  • Python Projects
  • Basic Quality Checks
  • Configuration
  • Rust Projects
  • TypeScript Projects
  • Component-Specific Checks (Layer 2)
  • Python Monorepo/Plugin Architecture
  • 1. Lint Changed Components (scripts/run-component-lint.sh)
  • 2. Type Check Changed Components (scripts/run-component-typecheck.sh)
  • 3. Test Changed Components (scripts/run-component-tests.sh)
  • Add to Pre-commit Configuration
  • Validation Hooks (Layer 3)
  • Example: Plugin Structure Validation
  • Workflow
  • 1. Create Configuration Files
  • 2. Configure Python Type Checking
  • 3. Configure Testing
  • 4. Install and Test Hooks
  • 5. Create Manual Quality Scripts
  • scripts/check-all-quality.sh
  • Hook Execution Order
  • Performance Optimization
  • Typical Timings
  • Optimization Strategies
  • Hook Configuration
  • Skip Specific Hooks
  • Custom Hooks
  • CI Integration
  • Troubleshooting
  • Hooks Too Slow
  • Cache Issues
  • Hook Failures
  • Import Errors in Tests
  • Type Checking Errors
  • Best Practices
  • For New Projects
  • For Existing Projects
  • For Monorepos/Plugin Architectures
  • Complete Example: Python Monorepo
  • Related Skills
  • See Also

Pre-commit Setup Skill

Configure a detailed three-layer pre-commit quality system that enforces linting, type checking, and testing before commits.

When To Use

Metadata

Author@athola
Stars4473
Views0
Updated2026-05-01
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-athola-nm-attune-precommit-setup": {
      "enabled": true,
      "auto_update": true
    }
  }
}
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.