precommit-setup
Configure pre-commit hooks for linting, type checking, formatting, and testing to enforce quality gates on every commit
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/athola/nm-attune-precommit-setupNight 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
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 skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-athola-nm-attune-precommit-setup": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
extract
Analyze a codebase and build a knowledge base of business logic, architecture, data flow, and engineering patterns. The foundation for gauntlet challenges and agent integration
discourse
>- Scan community discussion channels (HN, Lobsters, Reddit, tech blogs) for experience reports and opinions on a topic
synthesize
>- Merge, deduplicate, rank, and format research findings from multiple channels into a coherent report. Use after research agents return their results
workflow-monitor
Detect workflow failures and inefficient patterns, then create GitHub issues for improvement via /fix-workflow
architecture-paradigm-hexagonal
Hexagonal (Ports and Adapters) architecture isolating domain logic from infrastructure