Skip to main content

Commands

อ้างอิงที่ครบถ้วนสำหรับ commands ที่มีใน Claude Code รวมถึง built-in commands และ bundled skills

Commands ควบคุม Claude Code จากภายใน session โดยให้วิธีที่รวดเร็วในการสลับโมเดล จัดการ permissions, ล้าง context, รัน workflow และอื่นๆ

พิมพ์ / เพื่อดู commands ทั้งหมดที่มี หรือพิมพ์ / ตามด้วยตัวอักษรเพื่อ filter

Command จะถูกรู้จักเฉพาะเมื่ออยู่ต้น message ข้อความที่ตามหลังชื่อ command จะถูกส่งเป็น arguments

Commands ตาม workflow ทั่วไป

Session แรกใน repo. รัน /init เพื่อสร้าง CLAUDE.md เริ่มต้น จากนั้น /memory เพื่อปรับแต่ง ใช้ /mcp และ /agents เพื่อตั้งค่า servers หรือ subagents ที่โปรเจกต์ต้องการ และ /permissions เพื่อตั้งกฎการอนุมัติ

ระหว่าง task. /plan สลับเข้า plan mode ก่อนการเปลี่ยนแปลงขนาดใหญ่ /model และ /effort ปรับจำนวน reasoning /context แสดงว่า context window ใช้อะไรมากและ /compact สรุปลง ใช้ /btw สำหรับ aside รวดเร็ว

รัน work ใน parallel. /agents เปิด manager สำหรับ subagents, /tasks แสดงสิ่งที่รันใน background /background detach session ทั้งหมด

ก่อน ship. /diff แสดงสิ่งที่เปลี่ยน, /code-review ตรวจ diff, /review หรือ /security-review ให้การอ่านแบบลึก

ระหว่าง sessions. /clear เริ่มใหม่สำหรับ task ใหม่ /resume และ /branch ให้คุณกลับไปหรือ fork การสนทนาก่อนหน้า

เมื่อมีปัญหา. /rewind ย้อนกลับ code และการสนทนา, /doctor และ /debug วินิจฉัยปัญหา

Commands ทั้งหมด

