Agent skill

clean-code-pre-commit-integration

Sub-skill of clean-code: Pre-commit Integration.

Stars 4
Forks 4

Install this agent skill to your Project

npx add-skill https://github.com/vamseeachanta/workspace-hub/tree/main/.claude/skills/_archive/workspace-hub/clean-code/pre-commit-integration

SKILL.md

Pre-commit Integration

Pre-commit Integration

Add to .pre-commit-config.yaml to catch new violations before they land:

yaml
repos:
  - repo: local
    hooks:
      - id: file-size-check
        name: Python file size check (400 line limit)
        language: system
        entry: bash -c 'find src/ -name "*.py" -exec wc -l {} + | awk "$1 > 400 {print $1, $2; found=1} END {exit found+0}" | sort -rn'
        pass_filenames: false
        types: [python]

      - id: validate-file-placement
        name: Validate file placement
        language: system
        entry: bash scripts/operations/validate-file-placement.sh
        pass_filenames: false

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results