Command with File Reference in AI
From the Claude Code Slash Commands cheat sheet · Custom Commands · verified Jul 2026
Command with File Reference
Use @file syntax in custom commands
markdown
# Command that reads files
---
description: Analyze file for security issues
---
Review @$1 for security vulnerabilities💡 Use @ prefix to include file contents
⚡ Works with $1, $ARGUMENTS for dynamic files
🔍 Claude reads files automatically
🎯 Simplifies file-based commands
customfilesreference