Files
awesome-copilot/skills/cli-mastery/references/module-7-advanced.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

1.6 KiB

Module 7: Advanced Techniques

  1. @ file mentions — Always give precise context, don't rely on the AI finding files

    • @src/auth.ts — single file
    • @src/components/ — directory listing
    • "Fix @src/auth.ts to match @tests/auth.test.ts" — multi-file context
  2. ! shell bypass!git log --oneline -5 runs instantly, no AI overhead

  3. /research — Run a deep research investigation using GitHub search and web sources

  4. /resume + --continue — Session continuity across CLI launches

  5. /compact — Compress history when context gets large (auto at 95%)

    • Check with /context first
    • Best used at natural task boundaries
    • Warning signs: AI contradicting earlier statements, token usage >80%
  6. /context — Visualize what's eating your token budget

  7. Custom instructions precedence (highest to lowest):

    • CLAUDE.md / GEMINI.md / AGENTS.md (git root + cwd)
    • .github/instructions/**/*.instructions.md (path-specific!)
    • .github/copilot-instructions.md
    • ~/.copilot/copilot-instructions.md
    • COPILOT_CUSTOM_INSTRUCTIONS_DIRS (additional directories via env var)
  8. Path-specific instructions:

    • .github/instructions/backend.instructions.md with applyTo: "src/api/**"
    • Different coding standards for different parts of the codebase
  9. LSP config~/.copilot/lsp-config.json or .github/lsp.json

  10. /review — Get code review without leaving terminal

  11. --allow-all / --yolo — Full trust mode (use responsibly!)

  12. Ctrl+T — Watch the AI think (learn its reasoning patterns)