/init # generate starter CLAUDE.md/mcp # setup mcp server/agents # setup sub-agent/plan # plan mode/tasks # see running tasks/clear # to start fresh task/btw # ask a quick question/new # start a new conversation/compact # summarize to reduce context window/context # current state of context window/usage # show usage/rewind # rewind last turn and revert file changes/plan # switches to plan mode/model # switch model/theme # change theme/skills # manage skills/plugins # manage plugins/memory # toggle memory across sessions
---agent: 'agent'description: 'Generate a clear code explanation with examples'---Explain the following code in a clear, beginner-friendly way:Code to explain: ${input:code:Paste your code here}Target audience: ${input:audience:Who is this explanation for? (e.g., beginners, intermediate developers, etc.)}Please provide:* A brief overview of what the code does* A step-by-step breakdown of the main parts* Explanation of any key concepts or terminology* A simple example showing how it works* Common use cases or when you might use this approachUse clear, simple language and avoid unnecessary jargon.
You can invoke via custom command /explain-code
Copilot will ask you to input code and audience and execute the prompt