Files
awesome-copilot/skills/cli-mastery/references/module-1-slash-commands.md
Gregg Cochran febaf64d94 feat: add cli-mastery skill — interactive Copilot CLI training (#915)
* feat: add cli-mastery skill — interactive Copilot CLI training

Adds cli-mastery, an interactive training system for the GitHub Copilot CLI.
8 modules covering slash commands, keyboard shortcuts, modes, agents, skills,
MCP, configuration, and advanced techniques. Includes scenario challenges,
a final exam, XP/leveling system, and SQL-based progress tracking.

Source: https://github.com/DUBSOpenHub/copilot-cli-mastery (MIT)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* fix: address review feedback on frontmatter and consistency

- Switch description from folded block scalar (>) to single-quoted string
  per AGENTS.md documented format
- Fix Module 7 heading: backtick-wrap @ separately from 'file mentions'
  to avoid implying '@ file mentions' is a literal command
- Fix Final Exam Q6: change '@ + filename' to '@filename' with example
  to match the @src/auth.ts syntax taught in modules
- Fix Final Exam Q7: add GEMINI.md to match Module 7 precedence list

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* fix: rename curriculum/ to references/ per agentskills.io spec

Addresses review feedback from @aaronpowell on PR #915.
The Agent Skills specification defines references/ as the standard
directory for supplementary documentation that agents read on demand.

- Renamed skills/cli-mastery/curriculum/ → references/
- Updated all path references in SKILL.md
- Updated asset paths in docs/README.skills.md

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: DUBSOpenHub <DUBSOpenHub@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-09 15:49:23 +11:00

89 lines
3.6 KiB
Markdown

# Module 1: Slash Commands
Teach these categories one at a time, with examples and "when to use" guidance.
## Getting Started
| Command | What it does | When to use |
|---------|-------------|-------------|
| `/login` | Authenticate with GitHub | First launch or expired session |
| `/logout` | Sign out | Switching accounts |
| `/help` | Show all commands | When lost |
| `/exit` `/quit` | Exit CLI | Done working |
| `/init` | Bootstrap copilot-instructions.md | New repo setup |
| `/terminal-setup` | Configure multiline input | First-time setup |
## Models & Agents
| Command | What it does | When to use |
|---------|-------------|-------------|
| `/model` | Switch AI model | Need different capability/speed |
| `/agent` | Browse/select agents | Delegate to specialist |
| `/fleet` | Enable parallel subagents | Complex multi-part tasks |
| `/tasks` | View background tasks | Check on running subagents |
## Code & Review
| Command | What it does | When to use |
|---------|-------------|-------------|
| `/diff` | Review changes in current dir | Before committing |
| `/review` | Run code review agent | Get feedback on changes |
| `/lsp` | Manage language servers | Need go-to-def, diagnostics |
| `/ide` | Connect to IDE workspace | Want IDE integration |
## Session & Context
| Command | What it does | When to use |
|---------|-------------|-------------|
| `/context` | Show token usage visualization | Context getting large |
| `/usage` | Display session metrics | Check premium request count |
| `/compact` | Compress conversation history | Near context limit |
| `/session` | Show session info | Need session details |
| `/resume` | Switch to different session | Continue previous work |
| `/rename` | Rename current session | Better organization |
| `/share` | Export session to markdown/gist | Share with team |
| `/copy` | Copy last response to clipboard | Grab AI output quickly |
| `/clear` | Clear conversation history | Fresh start |
## Permissions & Directories
| Command | What it does | When to use |
|---------|-------------|-------------|
| `/allow-all` | Enable all permissions | Trusted environment, move fast |
| `/add-dir` | Add trusted directory | Working across projects |
| `/list-dirs` | Show allowed directories | Check access scope |
| `/cwd` | Change working directory | Switch project context |
| `/reset-allowed-tools` | Revoke tool approvals | Tighten security |
## Configuration & Customization
| Command | What it does | When to use |
|---------|-------------|-------------|
| `/instructions` | View active instruction files | Debug custom behavior |
| `/experimental` | Toggle experimental features | Try autopilot mode |
| `/theme` | Change terminal theme | Personalize |
| `/streamer-mode` | Hide sensitive info | Livestreaming/demos |
| `/changelog` | Show release notes | After update |
| `/update` | Update CLI | New version available |
| `/feedback` | Submit feedback | Report bug or request |
## Extensibility
| Command | What it does | When to use |
|---------|-------------|-------------|
| `/skills` | Manage skills | Browse/enable capabilities |
| `/mcp` | Manage MCP servers | Add external tools |
| `/plugin` | Manage plugins | Extend functionality |
## Workflows & Research
| Command | What it does | When to use |
|---------|-------------|-------------|
| `/plan` | Create implementation plan | Before complex changes |
| `/research` | Run deep research investigation | Need thorough analysis with sources |
| `/user` | Manage GitHub user list | Team context |
## Quiz (5+ questions, use ask_user with 4 choices each)
Ask "Which command would you use to [scenario]?" style questions.