Skip to content

Saved prompts

Saved prompts are instructions you use often, saved under a short name. Run them with @name.

Terminal window
kunji @commit # write a commit message
kunji @explain "TypeError: x is undefined" # explain an error
git diff | kunji @review # review changes
Prompt What it does
@commit Writes a git commit message from your staged changes (or unstaged, if nothing is staged)
@explain Explains code, an error or a concept in plain language
@review Reviews code for bugs, security issues and readability
@fix Finds the bug and shows corrected code
@summarize Summarizes text in 3–7 bullet points
@translate Translates text; start with to Hindi: (or any language) to choose

Anything you type after the name, anything you pipe in, and any files you attach with -f are all passed to the prompt:

Terminal window
kunji @explain "what does async/await do?"
cat error.log | kunji @explain
kunji @fix -f src/app.py
kunji @summarize -f meeting-notes.txt
kunji @translate "to Hindi: see you tomorrow"

Use -m to run a prompt with a different model: kunji @review -m openai:gpt-4o -f app.py.

Inside a git project:

Terminal window
git add .
kunji @commit

kunji runs git diff --staged on your computer and asks the model for a short commit message (a subject line plus a short body). Copy it into your commit, or save it straight away:

Terminal window
git commit -m "$(kunji @commit --raw)"

Start a message with @name:

› @explain this regex: ^[\w.+-]+@\w+\.\w+$

Type @ and press Tab to see prompt names. /prompts lists them all. To send a message that really starts with @, type @@.

From the menu: Run a saved prompt → Create a new prompt…

Or in one line:

Terminal window
kunji prompts add standup -t "Turn these notes into a short standup update: {input}" -d "Standup update"
kunji @standup "fixed login bug, started on payments"

Without -t, kunji prompts add standup opens your text editor.

Placeholder Replaced with
{input} The text you give, plus piped input and attached files
{git_diff} Your staged git changes (or unstaged ones if nothing is staged)

If your prompt has no {input}, your text is added at the end.

Terminal window
kunji prompts # list
kunji prompts show review # see a prompt's text
kunji prompts edit explain # change one (editing a built-in saves your own copy)
kunji prompts remove standup # delete yours
kunji prompts path # folder where your prompts are stored

Your prompts are plain Markdown files in that folder, so you can edit them with any editor, back them up or share them. A file with a built-in’s name replaces the built-in; delete it to get the original back.