cli-mastery
它能做什么
这是 GitHub Copilot CLI 工具的互动式训练工具。它通过课程、测验和挑战,教你如何使用 Copilot 的命令行功能。
适用场景
- ✓当你想学习如何使用 Copilot CLI 时。
- ✓当你想检验自己对 Copilot CLI 命令的掌握程度时。
- ✓当你想通过真实的使用场景进行练习时。
技能链接
https://github.com/github/awesome-copilot/blob/main/skills/cli-mastery/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“cliexpert”
每周 5 个新技能,1 分钟读完。
工作原理
开始后,它会带你学习课程,并通过提问检查你是否理解。它还会提供实战挑战,以及所有命令的总结。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
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:
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.
常见问题
什么是 Copilot CLI?
它是一个工具,让你可以直接在电脑的命令行中使用 GitHub Copilot。
什么是“斜杠命令”?
这是以正斜杠(/)开头的特殊命令,你输入它们后,Copilot CLI 就会执行特定的任务。
训练是如何进行的?
它使用经验值(XP)和等级系统来记录你的学习进度,你每完成一节课或一次测验,都会获得相应的积分。
详情
作者的原始描述
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.
repo: github/awesome-copilot
热度
- GitHub 星标
- 40k
- 排名
- #7107
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
acquire-codebase-knowledge
40k帮你的智能体理解并编写现有代码项目的文档。它有助于新成员快速上手,或者快速了解项目架构。
acreadiness-assess
40k让你的智能体评估一个项目对 AI 的准备程度,并生成报告。它有助于了解项目在使用 AI 工具方面的准备情况。
acreadiness-generate-instructions
40k帮你的智能体根据评估结果编写 AI 工具的指令文件。它有助于改善 AI 与代码的交互方式,并弥补已发现的不足。
acreadiness-policy
40k让你的智能体协助制定或应用 AI 项目评估的政策。它有助于规范项目的评估方式,并确保合规。