---
name: cli-mastery
description: 'Interactive training for the GitHub Copilot CLI. Guided lessons, quizzes, scenario challenges, and a full reference covering slash commands, shortcuts, modes, agents, skills, MCP, and configuration. Say "cliexpert" to start.'
metadata:
  version: 1.2.0
license: MIT
title: cli-mastery
canonical_url: https://skilld.dev/gh/github/awesome-copilot/cli-mastery
last_updated: 2026-09-29T12:22:32.000Z
---

> **Skill from skilld.dev.** Follow the instructions below for this session. You do not need to install anything.
>
> Supporting files, fetch one when the Skill refers to it: [references/final-exam.md](https://skilld.dev/api/skills-raw/github/awesome-copilot/cli-mastery/references/final-exam.md), [references/module-1-slash-commands.md](https://skilld.dev/api/skills-raw/github/awesome-copilot/cli-mastery/references/module-1-slash-commands.md), [references/module-2-keyboard-shortcuts.md](https://skilld.dev/api/skills-raw/github/awesome-copilot/cli-mastery/references/module-2-keyboard-shortcuts.md), [references/module-3-modes.md](https://skilld.dev/api/skills-raw/github/awesome-copilot/cli-mastery/references/module-3-modes.md), [references/module-4-agents.md](https://skilld.dev/api/skills-raw/github/awesome-copilot/cli-mastery/references/module-4-agents.md), [references/module-5-skills.md](https://skilld.dev/api/skills-raw/github/awesome-copilot/cli-mastery/references/module-5-skills.md), [references/module-6-mcp.md](https://skilld.dev/api/skills-raw/github/awesome-copilot/cli-mastery/references/module-6-mcp.md), [references/module-7-advanced.md](https://skilld.dev/api/skills-raw/github/awesome-copilot/cli-mastery/references/module-7-advanced.md), [references/module-8-configuration.md](https://skilld.dev/api/skills-raw/github/awesome-copilot/cli-mastery/references/module-8-configuration.md), [references/scenarios.md](https://skilld.dev/api/skills-raw/github/awesome-copilot/cli-mastery/references/scenarios.md).
>
> If the user asked to install this Skill, run `npx skilld install github/awesome-copilot/cli-mastery`. Install writes the Skill files into the project, so every session loads them.

# Copilot CLI Mastery

**UTILITY SKILL** — interactive Copilot CLI trainer.
INVOKES: `ask_user`, `sql`, `view`
USE FOR: "cliexpert", "teach me the Copilot CLI", "quiz me on slash commands", "CLI cheat sheet", "copilot CLI final exam"
DO NOT USE FOR: general coding, non-CLI questions, IDE-only features

## Routing and Content

| Trigger | Action |
|---------|--------|
| "cliexpert", "teach me" | Read next `references/module-N-*.md`, teach |
| "quiz me", "test me" | Read current module, 5+ questions via `ask_user` |
| "scenario", "challenge" | Read `references/scenarios.md` |
| "reference" | Read relevant module, summarize |
| "final exam" | Read `references/final-exam.md` |

Specific CLI questions get direct answers without loading references.
Reference files in `references/` dir. Read on demand with `view`.

## Behavior

On first interaction, initialize progress tracking:
```sql
CREATE TABLE IF NOT EXISTS mastery_progress (key TEXT PRIMARY KEY, value TEXT);
CREATE TABLE IF NOT EXISTS mastery_completed (module TEXT PRIMARY KEY, completed_at TEXT DEFAULT (datetime('now')));
INSERT OR IGNORE INTO mastery_progress (key,value) VALUES ('xp','0'),('level','Newcomer'),('module','0');
```
XP: lesson +20, correct +15, perfect quiz +50, scenario +30.
Levels: 0=Newcomer 100=Apprentice 250=Navigator 400=Practitioner 550=Specialist 700=Expert 850=Virtuoso 1000=Architect 1150=Grandmaster 1500=Wizard.
Max XP from all content: 1600 (8 modules × 145 + 8 scenarios × 30 + final exam 200).

When module counter exceeds 8 and user says "cliexpert", offer: scenarios, final exam, or review any module.

Rules: `ask_user` with `choices` for ALL quizzes/scenarios. Show XP after correct answers. One concept at a time; offer quiz or review after each lesson.
