[Agents] Add pre-commit check for agent files and skills (#59657)
Signed-off-by: mgoin <mgoin64@gmail.com> Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -30,7 +30,6 @@ repos:
|
||||
- id: markdownlint-cli2
|
||||
language_version: lts
|
||||
args: [--config, tools/pre_commit/.markdownlint.yaml, --fix]
|
||||
exclude: (^|/)CLAUDE\.md$
|
||||
- repo: https://github.com/rhysd/actionlint
|
||||
rev: v1.7.7
|
||||
hooks:
|
||||
@@ -177,6 +176,14 @@ repos:
|
||||
files: ^\.github/mergify\.yml$
|
||||
pass_filenames: false
|
||||
additional_dependencies: [PyYAML, regex]
|
||||
- id: check-agent-files
|
||||
name: Check agent instruction files and skills
|
||||
language: python
|
||||
entry: python tools/pre_commit/check_agent_files.py
|
||||
files: ^(\.agents/|\.claude/|(.*/)?(AGENTS|CLAUDE)\.md$|tools/pre_commit/check_agent_files\.py$)
|
||||
pass_filenames: false
|
||||
additional_dependencies: [PyYAML, regex]
|
||||
verbose: true # `note:` lines are advisory, so the hook passes
|
||||
- id: check-buildkite-step-keys
|
||||
name: Check every Buildkite step declares an explicit key
|
||||
language: python
|
||||
|
||||
Reference in New Issue
Block a user