GitHub Blog

GitHub Copilot 应用中的斜杠命令指南

GitHub Copilot 应用中的斜杠命令超越了 CLI 的范畴,提供了用于管理会话、规划和执行工作流的文本快捷方式。主要命令包括 /plan 用于分解任务,/spar 用于挑战假设,/autopilot 用于自动实施,/rubber-duck 用于独立审查,/create-canvas 用于创建交互式可视化,/orchestrate 用于协调多仓库工作。这些快捷方式旨在通过将规划、审查和自动化直接集成到聊天中,从而加速开发。

状态已摘要
抓取快照1
AI 输出2
开放问题0

已验证摘要

英文摘要

A guide to slash commands in the GitHub Copilot app

Slash commands in the GitHub Copilot app go beyond the CLI, offering text shortcuts for managing sessions, planning, and executing workflows. Key commands include /plan for breaking down tasks, /spar for challenging assumptions, /autopilot for hands-off implementation, /rubber-duck for independent review, /create-canvas for building interactive visualizations, and /orchestrate for coordinating multi-repository work. These shortcuts aim to speed up development by integrating planning, review, and automation directly into chat.

  • Slash commands in the Copilot app are text shortcuts for managing sessions and workflows.
  • /plan helps break down tasks before coding and enters Plan mode.
  • /spar challenges assumptions to identify risks and tradeoffs.
  • /autopilot switches to Autopilot mode to implement features and iterate.
  • /rubber-duck uses a different model to independently review work for blind spots.
  • /create-canvas creates interactive interfaces like diagrams or boards from chat.
  • /orchestrate coordinates tasks across multiple repositories or sessions.

中文摘要

GitHub Copilot 应用中的斜杠命令指南

GitHub Copilot 应用中的斜杠命令超越了 CLI 的范畴,提供了用于管理会话、规划和执行工作流的文本快捷方式。主要命令包括 /plan 用于分解任务,/spar 用于挑战假设,/autopilot 用于自动实施,/rubber-duck 用于独立审查,/create-canvas 用于创建交互式可视化,/orchestrate 用于协调多仓库工作。这些快捷方式旨在通过将规划、审查和自动化直接集成到聊天中,从而加速开发。

  • Copilot 应用中的斜杠命令是用于管理会话和工作流的文本快捷方式。
  • /plan 帮助在编码前分解任务,并进入计划模式。
  • /spar 通过质疑假设来识别风险和权衡。
  • /autopilot 切换到自动驾驶模式以实施功能和迭代。
  • /rubber-duck 使用不同模型独立审查工作,发现盲点。
  • /create-canvas 从对话中创建交互式界面,如图表或看板。
  • /orchestrate 协调跨多个仓库或会话的任务。

GitHub Copilot / slash commands / AI coding assistant / developer productivity / planning / code review / automation

完整文章

Jacklyn Carroll · @jacklynlee31

August 6, 2026|

6 minutes

Share:If you’ve used slash commands in the GitHub Copilot CLI, you already know how powerful a quick / can be. In the GitHub Copilot app, slash commands take that idea further, giving you shortcuts for managing sessions, navigating projects, and customizing your Copilot workflow.What are slash commands?Slash commands are text shortcuts you type directly into the GitHub Copilot app’s chat composer. Start by typing / and an autocomplete menu appears, showing the commands available in your current context. It’s a small character with a lot of potential, opening the door to shortcuts that help you work with Copilot in new ways.If you’re coming from the CLI, here’s the key difference: CLI slash commands are designed around a terminal-first workflow. Things like adding directories, setting your working directory, and managing terminal access happen through commands. This makes sense, because the CLI lives inside your terminal where there’s no visual interface.

