- Speed: Insert common Markdown fragments without manually typing the structure.
- Consistency: Enforce a consistent format for code blocks, tables, task lists, and more.
- Readability: Collapse large outputs or hide secondary details for cleaner threads.
Code block example inserted by
/code
/details
/table
/task-list
The
/task-list shortcut is restricted to the issue description. Use standard Markdown task lists (- [ ] / - [x]) in other comment fields if needed.- Use
/codewhen sharing code snippets to enable proper syntax highlighting (choose the language when prompted). - Hide large logs or verbose output with
/detailsso the main discussion stays focused. - Use
/tablefor data that benefits from a clear, tabular layout—this avoids manual pipe/dash formatting errors. - Save frequently used replies with GitHub’s saved replies and insert them via
/saved-repliesto maintain a consistent voice across issues and PRs. - Apply repository templates with
/templateto ensure all required sections are present when filing issues or PRs.
- GitHub Docs: https://docs.github.com/en/issues/tracking-your-work-with-issues/about-issues
- GitHub Markdown guide: https://docs.github.com/en/get-started/writing-on-github/basic-writing-and-formatting-syntax