ci: refuse CLAUDE.md files by hook and keep every AGENTS.md out of the Collection tarball #330

Merged
Defame1297 merged 6 commits from ci/244-refuse-claude-md into main 2026-11-23 19:55:36 +00:00
Showing only changes of commit de16995f35 - Show all commits
+10
View File
@@ -126,6 +126,16 @@ repos:
require_serial: true
fail_fast: true
# apm compile (target claude), a tool's project init or a skill can create a CLAUDE.md, and
# the failure is silent: the agent gets no guidance and no error.
- id: refuse-claude-md
name: Refuse CLAUDE.md files
description: refuse CLAUDE.md, CLAUDE.local.md and .claude/CLAUDE.md at any depth
entry: a CLAUDE.md file makes Claude Code ignore every AGENTS.md; delete it
language: fail
files: (^|/)(\.claude/)?CLAUDE(\.local)?\.md$
stages: ['pre-commit']
- repo: meta
hooks:
- id: check-hooks-apply