refactor!: carry out the simplification audit across gates, tests, plugins and docs #135
@@ -157,20 +157,6 @@ pre-commit run --from-ref origin/main --to-ref HEAD
|
|||||||
files: \.env(\..+)?$
|
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
|
### Run full test suite pre-push
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
@@ -185,29 +171,6 @@ pre-commit run --from-ref origin/main --to-ref HEAD
|
|||||||
stages: [pre-push]
|
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
|
## Adding meta-validation
|
||||||
|
|
||||||
Add after all other repos to catch dead hooks/excludes:
|
Add after all other repos to catch dead hooks/excludes:
|
||||||
|
|||||||
Reference in New Issue
Block a user