Ask Copilot to document unfamiliar code.
Section: High-value workflows
Generate docs for a module
bash
bash
copilot -p "Document the public API and side effects of this module in concise Markdown."Explanation
Strong for maintainability and SEO-oriented docs generation.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing High-value workflows
Ask Copilot to fix a failing test
Describe the failure and let Copilot inspect the repo.
Scaffold a feature from the terminal
Ask for a small feature implementation plan and changes.
Review current repository changes
Ask for a human-readable review of local modifications.
Onboard to an unfamiliar repository
Ask Copilot for an architecture tour.
Summarize a file from the command line
Run Copilot non-interactively with a prompt.
Inject a file into the prompt context
Reference a file inline inside the interactive UI.