AI Commands
AI Commands
AI commands are commands run in the AI coding tool that start with slash \ or "at" @.
Common AI commands in AI Coding Tools (GitHub Copilot, Cursor, VS Code) are:
/explain: Analyzes the selected code block and explains its logic in plain English./fix: Scans the selected code for bugs, errors, or security vulnerabilities and proposes a corrected version./tests: Automatically generates unit tests for the active function or class./docs: Generates standardized documentation comments (like JSDoc or Docstrings) for a piece of code.@workspace: Tells the AI to look at the entire project repository for context, rather than just the active file.@file:index.js: Pinpoints a specific file in the project to include in the AI's prompt context.
Slash commands in AI Coding Tools (Claude Code) are:
/compact: Compresses a long chat history into a dense summary to save context window tokens./clear: Wipes the active conversation completely so you can start a brand new coding task./diff: Opens an interactive, visual Git diff showing every code change Claude made during the session./code-review: Instructs Claude to scan your recent Git changes for security bugs, performance issues, and code quality./commit: Analyzes your code edits and automatically generates an accurate, structured Git commit message./init: Creates aCLAUDE.mdfile in your root folder, which serves as an architectural guide and instruction set for the AI.
"at" commands in AI Coding Tools (Claude Code) are:
- Intelligent File Completion: Typing
@src/components/will trigger a dropdown in your terminal allowing you to select a file quickly. - Targeting Context: Typing a prompt like
@index.js fix the memory leaktells Claude to specifically pull that file artifact into its reasoning engine
Common AI commands in Productivity & Workspace Tools (Notion AI, Microsoft Copilot, Slack) are:
/summarize: Condenses a long document, meeting transcript, or chat thread into bullet points./translate [language]: Translates the selected document or message into a specified language./brainstorm: Generates a quick list of ideas based on a topic prompt you provide./tone [professional/casual]: Rewrites the existing text to match a specific communication style./catchup: Used in team chat tools (like Slack) to get an AI summary of missed messages in a channel.
Common AI commands in Chat Assistants (ChatGPT, Claude, Gemini) are:
@Webor/search: Forces the AI to bypass its training data and fetch real-time information from the live internet.@DALL-Eor/image: Switches the AI into an image generation mode to visualize a text description./data: Triggers an advanced data analysis environment to run Python code against an uploaded CSV or Excel file.
Comments
Post a Comment