Loading video player...
๐ Custom slash commands are one of Codex CLI's most powerful features. In this tutorial, I'll show you how to create reusable prompts that automate repetitive tasks, saving you hours of manual prompting. I'll walk you through installing the Code Analyzer Pack - 5 production-ready commands for code review, security audits, refactoring, dependency checks, and test generation. โฐ TIMESTAMPS: 00:00 Introduction to Slash Commands 00:36 How built-in slash commands work 02:06 The difference between Global level and Project level slash commands 03:00 How to install a custom slash command 03:46 How to see what custom slash commands are installed 04:19 Walking through the markdown file that powers a custom slash command 07:03 Why custom slash commands are so powerful 07:38 Demonstrating code-review custom slash command 09:45 How to quickly install a set of commands 10:32 Code Analyzer Prompt Pack overview 12:28 Example of copy-paste installation prompt for installing command sets 16:55 Installing our new slash commands 17:30 Confirming our new commands have installed successfully 18:04 Testing the refactor-finder command 20:02 Testing the securityโaudit command 23:33 How to download and install the Code Analyzer Pack ๐ฏ WHAT YOU'LL LEARN: Slash Command Basics: How built-in slash commands work Global vs Project-level installation Where commands are stored Checking installed commands with /prompts Code Analyzer Pack (5 Commands): /code-review - Comprehensive code review with line numbers /security-audit - Scan for SQL injection, XSS, exposed secrets /refactor-finder - Identify refactoring opportunities and technical debt /dependency-check - Check for outdated packages /generate-tests - Automatically create test files Real Results: Found 8 refactoring opportunities (6.5 dev days of tech debt) Detected critical SQL injection vulnerabilities Fixed all security issues in single session ๐ก WHY CUSTOM SLASH COMMANDS: Time Savings: Turn detailed prompts into simple commands Consistency: Standardize workflows across your team Automation: Execute complex tasks instantly Shareability: Store in Git and share with team ๐ RESOURCES: Download Code Analyzer Pack: https://snapperai.io/codex-prompt-packs Cursor IDE: https://cursor.sh Sign up for updates: https://snapperai.io ๐บ RELATED VIDEOS: Codex CLI Quick Start Guide: https://www.youtube.com/watch?v=Onw1c6pXMJI GPT-5 Codex in Cursor: Complete Setup & Tutorial Guide: https://www.youtube.com/watch?v=1wP97Rd62cg ๐ฏ PERFECT FOR: Codex CLI users optimizing workflow Developers doing frequent code reviews Teams standardizing development processes Vibe coders needing consistent code quality Anyone concerned about security in AI-generated code โก BOTTOM LINE: Custom slash commands turn hours of repetitive prompting into seconds. Install once, use forever. ๐ฌ YOUR WORKFLOW? What repetitive prompts do you use? Drop ideas in comments! ๐ STAY CONNECTED: ๐ SUBSCRIBE for more Codex tutorials ๐ Free Command Packs: https://snapperai.io/codex-prompt-packs ๐ Newsletter: https://snapperai.io ๐ X: https://x.com/SnapperAI