feat: audit .github repo and add CLAUDE.md/AGENTS.md checks#14
feat: audit .github repo and add CLAUDE.md/AGENTS.md checks#14
Conversation
- Remove .github repo exclusion — it now gets audited like all other repos (settings, labels, rulesets, workflows, etc.) - Add check_claude_md: every repo must have a CLAUDE.md that references AGENTS.md - Add check_agents_md: every repo must have an AGENTS.md that references the org-level .github/AGENTS.md Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Caution Review failedPull request was closed or merged during review No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughAdds two new compliance checks to Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Pull request overview
This PR extends the org compliance audit to include the .github repository and adds new standards checks for Claude Code configuration files to ensure repos include and cross-reference CLAUDE.md and AGENTS.md.
Changes:
- Stop skipping the
.githubrepository during auditing and issue management. - Add new compliance checks for
CLAUDE.md(must exist + referenceAGENTS.md) andAGENTS.md(must exist + reference org-level standards). - Include a new
standardscategory in the summary category breakdown.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@scripts/compliance-audit.sh`:
- Around line 423-426: The current grep checks use a generic case-insensitive
match (grep -qi 'AGENTS\.md') and report only "warning" via add_finding, which
under-enforces the PR requirement and allows loose matches like a bare
"petry-projects/.github"; update the checks to require an explicit path to
AGENTS.md (for example grep -qiE
'(\.github/.+AGENTS\.md|standards/AGENTS\.md|CLAUDE\.md.*AGENTS\.md)') so only
true references pass, and change the add_finding severity from "warning" to the
mandatory severity used for must-fix violations (e.g., "must-fix" or the
project's canonical error level) in the add_finding calls; apply the same
stricter path-plus-severity changes to the other related branch that currently
accepts bare "petry-projects/.github".
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro
Run ID: 8b76bff3-c9bd-4ff8-bfbd-6346294e8172
📒 Files selected for processing (1)
scripts/compliance-audit.sh
- Point standard_ref to AGENTS.md (the actual source of truth) - Upgrade missing-ref severities from warning to error (required) - Tighten AGENTS.md org-ref grep to match .github/AGENTS.md only Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Summary
.githubrepo exclusion — it now gets audited like all other reposCLAUDE.mdmust exist in every repo and referenceAGENTS.mdAGENTS.mdmust exist in every repo and reference the org-level.github/AGENTS.mdChanges
scripts/compliance-audit.sh.githubskip from both the audit loop and issue creation loopcheck_claude_md()— verifiesCLAUDE.mdexists and referencesAGENTS.mdcheck_agents_md()— verifiesAGENTS.mdexists and references org.github/AGENTS.mdstandardsto the category breakdown in the summary reportDry Run Results
Test plan
.githubrepo now included with 20 findings🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Chores