diff --git a/plugins/git/docs/research/docs/pre-commit/examples.md b/plugins/git/docs/research/docs/pre-commit/examples.md index db731e4..648ce54 100644 --- a/plugins/git/docs/research/docs/pre-commit/examples.md +++ b/plugins/git/docs/research/docs/pre-commit/examples.md @@ -157,20 +157,6 @@ pre-commit run --from-ref origin/main --to-ref HEAD files: \.env(\..+)?$ ``` -### Validate a generated file - -```yaml -- repo: local - hooks: - - id: validate-manifest - name: Validate plugin manifest - entry: bash scripts/check-manifests.sh - language: unsupported_script - files: ^\.claude-plugin/ - pass_filenames: false - always_run: false -``` - ### Run full test suite pre-push ```yaml @@ -185,29 +171,6 @@ pre-commit run --from-ref origin/main --to-ref HEAD stages: [pre-push] ``` -### Validate SKILL.md frontmatter (inline bash, as used in this repo) - -```yaml -- repo: local - hooks: - - id: skill-frontmatter - name: SKILL.md frontmatter validation - 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 missing required frontmatter (name: and description:)" - exit 1 - fi - fi - done -``` - ## Adding meta-validation Add after all other repos to catch dead hooks/excludes: