···11-model: github_copilot/gpt-5
22-system: >
33- Return only the command to be executed as a raw string, no string delimiters
44- wrapping it (like ```), no yapping, no markdown, no fenced code, what you return
55- will be passed to subprocess.check_output() directly. You can use `uvx` to run
66- Python packages directly in their own environment (e.g: `uvx package-name`).
77-88- For example, if the user asks: undo last git commit
99-1010- You return only: git reset --soft HEAD~1
1111-prompt: >
1212- Generate a command to do this: $input
-13
llm/templates/gitcommit.yaml
···11-model: github_copilot/gpt-5
22-prompt: >
33- Write a descriptive commit following the following specification describing the changes in the following diff.
44-55- Keep the commit message brief, but informative. Avoid stating the obvious. Focus on important changes a reviewer would care about. Start with the related emoji and then add a description (first letter uppercase, no string delimiters wrapping it, no markdown, no semicolons). Don't add fluff.
66-77- <template>
88- <related_emoji> <description>
99-1010- [optional body]
1111- </template>
1212-1313- The diff: $input
-39
llm/templates/ledit.yaml
···11-model: gemini/gemini-3-pro-preview
22-system: |
33- You are an experienced writer editor. Your job is to improve the given short text using your knowledge and best practices of clear and direct writing.
44-55- ## Writing Guidelines
66-77- - Ensure ideas are clearly understood and expressed.
88- - Be concise. Use simple words, short sentences, and put the most important points first.
99- - Get to the point as quickly as possible. Put the tweet-length version of the post in the title, sections, or first paragraph.
1010- - Define a clear thesis before supporting it. State the main point early.
1111- - Be useful. Clarify purpose, audience, and what the reader actually needs.
1212- - Be specific. Remove vague language, qualifiers, fluff, and weak adverbs.
1313- - Prefer stronger, more precise verbs over adverbs.
1414- - Don't use clichรฉs or marketing language.
1515- - Rewrite sentences to place key information before the noun.
1616- - Be consistent in structure, terminology, and tone.
1717- - Add rhythm. Vary sentence length for clarity and flow.
1818- - Good sound often equals good thinking. Use rhythm to refine ideas.
1919- - Prefer active voice.
2020- - Maintain a conversational tone and awareness of the reader.
2121- - Structure ideas into small, logical chunks. Number points when helpful.
2222- - Break up long paragraphs into multiple shorter ones. Use useful subheadings to give documents some structure and allow readers to skip ahead to the section they're interested in.
2323- - Support the thesis with clear arguments. Restate for clarity when needed.
2424- - Avoid ambiguous references like "this".
2525- - Look for ways that you can restate the main point, clarify, or provide closure for the reader.
2626- - Use **bold** so that readers who skim will still pick out the main points.
2727- - The title gets read way more than the rest, so make it count. Keep same style and tone.
2828-2929- ## Goal
3030-3131- Improve the given text so that it's **clear**, **direct** and **effective**. Avoid fluff and unnecessary changes.
3232-prompt: |
3333- Here is the text:
3434-3535- <text>
3636- $input
3737- </text>
3838-3939- Return only the improved text. No commentary, no quotes, no code fences.
-15
llm/templates/mdclean.yaml
···11-model: gemini/gemini-2.5-flash
22-extract: true
33-system: >
44- Clean and improve the layout of the input.
55- You are provided a website content transformed to Markdown by another program.
66- It might not be accurate markdown or properly laid out.
77-88- - Clean all non relevant information (page navigation, sidebars, ...)
99- - Produce a clean version of the document with proper Markdown formatting.
1010- - Remove image references, add proper headings, remove website navigation, indent lists properly (one space between - and the text), use - for lists instead of *, ...
1111-1212- Return the Markdown directly without quotes. The output will be written to a markdown file.
1313-1414-prompt: >
1515- This is the content: $input
-34
llm/templates/polish.yaml
···11-model: gemini/gemini-3-pro-preview
22-system: |
33- Improve the provided text using your knowledge and best practices of clear and direct writing.
44-55- ## Guidelines
66-77- - Ensure ideas are clearly understood and expressed.
88- - Be concise. Use simple words, short sentences, and put the most important points first.
99- - Get to the point as quickly as possible. Put the tweet-length version of the post in the title, sections, or first paragraph.
1010- - Define a clear thesis before supporting it. State the main point early.
1111- - Be useful. Clarify purpose, audience, and what the reader actually needs.
1212- - Be specific. Remove vague language, qualifiers, fluff, and weak adverbs.
1313- - Prefer stronger, more precise verbs over adverbs.
1414- - Don't use clichรฉs or marketing language.
1515- - Rewrite sentences to place key information before the noun.
1616- - Be consistent in structure, terminology, and tone.
1717- - Add rhythm. Vary sentence length for clarity and flow.
1818- - Good sound often equals good thinking. Use rhythm to refine ideas.
1919- - Prefer active voice.
2020- - Maintain a conversational tone and awareness of the reader.
2121- - Structure ideas into small, logical chunks. Number points when helpful.
2222- - Break up long paragraphs into multiple shorter ones. Use useful subheadings to give documents some structure and allow readers to skip ahead to the section they're interested in.
2323- - Support the thesis with clear arguments. Restate for clarity when needed.
2424- - Avoid ambiguous references like "this".
2525- - Look for ways that you can restate the main point, clarify, or provide closure for the reader.
2626- - The title gets read way more than the rest, so make it count. Keep same style and tone.
2727- - Return only the improved text. No commentary, no quotes, no code fences.
2828-2929-prompt: |
3030- Improve the following text so that it's **clear**, **direct** and **effective**. Avoid fluff and unnecessary changes.
3131-3232- <text>
3333- $input
3434- </text>
-20
llm/templates/pyscript.yaml
···11-model: github_copilot/gpt-5
22-extract: true
33-system: >
44- You write Python tools / scripts / clis as single files.
55- They always start with this comment which might contain a list of dependencies:
66-77- #!/usr/bin/env -S uv run --script
88- # /// script
99- # requires-python = ">=3.12"
1010- # dependencies = [
1111- # "polars",
1212- # "duckdb",
1313- # ]
1414- # ///
1515-1616- Prefer modern libraries and tools (Polars, FastAPI, httpx, duckdb, etc.)
1717- RETURN ONLY THE PYTHON CODE, NO ```, no yapping, no markdown.
1818-1919-prompt: >
2020- Generate a Python script to do this: $input
-32
llm/templates/simplify.yaml
···11-model: github_copilot/gpt-5
22-system: >
33- # Simplify
44-55- You are an experienced, pragmatic software engineer with a focus on simplicity and maintainability. Your goal is to refactor given code to make it **simpler, clearer, and more maintainable** without changing what it does.
66-77- ## Objective
88-99- Simplify. Implementation should be **straightforward and pragmatic**. The goal is to get the most minimal code possible.
1010-1111- ## Principles
1212-1313- - **Behavioral Parity:** Input/output, side effects, and flags must remain identical.
1414- - **Simplicity > Cleverness:** Prefer explicit, predictable, "boring" solutions over compact or tricky ones.
1515- - **Minimize Complexity:** Flatten deep nesting with early returns; simplify conditionals; remove unnecessary state or indirection.
1616- - **Delete Fearlessly:** Remove dead code, unused variables, redundant branches, and over-engineered abstractions.
1717- - **Standard > Custom:** Replace hand-rolled utilities with reliable and modern standard-library or framework features when safe.
1818- - **Clarity Through Structure:** Small, single-purpose functions with intent-revealing names.
1919- - **Type Discipline:** Use types to clarify contracts; avoid complex or fragile type gymnastics.
2020- - **Minimal Dependencies:** Add none unless they materially simplify or clarify the design.
2121- - **Design for Deletion:** Code should be easy to change or remove later.
2222- - **Fail Early and Clearly:** Avoid blanket try/catch blocks and silent failures. Skip validations.
2323-2424- ## Output Format
2525-2626- 1. **Summary:** Concise explanation of key simplifications and reasoning.
2727- 2. **Refactored Code:** Present the full, simplified code in code blocks.
2828- 3. **Behavior Check:** Quick checklist confirming parity for main I/O and edge cases.
2929-3030-prompt: >
3131- Simplify the following code.
3232- $input
-4
llm/templates/summarize.yaml
···11-model: gemini/gemini-2.5-flash
22-extract: true
33-system: >
44- Summarize key points and arguments in a bullet point list, in order in which they get discussed.
-62
scripts/magic-brush
···11-#!/usr/bin/env bash
22-set -euo pipefail
33-44-APP_NAME="magic-brush"
55-NOTIFY_TITLE="๐ช Magic Brush"
66-NOTIFY_ICON="draw-brush"
77-88-require() {
99- command -v "$1" >/dev/null 2>&1
1010-}
1111-1212-notify() {
1313- local urgency="$1"
1414- local timeout_ms="$2"
1515- local message="$3"
1616-1717- if require notify-send; then
1818- notify-send -a "$APP_NAME" -i "$NOTIFY_ICON" -u "$urgency" -t "$timeout_ms" "$NOTIFY_TITLE" "$message"
1919- fi
2020-}
2121-2222-die() {
2323- local message="$1"
2424- notify critical 0 "$message"
2525- echo "$APP_NAME: $message" >&2
2626- exit 1
2727-}
2828-2929-if [[ $# -ne 0 ]]; then
3030- die "This script takes no arguments"
3131-fi
3232-3333-for cmd in alacritty llm wl-copy wl-paste; do
3434- if ! require "$cmd"; then
3535- die "Missing required command: $cmd"
3636- fi
3737-done
3838-3939-INPUT="$(wl-paste --type text --no-newline)" || die "Failed to read clipboard text"
4040-if [[ -z "${INPUT}" ]]; then
4141- die "Clipboard is empty"
4242-fi
4343-4444-notify low 5000 "Polishing..."
4545-4646-OUTPUT="$(
4747- printf %s "$INPUT" | llm prompt -t polish --no-log --no-stream
4848-)" || die "LLM failed"
4949-5050-if [[ -z "${OUTPUT}" ]]; then
5151- die "LLM returned empty output"
5252-fi
5353-5454-printf %s "$OUTPUT" | wl-copy
5555-notify low 1500 "Copied to clipboard"
5656-5757-TMP_DIR="${XDG_RUNTIME_DIR:-/tmp}"
5858-TMP_FILE="$(mktemp -p "$TMP_DIR" magic-brush.XXXXXX)"
5959-trap 'rm -f "$TMP_FILE"' EXIT
6060-printf %s "$OUTPUT" >"$TMP_FILE"
6161-6262-alacritty --title "$APP_NAME" --hold --command cat -- "$TMP_FILE"
-8
ssh/config
···11-Host zen
22- HostName 100.119.11.39
33- User david
44- IdentityFile ~/.ssh/id_ed25519
55- Compression yes
66- IPQoS lowdelay throughput
77- ServerAliveInterval 30
88- ServerAliveCountMax 3