Commandวัตถุประสงค์
/add-dir <path>เพิ่ม working directory สำหรับ file access ระหว่าง session ปัจจุบัน
/advisor [model|off]เปิดหรือปิด advisor tool ที่ปรึกษาโมเดลที่สองในจุดสำคัญ
/agentsจัดการการกำหนดค่า agent
/autofix-pr [prompt]สร้าง Claude Code session บนเว็บที่ดู PR ของ branch ปัจจุบันและ push fixes เมื่อ CI ล้มเหลว
/background [prompt]Detach session ปัจจุบันให้รันเป็น background agent และ free terminal นี้ Alias: /bg
/batch <instruction>[Skill] จัดการการเปลี่ยนแปลงขนาดใหญ่ใน codebase ใน parallel
/branch [name]สร้าง branch ของการสนทนาปัจจุบัน
/btw <question>ถาม side question รวดเร็วโดยไม่เพิ่มใน conversation
/cd <path>ย้าย session ไปยัง working directory ใหม่
/chromeกำหนดค่า Claude in Chrome settings
/claude-api [migrate|managed-agents-onboard][Skill] โหลด Claude API reference material
/clear [name]เริ่มการสนทนาใหม่ด้วย context ว่างเปล่า Aliases: /reset, /new
/code-review [level] [--fix] [--comment] [target][Skill] Review diff สำหรับ correctness bugs และ cleanups
/color [color|default]ตั้งสี prompt bar สำหรับ session ปัจจุบัน
/compact [instructions]เพิ่ม context โดยสรุปการสนทนา
/configเปิด Settings interface Alias: /settings
/context [all]แสดง context usage ปัจจุบันเป็น colored grid
/copy [N]Copy assistant response ล่าสุดไปยัง clipboard
/costAlias สำหรับ /usage
/debug [description][Skill] เปิดใช้งาน debug logging และแก้ไขปัญหา
/deep-research <question>[Workflow] Fan out web searches, fetch sources และสังเคราะห์ report
/desktopContinue session ปัจจุบันใน Claude Code Desktop app
/diffเปิด interactive diff viewer
/doctorวินิจฉัยและตรวจสอบ Claude Code installation
/effort [level|auto]ตั้ง model effort level
/exitออกจาก CLI Alias: /quit
/export [filename]Export การสนทนาปัจจุบันเป็น plain text
/fast [on|off]Toggle fast mode on หรือ off
/feedback [report]Submit feedback, รายงานบั๊ก หรือแชร์การสนทนา Aliases: /bug, /share
/fewer-permission-prompts[Skill] Scan transcripts และเพิ่ม allowlist เพื่อลด permission prompts
/focusToggle focus view
/fork <directive>สร้าง forked subagent ที่รับ directive ขณะที่คุณทำงานต่อ
/goal [condition|clear]ตั้ง goal: Claude ทำงานต่อจนกว่าจะตรงตามเงื่อนไข
/heapdumpเขียน JavaScript heap snapshot สำหรับ diagnosis
/helpแสดง help และ available commands
/hooksดูการกำหนดค่า hook
/ideจัดการ IDE integrations และแสดงสถานะ
/initInitialize project ด้วย CLAUDE.md guide
/insightsสร้าง report วิเคราะห์ Claude Code sessions
/install-github-appตั้งค่า Claude GitHub Actions app สำหรับ repository
/install-slack-appติดตั้ง Claude Slack app
/keybindingsเปิดไฟล์ keyboard shortcuts
/loginSign in กับ Anthropic account
/logoutSign out จาก Anthropic account
/loop [interval] [prompt][Skill] รัน prompt ซ้ำๆ ขณะที่ session เปิดอยู่
/mcp [reconnect <server>|enable|disable]จัดการ MCP server connections และ OAuth authentication
/memoryแก้ไข CLAUDE.md memory files
/mobileแสดง QR code เพื่อดาวน์โหลด Claude mobile app
/model [model]สลับ AI model
/passesแชร์ Claude Code ฟรีหนึ่งสัปดาห์กับเพื่อน
/permissionsจัดการ allow, ask และ deny rules
/plan [description]เข้า plan mode โดยตรงจาก prompt
/plugin [subcommand]จัดการ Claude Code plugins
/powerupค้นพบฟีเจอร์ Claude Code ผ่าน interactive lessons
/privacy-settingsดูและอัพเดท privacy settings
/radioเปิด Claude FM lo-fi radio ใน browser
/recapสร้าง one-line summary ของ session ปัจจุบัน
/release-notesดู changelog ใน interactive version picker
/reload-plugins [--force]Reload plugins ที่ active ทั้งหมด
/reload-skillsRe-scan skill directories
/remote-controlทำให้ session นี้รองรับ remote control Alias: /rc
/remote-envเลือก default environment สำหรับ cloud agents
/rename [name]Rename session ปัจจุบัน
/resume [session]Resume การสนทนาด้วย ID หรือชื่อ Alias: /continue
/review [PR]Review pull request ใน session ปัจจุบัน
/rewindย้อนกลับการสนทนาและ/หรือ code ไปยังจุดก่อนหน้า Aliases: /checkpoint, /undo
/run[Skill] เปิดและขับ app ของโปรเจกต์เพื่อดูการเปลี่ยนแปลง
/run-skill-generator[Skill] สอน /run และ /verify วิธี build และ launch app
/sandboxToggle sandbox mode
/schedule [description]สร้าง, อัพเดท, แสดงรายการหรือรัน routines Alias: /routines
/scroll-speedปรับ mouse wheel scroll speed
/security-reviewวิเคราะห์ pending changes สำหรับ security vulnerabilities
/setup-bedrockกำหนดค่า Amazon Bedrock
/setup-vertexกำหนดค่า Google Vertex AI
/simplify [target][Skill] Review changed code สำหรับ cleanup opportunities
/skillsแสดงรายการ skills ที่มี
/statsAlias สำหรับ /usage
/statusเปิด Settings interface (Status tab)
/statuslineกำหนดค่า status line ของ Claude Code
/stickersสั่ง Claude Code stickers
/stopหยุด background session ปัจจุบัน
/tasksดูและจัดการทุกอย่างที่รันใน background
/team-onboardingสร้าง team onboarding guide
/teleportดึง Claude Code session บนเว็บเข้า terminal นี้ Alias: /tp
/terminal-setupกำหนดค่า terminal keybindings
/themeเปลี่ยน color theme
/tui [default|fullscreen]ตั้ง terminal UI renderer
/ultraplan <prompt>Draft plan ใน ultraplan session
/ultrareview [PR]รัน deep multi-agent code review ใน cloud sandbox
/upgradeเปิดหน้า upgrade เพื่อสลับ plan tier
/usageแสดง session cost, plan usage limits และ activity stats
/usage-creditsกำหนดค่า usage credits
/verify[Skill] ยืนยัน code change ทำงานได้ดีโดย build และรัน app
/voice [hold|tap|off]Toggle voice dictation
/web-setupเชื่อมต่อ GitHub account กับ Claude Code บนเว็บ
/workflowsเปิด workflow progress view

MCP prompts

MCP servers สามารถ expose prompts ที่ปรากฏเป็น commands รูปแบบ /mcp__<server>__<prompt>

ดูเพิ่มเติม