💡 Tip : If you’ve used slash commands in the Copilot CLI, you’ll notice some familiar faces. Commands like /clear and /model work in both places. But the GitHub Copilot app-specific commands are tailored for the multi-session workflow that the desktop app provides.The app, on the other hand, provides a visual interface for managing context. File access commands like /add-dir or /cwd aren’t needed since the app manages project context automatically. App slash commands are more about workflows. You can navigate between sessions, manage projects, and control how the agent works.Why use slash commands?Slash commands may look like simple shortcuts, but they can change how you interact with Copilot. They help you move faster, stay focused, and quickly access the workflows you need. Instead of digging through options or breaking your focus to find the right tool, you can type a command and keep moving. A single / opens up the list of slash commands that can help you move faster, explore new ideas, and get the most out of the app.Let’s take a look at some of the slash commands available in the GitHub Copilot app and how they can fit into your everyday workflows.Before you write code, make a /planGood code starts with a good plan. /plan helps you break down a task before you start writing code, think through your approach, identify potential challenges, and decide what needs to happen next. It also switches your session into Plan mode, which you can also select from the Mode dropdown in the chat composer.Plan a new feature. Break down new feature ideas before jumping into implementation. Have Copilot identify files, components, and dependencies so you have a clearer path forward./plan I need to add two-factor authentication to our application. Help me break down the work involved, identify what files need to change, and outline an implementation approach.Prepare for a large refactor. Map out complex changes before touching your code. Uncover potential risks and develop an incremental approach for making large changes safely./plan We want to refactor our notification system code to make it easier to support new channels like push notifications. Help me understand the changes needed and create an incremental migration plan.Triage and fix bugs. If you know something is wrong but aren’t sure where to start, /plan can help you explore possible causes and outline the steps needed to diagnose and resolve the problem./plan Users are reporting that our checkout flow randomly fails after payment processing. Help me investigate possible causes and create a plan to diagnose and fix the issue.Let Copilot play devil’s advocate with /sparSometimes the best way to validate an idea is to challenge it. /spar is like that one teammate who raises their hand and asks, “Have we thought about what happens when this goes wrong?” It helps you pressure-test your approach by having Copilot question your assumptions and point out potential risks or tradeoffs before you commit to a solution. Here are a few ways you can use it:Validate an architecture choice. Pitch your plan to use Redis for caching and have Copilot question your invalidation strategy, scalability, or whether another approach better fits your workload./spar I'm planning to use Redis as a caching layer for our product API. Challenge my approach and point out any scalability or consistency concerns I may have missed.Compare implementation options. Ask Copilot to debate the pros and cons of REST versus GraphQL, or synchronous versus asynchronous processing, based on your application’s requirements./spar Help me decide between REST and GraphQL for a customer-facing API. Ask questions, challenge my assumptions, and recommend which approach fits best for an app with mobile clients.Review a migration plan. Walk through a database migration or infrastructure change and have Copilot identify edge cases, risks, or rollout concerns before you begin./spar I'm migrating our database to a new managed service with minimal downtime. Poke holes in my migration plan and identify any risks or edge cases I should account for.Challenge a performance optimization. Share an optimization you’re considering and ask Copilot to point out hidden bottlenecks, unintended side effects, or simpler alternatives./spar I'm planning to lazy load most of the components on my site to improve initial load time. Critique my approach and tell me where it could hurt user experience or introduce unnecessary complexity./autopilot take the wheelOnce you have a /plan , the next step is turning that idea into working code. /autopilot helps you work through implementation, make changes, and iterate as needed. Instead of managing each individual step, give Copilot a goal and let it work through the steps needed to complete the task. It also switches your session into Autopilot mode, which you can also select from the Mode dropdown in the chat composer.Implement a new feature. Hand off a task and let Copilot work through the implementation steps./autopilot Add support for exporting user reports as CSV files. Identify the files that need changes, implement the feature, and update any relevant tests.Complete a larger maintenance task. Use /autopilot for tasks that require multiple steps, such as updating dependencies, refactoring code, or improving documentation./autopilot Update this project to the latest version of React. Identify breaking changes, update the code where needed, and make sure the test suite passes.Talk it through with /rubber-duckI’ve learned from personal experience that talking things through with your cat isn’t always helpful. Their listening skills are questionable at best, and their debugging advice usually ends with them sitting on my keyboard or chewing my wires. /rubber-duck gives you something even better: a fresh set of eyes.It uses a different model to independently review your work, helping surface blind spots, question assumptions, and catch issues your primary model may have missed. It’s especially useful for complex refactors, architectural decisions, migration plans, or any time you want a second opinion before moving forward.Get a second opinion on a plan. Before you start implementing a complex feature, have a different model independently review your plan and point out assumptions, missing steps, or potential risks.

