MUST use when user asks to create, edit, manage, or share snippets, or asks how snippets work
Reusable text blocks expanded via #hashtag in messages. Use the plugin's
README
as the source of truth for installation, configuration, and supported syntax.
Check only the documented global and project snippet directories. Snippet
configuration is always snippet/config.jsonc; plural snippets/ supports
Markdown snippets only.
When modifying configuration:
The filename (without .md) is the primary hashtag. Frontmatter is optional:
---
aliases:
- short
description: Optional
---
Content here
fields mapping. Use ordinary Handlebars variables and conditions in the body. Keep familiar names as nested preset snippets when consolidating variants.!> rather than !`cmd` when the command itself helps the model interpret its output.<inject> only for context that must persist for the whole turn.#skill(...) as hidden context injection, not inline expansion.#_name as an escaped reference to #name; do not expand it./snippets opens the library for browsing, creating, editing, deleting, and
reloading snippets. Edit aliases, descriptions, and fields in the source editor.
Ctrl+G or Edit snippet fields in the command palette edits an invocation under
the composer cursor. Agents can manage the Markdown files directly.
Share to GitHub Discussions.
gh --version succeeds.gh rather than an inline body.