practice-exercise
Generates a hands-on practice exercise for a specified GitHub Copilot feature.
- License 许可
- MIT
- 最近更新
- 2026-03-31
- Stars
- ★ 46
- Forks
- 17
01 前言 Front Matter
- name
- practice-exercise
- description
- Generates a hands-on practice exercise for a specified GitHub Copilot feature.
- argument-hint
- [feature-name] [difficulty]
02 资源文件 97
- 参考文档canvas-fonts/ArsenalSC-OFL.txt4.3 KB
- 资产文件canvas-fonts/ArsenalSC-Regular.ttf162.0 KB
- 资产文件canvas-fonts/BigShoulders-Bold.ttf92.3 KB
- 参考文档canvas-fonts/BigShoulders-OFL.txt4.3 KB
- 资产文件canvas-fonts/BigShoulders-Regular.ttf92.2 KB
- 参考文档canvas-fonts/Boldonse-OFL.txt4.3 KB
- 资产文件canvas-fonts/Boldonse-Regular.ttf75.4 KB
- 资产文件canvas-fonts/BricolageGrotesque-Bold.ttf88.8 KB
- 参考文档canvas-fonts/BricolageGrotesque-OFL.txt4.3 KB
- 资产文件canvas-fonts/BricolageGrotesque-Regular.ttf88.8 KB
- 资产文件canvas-fonts/CrimsonPro-Bold.ttf104.8 KB
- 资产文件canvas-fonts/CrimsonPro-Italic.ttf106.3 KB
- 参考文档canvas-fonts/CrimsonPro-OFL.txt4.3 KB
- 资产文件canvas-fonts/CrimsonPro-Regular.ttf104.2 KB
- 参考文档canvas-fonts/DMMono-OFL.txt4.3 KB
- 资产文件canvas-fonts/DMMono-Regular.ttf47.7 KB
- 参考文档canvas-fonts/EricaOne-OFL.txt4.3 KB
- 资产文件canvas-fonts/EricaOne-Regular.ttf24.3 KB
- 资产文件canvas-fonts/GeistMono-Bold.ttf76.5 KB
- 参考文档canvas-fonts/GeistMono-OFL.txt4.3 KB
- 资产文件canvas-fonts/GeistMono-Regular.ttf76.4 KB
- 参考文档canvas-fonts/Gloock-OFL.txt4.3 KB
- 资产文件canvas-fonts/Gloock-Regular.ttf92.9 KB
- 资产文件canvas-fonts/IBMPlexMono-Bold.ttf132.8 KB
- 参考文档canvas-fonts/IBMPlexMono-OFL.txt4.3 KB
- 资产文件canvas-fonts/IBMPlexMono-Regular.ttf130.7 KB
- 资产文件canvas-fonts/IBMPlexSerif-Bold.ttf157.2 KB
- 资产文件canvas-fonts/IBMPlexSerif-BoldItalic.ttf165.9 KB
- 资产文件canvas-fonts/IBMPlexSerif-Italic.ttf166.0 KB
- 资产文件canvas-fonts/IBMPlexSerif-Regular.ttf156.6 KB
- 资产文件canvas-fonts/InstrumentSans-Bold.ttf66.5 KB
- 资产文件canvas-fonts/InstrumentSans-BoldItalic.ttf68.4 KB
- 资产文件canvas-fonts/InstrumentSans-Italic.ttf68.3 KB
- 参考文档canvas-fonts/InstrumentSans-OFL.txt4.3 KB
- 资产文件canvas-fonts/InstrumentSans-Regular.ttf66.4 KB
- 资产文件canvas-fonts/InstrumentSerif-Italic.ttf69.2 KB
- 资产文件canvas-fonts/InstrumentSerif-Regular.ttf67.7 KB
- 参考文档canvas-fonts/Italiana-OFL.txt4.3 KB
- 资产文件canvas-fonts/Italiana-Regular.ttf26.5 KB
- 资产文件canvas-fonts/JetBrainsMono-Bold.ttf112.1 KB
- 参考文档canvas-fonts/JetBrainsMono-OFL.txt4.3 KB
- 资产文件canvas-fonts/JetBrainsMono-Regular.ttf112.2 KB
- 资产文件canvas-fonts/Jura-Light.ttf150.7 KB
- 资产文件canvas-fonts/Jura-Medium.ttf150.9 KB
- 参考文档canvas-fonts/Jura-OFL.txt4.3 KB
- 参考文档canvas-fonts/LibreBaskerville-OFL.txt4.3 KB
- 资产文件canvas-fonts/LibreBaskerville-Regular.ttf144.1 KB
- 资产文件canvas-fonts/Lora-Bold.ttf130.7 KB
- 资产文件canvas-fonts/Lora-BoldItalic.ttf137.0 KB
- 资产文件canvas-fonts/Lora-Italic.ttf136.1 KB
- 参考文档canvas-fonts/Lora-OFL.txt4.3 KB
- 资产文件canvas-fonts/Lora-Regular.ttf130.8 KB
- 资产文件canvas-fonts/NationalPark-Bold.ttf77.4 KB
- 参考文档canvas-fonts/NationalPark-OFL.txt4.3 KB
- 资产文件canvas-fonts/NationalPark-Regular.ttf74.6 KB
- 参考文档canvas-fonts/NothingYouCouldDo-OFL.txt4.3 KB
- 资产文件canvas-fonts/NothingYouCouldDo-Regular.ttf31.3 KB
- 资产文件canvas-fonts/Outfit-Bold.ttf54.1 KB
- 参考文档canvas-fonts/Outfit-OFL.txt4.3 KB
- 资产文件canvas-fonts/Outfit-Regular.ttf53.6 KB
- 资产文件canvas-fonts/PixelifySans-Medium.ttf49.9 KB
- 参考文档canvas-fonts/PixelifySans-OFL.txt4.3 KB
- 参考文档canvas-fonts/PoiretOne-OFL.txt4.3 KB
- 资产文件canvas-fonts/PoiretOne-Regular.ttf44.2 KB
- 资产文件canvas-fonts/RedHatMono-Bold.ttf33.6 KB
- 参考文档canvas-fonts/RedHatMono-OFL.txt4.3 KB
- 资产文件canvas-fonts/RedHatMono-Regular.ttf33.7 KB
- 参考文档canvas-fonts/Silkscreen-OFL.txt4.3 KB
- 资产文件canvas-fonts/Silkscreen-Regular.ttf31.2 KB
- 资产文件canvas-fonts/SmoochSans-Medium.ttf58.3 KB
- 参考文档canvas-fonts/SmoochSans-OFL.txt4.3 KB
- 资产文件canvas-fonts/Tektur-Medium.ttf74.5 KB
- 参考文档canvas-fonts/Tektur-OFL.txt4.3 KB
- 资产文件canvas-fonts/Tektur-Regular.ttf73.8 KB
- 资产文件canvas-fonts/WorkSans-Bold.ttf186.8 KB
- 资产文件canvas-fonts/WorkSans-BoldItalic.ttf171.7 KB
- 资产文件canvas-fonts/WorkSans-Italic.ttf170.2 KB
- 参考文档canvas-fonts/WorkSans-OFL.txt4.3 KB
- 资产文件canvas-fonts/WorkSans-Regular.ttf184.5 KB
- 参考文档canvas-fonts/YoungSerif-OFL.txt4.3 KB
- 资产文件canvas-fonts/YoungSerif-Regular.ttf102.7 KB
- 许可证LICENSE.txt11.1 KB
- 参考文档references/canvas-design-system.md7.7 KB
- 参考文档references/shadcn-accessibility.md9.7 KB
- 参考文档references/shadcn-components.md10.9 KB
- 参考文档references/shadcn-theming.md8.5 KB
- 参考文档references/tailwind-customization.md9.9 KB
- 参考文档references/tailwind-responsive.md8.1 KB
- 参考文档references/tailwind-utilities.md9.7 KB
- 脚本scripts/.coverage52.0 KB
- 脚本scripts/requirements.txt444 B
- 脚本scripts/shadcn_add.py8.6 KB
- 脚本scripts/tailwind_config_gen.py15.3 KB
- 脚本scripts/tests/coverage-ui.json34.3 KB
- 脚本scripts/tests/requirements.txt52 B
- 脚本scripts/tests/test_shadcn_add.py9.7 KB
- 脚本scripts/tests/test_tailwind_config_gen.py18.7 KB
03 SKILL.md 正文
Practice Exercise Skill
Generate targeted, hands-on exercises to master specific GitHub Copilot features at your preferred difficulty level.
When to Use This Skill
- Learning a new feature - Get structured exercises to understand how it works
- Building confidence - Practice with scaffolded tasks before tackling real code
- Filling skill gaps - Identify weak areas and practice with targeted exercises
- Teaching others - Create consistent, effective exercises for team learning
- Daily practice - Keep your Copilot skills sharp with varied challenges
Supported Features
The following GitHub Copilot features have practice exercises available:
- completions - Master the 3 S Principle (Simple, Short, Specific) and predict Copilot's suggestions accurately
- inline-chat - Learn to ask targeted questions about code with Ctrl+I
- chat - Develop deeper conversations with Copilot using Ctrl+Alt+I for complex problems
- agents - Understand how autonomous agents explore and work with your codebase
- edits - Master preview-based, multi-file code transformations with Ctrl+Shift+I
- cli - Command-line integration and scripting with Copilot
Difficulty Levels
Choose a level that matches your current skill:
- beginner - Introductory exercises with clear guidance, simple concepts, scaffolded steps, helpful hints
- intermediate - Moderate complexity, less guidance, combination of features, real-world scenarios from the alert system
- advanced - Complex tasks, minimal guidance, multi-step problems, performance considerations, edge cases
Exercise Format
Each generated exercise includes:
? Objective
Clear statement of what you'll learn and accomplish
?️ Setup Instructions
How to prepare your environment (files to open, context to understand, starting code)
? Step-by-Step Guidance
Progressively more independent steps:
- Early steps have detailed hints
- Middle steps require more problem-solving
- Final steps encourage experimentation and creativity
✅ Expected Outcome
What success looks like - specific code behavior, output, or understanding demonstrated
? Bonus Challenge
Optional advanced stretch goal to extend learning beyond the core exercise
Example Usage
/practice-exercise completions beginner
→ Learn to write simple completions with good context
/practice-exercise inline-chat intermediate
→ Practice asking smart questions about alert filtering logic
/practice-exercise agents advanced
→ Build a custom agent to analyze and document your alert domain
/practice-exercise edits beginner
→ Get comfortable with the preview-based editing workflow
/practice-exercise chat advanced
→ Multi-turn conversation solving complex architecture problems
How It Works
- Specify - Choose a feature and difficulty level
- Receive - Get a structured, ready-to-go exercise
- Practice - Work through the steps in your code editor
- Apply - Take the skills to your real projects
- Share - Exercises are great for pairing and team learning
Features in Detail
Completions
Learn to guide Copilot to generate better code by following the 3 S Principle:
- Simple: Keep suggestions focused
- Short: Brief, specific context wins
- Specific: Clear variable names and patterns
Inline Chat (Ctrl+I)
Ask targeted questions about selected code:
- "Optimize this for performance"
- "Add error handling"
- "Explain what this does"
- "Write tests for this function"
Chat (Ctrl+Alt+I)
Deep, multi-turn conversations with full context access using @workspace, #file, #selection
Agents
Autonomous agents with specific capabilities - explore codebases, run tests, analyze patterns
Edits (Ctrl+Shift+I)
Preview before applying complex refactorings and multi-file changes
CLI
Command-line power - ask questions, generate code, run Copilot features from your terminal
Tips for Success
✅ Do:
- Start with beginner exercises to build confidence
- Read hints but try to solve before looking at the answer
- Experiment with variations on the exercise
- Combine multiple features in your solutions
- Discuss exercises with teammates
❌ Don't:
- Skip the objectives - they explain the "why"
- Rush through setups - good context leads to better learning
- Treat exercises as just getting to the end - focus on understanding
- Memorize solutions - each situation is slightly different
- Give up if Copilot's response isn't perfect on the first try
Progress Tracking
Keep a learning journal:
- Record which features you've practiced
- Note aha moments and key insights
- Track features you want to revisit
- Document your favorite keyboard shortcuts
- Build a personal cookbook of patterns that work well
Next Steps After Practicing
- Apply to Real Code - Use the techniques on your actual projects
- Level Up - Try a harder difficulty or related feature
- Teach Others - Pair with a teammate and walk through the exercise
- Combine Features - Merge completions with inline chat, or chat with edits
- Provide Feedback - Help us improve exercises by sharing what worked and what didn't
Remember: Becoming proficient with Copilot is like learning any new tool. The more you practice, the more natural it becomes. Each exercise builds toward mastery!
04 同仓库更多 Skills
review-checklist
Generates a language-specific code review checklist tailored to the files being changed.
triage-alerts
Triages a batch of alerts by severity and urgency, producing a prioritized action plan.
my-skill
<TODO: Describe what this skill does and when to use it.>
generate-alerts
Generates randomized alert test data for the alert management system. Use this when asked to create sample alerts, mock data, or populate the system with test events for development and testing.