/rubber-duck Review the implementation plan we've created for adding two-factor authentication. Identify any blind spots, edge cases, or risks that we may have overlooked.Review a large refactor. After making significant changes, ask /rubber-duck to critique the approach and highlight anything that could be simplified, improved, or handled differently.

/rubber-duck Review the refactoring we've completed for the notification system. Look for architectural concerns, unnecessary complexity, or areas that could be improved before I open a pull request.Validate a migration strategy. Before rolling out a complex migration, use a second model to independently evaluate your approach and identify rollout or reliability concerns.

/rubber-duck Review our database migration plan and implementation. Point out any blind spots, rollback concerns, or edge cases we should address before deployment.Turn conversations into interactive experiences with /create-canvasNot every problem is best solved through a chat window. /create-canvas lets you create interactive interfaces directly from a conversation with Copilot. Instead of working through information in a long chat, you can turn it into a visualization, dashboard, or custom workflow you can interact with. For example:/create-canvas Create an interactive diagram showing how services in this application connect./create-canvas Create an issue triage board that lets me review and categorize open issues.For more information and examples on creating canvases, check out our blog post .When one task becomes many, use /orchestrateNot every task fits neatly into a single workflow. Sometimes you need to make changes across multiple repositories or tackle several related tasks at once. /orchestrate helps you coordinate work across sessions and repositories by breaking larger efforts into smaller tasks that can move forward in parallel.Coordinate changes across repositories. When a feature touches multiple codebases, /orchestrate can help you track the work and coordinate updates across each repository./orchestrate I need to add support for a new authentication flow across our frontend, backend, and shared repositories. Help me break down the work and coordinate the changes needed in each codebase.Manage parallel development tasks. For larger projects, Copilot can divide the work into focused efforts so multiple pieces can move forward together./orchestrate Prepare this feature for release. Identify the work needed for implementation, testing, documentation, and deployment, then help coordinate each task.Your next workflow starts with /You don’t need to memorize any commands to get started. Pick a few slash commands that match how you work and build from there. The autocomplete menu has your back for the rest. Type / and start exploring! You can also read our docs to learn more about the GitHub Copilot app.Try slash commands in the GitHub Copilot app , or check out our docs for a list of available commands.Tags:

GitHub Copilot

GitHub Copilot app

slash commandsWritten byJacklyn is a Content Writer at GitHub and a technical writer with a love for good storytelling.Related postsAI & ML

How the GitHub legal team used Copilot CLI to streamline their workflowsLearn how to build tools to simplify how you work—without writing a single line of code.AI & ML

Stacked sessions and pull requests in the GitHub Copilot appLearn how I modernized an old codebase of mine using stacked sessions and pull requests in the GitHub Copilot app.AI & ML

The harness is all you need (mostly)A practical GitHub Copilot workflow for prototyping, planning, implementing, and reviewing software without chasing every new AI tool.We do newsletters, tooDiscover tips, technical guides, and best practices in our biweekly newsletter just for devs.Your email address

抓取快照

用于解析和审计的抓取证据。

200 · text/html; charset=UTF-8

2026/08/07 08:01

21d7edde8307ceb3704f0b8570f96c375442dc78a349bb22acc50998d41e2869

AI 输出

带验证状态的结构化模型输出。

article.summarize

deepseek-v4-flash · 有效

{"tags":["GitHub Copilot","slash commands","AI coding assistant","developer productivity","planning","code review","automation"],"titleEn":"A guide to slash commands in the GitHub Copilot app","titleZh":"GitHub Copilot 应用中的斜杠命令指南","summaryEn":"Slash commands in the GitHub Copilot...
article.classify

deepseek-v4-flash · 有效

{"relevant":true,"confidence":0.95,"primaryTopic":"product-updates","secondaryTopics":[]}

质量问题与日报引用

开放或已解决的问题,以及文章出现在每日日报中的记录。

日报

Signal Hub 2026-08-07

介绍了实用的斜杠命令,可在聊天中直接加速编码工作流,从规划到多仓库协调。 (score: 0.85)

排序 12026/08/07 00:00草稿