repos: - repo: https://github.com/gitleaks/gitleaks rev: v8.21.2 hooks: - id: gitleaks - repo: https://github.com/jumanjihouse/pre-commit-hooks rev: 3.0.0 hooks: - id: shellcheck args: [--severity=warning] - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.5.0 hooks: - id: end-of-file-fixer - id: check-json - id: pretty-format-json - id: check-yaml - id: trailing-whitespace - repo: local hooks: - id: skill-frontmatter name: SKILL.md frontmatter validation description: Ensure SKILL.md files have required frontmatter fields entry: bash language: system files: 'SKILL\.md$' args: - -c - | for f in "$@"; do if [[ -f "$f" ]]; then if ! grep -q "^name:" "$f" || ! grep -q "^description:" "$f"; then echo "ERROR: $f is missing required frontmatter fields (name: and description:)" exit 1 fi fi done