Skip to main content
Version: 0.56.6

AGM-005: Platform-Specific Features Without Guard

Summary​

  • Rule ID: AGM-005
  • Severity: MEDIUM
  • Category: AGENTS.md
  • Normative Level: SHOULD
  • Auto-Fix: No
  • Verified On: 2026-07-31

Applicability​

  • Tool: all
  • Version Range: unspecified
  • Spec Revision: unspecified

Evidence Sources​

Test Coverage Metadata​

  • Unit tests: true
  • Fixture tests: true
  • E2E tests: false

Examples​

The following examples demonstrate what triggers this rule and how to fix it.

Invalid​

# Project

This project uses hooks.

- type: PreToolExecution
command: echo "test"

context: fork
agent: reviewer
allowed-tools: Read Write

Valid​

# Project

This project uses various tools.

## Claude Code Specific

- type: PreToolExecution
command: echo "lint"

context: fork
agent: security-reviewer