Documentation
AI Commands Guide
Master Typilot's powerful AI commands to generate, explain, fix, and analyze content. Each command is designed for specific use cases.
gen:Generate
Generate new code, text, or content based on your description. Perfect for creating functions, writing emails, or generating any text content.
Examples
gen: create a Python function to calculate fibonacci numbersgen: write a professional email to my manager about project statusgen: generate a React component for a login formgen: create a bash script to backup my filesCommon Use Cases
- •Creating code snippets and functions
- •Writing emails, reports, or documents
- •Generating boilerplate code
- •Creating templates or drafts
Pro Tips
- ✓Be specific about what you want - more details lead to better results
- ✓You can refine the output by asking follow-up questions
- ✓Works great for multiple programming languages
- ✓Try specifying the language or framework for better results
exp:Explain
Get detailed explanations of selected code or concepts. AI will break down complex code into understandable explanations.
Examples
exp: what does this React useEffect hook do?exp: explain this regex patternexp: how does this algorithm work?exp: what is the purpose of this database query?Common Use Cases
- •Understanding unfamiliar code
- •Learning new programming concepts
- •Documenting code functionality
- •Debugging by understanding logic flow
Pro Tips
- ✓Select or highlight the code you want explained
- ✓AI can explain at different levels of detail
- ✓Works with any programming language
- ✓Great for learning new frameworks or libraries
fix:Fix
Debug and fix errors in your code. AI analyzes errors and suggests fixes, or you can describe the problem you're encountering.
Examples
fix: TypeError undefined is not a functionfix: this code has a memory leakfix: optimize this slow database queryfix: resolve the CORS error in this API callCommon Use Cases
- •Debugging runtime errors
- •Fixing compilation issues
- •Optimizing performance problems
- •Resolving compatibility issues
Pro Tips
- ✓Include error messages for best results
- ✓Describe what you expected vs. what happened
- ✓AI can suggest multiple fix approaches
- ✓Always test the suggested fixes
img:Image Analysis
Capture a screenshot and ask AI about it. Requires a vision-capable model (like llama3.2-vision) and Tesseract OCR for text extraction.
Examples
img: describe what's in this screenshotimg: extract and format the data from this tableimg: what error message is shown here?img: summarize the information visible on screenCommon Use Cases
- •Analyzing screenshots and images
- •Extracting text from images
- •Understanding error dialogs
- •Documenting UI states
Pro Tips
- ✓Requires Tesseract OCR to be installed
- ✓Works best with vision-capable models
- ✓Capture clear, well-lit screenshots
- ✓For text-heavy images, ensure good OCR quality
Custom Commands
Want to create your own commands? Visit the Settings page in Typilot and create custom 3-letter shortcuts with personalized AI prompts. Perfect for workflow-specific tasks!