Claude Code slash commands are markdown files with optional YAML frontmatter that create reusable /command workflows. Commands and skills are unified: .claude/commands/ files and .claude/skills/ directories both create slash commands. Skills are the recommended approach since they support additional features like supporting files, but single-file commands still work.
When to use: Repeatable prompts, team workflow standardization, guardrailed operations (deploy, commit), multi-phase tasks, dynamic context injection with bash output.
When NOT to use: Complex capabilities needing multiple files and scripts (use a full skill directory instead), one-off prompts, built-in commands that already exist (/compact, /help, /init).
قم بإنشاء أوامر شرطة مائلة مخصصة لـ Claude Code مع تخفيض السعر وYAML frontmatter. يُستخدم عند إنشاء عمليات أتمتة لسير العمل، أو إنشاء مطالبات قابلة لإعادة الاستخدام، أو تحديد /أوامر مخصصة. يُستخدم لأوامر الشرطة المائلة ومعالجة الوسيطات ومراجع الملفات وتنفيذ bash. المصدر: oakoss/agent-skills.