chernodub757 downloadsProvides a way to create shortcuts for commands powered by LLM capabilities.
Turn Markdown prompt files into Obsidian commands.
LLM Shortcut maps your prompt library folder to command palette entries, then runs the selected prompt against the active note using any OpenAI-compatible provider.
If you keep reusing prompts ("improve writing", "translate", "make this a bullet-list"), copy-paste gets tedious quickly.
This plugin lets you:
.md files in your vault;I used OpenRouter's
google/gemini-3-flash-previewfor demo
You have to use your own LLM provider and keys :)
LLM Shortcut from Community Plugins.🔑 API key🌐 Base URL (example: https://api.openai.com/v1)🤖 Model name (example: gpt-4.1-mini)_prompts)._prompts/Writing/Improve.md:Improve the selected text.
Keep the original meaning, but make it clearer and more concise.
LLM Shortcut: Writing / ImproveThe better you are with the prompting, the better results you get, it's mostly on you :)
info-mode popupThis feature is a “show result, don’t edit my note” mode. Normally, this plugin writes the AI response directly into your note (at cursor/selection).
If you set this in your prompt file frontmatter: llm-shortcut-prompt-response-processing-mode: info the response is shown in a popup window instead.
The popup opens with your prompt name as the title, shows a loading state, then streams in the AI answer live.
The answer is rendered as Markdown (so headings/lists/tables display nicely).
Your note content is not replaced in this mode.
Good use case: dictionary/explanation prompts (like prompt-examples/Foreign word explanation.md) where you want to read info quickly without changing the document.
Some prompts work best when applied to a specific selection of text. You can mark a command as selection-only by adding frontmatter to your prompt file:
---
llm-shortcut-selection-mode: selection-only
---
Your prompt content here...
When a command is marked as selection-only, it will:
This is useful for prompts that are designed to transform, analyze, or modify specific portions of text rather than working with the entire document.
By default, the plugin sends the entire file content to the LLM, marking the areas that should be modified (either a text selection or the caret position). The LLM uses the full file as context when making modifications.
You can limit the context window by specifying the number of characters to include before and after the selection or caret position. This is particularly useful when working with very long documents or when you want to focus the LLM's attention on a specific area.
To configure the context size, add these parameters to your prompt file's frontmatter:
---
llm-shortcut-context-size-before: 256
llm-shortcut-context-size-after: 0
---
Your prompt content here...
llm-shortcut-context-size-before: Number of characters to include before the selection (default: entire file)llm-shortcut-context-size-after: Number of characters to include after the selection (default: entire file)The plugin also adds a command for ad-hoc prompting (default label: Custom prompt).
You can rename this in settings via 📝 Command label.
Ready-made examples are available in prompt-examples.
MIT