From 96f3275a66a0aed19111a8babea0cc41559005d9 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
<41898282+github-actions[bot]@users.noreply.github.com>
Date: Tue, 7 Jul 2026 11:10:43 +1000
Subject: [PATCH] sync: update cli-for-beginners ch03 and ch05 from upstream
(#2203)
Chapter 03 (Development Workflows):
- Add /branch and /fork session-branching section to Workflow 5
- Update /diff description to note it works in non-git folders
- Update Workflow 5 summary to include /branch
Chapter 05 (Skills):
- Add argument-hint SKILL.md frontmatter property to properties table
- Expand Managing Skills section with copilot skill terminal command (Option 1)
- Document /skill as shortcut alias for /skills (Option 2)
- Update Key Takeaways to reflect argument-hint and copilot skill
Synced from upstream commits:
- db287eefea68 (docs: add copilot skill CLI command, /branch alias)
- aec96cfd6175 (Update README for clarity on branching commands)
- 296db3e76acf (Rephrase skills management instructions for clarity)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---
.../03-development-workflows.md | 28 ++++++++++--
.../cli-for-beginners/05-skills.md | 44 +++++++++++++++++--
2 files changed, 65 insertions(+), 7 deletions(-)
diff --git a/website/src/content/docs/learning-hub/cli-for-beginners/03-development-workflows.md b/website/src/content/docs/learning-hub/cli-for-beginners/03-development-workflows.md
index 8d73b40f..3e9008b1 100644
--- a/website/src/content/docs/learning-hub/cli-for-beginners/03-development-workflows.md
+++ b/website/src/content/docs/learning-hub/cli-for-beginners/03-development-workflows.md
@@ -3,7 +3,7 @@ title: '03 ยท Development Workflows'
description: 'Mirror the source development workflow chapter covering review, debugging, testing, and git support.'
authors:
- GitHub Copilot Learning Hub Team
-lastUpdated: 2026-03-20
+lastUpdated: 2026-07-03
---

@@ -579,7 +579,7 @@ copilot
-Workflow 5: Git Integration - Commit messages, PR descriptions, /pr, /delegate, and /diff
+Workflow 5: Git Integration - Commit messages, PR descriptions, /pr, /delegate, /diff, and /branch
@@ -688,7 +688,7 @@ This is great for well-defined tasks you want completed while you focus on other
### Using /diff to Review Session Changes
-The `/diff` command shows all changes made during your current session. Use this slash command to see a visual diff of everything Copilot CLI has modified before you commit.
+The `/diff` command shows all changes made during your current session. Use this slash command to see a visual diff of everything Copilot CLI has modified before you commit. It also works in folders that aren't git repositories.
```bash
copilot
@@ -700,6 +700,28 @@ copilot
# Great for reviewing before committing
```
+### Branching Your Session with /branch or /fork
+
+Sometimes you want to explore two different approaches to a problem without losing your original conversation. The `/branch` command (also available as `/fork`) creates a copy of your current session so you can try a different direction and then compare results.
+
+```bash
+copilot
+
+> Fix the find_by_author function to support partial matches
+
+# You want to try a different approach โ branch first!
+> /branch
+
+# Now you're in a new session copy. Try your alternative approach:
+> Fix find_by_author using a different regex-based strategy
+
+# If you don't like the result, switch back to your original session using /session
+```
+
+> ๐ก **`/branch` and `/fork` are the same**: Both commands do identical things. `/branch` was added as a more intuitive name. Use whichever makes more sense to you.
+
+> ๐ก **When to branch**: Branching is great when you're unsure which approach is better and want to keep both options open.
+
---
diff --git a/website/src/content/docs/learning-hub/cli-for-beginners/05-skills.md b/website/src/content/docs/learning-hub/cli-for-beginners/05-skills.md
index b074465b..de2ff0f3 100644
--- a/website/src/content/docs/learning-hub/cli-for-beginners/05-skills.md
+++ b/website/src/content/docs/learning-hub/cli-for-beginners/05-skills.md
@@ -3,7 +3,7 @@ title: '05 ยท Automate Repetitive Tasks'
description: 'Mirror the source chapter on skills that load automatically for repeated GitHub Copilot CLI workflows.'
authors:
- GitHub Copilot Learning Hub Team
-lastUpdated: 2026-05-15
+lastUpdated: 2026-07-03
---

@@ -364,6 +364,9 @@ Provide issues as a numbered list with severity:
| `name` | **Yes** | Unique identifier (lowercase, hyphens for spaces) |
| `description` | **Yes** | What the skill does and when Copilot should use it |
| `license` | No | License that applies to this skill |
+| `argument-hint` | No | Short hint shown to users describing what argument the skill expects (e.g., `"file path or code snippet"`) |
+
+> ๐ก **What is `argument-hint`?** When users invoke a skill directly (e.g., `/security-audit`), the `argument-hint` text appears as a placeholder showing what to type next โ like a mini help prompt. For example, setting `argument-hint: "file path to review"` tells the user to provide a file path after the skill name.
> ๐ **Official docs**: [About Agent Skills](https://docs.github.com/copilot/concepts/agents/about-agent-skills)
@@ -482,9 +485,29 @@ Discover installed skills, find community skills, and share your own.
---
-## Managing Skills with the `/skills` Command
+## Managing Skills with the `copilot skill` Command and `/skills`
-Use the `/skills` command to manage your installed skills:
+Copilot CLI gives you two ways to manage skills. You can do it directly from the terminal before starting Copilot or from inside a Copilot session.
+
+### Option 1: `copilot skill` (Terminal Command)
+
+The `copilot skill` subcommand lets you manage skills directly from your terminal, without opening an interactive Copilot session. This is handy for scripting, quick checks, or adding skills before you start working.
+
+```bash
+# See all installed skills
+copilot skill list
+
+# Add a skill from a local file, URL, or directory
+copilot skill add .github/skills/my-skill/SKILL.md
+copilot skill add https://example.com/skills/security-audit/SKILL.md
+
+# Remove a skill by name
+copilot skill remove security-audit
+```
+
+### Option 2: `/skills` (Inside Copilot Session)
+
+Once you're in an interactive Copilot session, use `/skills` (or its shortcut `/skill`) to manage skills without leaving:
| Command | What It Does |
|---------|--------------|
@@ -494,11 +517,23 @@ Use the `/skills` command to manage your installed skills:
| `/skills remove ` | Disable or uninstall a skill |
| `/skills reload` | Reload skills after editing SKILL.md files |
+> ๐ก **`/skill` shortcut**: You can type `/skill` instead of `/skills` โ they're interchangeable. For example, `/skill list` works the same as `/skills list`.
+
> ๐ก **Remember**: You don't need to "activate" skills for each prompt. Once installed, skills are **automatically triggered** when your prompt matches their description. These commands are for managing which skills are available, not for using them.
### Example: View Your Skills
```bash
+# From the terminal (no interactive session needed):
+copilot skill list
+
+Available skills:
+- security-audit: Security-focused code review checking OWASP Top 10
+- generate-tests: Generate comprehensive unit tests with edge cases
+- code-checklist: Team code quality checklist
+...
+
+# Or from inside a Copilot session:
copilot
> /skills list
@@ -862,9 +897,10 @@ Run `/skills reload` after creating or editing skills to ensure changes are pick
1. **Skills are automatic**: Copilot loads them when your prompt matches the skill's description
2. **Direct invocation**: You can also invoke skills directly with `/skill-name` as a slash command
-3. **SKILL.md format**: YAML frontmatter (name, description, optional license) plus markdown instructions
+3. **SKILL.md format**: YAML frontmatter (name, description, optional license, argument-hint) plus markdown instructions
4. **Location matters**: `.github/skills/` for project/team sharing, `~/.copilot/skills/` for personal use
5. **Description is key**: Write descriptions that match how you naturally ask questions
+6. **Two ways to manage skills**: Use `copilot skill` from the terminal or `/skills` (shortcut: `/skill`) inside a session
> ๐ **Quick Reference**: See the [GitHub Copilot CLI command reference](https://docs.github.com/en/copilot/reference/cli-command-reference) for a complete list of commands and shortcuts.