Saved prompts
Saved prompts are instructions you use often, saved under a short name. Run them with @name.
kunji @commit # write a commit messagekunji @explain "TypeError: x is undefined" # explain an errorgit diff | kunji @review # review changesBuilt-in prompts
Section titled “Built-in prompts”| 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 |
Giving prompts something to work on
Section titled “Giving prompts something to work on”Anything you type after the name, anything you pipe in, and any files you attach with -f
are all passed to the prompt:
kunji @explain "what does async/await do?"cat error.log | kunji @explainkunji @fix -f src/app.pykunji @summarize -f meeting-notes.txtkunji @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.
Writing commit messages with @commit
Section titled “Writing commit messages with @commit”Inside a git project:
git add .kunji @commitkunji 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:
git commit -m "$(kunji @commit --raw)"Using prompts inside a chat
Section titled “Using prompts inside a chat”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 @@.
Create your own
Section titled “Create your own”From the menu: Run a saved prompt → Create a new prompt…
Or in one line:
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.
Placeholders
Section titled “Placeholders”| 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.
Manage prompts
Section titled “Manage prompts”kunji prompts # listkunji prompts show review # see a prompt's textkunji prompts edit explain # change one (editing a built-in saves your own copy)kunji prompts remove standup # delete yourskunji prompts path # folder where your prompts are storedYour 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.