GM-CMD-001: Invalid Gemini Custom Command File - Gemini CLI
Summary
- Rule ID:
GM-CMD-001 - Severity:
HIGH - Category:
Gemini CLI - Normative Level:
MUST - Auto-Fix:
No - Verified On:
2026-10-17
Applicability
- Tool:
gemini-cli - Version Range:
unspecified - Spec Revision:
unspecified
Evidence Sources
- https://geminicli.com/docs/cli/custom-commands
- https://raw.githubusercontent.com/google-gemini/gemini-cli/main/packages/cli/src/services/FileCommandLoader.ts
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
description = "Generates a fix for a given issue."
text = "Please provide a code fix for the issue described here: {{args}}."
Valid
description = "Generates a fix for a given issue."
prompt = "Please provide a code fix for the issue described here: {{args}}."